A General Framework for Augmenting Lossy Compressors with Topological Guarantees

Nathaniel Gorski, Xin Liang, Hanqi Guo, Lin Yan, Bei WangarXiv 2025 · DOI

TL;DR

This paper introduces a novel framework that allows any lossy compressor to preserve the topological structure (specifically, contour trees) of scientific data, while still adhering to user-defined error bounds. This is crucial because traditional compressors, even with error bounds, can drastically distort important features in scientific datasets, hindering analysis.

What Problem Does This Paper Address?

Scientific simulations generate massive datasets, making compression essential for storage and transmission. While error-bounded lossy compressors are great at reducing file sizes and guaranteeing pointwise accuracy, they often fail to preserve the topology of the data. Topology, represented by structures like contour trees, describes the connectivity of features (e.g., regions of high or low values) and is vital for scientific analysis, tracking phenomena, and understanding complex datasets. When topology is distorted, scientific insights can be lost or misinterpreted. Existing topology-preserving compressors are often tied to specific base compressors or have limitations. This paper aims to provide a general, adaptable solution.

Methods

The core of the paper is a framework that augments existing lossy compressors. It works in several steps:

  1. Initial Upper and Lower Bound Calculation: The framework first computes the simplified contour tree of the original data. For each data point, it establishes initial "safe" ranges (upper and lower bounds) for its value that, if maintained, guarantee the contour tree remains intact. This is done progressively, working with merge trees (join and split trees) rather than the full contour tree directly, which is more efficient.
  2. Base Compressor Application: The chosen lossy compressor is applied to the data.
  3. Logarithmic-Scaling Quantization: A novel variable-precision encoding scheme is introduced. If the standard compression output doesn't fall within the calculated bounds, this scheme uses more precision for specific data points to ensure the bounds are met. This is more efficient than storing many points losslessly.
  4. Progressive Upper and Lower Bound Tightening: If the compressed data still exhibits topological errors (false positives/negatives), the framework iteratively refines the upper and lower bounds around the problematic regions. This process is "progressive," meaning it works through the merge tree structure, tightening bounds and recomputing parts of the tree until the topology is preserved. This is more efficient than recomputing the entire contour tree multiple times, as done in prior work.
  5. Lossless Compression: The quantized adjustments and any other necessary information are losslessly compressed.

Datasets

The paper evaluates its framework on nine scientific datasets:

  • QMCPACK
  • Tangaroa
  • Earthquake
  • Ionization
  • Isabel
  • Miranda
  • Nyx
  • S3D
  • SCALE-LETKF

These datasets vary in topological complexity, with Nyx being a particularly challenging "stress test" due to its over twenty million nodes in its contour tree. The datasets are generally normalized to [0, 1] before compression.

Key Insights and Ideas

  • Topology is Crucial for Scientific Analysis: The paper strongly emphasizes that preserving topological features is not just an aesthetic concern but a fundamental requirement for accurate scientific data analysis. Distorted topology can lead to incorrect conclusions.
  • Generality is Key: The framework's strength lies in its ability to augment any lossy compressor, making it highly adaptable to new and improved compression techniques as they emerge.
  • Merge Trees for Efficiency: By focusing on merge trees (join and split trees) for bound calculation and tightening, the framework achieves better performance than methods that directly recompute contour trees.
  • Variable Precision Pays Off: The logarithmic-scaling quantization scheme effectively balances compression ratio and topological accuracy by intelligently allocating precision only where needed to meet topological constraints.
  • Progressive Tightening Beats Iterative: The progressive bound tightening approach significantly speeds up the process of correcting topological errors compared to iterative methods.

Key Results

  • Guaranteed Topological Preservation: The framework successfully eliminates topological "false cases" (distortions in contour trees) for all tested compressors, while strictly maintaining user-defined pointwise error bounds.
  • Improved Compression Ratios: Augmented compressors (especially ZFP and TTHRESH) achieved better compression ratios compared to existing topology-preserving methods like TopoQZ and TopoSZ, often by a significant margin. For example, Augmented TTHRESH achieved compression ratios up to 170.5:1 on the Ionization dataset.
  • Competitive Reconstruction Quality: The augmented compressors maintained comparable or better PSNR (Peak Signal-to-Noise Ratio) and topological distance metrics (Wasserstein and bottleneck distances) than existing methods.
  • Efficiency Gains: While augmentation adds overhead, the framework's progressive tightening and efficient quantization lead to competitive or superior runtimes compared to prior topology-preserving compressors, especially on larger datasets. For instance, augmented compressors were significantly faster than TopoSZ.
  • Ablation Study Confirms Benefits: Experiments showed that both the logarithmic-scaling quantization and the progressive tightening strategy contribute positively to compression ratio and efficiency, respectively.

Limitations and Future Work

  • Increased Compression/Decompression Time: The augmented compressors are slower than their base counterparts due to the added topological preservation steps. While the framework aims for efficiency, this overhead remains a limitation.
  • Parameter Tuning: Finding optimal parameters for base compressors and the framework itself can require careful tuning, especially for achieving the best trade-off between compression and quality.
  • Computational Cost for Large Datasets: For extremely large or topologically complex datasets, computing topological distances can still be computationally intensive.
  • Future Work: The authors suggest exploring more efficient or parallel implementations for contour/merge tree computation and the encoding scheme. Further optimization of the decompression pipeline is also a promising direction. The framework's adaptability means it can benefit from future advancements in base lossy compressors.

Summary updated

Abstract

Topological descriptors such as contour trees are widely utilized in scientific data analysis and visualization, with applications from materials science to climate simulations. It is desirable to preserve topological descriptors when data compression is part of the scientific workflow for these applications. However, classic error-bounded lossy compressors for volumetric data do not guarantee the preservation of topological descriptors, despite imposing strict pointwise error bounds. In this work, we introduce a general framework for augmenting any lossy compressor to preserve the topology of the data during compression. Specifically, our framework quantifies the adjustments (to the decompressed data) needed to preserve the contour tree and then employs a custom variable-precision encoding scheme to store these adjustments. We demonstrate the utility of our framework in augmenting classic compressors (such as SZ3, TTHRESH, and ZFP) and deep learning-based compressors (such as Neurcomp) with topological guarantees.
BibTeX
@misc{gorski2025general,
  author = {Nathaniel Gorski and Xin Liang and Hanqi Guo and Lin Yan and Bei Wang},
  title = {{A General Framework for Augmenting Lossy Compressors with Topological Guarantees}},
  year = {2025},
  eprint = {2502.14022},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.14022},
}

Loading related content...

Figure