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

Wanrong Yang, Lingfang Li, Dominik Wojtczak, Yihang Zhou, Danli Shi, Yalin ZhengNeurIPS 2026

TL;DR

Token counts tell you how long a prompt is, not whether it actually carries enough information for an LLM agent to make a good decision. This paper borrows Claude Shannon’s classical rate-distortion theory to calculate a strict, model-agnostic "bit budget"—the exact minimum amount of decision-relevant information a context must preserve to keep decision errors (regret) below a chosen threshold. Better yet, it cleanly separates whether an agent fails because the prompt threw away vital clues, or because the LLM simply failed to use what was right in front of it.

What Problem Does This Paper Address?

If you have ever built an LLM agent, you know the debugging headache: your agent picks the wrong tool or botches a task, and you have no idea who to blame. Is the backbone model too weak? Did your prompt compression strip out a crucial detail? Or is the relevant evidence "lost in the middle" of a massive context window?

Right now, engineers tune retrieval depth, summaries, and agent scaffolds ("harnesses") largely by trial and error. Nominal context windows stretch into the millions of tokens, yet tokens are not interchangeable with information—a bloated prompt can starve an agent of signal, while a "lossless" summary can silently break downstream decisions. What has been missing is a universal, model-independent yardstick expressed in bits rather than tokens: how much task history must survive in the prompt before any model, no matter how smart, has a mathematical fighting chance of succeeding?

Methods

The authors reframe an in-context decision step as a classic three-part information channel: Task History ($H$) $\to$ Assembled Context ($C$) $\to$ Emitted Action ($A$).

Figure 1. In-context agent as the Markov chain H →C →A. The compression ψ folds the his- tory H into the context C, the decoder π(· | C) emits the action A, and the DPI yields I(H, A)≤ I(H, C), which is the basis of Theorem 5.

While the mathematical machinery relies on standard information theory—specifically the Data Processing Inequality (you cannot magically create history information downstream once a prompt stage discards it)—the novel twist is applying it to Regret Rate Distortion (RRD).

Instead of forcing the agent to reconstruct the raw text of the history, the authors define "distortion" as Bayes regret: the value gap between the action the agent took and the optimal action. Crucially, this treats different text strings that achieve the exact same outcome as equivalent, focusing purely on decision quality. From this, they derive $\mathcal{R}_\ell(\varepsilon)$: the minimum mutual information (in bits) required to achieve an expected regret of at most $\varepsilon$.

To test how real models behave near this theoretical floor, they evaluate three open-source LLMs (Qwen3-32B, Gemma3-27B, and GLM-4-32B) on a controlled 16-way single-step tool-selection task, sweeping across tool catalogue sizes (16 to 512), gold-tool positions, description compression levels, and Chain-of-Thought (CoT) toggles, using Miller-Madow bias-corrected mutual information estimates.

Datasets

The authors introduce no new raw datasets, instead constructing controlled 16-way tool-selection slices from three established public tool-use benchmarks (with no model training involved):

  • API-Bank
  • $\tau$-bench
  • ToolBench

Key Insights and Ideas

  • A hard speed limit for agent harnesses: Because of data processing, a multi-stage agent pipeline inherits the bottleneck of its tightest stage. If an early retrieval or summarisation step drops below the required bit floor, no downstream reasoning scaffold, verifier, or model upgrade can rescue the decision (unless it fetches fresh observations from the environment).
  • Inference-time compute cannot beat a starved prompt: Reasoning methods like Chain-of-Thought act purely as decoders of the existing context $C$. They can help a model extract more mileage out of information already on the page, but they cannot lower the fundamental bit floor required in the prompt.
  • Action-side rate predicts regret: Even though theory only provides a one-sided floor, empirically, when two very different prompt setups (say, different tool positions or compression levels) end up transmitting the same number of bits to the output action, they almost always land at the exact same error rate.
  • Tokens are shockingly dilute: Near context-window saturation, prompts can swell to hundreds of thousands—or over a million—input tokens just to deliver a single bit of decision-making signal to the final action.

Key Results

For a uniform 16-tool choice where you want an error rate (regret) of at most $0.1$, the exact theoretical floor is $\approx 3.14$ bits (out of $4$ maximum bits). Across 441 experimental configurations (320 trials each):

Figure 2. The RRD frontier across three models and three benchmarks. Top. per-cell (ˆ︁IMM, ˆ︁ε) markers with bootstrap confidence interval (CI) rectangles (B=400, 95%). Hue is model, shape is compression τ, marker area is pool size N, and translucent traces connect the T0→T1→T2→C1 sweep at fixed (model, N, MID). The black curve is the analytical M=16 Hamming floor (Equation 3). The hatched region is forbidden by Theorem 5. Stars on the API-Bank panel mark the 12 CoT cells of Figure 3. Bottom. per-benchmark histograms of the cell margin ˆ︁IMM −Rℓ(ˆ︁ε), with median dashed.
  • Respecting the floor, with room to spare: Every tested configuration stayed above the theoretical impossibility zone (confirming the measurement pipeline), sitting at a median margin of $1.07$ bits above the exact frontier.
  • Tight clustering at matched bit-rates: Among 629 pairs of configurations whose action-side information rates were within $0.10$ bits of each other, $97.5\%$ had overlapping regret confidence intervals, with a tiny median regret gap of $0.0125$ (despite classification mechanics allowing gaps up to $\approx 0.7$).
  • Mixed returns on Chain-of-Thought: On a 12-cell Qwen3/API-Bank slice, turning on CoT actually nudged mean regret slightly up by $+0.024$ and shifted action-side rate by $-0.062$ bits.
  • Extreme token-to-bit ratios: The median cost on standard slices was $1,787$ input tokens per action-side bit, ballooning to $5,800$ on API-Bank ($N=512$), $\approx 4 \times 10^5$ on $\tau$-bench, and $\approx 1.7 \times 10^6$ tokens per bit on ToolBench when verbatim prompts hit the 32,768-token cap.

Limitations and Future Work

The authors are admirably candid about what their setup doesn't do yet. Empirically, they only test balanced, single-step, 16-way tool selection—not multi-turn agent trajectories, code generation, or continuous control. More importantly, they measure action-side mutual information $I(X, A)$ (what reaches the output) rather than directly estimating context-side capacity $I(H, C)$ (what is inside the raw text prompt). Because of that, a low output bit-rate alone cannot tell you whether the prompt lost the answer or the LLM just ignored it without an external retention audit.

For future work, they propose running end-to-end "retrieve-then-select" deployment pilots, calibrating neural mutual-information estimators (like MINE or InfoNCE) to measure rich text intermediates directly, and exploring rate-aware training objectives that explicitly penalise models for wasting bits.

Summary updated

Abstract

A language model agent chooses actions from a context built by retrieval, summaries, prompt templates, and memory. Yet token counts do not define how much task information this context must preserve to support a given decision quality. The structural problem is to give context adequacy a decision-based budget that separates information present in the prompt from information used by the decoder. We formalise this problem through the Markov chain $H\to C\to A$ and a regret rate distortion function $\mathcal{R}_\ell(\varepsilon)$, using Bayes regret to measure the value lost by an action and treating actions with equal value alike. Classical data processing gives a necessary budget at each context cut that adds no fresh information, and a random recommendation with a copy decoder attains this budget for uniform zero-one decisions, requiring about $3.14$ bits for $16$ tools at regret $0.1$. The empirical floor check audits the full measurement pipeline, while the observed margins and clustering describe tested agent behaviour. Across $441$ balanced, single-step, $16$-way tool-selection cells from three models and three benchmarks, the median action-side margin above the exact frontier is $1.07$ bits, $97.5\%$ of $629$ matched-rate pairs have overlapping regret confidence intervals, and input tokens per action-side bit reach about $1.7\times10^6$ near saturation. These results make context adequacy a quantitative design problem, separating a necessary mutual-information budget from observed information use and token count, with an exact achievable frontier for uniform zero-one decisions under stochastic context encoding.
BibTeX
@inproceedings{yang2026bits,
  author = {Wanrong Yang and Lingfang Li and Dominik Wojtczak and Yihang Zhou and Danli Shi and Yalin Zheng},
  title = {{Bits Beat Tokens: A Regret Rate Distortion Theory for Large Language Model Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hGYPDaFTPP},
}
Figure