Aggregation with Exponential Weights is Optimal in Expectation

Mikael Møller Høgsgaard, Patrick Rebeschini, Tobias WegelarXiv 2026

TL;DR

This paper resolves a decade-old open problem in statistical learning theory by proving that the Aggregation with Exponential Weights (AEW) estimator is minimax-rate optimal in expectation under random design. Crucially, the authors show that this optimality holds for sufficiently large, fixed "temperature" parameters without requiring restrictive, data-dependent Bernstein assumptions, revealing a sharp phase transition in the estimator's performance.

What Problem Does This Paper Address?

In machine learning, model selection aggregation aims to combine a finite dictionary of $M$ predictive models to perform as well as the single best model in the collection. A classic and widely used algorithm for this is Aggregation with Exponential Weights (AEW), which assigns weights to models based on their empirical training risk. This assignment is controlled by a tuning parameter called the "temperature" ($T$).

While AEW is well-understood in online learning and fixed-design settings, its performance under random design (where training data is sampled i.i.d. from an unknown distribution) has long had a glaring theoretical gap. Specifically, Lecué and Mendelson (2013) posed an open question: Does AEW achieve the optimal error rate of $\log(M)/n$ in expectation for a large enough constant temperature, without assuming a favorable data distribution (known as a Bernstein condition)?

Prior work proved that AEW fails at low temperatures because it overfits by mimicking empirical risk minimization. This paper addresses whether a high-temperature "hedging" strategy can guarantee minimax optimality under random design.

Methods

The authors tackle this problem using a deterministic leave-one-out stability analysis. The core mathematical innovation consists of two novel "tilting inequalities" (Lemmas 1 and 2).

These lemmas bound the loss of a weighted average of predictions under a "tilted" probability distribution (which represents the AEW weights when one sample is removed) by the weighted average of the losses under the original distribution. By applying these inequalities to an average leave-one-out stability argument, the authors bypass the need for data-dependent Bernstein conditions entirely, directly linking the expected risk of the AEW estimator to the minimax optimal rate.

Datasets

Not discussed in the paper. This is a purely theoretical paper containing mathematical proofs, so no empirical datasets or benchmarks were used.

Key Insights and Ideas

  • The High-Temperature Hedging Effect: Unlike empirical risk minimization, which aggressively picks the single best-performing model on training data and risks overfitting, a high enough temperature forces AEW to distribute weights more evenly. This "hedging" stabilizes the estimator against random design fluctuations.
  • A Sharp Phase Transition: The paper confirms a fascinating behavior outlined in Figure 1: AEW undergoes a sharp phase transition based on temperature. At low temperatures ($T \leq c_1$), it is suboptimal. At large but constant temperatures ($T \geq c_3$), it suddenly becomes optimal. However, if the temperature grows too large ($T \to \infty$ as $n \to \infty$), the weights become completely uniform, rendering it suboptimal once again.
Figure 1: Minimax rate optimality and suboptimality of the AEW estimator for squared loss as a function of the temperature T, when considered uniformly over M, dictionaries of size M, and distributions.
  • Tightness is Crucial: The authors demonstrate that standard tools like Jensen's inequality yield bounds that are too loose by an exponential factor ($e^{B/T}$), which fails to resolve the open problem. Their exact tilting formulation is what makes the tight, optimal bound possible.

Key Results

  • Theorem 1 (Main Result): For any loss function that is bounded by $B$, $L$-Lipschitz, and $\mu$-strongly convex, AEW achieves an excess risk bounded by $\frac{T \log M}{n+1}$ in expectation, provided the temperature satisfies: $$\frac{L^2}{T}\exp\left(\frac{B}{T}\right) \leq \frac{\mu}{2}$$
  • Squared Loss Optimality: For the standard squared loss on a bounded interval $[0, b]$, the condition simplifies beautifully to $T \geq 4b^2$. For predictions on $[0, 1]$, choosing $T=4$ yields an optimal excess risk of $\frac{4 \log M}{n+1}$.
  • Suboptimality at Extremes: The paper provides lower bounds (Propositions 1 and 2) proving that if $T \to \infty$ as $n \to \infty$, or if $T$ is varied in a specific regime in probability, AEW fails to achieve the optimal rate, framing the exact boundaries of its performance.

Limitations and Future Work

While the paper successfully resolves the open question regarding optimality in expectation, a gap still remains regarding optimality in probability (high-probability bounds). As shown in the lower half of Figure 1, for random design, AEW remains suboptimal on an event of constant probability for certain temperature regimes. Closing the exact constant gap between the lower bound $c_1$ and the upper bound $c_3$ for the expectation bounds also remains an open detail for future refinement.

Summary updated

BibTeX
@misc{hgsgaard2026aggregation,
  author = {Mikael Møller Høgsgaard and Patrick Rebeschini and Tobias Wegel},
  title = {{Aggregation with Exponential Weights is Optimal in Expectation}},
  year = {2026},
  eprint = {2607.02247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.02247},
}
Figure