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

tempoGAN: a temporally coherent, volumetric GAN for super-resolution fluid flow

You Xie, Erik Franz, Mengyu Chu, Nils Thuerey

TL;DR

tempoGAN is a generative adversarial network (GAN) designed to synthesize high-resolution, 3D volumetric fluid flows from low-resolution inputs. By introducing a novel temporal discriminator and physics-aware training, it produces 4D (3D + time) data that is not only visually detailed but also temporally smooth and physically plausible.

What Problem Does This Paper Address?

Simulating high-resolution fluid dynamics (like smoke or fire) is computationally grueling. While researchers have used "super-resolution" (SR) techniques to upscale coarse, low-cost simulations into detailed ones, these methods often suffer from two major flaws:

  1. Temporal Instability: Standard SR models process frames individually, leading to "flickering" where details pop in and out of existence between time steps.
  2. Lack of Physical Realism: Purely image-based models often ignore the underlying physics, resulting in details that look like "noise" rather than realistic turbulent structures.

The authors tackle the challenge of generating consistent, high-frequency details in a 4D physics field using a deep learning approach that understands both space and time.

Methods

The core of tempoGAN is a Conditional GAN (cGAN) architecture. Unlike a standard GAN that generates images from random noise, this model is "conditioned" on a low-resolution volumetric input.

The architecture features three main components:

  • The Generator ($G$): A residual network (ResNet) that takes low-resolution density and velocity fields and outputs a high-resolution density field.
  • Spatial Discriminator ($D_s$): A standard discriminator that ensures individual frames look like realistic, high-resolution smoke.
  • Temporal Discriminator ($D_t$): The "secret sauce." It looks at three consecutive frames. To make the comparison meaningful, the authors use an Advection Layer to align the frames based on the fluid's velocity. This forces the generator to produce details that evolve according to the laws of transport.

The training also employs a Feature Space Loss, where the generator is penalized if its internal feature representations differ too much from those of the ground truth, as seen by the discriminators.

Datasets

The authors generated their own training data using a standard fluid solver (Stam’s Stable Fluids).

  • 2D and 3D Smoke Plumes: They created 20 different simulations with randomized inflow regions, buoyancy forces, and velocities.
  • Volume: Each simulation contained 120 frames.
  • Resolution: Typically, they upscaled from $64^3$ to $256^3$ (a 4x increase per dimension).
  • Augmentation: They used "physics-aware" data augmentation, applying rotations and scaling that respect fluid invariants (e.g., adjusting velocity vectors when the volume is rotated).

Key Insights and Ideas

  • The Power of $D_t$: Manual loss functions (like $L_2$ distance between frames) often result in blurry outputs because they average out possibilities. The temporal discriminator, however, learns the distribution of how fluids should move, allowing for sharp but coherent details.
  • Velocity as a Guide: One of the most striking findings is that providing the generator with low-resolution velocity and vorticity fields—even if the discriminator only checks density—drastically improves the quality. The network learns to "entangle" these physical quantities to place details where turbulence is naturally higher.
  • Negative Feature Weights: Surprisingly, using a negative weight for the feature space loss ($\lambda_f < 0$) sometimes yielded better results. The authors suggest this pushes the generator away from "average" features and toward more distinct, realistic textures.
  • Artistic Control: Because the model is sensitive to input velocity, artists can "paint" or scale velocity fields to suppress or enhance detail in specific regions of the smoke.

Key Results

  • Visual Quality: tempoGAN significantly outperforms standard $L_2$ upscaling and non-temporal GANs, producing thin, wispy structures that remain stable over time.
  • Performance: While training is slow (about 9 days for 3D models on two GPUs), the inference is nearly instantaneous. For a $600 \times 400 \times 400$ scene, tempoGAN took 3.9 minutes to generate the high-res volume, whereas a full-resolution simulation would have taken roughly 31.5 minutes.
  • Generalization: The model, though trained on simple plumes, generalizes well to complex scenarios it never saw during training, such as smoke flowing around obstacles.

Limitations and Future Work

  • Fixed Scaling: The current implementation is hard-coded for a 4x resolution increase. Adapting it for arbitrary scaling factors remains a challenge.
  • Training Time: The 9-day training period for 3D volumes is a significant barrier to rapid iteration.
  • Scope: The work focuses on passively advected quantities (smoke density). Future work could extend this to more complex phenomena like liquid surfaces or combustion, where the high-resolution details might need to "feed back" into the low-resolution simulation.

Reference: Xie, Y., Franz, A., Chu, M., & Thuerey, N. (2018). tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow. ACM Transactions on Graphics (TOG), 37(4), Article 95.

Summary updated

BibTeX
@article{xie2018tempogan,
  author = {You Xie and Erik Franz and Mengyu Chu and Nils Thuerey},
  title = {{tempoGAN: a temporally coherent, volumetric GAN for super-resolution fluid flow}},
  journal = {ACM Trans. Graphics},
  year = {2018},
  url = {https://openreview.net/forum?id=75pDsIVdWrv},
}
Figure