Learning Vortex Dynamics for Fluid Inference and Prediction

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

Introduction

Understanding the underlying physics of fluids from a simple video observation is a formidable challenge in scientific machine learning. Traditional methods often rely on Eulerian grids (fixed points in space) or neural networks that struggle to capture the sharp, turbulent features of real-world flows. Furthermore, most models require ground-truth velocity or pressure data—quantities that are rarely available when simply observing a video of smoke or ink.

To address this, researchers have introduced Differentiable Vortex Particles (DVP), a novel framework that learns to "see" the underlying physics of fluids from a single video. By representing fluid motion as a collection of Lagrangian vortex particles in a latent space, the model can infer hidden physical quantities like velocity fields and generate physically plausible future predictions that far outlast the original observation.

The Challenge of Fluid Dynamics

The authors identify three core challenges in modeling fluid dynamics from visual data:

  1. Representation: Traditional grid-based methods are computationally expensive and struggle with the "curse of dimensionality" when modeling high-resolution turbulence.
  2. Hidden Dynamics: In real-world scenarios, we typically only observe density (like smoke or dye). However, the underlying physics driving these visual changes are governed by unobserved velocity and pressure fields.
  3. Future Prediction: Many existing models can interpolate (fill in gaps within the observed timeframe) but fail to extrapolate (predict what happens next) because they do not truly capture the underlying dynamical system.

The Differentiable Vortex Particle (DVP) Method

To overcome these limitations, the researchers propose mapping the video into a low-dimensional latent space of "vortices"—swirling particles that carry physical properties—rather than processing raw pixels.

The DVP framework consists of several key components:

  • Lagrangian Latent Space: The fluid is represented by $n$ particles, each defined by a position, strength (vorticity), and size. Because vorticity is often conserved in certain flows, this representation is significantly more efficient than a grid.
  • Vortex-to-Velocity Module ($\mathcal{D}$): Inspired by the Biot-Savart Law, this learnable neural mapping "decodes" the state of the vortex particles into a continuous velocity field that can be queried anywhere in space.
  • Trajectory Module: A neural network ($N_1$) learns the paths of these particles over the duration of the input video.
  • End-to-End Differentiable Pipeline: The model is trained by "advecting" (moving) the initial image using the learned velocity field and comparing the result to the actual video frames. Because the entire process is differentiable, the model learns the physics purely by minimizing the visual difference between its simulation and the real video.

Experimental Evaluation

The authors evaluated their method on both synthetic and real-world datasets to test its accuracy and robustness.

A frame from the real-world soap film dataset, demonstrating the complex vortical structures the DVP model aims to infer and predict.
  • Synthetic Vortical Flow: Generated using a high-fidelity Discrete Vortex Method (DVM) simulation, providing ground-truth velocity and vorticity to quantitatively measure the model's accuracy.
  • Real-World Soap Film: A video of red ink spreading on a soap film. This tested the model's ability to handle noisy, real-world physics where ground truth is unavailable.
  • Generalization Benchmarks: Additional synthetic tests utilized different background patterns (sharp tiles vs. smooth gradients) and mathematical kernels to ensure the model was not overfitting to a single type of simulation.

Key Insights

  • Vorticity as a Learning Primitive: By focusing on vortices rather than raw velocity, the model exploits the physical principle that vorticity carries the "essence" of the flow, drastically reducing the dimensionality of the learning problem.
  • Learnable Kernels: While traditional Computational Fluid Dynamics (CFD) uses hand-picked mathematical "kernels" to represent vortices, DVP uses a neural network to learn the optimal kernel shape from the data, allowing it to adapt to different fluid behaviors.
  • Spontaneous Pruning: The authors discovered that if the model is initialized with more particles than necessary (e.g., 64 particles for a 4-vortex flow), it naturally "prunes" the extras by reducing their strength to zero or clustering them together. This makes the hyperparameter $n$ highly robust.
  • Trajectory Learning: Instead of solely optimizing for a perfect initial state, the model learns the entire trajectory over the observed window. This provides a much more stable gradient for training and leads to superior long-term predictions.

Results

The DVP framework demonstrated significant improvements over existing methods:

  • Superior Inference: On synthetic data, DVP achieved an Average End-Point Error (AEPE) of 0.020, significantly outperforming the state-of-the-art "Hidden Fluid Mechanics" (HFM) baseline, which scored 0.100.
  • Long-Term Plausibility: While baselines like UNets or HFM extrapolations tended to diffuse into blurry messes or produce "glitchy" patterns after the observation window ended, DVP maintained sharp, physically consistent vortical structures for twice the length of the original video.
  • Physical Integrity: On real-world videos, DVP produced velocity fields with much lower divergence (a measure of physical "correctness" for incompressible fluids) compared to baselines, despite having no explicit supervision on velocity.

Limitations and Future Work

While highly effective, the current DVP model has some constraints that pave the way for future research. The current implementation is tailored for 2D, non-viscous flows; extending this to 3D and accounting for viscosity is a major next step. Additionally, the model does not yet explicitly account for complex solid boundaries, which can significantly alter vortex behavior. Finally, handling multi-scale turbulence remains a challenge for particle-based methods. The authors suggest that combining DVP with neural rendering techniques (like NeRFs) could eventually allow for the synthesis of highly realistic 3D fluid simulations directly from 2D video.

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