Precise Regret Bounds for Log-loss via a Truncated Bayesian Algorithm

Changlong Wu, Mohsen Heidari, Ananth Grama, Wojciech Szpankowski

Introduction

In online learning, a learner attempts to predict labels ($y_t$) based on sequentially arriving features ($x_t$). The primary objective is to minimize regret: the difference between the learner's total loss and the loss of the best possible "expert" (predictor) from a predefined class $\mathcal{H}$.

This paper focuses on logarithmic loss (log-loss), a fundamental metric in information theory and machine learning. A significant challenge with log-loss is that it approaches infinity if a learner predicts 0 or 1 when the true label is the opposite. To prevent this, researchers traditionally "truncate" predictions away from the boundaries. However, previous "hard truncation" methods often led to sub-optimal regret bounds. This work aims to find the precise growth rate of this regret—exactly how it scales with the number of rounds ($T$) and the data dimension ($d$)—bridging the gap between theoretical minimax limits and practical algorithmic performance.

Methodology

To achieve tight, often optimal, regret bounds, the authors introduce a novel Smooth Truncated Bayesian Algorithm based on two key innovations:

  1. Smooth Truncation: Instead of simply clipping predictions that are too close to 0 or 1, the authors apply a linear transformation: $\tilde{g}(x) = \frac{g(x) + \alpha}{1 + 2\alpha}$. This "smooths" the predictions of all experts in the class, making the loss function better behaved and allowing for much tighter mathematical analysis.
  2. Smooth Truncated Bayesian Predictor: The proposed constructive algorithm maintains a distribution over a "covering" of the expert class (a finite set of representative experts). In each round, it makes a prediction by averaging the smoothly truncated predictions of these representatives, weighted by their past performance via a Bayesian update.

For lower bounds, the authors utilize the Shtarkov sum, a powerful tool from universal source coding in information theory, to prove that no algorithm can outperform their proposed method in many scenarios.

Theoretical Setup: Classes of Experts

As a theoretical paper, it evaluates performance across various mathematical classes of experts rather than empirical datasets. These include:

  • General Lipschitz classes: Functions where the output does not change too rapidly as the input changes.
  • Bounded Hessian classes: Functions where the "curvature" of the log-likelihood is controlled (e.g., logistic regression).
  • Generalized Linear Functions: Functions of the form $f(\langle w, x \rangle)$.

Key Insights

  • The "Price" of the Boundary: The difficulty of log-loss stems from the boundaries (0 and 1). The smooth truncation parameter $\alpha$ acts as a "safety buffer." The authors demonstrate that setting $\alpha \approx d/T$ is often optimal.
  • Optimal Constants: While many previous works relied on "Big-O" notation (e.g., $O(d \log T)$), this paper calculates the exact leading constants. For instance, for general Lipschitz functions, the leading term is $d \log(T/d)$, whereas for functions with a bounded Hessian, it drops to $\frac{d}{2} \log(T/d)$.
  • Dimension vs. Time: The paper clarifies how regret changes when the dimension $d$ is small compared to $T$ (logarithmic growth) versus when $d$ is very large (polynomial growth, e.g., $T^{2/3}$).
  • Simplicity Wins: By utilizing smooth truncation, the authors' proofs are significantly shorter and more intuitive than previous "self-concordance" or "sequential covering" approaches.

Key Results

The paper provides a comprehensive "menu" of regret bounds for different scenarios, proving that "smoother" expert classes are fundamentally easier to learn.

Summary of regret bounds across different expert classes and dimensional regimes.

Highlights from these results include:

  • General Lipschitz Functions: The sequential regret is bounded by $d \log(T/d + 1) + O(d)$. The authors prove the constant $1$ in front of the log is optimal.
  • Bounded Hessian: The regret is $\frac{d}{2} \log(T/d) + O(d)$, confirming the theoretical advantage of controlled curvature.
  • High-Dimensional Regime ($d \geq T$): For certain linear functions, the regret must grow as $\Omega(T^{2/3})$. This proves that logarithmic regret is impossible when the dimension is too high relative to the number of rounds.

Limitations and Future Work

The bounds are derived for "sequential design," meaning the features $x_t$ can be chosen by an adversary to maximize difficulty. Future directions suggest applying the smooth truncation technique to other types of regret (like average minimax regret) or generalizing it to stochastic feature presentations. Additionally, while "covering numbers" are used to measure complexity, the authors note that for specific functions (like $| \langle w, x \rangle |$), tighter complexity measures might be required to fully capture the regret behavior.

Summary updated

BibTeX
@inproceedings{wu2022precise,
  author = {Changlong Wu and Mohsen Heidari and Ananth Grama and Wojciech Szpankowski},
  title = {{Precise Regret Bounds for Log-loss via a Truncated Bayesian Algorithm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=9s3CbJh4vRP},
}
Figure