FCBench: Cross-Domain Benchmarking of Lossless Compression for Floating-Point Data

Xinyu Chen, Jiannan Tian, Ian Beaver, Cynthia Freeman, Yan Yan, Jianguo Wang, Dingwen Tao

FCBench: Cross-Domain Benchmarking of Lossless Compression for Floating-Point Data

Introduction

Floating-point data is notoriously difficult to compress without losing precision. This challenge has historically led the Database (DB) and High-Performance Computing (HPC) communities to develop isolated sets of lossless tools. FCBench breaks these silos by benchmarking 13 state-of-the-art CPU and GPU compressors across 33 diverse datasets.

Historically, the HPC community built compressors for structured, multi-dimensional scientific data using spatial predictors, while the DB community focused on time-series and transactional data using delta-encoding or dictionaries. As HPC workflows increasingly move toward "in-situ" analysis—storing simulation data in databases for real-time querying—this lack of cross-domain knowledge has become a major bottleneck.

The Challenge of Floating-Point Compression

Floating-point numbers (e.g., float32 and double64) are the backbone of modern computing, from climate simulations to financial transactions. Lossless compression is essential in these fields because rounding errors can accumulate and compromise results. However, floating-point data is a "tough nut" to crack; the median compression ratio across all FCBench tests was only 1.16x. This confirms that floating-point numbers are far harder to compress than text or integers due to the "noisy" nature of mantissa bits.

IEEE 754 floating-point representation and its mapping to actual values.

Methods and Experimental Setup

The authors evaluated 13 lossless compression methods, including CPU-based tools like fpzip, bitshuffle, and Chimp, alongside GPU-based methods such as GFC, MPC, and nvcomp.

The study is unique in its use of the Roofline Model to identify hardware bottlenecks (memory bandwidth vs. computation). Furthermore, it simulates a real-world database environment using HDF5 files and Pandas dataframes to measure the actual overhead of querying compressed data.

Experimental workflow for simulating data staging and querying in a database environment.

Datasets

The FCBench suite consists of 33 real-world datasets categorized into four domains:

  1. HPC: Scientific simulations (e.g., cosmology, thermodynamics).
  2. Time Series (TS): Sensor data, stock markets, and traffic.
  3. Observation (OBS): HDR photos and telescope images.
  4. Database (DB): Numeric columns extracted from standard benchmarks like TPC-H and TPC-DS.

Key Insights

  • 1-D Friendliness: Surprisingly, treating multi-dimensional scientific data as a flat 1-D array (common in columnar databases) did not significantly hurt the compression ratio for most modern algorithms, which is promising for database architects.
  • Predictors vs. Dictionaries: Algorithms using "predictors" (like fpzip) excel on smooth scientific data. Conversely, "dictionary-based" methods (like bitshuffle) are more robust for database and observational data where patterns are repetitive.
  • The GPU Tax: While GPUs are roughly 350x faster at compression, the time spent moving data from the CPU (Host) to the GPU (Device) often negates speed gains for smaller datasets.
  • Hardware Bottlenecks: Roofline analysis showed that most GPU compressors are limited by memory bandwidth, whereas many CPU compressors under-utilize hardware, suggesting potential for faster parallel implementations.

Key Results

  • Top Performers: fpzip remains the leader for HPC data. For Time Series, nvCOMP::LZ4 (GPU) and Chimp (CPU) are the strongest. For Databases, Chimp and bitshuffle+zstd provide the best balance of ratio and speed.
  • Throughput: GPU methods reached median throughputs of 73.71 GB/s, compared to 0.21 GB/s for CPU methods.
  • Query Performance: In the simulated database test, bitshuffle+zstd emerged as the "prime" CPU choice, offering high compression without adding significant latency to table scans.

Limitations and Future Work

The neural-network-based compressor Dzip is currently impractical for real-world use due to extremely slow speeds (KB/s range). Additionally, while the database evaluation used a Pandas/HDF5 micro-benchmark, it does not account for complex operations like joins or indexing. Future work should involve integrating these top-performing algorithms directly into columnar storage formats like Apache Parquet or DuckDB.

Summary updated

BibTeX
@inproceedings{chen2024fcbench,
  author = {Xinyu Chen and Jiannan Tian and Ian Beaver and Cynthia Freeman and Yan Yan and Jianguo Wang and Dingwen Tao},
  title = {{FCBench: Cross-Domain Benchmarking of Lossless Compression for Floating-Point Data}},
  booktitle = {VLDB Endowment 17.6 ()},
  year = {2024},
  url = {https://openreview.net/forum?id=acftBUrdlK},
}
Figure