atlas

Research map / Large language models / Agents, code and math

The KoLMogorov Test: Compression by Code Generation

ICLR 2025 · Large language models › Agents, code and math · approach: Execution-based code verification

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.

Introduces the KoLMogorov-Test, a benchmark asking code LLMs to compress byte sequences (audio, text, DNA, synthetic) by generating the shortest Python program that reproduces them, and trains SeqCoder models on a synthetic DSL.

Problem

Kolmogorov complexity is uncomputable, and it is unclear how well code generating LLMs can approximate it by finding short programs that output a given sequence; existing compression-by-LLM methods need model weights for decoding.

Approach

Frames compression as code generation: a code LM outputs a short program reproducing an input sequence, scored by the encoded program length under a fixed prior (Gzip or a uniform DSL prior), with an effectively unlimited supply of instances from natural and synthetically sampled data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train specialized SeqCoder models on synthetic program-sequence pairs instead of zero-shot promptingCodeLMs · Syntheticaccuracy: 44.7 -> 92.5Helped
Train specialized SeqCoder models on synthetic program-sequence pairs instead of zero-shot promptingCodeLMs · Syntheticprecision: 1.65 -> 0.56Helped
Train on synthetic data and evaluate on naturally occurring sequencesSeqCoder-8B · Natural audio, DNA, and textaccuracy: 92.5 -> 0.0; 92.5 -> 0.1Hurt
Add execution feedback to training examples only (ablation)SQ-1.5B · Synthetic, sequence length 64accuracy: 86.6 -> 77.6Hurt
Add execution feedback to training examples only (ablation)SQ-1.5B · Audio-MFCC, sequence length 64accuracy: 6.5 -> 8.6Helped
Add training feedback and line-by-line execution feedback (ablation)SQ-1.5B · Synthetic, sequence length 64accuracy: 86.6 -> 75.9Hurt
Add training feedback and line-by-line execution feedback (ablation)SQ-1.5B · Audio-MFCC, sequence length 64accuracy: 6.5 -> 8.7Helped
Add chain-of-thought prompting (ablation)Llama-3.1 models · KoLMogorov-Test modalitiesaccuracy: drop of 1.3 and 5.1 points; increase of 2.1 pointsMixed
Increase input sequence lengthGzip · Audio-8-bitcompression rate: 0.966 -> 0.622Helped
Increase input sequence lengthLlama-3.1-405B · Audio-8-bitaccuracy: 47.1 -> 14.2Hurt
Increase training data from 10K to 100K or 1M examplesSeqCoder-1.5B · Audio-MFCC, sequence lengths 16-64accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: LibriSpeech enwik9 GRCh38 human genome synthetic DSL program-sequence pairs

Benchmarks: KoLMogorov-Test

Metrics: Accuracy CompressionRate Precision

Baselines: Gzip LMiC Llama-3.1-8B Llama-3.1-70B Llama-3.1-405B GPT4-o o1-mini

Builds on: Language Modeling is Compression Gzip arithmetic coding Solomonoff induction

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