← Latest papers
🔬 physics

Mosaic: A Benchmark Suite for Differentiable Physics Solvers

The paper introduces Mosaic, an open-source benchmarking framework that standardizes the evaluation of differentiable PDE solvers by packaging them as containerized components, revealing significant variations in computational cost, numerical conditioning, and compatibility across 14 solvers while demonstrating that all gradient-producing solvers converge to similar optima.

Original authors: Andrin Rehmann, Heiko Zimmermann, Dion Häfner

Published 2026-06-29
📖 5 min read🧠 Deep dive

Original authors: Andrin Rehmann, Heiko Zimmermann, Dion Häfner

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a chef trying to invent a new recipe. You have a kitchen full of different ovens (the physics solvers). Some are high-tech smart ovens, some are old-school gas ranges, and some are fancy convection units. They all bake bread, but they do it in very different ways.

Now, imagine you want to use a robot arm to tweak the recipe automatically. To do this, the robot needs to know exactly how changing the temperature or the flour amount changes the final taste. In the world of physics simulations, this "taste feedback" is called a gradient.

For a long time, scientists have had these ovens, but no one knew which one would give the robot the most accurate feedback, how much electricity it would cost to get that feedback, or if the oven would even explode if you asked it the wrong question.

Enter "Mosaic."

Think of Mosaic as a universal testing kitchen. The researchers built a standardized setup where they can plug in 14 different "ovens" (computer programs that solve physics equations) and test them side-by-side. They wrapped each oven in a special box (called a Tesseract) so that no matter what language the oven was built in (Python, Julia, C++) or how it works inside, the robot arm can ask it the exact same question in the exact same way.

Here is what they discovered when they started baking:

1. The "Feedback" Varies Wildly

Just like some ovens take 5 minutes to preheat and others take 30, the cost of getting that "taste feedback" (the gradient) varies massively.

  • The Speedsters: Some modern ovens (like those built on JAX or PyTorch) can give you the feedback almost instantly, with almost no extra effort. It's like having a smart oven that tells you the temperature the second you open the door.
  • The Heavy Lifters: Other ovens (like OpenFOAM or deal.II) are powerful but require a massive amount of manual work to get that feedback. It's like having to manually measure the heat with a thermometer for every single degree change. The researchers found that for some of these, writing the code to get the feedback took hundreds or even thousands of extra lines of code.

2. The "Stability" Trap

Some ovens are great for baking a simple loaf of bread (a smooth, easy physics problem), but if you try to bake a complex soufflé (a chaotic fluid flow problem), they might collapse.

  • The paper found that for some tasks, like optimizing the shape of a cylinder to reduce drag in water, half the ovens simply couldn't be used at all. They were structurally incompatible. It's like trying to use a toaster to bake a cake; the machine just isn't built for that shape of problem.
  • Even among the ones that could work, some were "unstable." If you asked them to simulate a long time period, the numbers would get so messy (a mathematical concept called ill-conditioning) that the robot arm would start spinning in circles, unable to find the best solution.

3. The "Perfect" Oven Doesn't Exist

The biggest surprise? Accuracy wasn't the main problem.
Most of the ovens, once they actually managed to give feedback, were surprisingly accurate. If they didn't crash, they usually found the same "perfect recipe" (the optimal solution).

  • The real bottlenecks weren't that the math was wrong; it was that the memory ran out (the oven got too hot), the setup was too hard to configure, or the cost was too high.
  • It's like having 10 chefs who can all cook a perfect steak. The problem isn't that they can't cook; it's that three of them need a $10,000 kitchen, one of them needs a 24-hour prep time, and one of them refuses to cook unless you give them a specific type of knife.

4. The "Negative Control" (The Simple Test)

To make sure they were testing the ovens and not the ingredients, they started with a very simple task: heating a flat metal plate. This is the "negative control."

  • On this simple task, every single oven that could run it produced the same perfect result. This proved that the differences they saw in the complex tasks weren't because the math was broken; it was because the complex tasks exposed the specific weaknesses of each oven's design.

The Bottom Line

The paper introduces Mosaic not as a new way to solve physics problems, but as a standardized menu for researchers.

  • Before Mosaic, picking a solver was like guessing which oven to buy based on a salesperson's word.
  • With Mosaic, you can look at the menu and see: "If I need to do this specific task, Oven A is 200 times faster than Oven B, but Oven B handles my specific shape better."

The researchers conclude that for many problems, the "best" solver isn't the one with the most accurate math, but the one that fits your specific constraints (like memory limits or setup time) without crashing. They made all their "kitchen tools" and "menus" open-source so anyone can add their own ovens to the test kitchen and see how they stack up.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →