In-depth exploration of single-snapshot lossy compression techniques for N-body simulations

Dingwen Tao, Sheng Di, Zizhong Chen, Franck Cappello

Introduction

Modern exascale N-body simulations, critical for cosmology and molecular dynamics, produce massive datasets that overwhelm current I/O bandwidth. Traditional compression methods often rely on temporal or spatial smoothness in mesh-based data, which is absent in the 1D arrays of particle data. This paper explores "single-snapshot" lossy compression, optimizing algorithms like SZ to handle the unique characteristics of particle snapshots in situ.

Methodology

The researchers introduced several optimizations to improve compression efficiency for irregular particle data:

SZ-LV (Last-Value Prediction)

While standard SZ uses Linear Curve Fitting (LCF), the authors found that a simpler Last-Value (LV) predictor is more effective for the noisy, irregular fields found in N-body data. This approach assumes the next data point is similar to the previous one, which proves more robust for particle fields.

R-index Sorting

To introduce spatial correlation into 1D arrays, the authors utilized an R-index based on Z-order space-filling curves. By interleaving bits from different dimensions (coordinates or velocities), they reorder particles to ensure physical proximity translates to array proximity, enhancing the predictor's performance.

R-index bit interleaving for coordinates and velocities.

Partial-Radix Sorting (PRX)

To mitigate the computational cost of full sorting, a "partial-radix" approach was developed. By ignoring least significant bits during the sort, the system achieves a high compression ratio with significantly reduced processing time, offering a "best-tradeoff" mode for high-performance computing environments.

Datasets

The evaluation utilized two primary datasets:

  1. HACC (Hardware/Hybrid Accelerated Cosmology Code): 1.8 TB of cosmology data representing 147.3 million particles.
  2. AMDF (Accelerated Molecular Dynamics Family): 34 GB of atomistic modeling data representing 2.8 million particles.

Results and Discussion

The proposed optimizations yielded significant performance gains. On the Blues supercomputer using 1024 cores, the methods achieved an 80% reduction in total I/O time compared to raw data writes, outperforming existing compressors like ZFP by 60%.

Compression ratio comparison between SZ-LCF and SZ-LV on the HACC dataset.

As shown in the HACC results, the SZ-LV predictor consistently outperforms the standard SZ-LCF across all variables (coordinates xx, yy, zz and velocities vx, vy, vz). A key insight was the "yy" anomaly in HACC, where R-index sorting actually decreased compression efficiency because the data already possessed some 1D coherence. This highlights the necessity for "data-aware" compression strategies that respect the underlying simulation's memory layout.

Conclusion

By tailoring prediction models and sorting strategies to the specific layout of N-body data, the authors demonstrated that lossy compression can effectively address the exascale I/O bottleneck. Future work will focus on reducing memory overhead and developing automated, data-adaptive models to further enhance compression ratios across diverse simulation types.

Summary updated

BibTeX
@inproceedings{tao2017depth,
  author = {Dingwen Tao and Sheng Di and Zizhong Chen and Franck Cappello},
  title = {{In-depth exploration of single-snapshot lossy compression techniques for N-body simulations}},
  booktitle = {IEEE BigData},
  year = {2017},
  doi = {10.1109/bigdata.2017.8257962},
}
Figure