# Bits Beat Tokens: A Regret Rate Distortion Theory for Large Language Model Agents

*Wanrong Yang, Lingfang Li, Dominik Wojtczak, Yihang Zhou, Danli Shi, Yalin Zheng*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150556) · [OpenReview](https://openreview.net/forum?id=hGYPDaFTPP) · [Open on the map](../papers.html#p150556)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM Agent Orchestration](../pgroup/79.md) · Type: theory · Keywords: regret rate-distortion theory, information-theoretic bounds, language model agents, context engineering, Fano floor, Bayes regret

Areas: [AI Agents](../areas/agents.md) › Agent Systems and Interactions › Efficient Agent Inference; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › LLM Agent Tool Use

## Summary
The paper introduces a regret rate-distortion (RRD) theory that characterizes how many bits of context are needed for low-regret decisions by language model agents and provides a model-agnostic stopping criterion.

## Explained to a 5-year-old
A robot friend reads a short story and decides what to do next. It needs to remember enough important facts to make a good choice. The paper figures out how many important facts (bits) are needed so the robot makes fewer mistakes, no matter which robot it is.

## Explained to a 5-year-old, longer
Imagine you have a toy that looks at a picture and then picks a toy car, a doll, or a block. The picture is the context. If the picture only shows a few tiny details, the toy might pick the wrong thing. The scientists in this paper asked: how many tiny details must the picture have so the toy almost always picks the right thing? They used a special math idea called rate-distortion theory, which is like a rule that says if you have too little information, you cannot be very accurate. They turned this rule into a simple formula that tells you exactly how many details you need for different numbers of choices. Then they tested this rule on many small experiments where the toy had to choose among many tools, using three different big computer brains (Qwen3, Gemma3, GLM-4) and three sets of test problems (API-BANK, τ-bench, ToolBench). The experiments showed that the rule works well: most of the time the toy behaved as the rule predicted, and the rule even showed that a long picture with many words often carries far more information than needed. This tells us that we can plan how much information to give to language model agents without trying every possible picture.

## For a technical reader
We model an LLM agent as a Markov chain from history (H) to context (C) to action (A) and treat Bayes regret as distortion. Using information theory, we define a regret rate-distortion function Rℓ(ε) that gives a lower bound on the bits of context required to achieve regret ≤ ε, independent of model architecture. The converse follows directly from the data-processing inequality, and for finite M-ary decisions the bound reduces to a Fano-type floor. Empirically, we evaluate the bound on 441 single-step tool-selection cells across three large models and three benchmarks, confirming that the predicted floor is respected and that action-side mutual information provides a tighter test of the converse. The results reveal a huge tokens-versus-bits gap, indicating that current prompts contain far more tokens than needed for the information they convey.

## Problem
How many decision-relevant bits must a language model agent's context contain to act with low regret? The problem is to quantify this minimal information requirement without dependence on model architecture or scale.

## Method
The authors formulate an information-theoretic bound on the required context bits for low regret by treating the agent's decision process as a distortion-rate problem and deriving converse results from the data-processing inequality. They then evaluate this bound on controlled single-step tool-selection tasks across several language models and benchmarks.

## Results
The theory predicts a Fano-type floor of about 3.14 bits for 16-way decisions and 6.73 bits for 256-way decisions at 10% regret; empirical evaluation on 441 cells shows the predicted floor is respected (median margin +1.07 bits) and 97.5% of matched-rate pairs have overlapping regret confidence intervals, while the tokens-versus-bits gap reaches ~1.7×10⁶:1 with less than 0.05 bits extracted from a 32,768-token prompt.

## Contributions
Provides a model-agnostic, information-theoretic characterization of the minimal context bits needed for low regret, derives a falsifiable stopping criterion based on action-side rate, and demonstrates the theory on a broad set of language model agents and benchmarks.

## Practical relevance
The work reframes context engineering as an information-allocation problem, offering a principled way to size prompts and memory for language model agents.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150556)
