Single-pass Adaptive Image Tokenization for Minimum Program Search

Shivam Duggal, Sanghyun Byun, William T. Freeman, Antonio Torralba, Phillip Isola
7/10/2025
cs.CVcs.AIcs.LG

No official code found. Best implementation: ShivamDuggal4/karl (45 stars, last commit 2025-07-26).

Abstract

According to Algorithmic Information Theory (AIT) -- Intelligent representations compress data into the shortest possible program that can reconstruct its content, exhibiting low Kolmogorov Complexity (KC). In contrast, most visual representation learning systems use fixed-length representations for all inputs, ignoring variations in complexity or familiarity. Recent adaptive tokenization methods address this by allocating variable-length representations but typically require test-time search over multiple encodings to find the most predictive one. Inspired by Kolmogorov Complexity principles, we propose a single-pass adaptive tokenizer, KARL, which predicts the appropriate number of tokens for an image in a single forward pass, halting once its approximate KC is reached. The token count serves as a proxy for the minimum description length. KARL's training procedure closely resembles the Upside-Down Reinforcement Learning paradigm, as it learns to conditionally predict token halting based on a desired reconstruction quality. KARL matches the performance of recent adaptive tokenizers while operating in a single pass. We present scaling laws for KARL, analyzing the role of encoder/decoder size, continuous vs. discrete tokenization and more. Additionally, we offer a conceptual study drawing an analogy between Adaptive Image Tokenization and Algorithmic Information Theory, examining the predicted image complexity (KC) across axes such as structure vs. noise and in- vs. out-of-distribution familiarity -- revealing alignment with human intuition.

View on arXivView PDF

Code Implementations(1)

ShivamDuggal4/karlCommunity75%

Single-pass Adaptive Image Tokenization for Minimum Program Search | What's the Kolmogorov Complexity of an Image?

453Shell, PythonJul 10, 20251 years ago
adaptive-tokenizeralgorithmic-information-theorycompressionkolmogorov-complexityrepresentation-learning+2 more

Similar Papers

Cite this paper

@article{duggal2025singlepass,
  title  = {Single-pass Adaptive Image Tokenization for Minimum Program Search},
  author = {Shivam Duggal and Sanghyun Byun and William T. Freeman and Antonio Torralba and Phillip Isola},
  year   = {2025},
  eprint = {2507.07995},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.07995v1}
}

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/2507.07995.svg)](https://codeofpaper.com/paper/2507.07995)

Discussion