Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction
On the map: Synthetic data and self-improvement for LLMs → LLM synthetic data generation
Abstract (arXiv)
As large language models (LLMs) continue to be deployed and utilized across domains, the volume of LLM-generated data is growing rapidly. This trend highlights the increasing importance of effective and lossless compression for such data in modern text management systems. However, compressing LLM-generated data presents unique challenges compared to traditional human- or machine-generated content. Traditional machine-generated data is typically derived from computational processes or device outputs, often highly structured and limited to low-level elements like labels or numerical values. This structure enables conventional lossless compressors to perform efficiently. In contrast, LLM-generated data is more complex and diverse, requiring new approaches for effective compression. In this work, we conduct the first systematic investigation of lossless compression techniques tailored specifically to LLM-generated data. Notably, because LLMs are trained via next-token prediction, we find that LLM-generated data is highly predictable for the models themselves. This predictability enables LLMs to serve as efficient compressors of their own outputs. Through extensive experiments with 14 representative LLMs and 8 LLM-generated datasets from diverse domains, we show that LLM-based prediction methods achieve remarkable compression rates, exceeding 20x, far surpassing the 3x rate achieved by Gzip, a widely used general-purpose compressor. Furthermore, this advantage holds across different LLM sizes and dataset types, demonstrating the robustness and practicality of LLM-based methods in lossless text compression under generative AI workloads.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in LLM synthetic data generation, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 19 of its 51 references that are in the map. First posted on arXiv 7 May 2025.
Builds on
19 of 51 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2017Beam Search Strategies for Neural Machine Translationcited by 232
- 2024LongWriter: Unleashing 10,000+ Word Generation from Long Context LLMscited by 144
- 2024Rho-1: Not All Tokens Are What You Needcited by 133
- 2024OpenELM: An Efficient Language Model Family with Open Training and Inference Frameworkcited by 75
7 more
- 2023Publicly Shareable Clinical Large Language Model Built on Synthetic Clinical Notescited by 51
- 2018DeepZip: Lossless Data Compression using Recurrent Neural Networkscited by 33
- 2022A Fast Transformer-based General-Purpose Lossless Compressorcited by 26
- 2024ChatGPT "contamination": estimating the prevalence of LLMs in the scholarly literaturecited by 26
- 2024FineZip : Pushing the Limits of Large Language Models for Practical Lossless Text Compressioncited by 18
- 2022Serving Deep Learning Models with Deduplication from Relational Databasescited by 15
- 2016Syntactically Informed Text Compression with Recurrent Neural Networkscited by 6
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2026Text summarization via global structure awarenesscited by 12
- 2025Joint Lossless Compression and Steganography for Medical Images via Large Language Modelscited by 6
- 2025Machine Text Detectors are Membership Inference Attackscited by 2
- 2026TextEconomizer: Enhancing Lossy Text Compression with Denoising Transformers and Entropy Codingcited by 0
- 2026Probe with Participation Trophies: Random-Reward RL as a Probe of LLM Capabilitycited by 0
- 2026Probe with Participation Trophies: Random-Reward RL as a Probe of LLM Capability1 Oct 2026
- 2026TextEconomizer: Enhancing Lossy Text Compression with Denoising Transformers and Entropy Coding6 Jun 2026
- 2026Text summarization via global structure awareness10 Feb 2026
- 2025Machine Text Detectors are Membership Inference Attacks22 Oct 2025
- 2025Joint Lossless Compression and Steganography for Medical Images via Large Language Models3 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2023A Survey on Model Compression for Large Language Models
- 2025Lossless Token Sequence Compression via Meta-Tokens
- 2023Compressing LLMs: The Truth is Rarely Pure and Never Simple
- 2025Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation
- 2025Semantic Retention and Extreme Compression in LLMs: Can We Have Both?
- 2026Diffuse to Compress: Leveraging Diffusion LMs for Lossless Compression
- 2023Divergent Token Metrics: Measuring degradation to prune away LLM components -- and optimize quantization
- 2025Llamazip: Leveraging LLaMA for Lossless Text Compression and Training Dataset Detection