Learning Vortex Dynamics for Fluid Inference and Prediction

Yitong Deng, Hong-Xing Yu, Jiajun Wu, Bo Zhu

TL;DR

The Differentiable Vortex Particle (DVP) method learns complex fluid dynamics directly from a single video by mapping observable pixel changes to a low-dimensional, physics-constrained latent space of discrete vortices. This hybrid approach enables both the accurate inference of hidden physical quantities (like velocity fields) and robust, long-term future predictions of fluid evolution.

Figure 1: Our goal is to learn vortex dynamics for fluid inference and prediction. The 3 frames on the left are observed from a real video of a soap film on a circular metal rim, where the red ink is spreading. The 3 frames on the right are future prediction results produced by our method.

What Problem Does This Paper Address?

In scientific machine learning, modeling fluid flow from visual data (like videos of smoke or dye) is notoriously difficult. The authors identify three core challenges:

  1. Representation Complexity: Traditional methods store velocity fields using regularly spaced grids or neural fields. For turbulent or multi-scale flows, these approaches suffer from the curse of dimensionality and local non-smoothness.
  2. Hidden Dynamics: Fluid equations tightly couple velocity, pressure, and density, but visual observations usually only capture density (e.g., smoke concentration). Learning the underlying velocity field without direct supervision is highly underdetermined.
  3. Future Prediction: While recent physics-informed neural networks (PINNs) excel at interpolating within an observed time window, they fail to extrapolate or predict how the fluid will behave in the future.

Methods

To bridge the gap between visual observations (Eulerian view) and physical fluid structures (Lagrangian view), the authors introduce Differentiable Vortex Particles (DVP).

Instead of learning pixel-to-pixel transitions, the model maps the video into a latent space composed of a sparse collection of $n$ vortex particles. Each particle is defined by its position, vortex strength, and size.

The architecture consists of two primary neural network modules:

  • Trajectory Module ($N_1$): Learns the continuous paths of the vortex particles over time.
  • Dynamics Module ($N_2$): Acts as a learnable vortex-to-velocity induction mapping. Inspired by the Biot-Savart Law in fluid mechanics, it replaces hand-crafted numerical kernels with a neural network to decode the sparse particle states back into a continuous Eulerian velocity field.

The entire pipeline is trained end-to-end using a differentiable Eulerian-Lagrangian simulation loop, minimizing the reconstruction error of the video frames over a small sliding time window.

Overview of the DVP workflow, mapping RGB space to a latent vortex space.

Datasets

The method was evaluated on both synthetic and real-world datasets:

  • Synthetic Vortical Flow: Generated using a high-fidelity Discrete Vortex Method combined with a BFECC advection scheme on a $256 \times 256$ grid (300 frames total; 100 for training, 200 for testing future prediction).
  • Real-World Video: A YouTube video showing a soap film on a circular rim with spreading red ink (150 frames total; 100 for training, 50 for testing).

Key Insights and Ideas

  • Lagrangian Conservation as a Latent Prior: By leveraging the fact that vorticity remains temporally invariant for each particle in an inviscid 2D flow, the model drastically simplifies the learning problem. The complex evolution of the entire fluid field is reduced to simply tracking particle trajectories.
  • Spontaneous Pruning: A fascinating property of the DVP framework is its robustness to over-parameterization. If the user initializes the model with more vortex particles than necessary (e.g., deploying 9 or 64 particles for a system that only needs 4), the model naturally "prunes" redundant degrees of freedom through degeneration (reducing particle strength to 0) or clustering (coinciding multiple particles to act as one).
  • Trajectory Learning vs. Initial Conditions: Instead of optimizing only the initial state of a simulator—which causes chaotic gradient explosions when backpropagating through long time horizons—learning the full trajectory over a sliding window allows stable, memory-efficient optimization.

Key Results

The DVP method was compared against several baselines, including Hidden Fluid Mechanics (HFM), E-R, and standard grid-based differentiable fluid simulators (Diff-Sim).

  • Motion Inference Accuracy: On synthetic data, DVP achieved an Average End-Point Error (AEPE) of 0.020, significantly outperforming HFM (0.100) and UNet baselines (0.048).
  • Physical Integrity: DVP maintained exceptionally low velocity divergence (0.053 on synthetic, 0.318 on real video), indicating that the learned velocity fields strictly respected fluid incompressibility constraints compared to unconstrained neural network baselines.
  • Long-Term Rollouts: While baseline methods quickly suffered from numerical diffusion or generated glitchy, unnatural artifacts during future prediction, DVP successfully extrapolated plausible fluid structures twice as long as the training sequence.

Limitations and Future Work

While promising, the current DVP framework has a few notable limitations:

  • 2D Inviscid Assumption: The physical model is currently restricted to two dimensions and does not account for viscosity changes or 3D vortex stretching.
  • Boundary Conditions: The vortex evolution does not explicitly incorporate solid boundary conditions in a physically rigorous manner, which can degrade prediction accuracy near walls.
  • Multi-Scale Turbulence: Scaling the sparse particle representation to handle highly turbulent, multi-scale flows remains an open challenge.

Summary updated

BibTeX
@inproceedings{deng2023learning,
  author = {Yitong Deng and Hong-Xing Yu and Jiajun Wu and Bo Zhu},
  title = {{Learning Vortex Dynamics for Fluid Inference and Prediction}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=nYWqxUwFc3x},
}
Figure