Language Modeling Is Compression

Gr'egoire Del'etang, Anian Ruoss, Paul-Ambroise Duquenne, Elliot Catt, Tim Genewein +7 more
2/12/2026

No official code found. Best implementation: google-deepmind/language_modeling_is_compression (190 stars, Apache-2.0, last commit 2024-08-28).

Abstract

It has long been established that predictive models can be transformed into lossless compressors and vice versa. Incidentally, in recent years, the machine learning community has focused on training increasingly large and powerful self-supervised (language) models. Since these large language models exhibit impressive predictive capabilities, they are well-positioned to be strong compressors. In this work, we advocate for viewing the prediction problem through the lens of compression and evaluate the compression capabilities of large (foundation) models. We show that large language models are powerful general-purpose predictors and that the compression viewpoint provides novel insights into scaling laws, tokenization, and in-context learning. For example, Chinchilla 70B, while trained primarily on text, compresses ImageNet patches to 43.4% and LibriSpeech samples to 16.4% of their raw size, beating domain-specific compressors like PNG (58.5%) or FLAC (30.3%), respectively. Finally, we show that the prediction-compression equivalence allows us to use any compressor (like gzip) to build a conditional generative model.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
19021PythonOct 26, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{deletang2026language,
  title  = {Language Modeling Is Compression},
  author = {Gr'egoire Del'etang and Anian Ruoss and Paul-Ambroise Duquenne and Elliot Catt and Tim Genewein and Christopher Mattern and Jordi Grau-Moya and Wenliang Kevin Li and Matthew Aitchison and Laurent Orseau and Marcus Hutter and J. Veness},
  year   = {2026},
  eprint = {2309.10668},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.10668},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.10668.svg)](https://codeofpaper.com/paper/2309.10668)

Discussion