NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Physical Design using Differentiable Learned Simulators

Kelsey R. Allen, Tatiana Lopez-Guevara, Kimberly L. Stachenfeld, Alvaro Sanchez-Gonzalez, Peter W. Battaglia, Jessica B. Hamrick, Tobias PfaffarXiv 2022

Abstract

Designing physical artifacts that serve a purpose - such as tools and other functional structures - is central to engineering as well as everyday human behavior. Though automating design has tremendous promise, general-purpose methods do not yet exist. Here we explore a simple, fast, and robust approach to inverse design which combines learned forward simulators based on graph neural networks with gradient-based design optimization. Our approach solves high-dimensional problems with complex physical dynamics, including designing surfaces and tools to manipulate fluid flows and optimizing the shape of an airfoil to minimize drag. This framework produces high-quality designs by propagating gradients through trajectories of hundreds of steps, even when using models that were pre-trained for single-step predictions on data substantially different from the design tasks. In our fluid manipulation tasks, the resulting designs outperformed those found by sampling-based optimization techniques. In airfoil design, they matched the quality of those obtained with a specialized solver. Our results suggest that despite some remaining challenges, machine learning-based simulators are maturing to the point where they can support general-purpose design optimization across a variety of domains.

Introduction

In engineering, "inverse design" is the process of identifying physical parameters—such as the shape of a wing or the configuration of a pipe—that produce a specific desired outcome. Traditionally, this process relies on classical numerical solvers which, while highly accurate, are often slow, non-differentiable, and specialized to single domains. Learned simulators offer a faster, differentiable alternative, but they have historically been prone to error accumulation over long time horizons and often fail when evaluating designs outside their training distribution.

This research addresses whether modern Graph Neural Network (GNN) simulators are sufficiently robust and smooth to support gradient-based optimization in complex, high-dimensional design spaces without requiring task-specific fine-tuning.

Methodology

The researchers propose GD-M (Gradient Descent with a Learned Model), a pipeline that utilizes pretrained GNN-based simulators like MESHGRAPHNETS and Graph Network Simulators (GNS). These models represent physical states as graphs, where nodes correspond to particles or mesh vertices and edges represent spatial interactions.

Overview of the GD-M pipeline and an example optimization of a 3D watercourse design.

Because the GNN is a neural network, the entire simulation is differentiable. By employing gradient checkpointing to manage memory, the framework can calculate gradients through trajectories of up to 300 steps. The Adam optimizer is then used to update design parameters (such as heightmaps or joint angles) by backpropagating the reward signal through the entire simulation trajectory. The models were trained on task-independent datasets and evaluated on "out-of-distribution" design tasks, including 2D fluid tools, 3D watercourses, and airfoil optimization.

Results and Evaluation

GD-M significantly outperformed traditional sampling-based techniques like the Cross-Entropy Method (CEM). In 3D watercourse tasks, GD-M performed 30–85x better than CEM. Furthermore, for airfoil optimization, the GD-M approach matched the quality of specialized industry solvers like DAFoam while being nearly 50x faster—completing the task in 21 seconds on a single GPU compared to over 1,000 seconds for the classical solver.

Comparison of GD-M and CEM-M across 2D design tasks showing design evolution and reward performance.

A key insight from the study is that learned simulators often provide a smoother optimization landscape than classical solvers, which can suffer from numerical artifacts at boundaries. Additionally, the GNNs demonstrated a surprising ability to generalize; for instance, a 2D simulator trained only on straight-line segments successfully optimized complex, curved, multi-jointed tools, suggesting that the models learn fundamental local collision rules that scale to global structures.

Discussion and Conclusion

While GD-M shows great promise, it faces limitations such as the "zero gradient" problem, where an initial design is so poor that the fluid never interacts with the tool, leaving the optimizer without a signal. Future work may explore hybrid optimization strategies combining sampling and gradients, as well as methods to optimize over varying topologies rather than fixed design spaces.

Overall, the results indicate that machine learning-based simulators are maturing into viable tools for general-purpose design optimization, offering a powerful combination of speed, differentiability, and generalization across diverse physical domains.

Summary updated

BibTeX
@misc{allen2022physical,
  author = {Kelsey R. Allen and Tatiana Lopez-Guevara and Kimberly L. Stachenfeld and Alvaro Sanchez-Gonzalez and Peter W. Battaglia and Jessica B. Hamrick and Tobias Pfaff},
  title = {{Physical Design using Differentiable Learned Simulators}},
  year = {2022},
  eprint = {2202.00728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.00728},
}
Figure