one dataset · paper, tables, graph, wiki
simgrammar the grammar of simulation

mechanism

The simulator step is written in a language with automatic differentiation: source-transformed kernels (DiffTaichi, NVIDIA Warp) or traced array programs (JAX in Brax). A loss is defined on the final or accumulated state, for example distance of a soft robot from a goal or error between simulated and observed infection counts. Reverse-mode differentiation propagates the gradient back through every timestep to the parameters, which are updated by gradient descent. Contacts and discrete events are smoothed or given surrogate gradients. For agent-based models, agent state is held in tensors and stochastic discrete events are replaced by differentiable relaxations so the whole population update has gradients (GradABM). The payoff is that tuning takes tens of gradient iterations instead of thousands of blind rollouts.

limitations

  • Collisions, contact switching, and integer or threshold game rules give zero, undefined, or misleading gradients and need smoothing or relaxations that change the dynamics being tuned.
  • Reverse-mode differentiation must store or recompute intermediate states, so memory grows with timesteps times state size; long horizons also produce exploding or vanishing gradients.
  • Support is incomplete in production-grade GPU engines; MuJoCo Warp lists differentiability via Warp as not yet available.
  • Gradient descent finds local optima of a stated loss; matching a target curve is not the same as making a system fun or balanced.

relations

6 stored edges
affects

Contagion

GradABM shows transmission parameters of a million-agent outbreak model calibrated to real case data by gradients, a route to epidemic games whose curves match real diseases or designer targets.

Tunes / balances
affects

Design performance rating

The gradient of a design's rating with respect to each part parameter tells the player which strut, joint or track segment most changes the score, enabling hints like 'move this support left'.

Explains
affects

Fluid and gas simulation

Differentiable fluid kernels (Warp, DiffTaichi) allow inverse design, solving for emitter or vent settings that produce a target flow, usable for level authoring or tuning puzzles.

Tunes / balances
affects

Modular assembly

A controller for a player-built soft or articulated body can be optimized in tens of gradient iterations, so assembled machines can learn to walk or swim during play.

Enables new form
affects

Soft-body deformation

Material stiffness and damping of node-beam or finite-element bodies can be fitted to reference motion or a target feel by gradient descent, as DiffTaichi does for elastic objects.

Tunes / balances
affects

Vehicle dynamics

Tire, suspension and drivetrain constants can be fitted to recorded telemetry by differentiating lap or trajectory error, replacing manual parameter sweeps.

Tunes / balances

backlinks

computed from other records

claims

5 with sources
c01high

DiffTaichi implemented 10 differentiable simulators; its elastic-object simulator was 4.2x shorter than hand-written CUDA at similar speed and 188x faster than a TensorFlow version, and neural controllers optimized in tens of iterations.

src-hu-2020-difftaichi

c02medium

Brax exposed gradients through a JAX rigid-body engine running at millions of steps per second on one accelerator.

src-freeman-2021-brax

c03medium

NVIDIA Warp lets developers write differentiable GPU kernels in Python; NVIDIA reports Autodesk fluid simulations 8x faster and 5x larger than with traditional frameworks.

src-nvidia-2024-warp-blog

c04high

GradABM made a million-agent epidemic agent-based model differentiable, ran it in a few seconds on commodity hardware, and calibrated it to COVID-19 and influenza data by gradient descent.

src-chopra-2023-gradabm

c05medium

As of 2026, gradient support is uneven across GPU engines: MuJoCo Warp lists differentiability via Warp as not yet available.

src-deepmind-2026-mujoco-warp

sources

5
Yuanming Hu, Luke Anderson, Tzu-Mao Li (2019-10-01). DiffTaichi: Differentiable Programming for Physical Simulation. ICLR 2020
C. Daniel Freeman, Erik Frey, Anton Raichuk (2021-06). Brax: A Differentiable Physics Engine for Large Scale Rigid Body Simulation. NeurIPS 2021 Datasets and Benchmarks
Ayush Chopra, Alexander Rodriguez, Jayakumar Subramanian (2022-07-20). Differentiable Agent-based Epidemiology. AAMAS 2023
Google DeepMind, NVIDIA (2026). MuJoCo Warp (MJWarp). GitHub

provenance

runs in log/runs
2026-10-24
created2026-10-24-techniques-sim-mathtechnique