Coupled Diffusion-Encoder Models for Reconstruction of Flow Fields
AmirPouya Hemmasian, Amir Barati Farimani
TL;DR
This work addresses the challenge of reconstructing high-dimensional flow fields under aggressive compression while preserving their statistical and spectral properties. It introduces DiffCoder, a hybrid architecture that couples a learned encoder with a conditional diffusion-based decoder trained end-to-end, enabling generative reconstructions that respect the flow's distributional structure. On Kolmogorov flow at Re = 1000, DiffCoder outperforms a matched VAE in spectral fidelity, particularly at high wavenumbers under deep compression, while remaining competitive at moderate compression. The results suggest that diffusion-based decoding provides a promising route to compact, statistically faithful representations of complex flow fields, with potential extensions to 3D flows, latent-space forecasting, and physics-informed losses.
Abstract
Data-driven flow-field reconstruction typically relies on autoencoder architectures that compress high-dimensional states into low-dimensional latent representations. However, classical approaches such as variational autoencoders (VAEs) often struggle to preserve the higher-order statistical structure of fluid flows when subjected to strong compression. We propose DiffCoder, a coupled framework that integrates a probabilistic diffusion model with a conventional convolutional ResNet encoder and trains both components end-to-end. The encoder compresses the flow field into a latent representation, while the diffusion model learns a generative prior over reconstructions conditioned on the compressed state. This design allows DiffCoder to recover distributional and spectral properties that are not strictly required for minimizing pointwise reconstruction loss but are critical for faithfully representing statistical properties of the flow field. We evaluate DiffCoder and VAE baselines across multiple model sizes and compression ratios on a challenging dataset of Kolmogorov flow fields. Under aggressive compression, DiffCoder significantly improves the spectral accuracy while VAEs exhibit substantial degradation. Although both methods show comparable relative L2 reconstruction error, DiffCoder better preserves the underlying distributional structure of the flow. At moderate compression levels, sufficiently large VAEs remain competitive, suggesting that diffusion-based priors provide the greatest benefit when information bottlenecks are severe. These results demonstrate that the generative decoding by diffusion offers a promising path toward compact, statistically consistent representations of complex flow fields.
