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
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.
Successful Page Load