The Conditional Regret-Capacity Theorem for Batch Universal Prediction

Marco Bondaschi, Michael Gastpar · DOI

Introduction

In classical information theory, universal prediction focuses on estimating the probability of the next symbol in a sequence based solely on previously observed symbols. However, the paradigm of modern Large Language Models (LLMs) deviates from this sequential approach. LLMs are typically pre-trained on a massive corpus of data (batches) before being deployed to predict or generate new, unseen batches. This "pre-training" dynamic creates a gap in traditional information-theoretic models.

This paper addresses this gap by formalizing Batch Universal Prediction. The authors introduce a "conditional" version of the classic regret-capacity theorem, providing a rigorous framework to understand how a training corpus acts as side information to improve prediction performance on subsequent data.

The Batch Universal Prediction Framework

In the batch setting, a predictor has access to a training corpus $X^n = (X_1, X_2, \dots, X_n)$, where each $X_i$ is a batch of data. The goal is to predict a new, unseen test batch $Y$. The performance of a predictor $\hat{p}$ is measured by regret, which represents the additional loss (typically logarithmic loss) incurred because the true underlying distribution of the data, parameterized by $\theta$, is unknown.

Traditional results in universal prediction relate the minimax regret to the Shannon capacity of the channel. The authors extend this by treating the training corpus as a conditioning variable, effectively asking: How much does the knowledge of $X^n$ reduce the uncertainty about the parameters $\theta$ relevant to predicting $Y$?

The Conditional Regret-Capacity Theorem

The central contribution of the paper is the derivation of the Conditional Regret-Capacity Theorem. By reformulating batch regret as a conditional Kullback-Leibler (KL) divergence, the authors prove that the minimum possible maximal average regret is exactly equal to the maximum conditional mutual information between the model parameters $\theta$ and the test batch $Y$, given the training corpus $X^n$:

$$\min_{\hat{p}} \max_{\theta} R(\hat{p}, \theta) = I_{w^*}(\theta; Y | X^n)$$

This theorem identifies the conditional mixture estimator as the optimal predictor. This estimator functions by weighting all possible models within a parametric class by their likelihood of having generated the observed training corpus—a strategy that mirrors Bayesian inference but is derived here from a frequentist minimax perspective.

Generalization to $\alpha$-Regret

To provide a more comprehensive analysis, the authors extend their theorem beyond standard logarithmic loss to include Rényi information measures. This allows for the study of $\alpha$-regret, a metric that interpolates between different performance regimes:

  • When $\alpha = 1$, the metric corresponds to standard average-case regret.
  • As $\alpha \to \infty$, the metric recovers worst-case regret.

By utilizing a conditional version of Sibson’s mutual information, the authors show that the relationship between regret and capacity holds across this entire spectrum, providing a unified information-theoretic framework for batch learning under various risk profiles.

Case Study: Binary i.i.d. Sources

While the paper is primarily theoretical, the authors validate their framework using a mathematical model of binary independent and identically distributed (i.i.d.) sources. This serves as a benchmark to derive concrete lower bounds for the minimal batch regret. For a model trained on $n$ batches of size $\ell$, the authors show the regret vanishes as:

$$\frac{1}{2} \log\left(1 + \frac{1}{n}\right) + O\left(\frac{\log(n\ell)}{n\ell}\right)$$

This result quantifies the diminishing returns of additional training data. It demonstrates that as the number of training batches ($n$) increases, the "value" of the corpus as side information grows, reducing the regret on the test batch at a predictable rate.

Discussion and Limitations

The Conditional Regret-Capacity Theorem provides a theoretical target for understanding the fundamental limits of model generalization. However, several challenges remain for practical application:

  1. Parametric Assumptions: The current derivation assumes data originates from a known parametric class. Real-world language data is significantly more complex and likely requires non-parametric extensions of this theory.
  2. Computational Complexity: The optimal conditional mixture estimator is often computationally intractable for high-dimensional models like Transformers, necessitating the use of approximations in practice.
  3. Scaling Laws: This framework offers a potential path toward a more rigorous mathematical explanation of the "scaling laws" observed in LLMs, shifting the focus from empirical curve-fitting to information-theoretic bounds.

Conclusion

By bridging the gap between classical universal prediction and modern batch training, this work formalizes the role of the training corpus as a conditioning variable that reduces parameter uncertainty. The Conditional Regret-Capacity Theorem establishes that the limits of generalization are fundamentally tied to the conditional mutual information between the model and the data, providing a new lens through which to view the efficiency of Large Language Models.

Summary updated

BibTeX
@inproceedings{bondaschi2025conditional,
  author = {Marco Bondaschi and Michael Gastpar},
  title = {{The Conditional Regret-Capacity Theorem for Batch Universal Prediction}},
  booktitle = {ITW},
  year = {2025},
  doi = {10.1109/itw62417.2025.11240547},
}
Figure