Uniform-in-Phase-Space Data Selection with Iterative Normalizing Flows

Malik Hassanaly, Bruce A. Perry, Michael E. Mueller, Shashank YellapantulaarXiv 2021

Introduction

In scientific domains such as combustion physics and climate modeling, high-fidelity numerical simulations generate vast quantities of data, often reaching petabyte scales. While this abundance of data is a boon for machine learning, it presents significant challenges for storage, I/O, and training efficiency. Standard downsampling techniques, like random sampling, are inherently biased toward high-density "average" states. Consequently, they often discard rare but critical phenomena—such as flame ignition or structural failures—that are essential for scientific discovery.

The UPS Algorithm

To address these limitations, this paper proposes a scalable Uniform-in-Phase-Space (UPS) selection method. The approach utilizes an iterative "predictor-corrector" framework powered by Normalizing Flows (NF) to ensure that the resulting data subset uniformly covers the entire phase-space, regardless of the original distribution's density.

The iterative UPS workflow: DNS data is processed through a probability map (predictor) to guide phase-space sampling (corrector), with iterative refinement to capture rare regions.

1. Probability Map Estimation (The Predictor)

The algorithm first estimates the probability density function (PDF), $p(x)$, of the dataset. Instead of traditional binning, which suffers from the "curse of dimensionality," the authors employ Normalizing Flows. NFs learn to map complex data distributions to a simple latent space (e.g., a Gaussian) via invertible transformations, allowing for tractable density estimation even in high-dimensional spaces.

2. Instance Selection (The Corrector)

Once the PDF is estimated, an acceptance probability $s(x)$ is defined as inversely proportional to the data density: $s(x) \propto 1/p(x)$. This mechanism ensures that points in high-density regions are likely to be rejected, while points in sparse, "rare" regions are prioritized for inclusion in the subset.

The acceptance probability mechanism: By applying a probability inversely proportional to the original density, the algorithm flattens the distribution to achieve uniformity.

3. Iterative Refinement

A single pass often fails to accurately capture the extreme tails of a distribution. The authors introduce an iterative loop where a second NF is trained on the initially downsampled (and thus more uniform) set. This second pass "zooms in" on the errors of the first, significantly enhancing the representation of rare events. Usually, just two iterations are sufficient to achieve near-optimal uniformity.

Results and Key Insights

The method was evaluated on synthetic benchmarks, turbulent combustion DNS data, and real-world power consumption datasets. Key findings include:

  • Linear Scalability: Unlike many instance selection methods that scale quadratically ($O(N^2)$), the UPS method scales linearly ($O(N)$) with the number of data points, making it viable for massive datasets.
  • Superior Coverage: In 2D tests, UPS achieved a distance criterion (measuring uniformity) of 0.3686, nearly doubling the 0.1894 achieved by random sampling.
  • Rare Event Accuracy: Machine learning models trained on UPS-selected data showed significantly lower errors in high-gradient, rare regions of the phase-space compared to those trained on randomly sampled data.
  • The Noise Trade-off: The study revealed that in high-noise scenarios, UPS can perform worse than random sampling. This is because random sampling provides implicit averaging of noise in dense regions, which UPS eliminates by treating nearby points as redundant.

Conclusion

The iterative UPS selection method provides a robust framework for downsampling large-scale scientific data while preserving critical rare events. Future work will focus on making the algorithm "noise-aware," potentially biasing selection toward regions with high physical gradients rather than just low density, to better handle datasets with low signal-to-noise ratios.

Summary updated

BibTeX
@misc{hassanaly2021uniform,
  author = {Malik Hassanaly and Bruce A. Perry and Michael E. Mueller and Shashank Yellapantula},
  title = {{Uniform-in-Phase-Space Data Selection with Iterative Normalizing Flows}},
  year = {2021},
  eprint = {2112.15446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.15446},
}
Figure