mlsanityData to 14 Oct 2026

Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction

arXiv 2505.06297 ↗First posted 7 May 2025cs.LG cs.CLcited by 5

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  5. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  6. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  7. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  8. 2018Hierarchical Neural Story Generationcited by 1,193
  9. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  10. 2024LongWriter: Unleashing 10,000+ Word Generation from Long Context LLMscited by 144
  11. 2024Rho-1: Not All Tokens Are What You Needcited by 133
  12. 2024OpenELM: An Efficient Language Model Family with Open Training and Inference Frameworkcited by 75
7 more
  1. 2023Publicly Shareable Clinical Large Language Model Built on Synthetic Clinical Notescited by 51
  2. 2018DeepZip: Lossless Data Compression using Recurrent Neural Networkscited by 33
  3. 2022A Fast Transformer-based General-Purpose Lossless Compressorcited by 26
  4. 2024ChatGPT "contamination": estimating the prevalence of LLMs in the scholarly literaturecited by 26
  5. 2024FineZip : Pushing the Limits of Large Language Models for Practical Lossless Text Compressioncited by 18
  6. 2022Serving Deep Learning Models with Deduplication from Relational Databasescited by 15
  7. 2016Syntactically Informed Text Compression with Recurrent Neural Networkscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023A Survey on Model Compression for Large Language Models
  2. 2025Lossless Token Sequence Compression via Meta-Tokens
  3. 2023Compressing LLMs: The Truth is Rarely Pure and Never Simple
  4. 2025Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation
  5. 2025Semantic Retention and Extreme Compression in LLMs: Can We Have Both?
  6. 2026Diffuse to Compress: Leveraging Diffusion LMs for Lossless Compression
  7. 2023Divergent Token Metrics: Measuring degradation to prune away LLM components -- and optimize quantization
  8. 2025Llamazip: Leveraging LLaMA for Lossless Text Compression and Training Dataset Detection