FFCz: Fast Fourier Correction for Spectrum-Preserving Lossy Compression of Scientific Data

Congrong Ren, Robert Underwood, Sheng Di, Emrecan Kutay, Zarija Lukic, Aylin Yener, Franck Cappello, Hanqi Guo

TL;DR

FFCz is a novel, GPU-accelerated post-compression correction algorithm that ensures lossy scientific data compression preserves both spatial accuracy and frequency-domain features. By iteratively projecting error vectors between spatial and frequency constraints, it guarantees dual-domain accuracy with minimal impact on compression ratios and processing speed.

What Problem Does This Paper Address?

Modern scientific simulations—like those modeling the evolution of the universe or turbulent combustion—generate petabytes of data. To manage storage and I/O bottlenecks, scientists rely on error-bounded lossy compressors (such as SZ3 or ZFP).

While these compressors excel at keeping point-by-point errors low in the original spatial (or temporal) domain, they completely ignore the frequency domain. This is a massive problem for downstream scientific analysis. For instance, cosmologists rely heavily on the "power spectrum" (a frequency-domain representation) to analyze matter distribution. Standard lossy compression can severely distort these spectral features, even if the spatial error looks perfectly fine.

Until now, the only workaround was a tedious process of trial-and-error: manually tightening the spatial error bounds until the frequency domain looked acceptable. However, this brute-force approach destroys the compression ratio, defeating the purpose of using lossy compression in the first place.

Distortion of power spectra by native compressors vs. the preservation achieved by FFCz

Methods

The authors propose FFCz (Fast Fourier Correction), an edit-based paradigm that acts as a post-processing step on top of any off-the-shelf "base" compressor.

  1. Dual-Domain Bounding Geometry: The authors show that frequency-domain errors can be expressed as linear combinations of spatial errors. Geometrically, user-defined spatial constraints form an axis-aligned hypercube (the s-cube), while frequency constraints form a rotated hypercube (the f-cube) within the same error space.
  2. Alternating Projections (POCS): To find an error vector that satisfies both sets of constraints, FFCz uses a specialized adaptation of the Projections onto Convex Sets (POCS) method. It takes the spatial error from the base compressor, computes a Fast Fourier Transform (FFT) to find frequency violations, clips those violations (projecting onto the f-cube), transforms back via Inverse FFT (IFFT), and clips any resulting spatial violations (projecting onto the s-cube). This loop repeats until the error vector rests within the intersection of both hypercubes.
  3. Sparse Edit Compression: The adjustments made during these projections are recorded as sparse "edits" (separate for spatial and frequency domains). These sparse vectors are quantized to 16-bit precision and losslessly compressed using Huffman coding and ZSTD.
  4. GPU Parallelism: The entire alternating projection workflow, including the convergence checks and coordinate clipping, is parallelized on GPUs using CUDA and the highly optimized cuFFT library.
The FFCz alternating projection pipeline for compression and decompression

Datasets

The algorithm was evaluated across diverse real-world scientific datasets:

  • Nyx: 3D cosmological simulation datasets tracking baryon density and dark matter density (resolutions up to $2048^3$).
  • S3D: 3D turbulent combustion simulation data tracking chemical species like $CO_2$.
  • HEDM: 2D High-Energy Diffraction Microscopy data capturing X-ray imaging intensities.
  • EEG: 1D Electroencephalography medical time-series data tracking brain activity.

Key Insights and Ideas

  • Frequency Constraints as Spatial Rotations: Because the discrete Fourier transform is a linear operation, global frequency constraints can be mapped directly into the spatial domain as a rotated hypercube. This allows the dual-domain problem to be solved entirely within a single geometric framework.
  • Sparsity Saves the Compression Ratio: Instead of tightening error bounds across the entire dataset, FFCz only applies targeted corrections where violations actually occur. Because these dual-domain violations are highly sparse, the storage overhead for the correction "edits" is remarkably low (typically under 15% of the base compressed size).
  • Pipelining Hides the Overhead: Because the GPU implementation is incredibly fast, the correction step can be overlapped with the compression of subsequent simulation time-steps. In a simulation pipeline, FFCz introduces virtually zero net runtime overhead.

Key Results

  • Guaranteed Spectral Fidelity: FFCz successfully bounds the relative error of the power spectrum within user-specified limits (e.g., 0.1%), completely eliminating the massive spectral distortions seen in native SZ3 or SPERR outputs.
  • High Compression Ratios Maintained: While the naive trial-and-error method of tightening spatial bounds tanks compression ratios by orders of magnitude, FFCz maintains ratios very close to the native baselines (e.g., dropping from ~44,300:1 to ~34,900:1 for Nyx baryon density under SZ3, and showing virtually 0% ratio degradation when paired with ZFP).
  • Massive GPU Speedups: The GPU implementation achieves an end-to-end speedup of 184x over a multi-threaded CPU baseline (using OpenMP and FFTW), bringing total execution times for large datasets down to under a second.

Limitations and Future Work

  • Convergence Predictability: If the base compressor produces highly irregular or chaotic spatial errors, the iterative POCS algorithm can require a high number of iterations to converge, impacting performance.
  • Coupled Bounds: Spatial and frequency error bounds are inherently coupled, but users must currently set them manually. The authors suggest that future work should focus on automated, data-driven approaches to jointly tune these bounds.
  • In-Pipeline Integration: FFCz currently operates as a post-hoc step. Embedding this dual-domain enforcement directly into the internal quantization pipelines of compressors like SZ3 or ZFP could further reduce memory and computational overhead.

Summary updated

BibTeX
@inproceedings{ren2026ffcz,
  author = {Congrong Ren and Robert Underwood and Sheng Di and Emrecan Kutay and Zarija Lukic and Aylin Yener and Franck Cappello and Hanqi Guo},
  title = {{FFCz: Fast Fourier Correction for Spectrum-Preserving Lossy Compression of Scientific Data}},
  booktitle = {IPDPS},
  year = {2026},
  doi = {10.1109/ipdps65963.2026.00023},
}
Figure