Exponential Weights on the Hypercube in Polynomial Time

Sudeep Raja Putta, Abhishek Shetty

Abstract

This paper introduces PolyExp, the first polynomial-time algorithm to implement the classic "Exponential Weights" (Exp2) strategy for online linear optimization on a hypercube. By demonstrating that the complex joint distribution of Exp2 factorizes into independent Bernoulli trials, the authors achieve minimax optimal regret bounds in the full-information setting. Furthermore, the work provides a "grand unification" of several major online learning frameworks—including Online Mirror Descent (OMD), Follow the Regularized Leader (FTRL), and Follow the Perturbed Leader (FTPL)—showing their mathematical equivalence in this specific domain.

Introduction

In Online Linear Optimization (OLO), a learner repeatedly selects an action from a decision set to minimize cumulative loss against an adversary. A common setting involves choosing a subset of $n$ items, which can be modeled as picking a vertex on an $n$-dimensional hypercube $\{0, 1\}^n$.

The Exponential Weights (Exp2) algorithm is a cornerstone of online learning, known for its strong theoretical guarantees. However, its practical application on the hypercube is hindered by computational intractability. Because the hypercube contains $2^n$ vertices, a direct implementation of Exp2 requires maintaining and updating a probability distribution over an exponentially large action space. For large $n$, this becomes physically impossible. While researchers have historically turned to alternative frameworks like Online Mirror Descent (OMD) to avoid this complexity, the relationship between Exp2 and these efficient alternatives remained partially obscured.

The PolyExp Algorithm: Efficiency through Factorization

The core contribution of this work is PolyExp, an algorithm that reduces the $O(2^n)$ complexity of Exp2 to $O(n)$. The breakthrough stems from a critical observation regarding linear losses on a hypercube: the joint probability distribution utilized by Exp2 factorizes into a product of $n$ independent Bernoulli distributions.

Instead of tracking weights for every possible subset, PolyExp only needs to maintain $n$ parameters, representing the marginal probability of including each individual item $i$ in the chosen subset. This factorization allows for both sampling and weight updates to be performed in linear time. This result not only makes Exp2 practical for high-dimensional hypercubes but also solves a specific open problem regarding efficient sampling on the $\{-1, +1\}^n$ hypercube posed by Bubeck et al. in 2012.

A Grand Unification of Frameworks

Beyond algorithmic efficiency, the paper establishes a profound theoretical link between disparate online learning paradigms. The authors prove that on the hypercube, the following four frameworks are mathematically equivalent:

  1. Exp2 (Exponential Weights)
  2. OMD (Online Mirror Descent) with entropic regularization
  3. FTRL (Follow the Regularized Leader)
  4. FTPL (Follow the Perturbed Leader) with logistic perturbations

This equivalence is significant because it allows researchers to apply the analytical tools of one framework to another. For instance, by viewing Exp2 through the lens of OMD, the authors were able to derive tighter regret bounds than those found in previous direct analyses of Exp2.

Regret Bounds and Optimality

The paper provides a rigorous analysis of PolyExp's performance under $L_\infty$ adversarial losses, establishing new state-of-the-art regret bounds.

Comparison of regret bounds for Exp2, PolyExp, and theoretical lower bounds in Full Information and Bandit settings.

As shown in the table above, PolyExp achieves a regret of $O(n\sqrt{T})$ in the full-information setting. This represents a $\sqrt{n}$ improvement over the standard analysis of Exp2, which yielded $O(n^{3/2}\sqrt{T})$. The authors further prove that this bound is minimax optimal, meaning no algorithm can achieve a better rate than $\Omega(n\sqrt{T})$ in this setting.

In the bandit setting—where the learner only observes the loss of the chosen subset—PolyExp achieves a regret of $O(n^2\sqrt{T})$. While this matches the performance of standard Exp2 in this setting, it leaves an interesting theoretical gap between the achieved regret and the known lower bound.

Discussion and Future Work

While PolyExp provides a definitive solution for the full hypercube, its efficiency is tied to the independence of the decision variables. If the decision set is restricted (e.g., choosing exactly $k$ items), the Bernoulli factorization no longer holds, and the problem reverts to the more difficult domain of combinatorial online optimization.

A primary remaining challenge is closing the "bandit gap." The current lower bound for the bandit setting is $\Omega(n^{3/2}\sqrt{T})$, while PolyExp achieves $O(n^2\sqrt{T})$. Future research is needed to determine if an algorithm can bridge this $\sqrt{n}$ factor or if the lower bound can be tightened.

Summary updated

BibTeX
@inproceedings{putta2019exponential,
  author = {Sudeep Raja Putta and Abhishek Shetty},
  title = {{Exponential Weights on the Hypercube in Polynomial Time}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=qdPDq957YMj},
}
Figure