Octree-based hierarchical sampling optimization for the volumetric super-resolution of scientific data

Xinjie Wang, Maoquan Sun, Yundong Guo, Chunxin Yuan, Xiang Sun, Zhiqiang Wei, Xiaogang JinJournal of Computational Physics 2023

TL;DR

Training physics-constrained deep learning models for volumetric super-resolution of scientific data is notoriously slow and difficult to converge. This paper introduces an octree-based hierarchical sampling optimization method that intelligently guides where the model samples data, significantly reducing training time and sample points without sacrificing accuracy. This approach promises to make high-resolution scientific data more accessible.

What Problem Does This Paper Address?

Generating high-resolution scientific data, crucial for understanding complex phenomena like turbulence or climate systems, often requires immense computational resources and time. While physics-constrained deep learning offers a promising avenue for super-resolution (generating fine details from coarse data while respecting physical laws), its training process is hindered by several factors:

  • Computational Cost: These models require dense sampling of the data's latent space to learn both statistical and physical correlations. This leads to a massive number of computations, especially in the decoder.
  • Convergence Challenges: Training can be slow and difficult, often failing to reach a satisfactory solution within a reasonable timeframe.
  • Inefficient Sampling: Traditional methods often use uniform sampling or simple importance sampling techniques that don't fully capture the dynamic importance distribution of volumetric data.

The core problem is how to make training physics-constrained deep learning models for volumetric super-resolution more efficient and reliable.

Methods

The paper proposes an octree-based hierarchical sampling optimization method. Here's a breakdown of the key components:

  1. Octree Initialization: The volumetric data is first preprocessed to build an initial octree. This octree structure recursively subdivides the data into cuboid subblocks. The initial subdivision is guided by the variance of the physical variables within these subblocks, ensuring that areas with more significant fluctuations are prioritized.
  2. Hierarchical Sampling Optimization: During training, when a cropped data block is fed into the model, the octree guides the sampling of points in the latent context grid. Instead of uniform sampling, the number of sample points within each subblock (intersecting with the current data block) is determined hierarchically based on the subblock's volume and a base sampling density (m). This means more sample points are allocated to regions deemed more important by the octree.
  3. Octree Reconstruction: The initial variance-based octree can become outdated as the model learns. To address this, the octree is reconstructed whenever the training hits a bottleneck (loss plateaus). The reconstruction is now guided by the regression loss distribution of the current model. This ensures that sampling dynamically focuses on areas where the model is currently struggling the most.
  4. Multi-stage Training Strategy: To manage the computational cost of reconstruction and avoid frequent updates, the training is divided into stages. An octree reconstruction is performed only after a certain number of epochs (q) and when a bottleneck is detected. This strategy balances the benefits of updated sampling with the overhead of reconstruction.

Datasets

The primary dataset used for training and evaluation is derived from the Rayleigh-Bénard convection problem. This is a standard benchmark for fluid dynamics simulations. The authors generated Ground Truth data with spatio-temporal dimensions of 128 × 512 × 200 and used cropped blocks of 128 x 128 x 16, downsampled to 16 x 16 x 4 for training. They also generated a separate Ground Truth dataset for evaluation.

Additionally, the method was tested on a 2D Navier-Stokes equations problem, using a dataset simulating incompressible flow past a circular cylinder.

Key Insights and Ideas

  • Dynamic Importance Distribution: The core insight is that the "importance" of different data regions isn't static. It evolves during training, and an adaptive sampling strategy that re-evaluates this importance (initially via variance, then via loss) is crucial for efficient training.
  • Octree as a Smart Sampler: The octree structure provides a natural hierarchical way to represent and query the importance distribution of volumetric data, making it well-suited for guiding sampling.
  • Loss-Guided Reconstruction is Key: While variance-based initialization helps, reconstructing the octree based on the loss is what truly drives the model to focus on problematic areas and achieve significant convergence improvements.
  • Generalizability: The method isn't limited to super-resolution; it shows promise for other physics-informed deep learning tasks like solving PDEs, demonstrating its broad applicability.

Key Results

The proposed octree-based hierarchical sampling optimization significantly improves training efficiency for physics-constrained super-resolution models:

  • Reduced Sample Points: Achieved a reduction of 37.25% in sample points for MeshfreeFlowNet and 36.36% for TransFlowNet compared to baselines, while maintaining accuracy.
  • Faster Training: Led to a 1.67x speedup for MeshfreeFlowNet and 1.32x for TransFlowNet in training time to reach a specific convergence level.
  • Improved Accuracy: The method achieved comparable or slightly better prediction accuracy (measured by PSNR and SSIM) with fewer samples and less training time. Visualizations of Mean Absolute Error (MAE) also showed improved results.
  • PINNs Application: For PINNs solving Navier-Stokes equations, the method achieved higher solution accuracy with 78.40% of the sample points required by the original PINNs.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Reconstruction Overhead: While sample points are reduced, the time saved isn't always dramatic because the octree reconstruction process itself is computationally intensive.
  • Hyperparameter Tuning: The minimum number of epochs for each training stage (q) is a critical hyperparameter that needs careful tuning for specific applications.

Future work will focus on accelerating the loss distribution computation for octree reconstruction. The authors hope their method will pave the way for faster training of deep learning models on scientific data.

Summary updated

BibTeX
@article{wang2023octree,
  author = {Xinjie Wang and Maoquan Sun and Yundong Guo and Chunxin Yuan and Xiang Sun and Zhiqiang Wei and Xiaogang Jin},
  title = {{Octree-based hierarchical sampling optimization for the volumetric super-resolution of scientific data}},
  journal = {Journal of Computational Physics},
  year = {2023},
  url = {https://openreview.net/forum?id=J5pZ1DtqkX},
}
Figure