Mosaic: A Benchmark Suite for Differentiable Physics Solvers

Andrin Rehmann, Heiko Zimmermann, Dion Häfner
6/26/2026
physics.comp-phcs.LG
benchmark-dataset

Official code: pasteurlabs/mosaic (27 stars, Python, Apache-2.0, last commit 2026-10-29).

Abstract

Differentiable partial differential equation (PDE) solvers underpin solver-in-the-loop ML training, gradient-based optimal control, and inverse problems, yet the practical cost of obtaining correct, usable gradients from a given solver on a given problem is largely undocumented. Integration effort, computational cost, gradient accuracy, and numerical conditioning vary widely across solvers and are discoverable only by trial and error.

Show full abstract

We introduce Mosaic, an extensible benchmarking framework for differentiable PDE solvers that standardizes access to solver gradients. Each solver is packaged as a containerized component (Tesseract) exposing a uniform gradient API regardless of language or automatic differentiation (AD) strategy, enabling researchers to evaluate, compare, and build on non-trivial physical solvers. Our evaluation of 14 solvers across fluid dynamics, structural mechanics, and heat transfer demonstrates that the benchmark surfaces practically relevant differences: order-of-magnitude variation in computational cost and Jacobian conditioning, alongside structural incompatibilities that eliminate solvers from realistic tasks entirely. Despite this variation, all solvers that produce gradients converge to similar optima, indicating that the practical barriers are memory limits, numerical stability, and setup compatibility rather than gradient accuracy alone. Mosaic is open-source and available at https://github.com/pasteurlabs/mosaic.

View on arXivView PDF

Code Implementations(1)

pasteurlabs/mosaicOfficial100%
Apache-2.0

A benchmark suite and re-usable collection of differentiable physics solvers.

277Python, C++May 4, 20261 months agoApache-2.0
automatic-differentiationbenchmarkdifferentiable-physicsdifferentiable-programmingscientific-computing+2 more

Similar Papers

Cite this paper

@article{rehmann2026mosaic,
  title  = {Mosaic: A Benchmark Suite for Differentiable Physics Solvers},
  author = {Andrin Rehmann and Heiko Zimmermann and Dion Häfner},
  year   = {2026},
  eprint = {2606.27895},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.27895v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.27895.svg)](https://codeofpaper.com/paper/2606.27895)

Discussion