Preserving Clusters in Error-Bounded Lossy Compression of Scientific Particle Data

Congrong Ren, Sheng Di, Katrin Heitmann, Franck Cappello, Hanqi GuoarXiv 2026

TL;DR

Standard lossy compressors for scientific particle data only guarantee bounds on pointwise position errors, which can inadvertently alter the structure of particle clusters. This paper introduces a compressor-independent post-processing technique that guarantees the exact preservation of single-linkage clusters (like "Friends-of-Friends" halos) while achieving up to a 4× improvement in compression ratio compared to simply tightening traditional compressor bounds.

What Problem Does This Paper Address?

Massive particle simulations in cosmology, molecular dynamics, and fluid dynamics generate exabyte-scale datasets, making error-bounded lossy compression essential for data storage and transfer. However, standard lossy compressors (such as SZ3 or ZFP) focus strictly on bounding pointwise coordinate errors ($L_\infty$ bounds).

They completely ignore downstream topological structures, such as single-linkage clustering—commonly known as the Friends-of-Friends (FoF) algorithm in cosmology. In FoF, particles are grouped into a cluster if the distance between them is below a linking threshold ($b$). Because clustering relies on transitive connectivity, even a tiny coordinate perturbation near this threshold can break a critical link (splitting a cluster) or create a false one (merging two large clusters). This distortion corrupts vital scientific metrics like the Halo Mass Function (HMF), which scientists use to characterize the evolution of the universe.

Methods

The authors propose a compressor-independent, post-processing correction framework. Instead of modifying the base compressor, their method takes the decompressed output from any off-the-shelf tool (e.g., SZ3, ZFP, Draco, LCP) and applies a localized correction, storing the changes as a compact "edit stream."

The core innovation lies in reducing the number of geometric constraints that need to be optimized. Since cluster membership depends on connected components rather than preserving every single proximity link, the authors introduce a hierarchy of three constraint-selection modes:

  1. Vulnerable-Pair (VP): Enforces constraints on all particle pairs whose distances are close to the threshold $b$ and could flip status due to compression error.
  2. Safe-Component (SC): Identifies "safe subclusters" that are guaranteed to stay connected and prunes any internal constraints, focusing only on inter-component links.
  3. Halo-Forest (HF): Contracts safe components into supernodes and retains only a minimum spanning forest of potentially broken links within each halo, drastically reducing the optimization space.
Figure 2: Illustration of the three constraint-selection modes. (a) Vulnerable-pair mode keeps all vulnerable pairs, includ- ing potentially-broken and potentially-created links. (b) Safe- component mode removes vulnerable links whose endpoints are connected by a path of safe links, i.e., lie within the same safe component, such as P, Q, and R. (c) Halo-forest mode contracts each safe component into a supernode, additionally removes potentially created links (e.g., link (7, 8)) between supernodes within the same original halo, and preserves only a spanning forest of potentially-broken links (i.e., link (5, 8)) among supernodes within each halo.

Using the selected constraints, the framework runs a Projected Gradient Descent (PGD) optimization (optimized via the Adam optimizer) to slightly adjust particle coordinates. This eliminates cluster violations while strictly respecting the base compressor's original pointwise error bounds. The system is implemented with both single-GPU (CUDA) and distributed-memory (MPI) parallelization.

Datasets

The method was evaluated on three distinct scientific simulation domains:

  • HACC (hiRes & lowRes): Large-scale cosmological simulations tracking dark matter particles (up to 1.07 billion particles, 192 GB per timestep).
  • EXAALT: Molecular dynamics trajectories tracking atom interactions.
  • FPM (hiRes, midRes, lowRes): Fluid dynamics simulations utilizing the Finite Pointset Method to study viscous fingering during salt dissolution.

Key Insights and Ideas

  • Topology over Geometry: The fundamental "aha moment" is realizing that you do not need to preserve the exact distance of every particle pair to preserve the cluster. By focusing purely on graph connectivity (connected components), the Halo-Forest mode eliminates redundant constraints, making the optimization problem highly scalable.
  • The Compression Sweet Spot: There is a non-monotonic relationship between the base compressor's error bound and the total compression ratio. If the base error bound is too loose, too many cluster violations occur, exploding the size of the corrective edit stream. If it is too tight, the base compressor performs poorly. This creates an optimal "peak" where the combined system yields maximum data reduction.

Key Results

  • Exact Preservation: At full convergence, the algorithm completely eliminates cluster splits and merges, achieving perfect cluster fidelity.
  • Higher Compression Ratios: The Halo-Forest (HF) mode improves the total compression ratio by up to 4× compared to configuring a base compressor with an ultra-tight error bound to natively preserve clusters.
Figure 4: Compression ratio vs. maximum relative error for four base compressors and their VP-, SC-, and HF-corrected outputs on HACC (lowRes) and EXAALT.
  • High Performance & Scaling: The GPU-accelerated solver achieves a 56× to 93× end-to-end speedup over a 64-core CPU baseline. In distributed environments, the framework demonstrates excellent weak scaling up to 1,024 MPI ranks.

Limitations and Future Work

  • Single Threshold Target: Each corrective edit stream is optimized for a single, fixed linking length $b$. While supporting multiple thresholds is theoretically possible by taking the union of active pairs, doing so increases metadata overhead and reduces the compression ratio.
  • Loose Bound Overhead: When the base compressor uses very loose error bounds ($\ge 10^{-3}$), the density of vulnerable pairs spikes significantly, causing the correction phase to occasionally take longer than the initial compression.
  • Domain Boundaries: The current implementation assumes a non-periodic domain and does not yet support 6D phase-space halo finders (such as Rockstar). The authors plan to address periodic boundaries and temporal coherence in future iterations.

Summary updated

BibTeX
@misc{ren2026preserving,
  author = {Congrong Ren and Sheng Di and Katrin Heitmann and Franck Cappello and Hanqi Guo},
  title = {{Preserving Clusters in Error-Bounded Lossy Compression of Scientific Particle Data}},
  year = {2026},
  eprint = {2604.18801},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.18801},
}

Loading related content...

Figure