Proceedings

SEP: A General Lossless Compression Framework with Semantics Enhancement and Multi-Stream Pipelines

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 3326-3334.

https://doi.org/10.24963/ijcai.2025/370

Abstract

Deep-learning-based lossless compression is of immense importance in real-world applications, such as cold data persistence, sensor data collection, and astronomical data transmission. However, existing compressors typically model data using single-byte symbols as tokens, which makes it hard to capture the inherent correlations and cannot effectively utilize the parallel capabilities of GPU and multi-core CPU. This paper proposes SEP, a novel lossless compression framework for most time-series backbone neural networks. We first introduce a semantic enhancement module to capture the complex intra-patch relationships of binary byte streams. To improve the compression speed, we design multi-stream pipelines that dynamically assign parallel tasks to GPU streams and multi-cores. We further propose a novel GPU memory optimization strategy, which reuses GPU memory by a shared pool across streams. We conduct experiments on seven real-world datasets and the results demonstrate that our SEP framework outperforms state-of-the-art compressors with an average speed improvement of 30.0% and an average compression ratio gain of 5.1%, which is further elevated to 7.6% with the use of pre-training models. The GPU memory footprint is reduced by as high as 63.1% and by an average of 36.2%. The source code is available at: https://github.com/damonwan1/SEP.

  1. Enwik9 1000MB 6.57 32.3 6.13 32.4 5.82 26.1 5.52 34.1 5.20 26.1 5.34 34.6 5.03 26.1 Improvement Ratio:12.8% Ratio:5.3%,Speed:24.1% Ratio:6.2%,Speed:30.7% Ratio:6.1%,Speed:32.5% Book 1000MB 5.56 32.8 5.16 32.8 5.05 25.5 4.75 34.0 4.51 26.2 4.55 33.5 4.36 25.9 Improvement Ratio:10.0% Ratio:2.2%,Speed:28.6% Ratio:5.3%,Speed:29.8% Ratio:4.3%,Speed:29.3% Sound 842MB 2.36 33.3 2.26 33.4 2.26 25.7 2.23 33.9 2.13 27.3 2.20 32.8 2.09 27.1 Improvement Ratio:4.4% Ratio:0%,Speed:30.0% Ratio:4.7%,Speed:24.2% Ratio:5.6%,Speed:21.1% Image 1200MB 2.14 34.7 2.03 34.8 2.01 26.0 1.95 35.5 1.87 27.6 1.92 34.1 1.84 26.4 Improvement Ratio:6.4% Ratio:1%,Speed:33.9% Ratio:4.3%,Speed:28.6% Ratio:4.4%,Speed:29.2% Float 189MB 3.87 31.5 3.68 31.7 3,53 25.2 3.49 33.3 3.21 25.6 3.43 32.0 3.23 25.4 Improvement Ratio:9.6% Ratio:4.3%,Speed:25.8% Ratio:8.8%,Speed:30.1% Ratio:6.1%,Speed:26.0% Silesia 206MB 5.25 33.6 5.16 33.8 5.0 26.0 4.78 34.1 4.61 26.0 4.81 33.5 4.57 26.3 Improvement Ratio:5.0% Ratio:3.2%,Speed:30.0% Ratio:3.6%,Speed:31.2% Ratio:5.3%,Speed:27.4% Backup 1000MB 2.00 32.0 1.95 32.0 1.91 24.3 1.84 33.2 1.76 26.5 1.81 32.6 1.72 25.4 Improvement Ratio:4.7% Ratio:2.6%,Speed:31.7% Ratio:4.5%,Speed:25.3% Ratio:5.1%,Speed:28.3% References
  2. [Affeldt et al., 2014] Reynald Affeldt, Manabu Hagiwara, and Jonas Sénizergues. Formalization of shannon's theo- rems. Journal of Automated Reasoning, 53:63-103, 2014.
  3. [Bellard, 2019] Fabrice Bellard. Lossless data compression with neural networks. 2019.
  4. [Burtscher and Ratanaworabhan, 2008] Martin Burtscher and Paruj Ratanaworabhan. Fpc: A high-speed com- pressor for double-precision floating-point data. IEEE transactions on computers, 58(1):18-31, 2008.
  5. [Chandra and Hsu, 2014] Surendar Chandra and Windsor W. Hsu. Lossless medical image compression in a block- based storage system. In 2014 Data Compression Con- ference, pages 400-400, 2014.
  6. [Chen et al., 2016] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sub- linear memory cost. (arXiv:1604.06174), April 2016. arXiv:1604.06174 [cs].
  7. [Choukse et al., 2020] Esha Choukse, Michael B Sullivan, Mike O'Connor, Mattan Erez, Jeff Pool, David Nellans, and Stephen W Keckler. Buddy compression: Enabling larger memory for deep learning and hpc workloads on gpus. In 2020 ACM/IEEE 47th Annual International Sym- posium on Computer Architecture (ISCA), pages 926-939. IEEE, 2020.
  8. [Cloud et al., 2011] Robert Louis Cloud, Matthew L. Curry, H. Lee Ward, Anthony Skjellum, and Purushotham V. Bangalore. Accelerating lossless data compression with gpus. CoRR, abs/1107.1525, 2011.
  9. [Contoli and Lattanzi, 2023] Chiara Contoli and Emanuele Lattanzi. A study on the application of tensorflow com- pression techniques to human activity recognition. IEEE Access, 11:48046-48058, 2023.
  10. [Coull and Gardner, 2019] Scott E Coull and Christopher Gardner. Activation analysis of a byte-based deep neural network for malware classification. In 2019 IEEE Security and Privacy Workshops (SPW), pages 21-27. IEEE, 2019.
  11. [Deng et al., 2009] Jia Deng, Wei Dong, Richard Socher, Li- Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255.
  12. [Deorowicz, 2007] Sebastian Deorowicz. Silesia compres- sion corpus, 2007.
  13. [Fang et al., 2022] Jiarui Fang, Zilin Zhu, Shenggui Li, Hui Su, Yang Yu, Jie Zhou, and Yang You. Parallel training of pre-trained models via chunk-based dynamic memory management. IEEE Transactions on Parallel and Dis- tributed Systems, 34(1):304-315, 2022.
  14. [Goyal et al., 2021] Mohit Goyal, Kedar Tatwawadi, Shub- ham Chandak, and Idoia Ochoa. Dzip: Improved general- purpose loss less compression based on novel neural net- work modeling. In 2021 Data Compression Conference (DCC), pages 153-162. IEEE, 2021.
  15. [Guo et al., 2024] Cong Guo, Rui Zhang, Jiale Xu, Jing- wen Leng, Zihan Liu, Ziyu Huang, Minyi Guo, Hao Wu, Shouren Zhao, Junping Zhao, and Ke Zhang. Gmlake: Ef- ficient and transparent gpu memory defragmentation for large-scale dnn training with virtual memory stitching. In ASPLOS. arXiv, January 2024. arXiv:2401.08156 null.
  16. [Howard and Vitter, 1992] Paul G Howard and Jeffrey Scott Vitter. Analysis of arithmetic coding for data compres- sion. Information processing & management, 28(6):749- 763, 1992.
  17. [Howard and Vitter, 2008] Paul G. Howard and Jeffrey Scott Vitter. Arithmetic Coding for Data Compression, pages 65-68. Springer US, Boston, MA, 2008.
  18. [Kang et al., 2022] Ning Kang, Shanzhao Qiu, Shifeng Zhang, Zhenguo Li, and Shutao Xia. Pilc: Practical im- age lossless compression with an end-to-end gpu oriented neural framework, 2022.
  19. [Knoll, 2016] B Knoll. Tensorflow-compress, 2016.
  20. [Knuth, 1985] Donald E Knuth. Dynamic huffman coding. Journal of algorithms, 6(2):163-180, 1985.
  21. [Ko et al., 2021] Y Ko, A Chadwick, D Bates, and R Mullins. Lane compression: A lightweight lossless com- pression method for machine learning on embedded sys- tems. 2021.
  22. [Lagar-Cavilla et al., 2019] Andres Lagar-Cavilla, Junwhan Ahn, Suleiman Souhlal, Neha Agarwal, Radoslaw Burny, Shakeel Butt, Jichuan Chang, Ashwin Chaugule, Nan Deng, Junaid Shahid, et al. Software-defined far mem- ory in warehouse-scale computers. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Sys- tems, pages 317-330, 2019.
  23. [Lin et al., 2023] Shao-Fu Lin, Yi-Jung Chen, Hsiang-Yun Cheng, and Chia-Lin Yang. Tensor movement orchestra- tion in multi-gpu training systems. In 2023 IEEE Interna- tional Symposium on High-Performance Computer Archi- tecture (HPCA), pages 1140-1152. IEEE, 2023.
  24. [Liu et al., 2019] Qian Liu, Yiling Xu, and Zhu Li. Decmac: A deep context model for high efficiency arithmetic cod- ing. In 2019 International Conference on Artificial Intelli- gence in Information and Communication (ICAIIC), pages 438-443. IEEE, 2019.
  25. [Mahoney, 2011] Matt Mahoney. Large text compression benchmark, 2011.
  26. [Mao et al., 2022a] Yu Mao, Yufei Cui, Tei-Wei Kuo, and Chun Jason Xue. Accelerating general-purpose lossless compression via simple and scalable parameterization. In Proceedings of the 30th ACM International Conference on Multimedia, pages 3205-3213, 2022.
  27. [Mao et al., 2022b] Yu Mao, Yufei Cui, Tei-Wei Kuo, and Chun Jason Xue. Trace: A fast transformer-based general- purpose lossless compressor. In Proceedings of the ACM Web Conference 2022, pages 1829-1838, 2022.
  28. [Mao et al., 2023] Yu Mao, Jingzong Li, Yufei Cui, and Chun Xue. Faster and stronger lossless compression with optimized autoregressive framework. In 60th Design Au- tomation Conference (DAC 2023): From Chips to Systems- Learn Today, Create Tomorrow, 2023.
  29. [Mentzer et al., 2019] Fabian Mentzer, Eirikur Agustsson, Michael Tschannen, Radu Timofte, and Luc Van Gool. Practical full resolution learned lossless image compres- sion. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10621-10630, 2019.
  30. [Moffat, 2019] Alistair Moffat. Huffman coding. ACM Com- puting Surveys (CSUR), 52(4):1-35, 2019.
  31. [Nie et al., 2022] Yuqi Nie, Nam H Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. A time series is worth 64 words: Long-term forecasting with transformers. arXiv preprint arXiv:2211.14730, 2022.
  32. [Peng et al., 2020] Xuan Peng, Xuanhua Shi, Hulin Dai, Hai Jin, Weiliang Ma, Qian Xiong, Fan Yang, and Xuehai Qian. Capuchin: Tensor-based gpu memory management for deep learning. In Proceedings of the Twenty-Fifth In- ternational Conference on Architectural Support for Pro- gramming Languages and Operating Systems, pages 891- 905, 2020.
  33. [Piczak, 2015] Karol J Piczak. Esc: Dataset for envi- ronmental sound classification. In Proceedings of the 23rd ACM international conference on Multimedia, pages 1015-1018, 2015.
  34. [Ren et al., 2021] Jie Ren, Jiaolin Luo, Kai Wu, Minjia Zhang, Hyeran Jeon, and Dong Li. Sentinel: Efficient tensor migration and allocation on heterogeneous mem- ory systems for deep learning. In 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pages 598-611. IEEE, 2021.
  35. [Rhu et al., 2016] Minsoo Rhu, Natalia Gimelshein, Jason Clemons, Arslan Zulfiqar, and Stephen W. Keckler. vdnn: Virtualized deep neural networks for scalable, memory- efficient neural network design. In 2016 49th Annual IEEE/ACM International Symposium on Microarchitec- ture (MICRO), page 1-13, October 2016.
  36. [Rissanen and Langdon, 1979] Jorma Rissanen and Glen G Langdon. Arithmetic coding. IBM Journal of research and development, 23(2):149-162, 1979.
  37. [Schiopu and Munteanu, 2020] Ionut Schiopu and Adrian Munteanu. Deep-learning-based lossless image coding. IEEE Transactions on Circuits and Systems for Video Technology, 30(7):1829-1842, 2020.
  38. [Sullivan et al., 2012] Gary J. Sullivan, Jens-Rainer Ohm, Woo-Jin Han, and Thomas Wiegand. Overview of the high efficiency video coding (hevc) standard. IEEE Trans- actions on Circuits and Systems for Video Technology, 22(12):1649-1668, 2012.
  39. [Wu et al., 2016] Hao Wu, Xiaoyan Sun, Jingyu Yang, Wen- jun Zeng, and Feng Wu. Lossless compression of jpeg coded photo collections. IEEE Transactions on Image Pro- cessing, 25(6):2684-2696, 2016.
  40. [Yamagiwa, 2022] Shinichi Yamagiwa. Stream-Based Loss- less Data Compression, pages 391-410. Springer Singa- pore, Singapore, 2022.
  41. [Yang et al., 2023] Runzhao Yang, Tingxiong Xiao, Yuxiao Cheng, Qianni Cao, Jinyuan Qu, Jinli Suo, and Qionghai Dai. Sci: A spectrum concentrated implicit neural com- pression for biomedical data. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 4774-4782, 2023.
  42. [Zhang and Yan, 2022] Yunhao Zhang and Junchi Yan. Crossformer: Transformer utilizing cross-dimension de- pendency for multivariate time series forecasting. In The Eleventh International Conference on Learning Represen- tations, 2022.
  43. [Zhang et al., 2021] Honglei Zhang, Francesco Cricri, Hamed R. Tavakoli, Nannan Zou, Emre Aksu, and Miska M. Hannuksela. Lossless image compression using a multi-scale progressive statistical model, 2021.
  44. [Zhu et al., 2015] Yukun Zhu, Ryan Kiros, Rich Zemel, Rus- lan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story- like visual explanations by watching movies and reading books. In Proceedings of the IEEE international confer- ence on computer vision, pages 19-27, 2015.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards