Lune

WWW2022Top-tier venue

TRACE: A Fast Transformer-based General-Purpose Lossless Compressor

Yu Mao, Yufei Cui, Tei-Wei Kuo, Chun Jason Xue

Abstract

Deep-learning-based compressor has received interests recently due to much improved compression ratio. However, modern approaches suffer from long execution time. To ease this problem, this paper targets on cutting down the execution time of deep-learning-based compressors. Building historydependencies sequentially (e.g., recurrent neural networks) is responsible for long inference latency. Instead, we introduce transformer into deep learning compressors to build historydependencies in parallel. However, existing transformer is too heavy in computation and incompatible to compression tasks. This paper proposes a fast general-purpose lossless compressor, TRACE, by designing a compression-friendly structure based on a single-layer transformer. We first design a new metric to advise the selection part of compression model structures. Byte-grouping and Shared-ffn schemes are further proposed to fully utilize the capacity of the singlelayer transformer. These features allow TRACE to achieve competitive compression ratio and a much faster speed. In addition, we further accelerate the compression procedure by designing a controller to reduce the parameter updating overhead. Experiments show that TRACE achieves an overall ∼3x speedup while keeps a comparable compression ratio to the state-of-the-art compressors. The source code for TRACE and links to the datasets are available at https:// github.com/mynotwo/A-Fast-Transformer-based-General-Purpose- LosslessCompressor.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Faster and Stronger Lossless Compression with Optimized Autoregressive Framework cites IDF++: Analyzing and Improving Integer Discrete Flows for Lossless Compression
  • EDPC: Accelerating Lossless Compression via Lightweight Probability Models and Decoupled Parallel Dataflow cites Faster and Stronger Lossless Compression with Optimized Autoregressive Framework
  • EDPC: Accelerating Lossless Compression via Lightweight Probability Models and Decoupled Parallel Dataflow cites Language Modeling Is Compression
  • Genomics Data Lossless Compression with (S, K)-Mer Encoding and Deep Neural Networks cites Faster and Stronger Lossless Compression with Optimized Autoregressive Framework
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Language Modeling Is CompressionGrégoire Delétang, Anian Ruoss, Paul-Ambroise Duquenne, Elliot Catt et al.ICLR 2024 · 243 citations
  2. Faster and Stronger Lossless Compression with Optimized Autoregressive FrameworkYu Mao, Jingzong Li, Yufei Cui, Chun Jason XueDAC 2023 · 12 citations
  3. Ariadne: A Hotness-Aware and Size-Adaptive Compressed Swap Technique for Fast Application Relaunch and Reduced CPU Usage on Mobile DevicesYu Liang, Aofeng Shen, Chun Jason Xue, Riwei Pan et al.HPCA 2025 · 8 citations
  4. Genomics Data Lossless Compression with (S, K)-Mer Encoding and Deep Neural NetworksHui Sun, Liping Yi, Huidong Ma, Yongxia Sun et al.AAAI 2025 · 2 citations
  5. EDPC: Accelerating Lossless Compression via Lightweight Probability Models and Decoupled Parallel DataflowZeyi Lu, Xiaoxiao Ma, Yujun Huang, Minxiao Chen et al.ACM MM 2025 · 1 citation

Builds on6

  1. ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel et al.ICLR 2020 · 7,418 citations
  2. Long Range Arena : A Benchmark for Efficient TransformersYi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen et al.ICLR 2021 · 881 citations
  3. Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier et al.ICLR 2020 · 833 citations
  4. IDF++: Analyzing and Improving Integer Discrete Flows for Lossless CompressionRianne van den Berg, Alexey A. Gritsenko, Mostafa Dehghani, Casper Kaae Sønderby et al.ICLR 2021 · 38 citations
  5. Two-Level Data Compression using Machine Learning in Time Series DatabaseXinyang Yu, Yanqing Peng, Feifei Li, Sheng Wang et al.ICDE 2020 · 36 citations

Related papers

  1. Accelerating General-purpose Lossless Compression via Simple and Scalable ParameterizationYu Mao, Yufei Cui, Tei-Wei Kuo, Chun Jason XueACM MM 2022 · 8 citations
  2. Temporal Latent Bottleneck: Synthesis of Fast and Slow Processing Mechanisms in Sequence LearningAniket Didolkar, Kshitij Gupta, Anirudh Goyal, Nitesh B. Gundavarapu et al.NeurIPS 2022 · 24 citations
  3. Test-Time Steering for Lossless Text Compression via Weighted Product of ExpertsQihang Zhang, Muchen Li, Ziao Wang, Renjie Liao et al.EMNLP Findings 2025
  4. ETTE: Efficient Tensor-Train-based Computing Engine for Deep Neural NetworksYu Gong, Miao Yin, Lingyi Huang, Jinqi Xiao et al.ISCA 2023 · 12 citations
  5. Fast Lossless Neural Compression with Integer-Only Discrete FlowsSiyu Wang, Jianfei Chen, Chongxuan Li, Jun Zhu et al.ICML 2022 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines