An Extensible Benchmark Suite for Learning to Simulate Physical Systems

Karl Otness, Arvi Gjoka, Joan Bruna, Daniele Panozzo, Benjamin Peherstorfer, Teseo Schneider, Denis Zorin

Abstract

This paper introduces a standardized, extensible benchmark suite designed to evaluate how well machine learning (ML) models can simulate physical systems. By testing various architectures against classical numerical solvers across four distinct physical scenarios, the authors provide a rigorous quantitative evaluation of the current state of data-driven physics simulation. The results reveal significant challenges regarding accuracy, stability, and generalization in ML-based solvers compared to traditional numerical methods.

Introduction

In recent years, deep learning has been increasingly proposed as a replacement or accelerator for traditional numerical simulations, such as Finite Element Analysis or Fluid Dynamics. However, the field lacks standardization; researchers often use disparate physical problems, datasets, and metrics, making cross-model comparison nearly impossible. Furthermore, many ML models are evaluated qualitatively—relying on visual plausibility—rather than the rigorous quantitative accuracy required for scientific and engineering applications. This benchmark suite addresses these gaps by providing a unified framework to evaluate the stability, accuracy, and computational efficiency of data-driven methods.

Methodology

The authors evaluate two primary learning strategies for temporal integration:

  1. Derivative Prediction: The model learns to approximate the right-hand side of a differential equation. This predicted derivative is then used within a classical numerical integrator (e.g., Runge-Kutta) to evolve the system.
  2. Step Prediction: The model is trained to directly map the state at time $t$ to the state at time $t + \delta t$, bypassing the differential equation entirely.

The suite tests a spectrum of models, including $k$-Nearest Neighbors (KNN), Multi-Layer Perceptrons (MLPs), Convolutional Neural Networks (CNNs), and U-Nets. Classical integrators like Forward Euler, Leapfrog, and RK4 serve as ground-truth benchmarks.

Benchmark Datasets

The suite includes four physical systems representing a progression of complexity:

  • Spring: A simple 1D oscillating mass (linear, low-dimensional).
  • Wave: A 1D linear wave equation (high-dimensional state space).
  • Spring Mesh: A 2D grid of particles connected by damped springs.
  • Navier-Stokes: 2D fluid flow around randomly placed obstacles (nonlinear and complex).
Visualizations of the four physical systems included in the benchmark suite: Spring, Wave, Spring Mesh, and Navier-Stokes.

The authors distinguish between "narrow" regimes (low-dimensional initial conditions) and "wide" regimes (high-dimensional input spaces) to test the models' ability to generalize beyond simple memorization.

Results and Discussion

The benchmark reveals several critical insights into the performance of ML models in physical simulation.

The "Memorization" Trap and Accuracy Gaps

In "narrow" data regimes, simple KNN models often outperform sophisticated deep learning models, suggesting that many current ML successes may be high-dimensional look-up tables rather than models that have learned underlying physics. Furthermore, for simpler systems, neural network performance tends to plateau; increasing model size or training data does not necessarily close the quantitative gap between ML and classical solvers.

Median Mean Squared Error (MSE) as a function of training set size across different models and physical systems.

Derivative vs. Step Prediction

Learning the derivative is generally more robust than direct step prediction. For instance, CNNs performed excellently at derivative prediction on the spring mesh but were unstable when predicting the next step directly. Derivatives allow the network to focus on local relative motion rather than global coordinates, which aids stability.

Computational Overhead

Contrary to the common claim of ML "acceleration," neural networks are typically 1 to 2 orders of magnitude slower per time step than classical solvers. The per-step evaluation cost of a large network is significant compared to the optimized mathematical operations in traditional C++ solvers.

Conclusion

Current data-driven pipelines are still quantitatively far from matching the precision of direct numerical integration. Most models show a significant accuracy penalty on out-of-distribution data, whereas classical physics-based models handle such changes naturally. Future work will expand the suite to include 3D systems, enforce conservation laws directly into neural architectures, and explore optimized software implementations to reduce computational overhead.

Summary updated

Abstract

Simulating physical systems is a core component of scientific computing, encompassing a wide range of physical domains and applications. Recently, there has been a surge in data-driven methods to complement traditional numerical simulation methods, motivated by the opportunity to reduce computational costs and/or learn new physical models leveraging access to large collections of data. However, the diversity of problem settings and applications has led to a plethora of approaches, each one evaluated on a different setup and with different evaluation metrics. We introduce a set of benchmark problems to take a step towards unified benchmarks and evaluation protocols. We propose four representative physical systems, as well as a collection of both widely used classical time integrators and representative data-driven methods (kernel-based, MLP, CNN, nearest neighbors). Our framework allows evaluating objectively and systematically the stability, accuracy, and computational efficiency of data-driven methods. Additionally, it is configurable to permit adjustments for accommodating other learning tasks and for establishing a foundation for future developments in machine learning for scientific computing.
BibTeX
@inproceedings{otness2021extensible,
  author = {Karl Otness and Arvi Gjoka and Joan Bruna and Daniele Panozzo and Benjamin Peherstorfer and Teseo Schneider and Denis Zorin},
  title = {{An Extensible Benchmark Suite for Learning to Simulate Physical Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=pY9MHwmrymR},
}
Figure