Kangaroo: Efficient Lossless Floating-Point Compression via Dynamic Reference Selection
To address the dual challenges of data transmission and storage in Internet of Things (IoT) systems, the development of efficient streaming lossless compression algorithms for floating-point data has become a critical research focus. Existing XOR-based floating-point compression algorithms adopt a fixed reference selection strategy by using the immediate predecessor value as the reference. Usually, this choice is not the best, as earlier values in the data stream often provide more similar and effective references. Based on this observation, we propose dynamically searching previous values to identify the reference value that yields the best compression results for the current value. To this end, we present Kangaroo, an efficient lossless compression algorithm for floating-point time series that implements a dynamic reference selection. Our approach begins by establishing optimal reference selection criteria aimed at minimizing the number of encoded bits, introducing a pruning-based encoding strategy to reduce encoding overhead. We further propose a dynamic search strategy that selects reference values from an extended historical window, skipping historical data that generates suboptimal XOR results. This strategy enables precise identification of the suitable reference value while improving search efficiency. Additionally, we design a bit-flip-based erasure strategy to maximize trailing zeros, thereby comprehensively enhancing compression performance. Extensive experiments on 26 datasets demonstrate that Kangaroo outperforms all baseline methods across all evaluation metrics. Most notably, compared to state-of-the-art streaming compression algorithms, our algorithm achieves a 23.2% average improvement (peaking at 98.0% ) in compression ratio, with compression and decompression speeds averaging 2.13× and 2.21× (reaching up to 11.75× and 5.24×) of the baseline, respectively. This novel solution establishes comprehensive performance leadership in floating-point time-series compression, and has been applied to the Lindorm database on Alibaba Cloud since 2024, managing tens of petabytes of Internet of Vehicles (IoV) data.
Authors
- Feibo Li (ORCID: https://orcid.org/0000-0003-2499-5199)
- B Wang
- Chunhui Shen (ORCID: https://orcid.org/0009-0009-9704-4272)
- Lingdu Kong (ORCID: https://orcid.org/0000-0002-3657-8926)
- Shuo Li (ORCID: https://orcid.org/0000-0002-5184-3230)
- Xiang Wang
- Xu Yang (ORCID: https://orcid.org/0000-0003-4345-1955)
- Yutong Han (ORCID: https://orcid.org/0000-0002-1301-8969)
Institutions
- Alibaba Group (China) (CN)
- Dalian Minzu University (CN)
- Northeastern University (CN)
Publication Details
- Journal
- Proceedings of the ACM on Management of Data
- Published
- 2026-05-18
- DOI
- https://doi.org/10.1145/3802076
- Primary Topic
- Numerical Methods and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Higher Education Discipline Innovation Project
- National Key Research and Development Program of China