atlas

Research map / Probabilistic and scientific modeling / Differential equations and PDEs

$\bf{\Phi}_\textrm{Flow}$: Differentiable Simulations for PyTorch, TensorFlow and Jax

ICML 2024 · Probabilistic and scientific modeling › Differential equations and PDEs · approach: Physics-informed operator learning

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Presents ΦFlow, an open-source Python toolkit for writing differentiable simulations that runs on PyTorch, TensorFlow, Jax and NumPy, with differential operators, boundary conditions, differentiable sparse solvers, and automatic matrix tracing.

Problem

Writing differentiable physics simulations is hard to combine with ML frameworks; existing tools are either specialized, tied to one framework, or use different programming paradigms, leading to low-level, non-reusable simulation code.

Approach

A framework-agnostic abstraction layer (ΦML) lets simulation building blocks (grids, boundary conditions, differential operators, differentiable linear solvers, batch dimensions, dimensionality-agnostic code, precision management, function-tracing matrix generation, SciPy optimizer integration, single-call plotting) run on any of several ML backends while remaining differentiable.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ΦFlow instead of the Hu et al. implementationBilliards experiment · Billiardscomputation lines of code: 79 -> 29Helped
Use ΦFlow instead of the Hu et al. implementationBilliards experiment · Billiardsplotting lines of code: 41 -> 2Helped
Use ΦFlow instead of warpWave propagation example · Wave propagationlines of code: 165 -> 14Helped
Increase the number of marker particlesΦFlow PIV solver · Particle image velocimetryvelocity MSE: about one order of magnitude per 8× more markersHelped
Increase the number of marker particlesΦFlow PIV solver · Particle image velocimetryparticle position MSEHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic fluid simulation data generated with ΦFlow

Metrics: lines of code MSE loss velocity MSE particle position MSE

Baselines: Warp Hu et al. 2019 billiards implementation (DiffTaichi) Schoenholz & Cubuk 2020 sphere packing (JAX-MD)

Builds on: ΦML PyTorch TensorFlow Jax SciPy

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy