Learning Similarity Metrics for Volumetric Simulations with Multiscale CNNs

Georg Kohl, Li-Wei Chen, Nils Thuerey

Introduction

Comparing 3D volumetric simulations, such as fluid dynamics or smoke propagation, is a fundamental challenge in computational science. Traditional metrics like Mean Squared Error ($L^1$ or $L^2$) often fail to capture structural physical similarity because they treat voxels independently. A minor spatial shift in a complex plume might result in a high $L^2$ error despite the simulations being physically nearly identical. Conversely, critical small-scale features like vortices might be overlooked. To address this, researchers have developed VolSiM, a learned similarity metric designed specifically for 3D physical data.

Methodology

Entropy-Based Similarity Model

A core challenge in learning similarity metrics for 3D volumes is the lack of ground-truth labels. VolSiM overcomes this by leveraging the Second Law of Thermodynamics. In a closed physical system, entropy increases over time as states decorrelate. By modeling the distance between two states as a function of relative entropy change, the framework can automatically generate physically grounded distance labels for simulation sequences.

Entropy-based similarity model relating physical states to entropy and similarity.

Multiscale Siamese CNN (VolSiM)

Physical phenomena often exhibit self-similarity across different scales, such as the energy cascade in turbulence. To capture this, the VolSiM architecture employs a multiscale approach. The network consists of four parallel "scale blocks" that process 3D inputs at native, 1/2, 1/4, and 1/8 resolutions.

The VolSiM architecture utilizes parallel scale blocks to capture features across multiple resolutions.

These features are processed in a Siamese configuration, where two identical networks analyze separate inputs to compute a scalar distance. This design ensures the metric is sensitive to both global structures and local details. Additionally, a correlation-based loss function using a "slicing" technique allows for efficient training on memory-intensive 3D data even with small batch sizes.

Datasets and Training

The model was trained and evaluated on a diverse array of volumetric data, including numerical PDE solvers (Advection-Diffusion, Burgers' equation, Navier-Stokes), the Johns Hopkins Turbulence Database (JHTDB), and ScalarFlow (real-world smoke reconstructions). Synthetic benchmarks were also used to verify geometric invariances.

Key Results and Insights

VolSiM demonstrates significant improvements over traditional element-wise metrics (MSE, PSNR) and 2D perceptual metrics like LPIPS.

  • Physical Accuracy: In tests on forced isotropic turbulence, VolSiM achieved a Spearman Rank Correlation Coefficient (SRCC) of 0.94 against physical reference evaluations, effectively recovering the underlying physics.
  • Efficiency: The architecture is highly optimized, containing only approximately 350,000 weights. This makes it significantly more efficient than 3D adaptations of standard image-based networks.
  • Generalization: The model generalizes well to complex turbulence data not seen during training, suggesting it captures fundamental principles of physical similarity.
  • Scale and Equivariance: The multiscale design provides better stability under rotation and scaling compared to standard CNNs, aligning the network's "perception" with physical reality.

Conclusion

VolSiM provides a robust, physics-inspired standard for comparing 3D simulations. By using entropy as a natural supervisor and a multiscale architecture, it bridges the gap between simple numerical error and structural physical similarity. Future work will focus on explicitly incorporating rotational and scale invariance into the network layers and streamlining normalization for varying input dimensions.

Summary updated

BibTeX
@inproceedings{kohl2023learning,
  author = {Georg Kohl and Li-Wei Chen and Nils Thuerey},
  title = {{Learning Similarity Metrics for Volumetric Simulations with Multiscale CNNs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26007},
}
Figure