atlas

Research map / Large language models / Language, safety and interpretability

Language Modeling Is Compression

ICLR 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 28 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that large pretrained language models used as arithmetic-coding compressors achieve strong in-context compression across text, image, and audio, and analyzes scaling, tokenization, and generative sampling through the compression lens.

Problem

Whether the prediction-compression equivalence can make foundation models into general-purpose lossless compressors, and how compression perspective informs scaling laws, tokenization, and in-context learning.

Approach

Treat large language models as offline (in-context) arithmetic-coding compressors, evaluating raw and parameter-adjusted compression rates against classical compressors across modalities; also use compressors (gzip) as generative models via the reverse equivalence.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Chinchilla 70B instead of LZMA2 for arithmetic-coded compressionChinchilla 70B · enwik9raw compression rate (%): 23.0 -> 8.3Helped
Use Chinchilla 70B instead of LZMA2 for arithmetic-coded compressionChinchilla 70B · ImageNetraw compression rate (%): 57.9 -> 48.0Helped
Use Chinchilla 70B instead of FLAC for arithmetic-coded compressionChinchilla 70B · LibriSpeechraw compression rate (%): 30.3 -> 21.0Helped
Include model parameter size in the compressed outputChinchilla models · 1GB datasetsadjusted compression rate (%): nullHurt
Scale model size upward (ablation)Transformers trained on enwik8 · larger datasetsadjusted compression rate (%)Helped
Scale model size upward (ablation)Transformers trained on enwik8 · smaller enwik datasetsadjusted compression rate (%)Hurt
Increase the BPE vocabulary size (ablation)Small Transformers trained on enwik8 · enwik8compression rateHelped
Increase the BPE vocabulary size (ablation)Bigger Transformers trained on enwik8 · enwik8compression rateHurt

Surprising findings

Limitations

Experimental setup

Datasets: enwik8 enwik9 ImageNet LibriSpeech

Benchmarks: enwik9 ImageNet LibriSpeech Random data

Metrics: raw compression rate adjusted compression rate

Baselines: gzip LZMA2 PNG FLAC

Builds on: arithmetic coding Solomonoff induction Chinchilla scaling laws

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy