🤖 AI Summary
Existing lossless compression methods for floating-point data—such as medical images and large model weights—suffer from low compression ratios due to their sensitivity to numerical precision and reliance on generic byte-stream compression or field-agnostic approaches. To address this, we propose Typed Data Transformation (DTT), a semantic-aware preprocessing technique that decouples the sign, exponent, and mantissa fields of floating-point numbers and reorganizes them across samples to explicitly exploit byte-level structural correlations. DTT is designed to synergize with general-purpose compressors (e.g., zstd) and enables end-to-end, high-throughput lossless compression on both CPU and GPU platforms. Experiments across diverse floating-point datasets demonstrate that DTT achieves an average 1.16× improvement in compression ratio and 1.18–3.79× higher compression/decompression throughput over baselines, while guaranteeing strict losslessness and cross-platform compatibility.
📝 Abstract
Floating-point data is widely used across various domains. Depending on the required precision, each floating-point value can occupy several bytes. Lossless storage of this information is crucial due to its critical accuracy, as seen in applications such as medical imaging and language model weights. In these cases, data size is often significant, making lossless compression essential. Previous approaches either treat this data as raw byte streams for compression or fail to leverage all patterns within the dataset. However, because multiple bytes represent a single value and due to inherent patterns in floating-point representations, some of these bytes are correlated. To leverage this property, we propose a novel data transformation method called Typed Data Transformation (DTT{}) that groups related bytes together to improve compression. We implemented and tested our approach on various datasets across both CPU and GPU. DTT{} achieves a geometric mean compression ratio improvement of 1.16$ imes$ over state-of-the-art compression tools such as zstd, while also improving both compression and decompression throughput by 1.18--3.79$ imes$.