mlsanityData to 7 Oct 2026

The KoLMogorov Test: Compression by Code Generation

arXiv 2503.13992 ↗First posted 18 Mar 2025cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

Compression is at the heart of intelligence. A theoretically optimal way to compress any sequence of data is to find the shortest program that outputs that sequence and then halts. However, such 'Kolmogorov compression' is uncomputable, and code generating LLMs struggle to approximate this theoretical ideal, as it requires reasoning, planning and search capabilities beyond those of current models. In this work, we introduce the KoLMogorov-Test (KT), a compression-as-intelligence test for code generating LLMs. In KT a model is presented with a sequence of data at inference time, and asked to generate the shortest program that produces the sequence. We identify several benefits of KT for both evaluation and training: an essentially infinite number of problem instances of varying difficulty is readily available, strong baselines already exist, the evaluation metric (compression) cannot be gamed, and pretraining data contamination is highly unlikely. To evaluate current models, we use audio, text, and DNA data, as well as sequences produced by random synthetic programs. Current flagship models perform poorly - both GPT4-o and Llama-3.1-405B struggle on our natural and synthetic sequences. On our synthetic distribution, we are able to train code generation models with lower compression rates than previous approaches. Moreover, we show that gains on synthetic data generalize poorly to real data, suggesting that new innovations are necessary for additional gains on KT.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 32 of its 59 references that are in the map. First posted on arXiv 18 Mar 2025.

Builds on

32 of 59 references.

References · 32

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  6. 2021Program Synthesis with Large Language Modelscited by 3,509
  7. 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
  8. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  9. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  10. 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
  11. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  12. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
20 more
  1. 2019On The Power of Curriculum Learning in Training Deep Networkscited by 285
  2. 2021Curriculum Learning: A Surveycited by 257
  3. 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
  4. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
  5. 2023Language Modeling Is Compressioncited by 225
  6. 2018An Introduction to Deep Reinforcement Learningcited by 201
  7. 2020DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learningcited by 159
  8. 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
  9. 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
  10. 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 99
  11. 2019Video Compression With Rate-Distortion Autoencoderscited by 97
  12. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
  13. 2024MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMscited by 72
  14. 2024Getting the most out of your tokenizer for pre-training and domain adaptationcited by 65
  15. 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 60
  16. 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositoriescited by 52
  17. 2023LLMZip: Lossless Text Compression using Large Language Modelscited by 44
  18. 2021Turning Tables: Generating Examples from Semi-structured Tables for Endowing Language Models with Reasoning Skillscited by 39
  19. 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
  20. 2024Can We Count on LLMs? The Fixed-Effect Fallacy and Claims of GPT-4 Capabilitiescited by 13

Built on by

Cited by year (2026 to 7 Oct)

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

5 papers.