Fully Unconstrained Online Learning

Ashok Cutkosky, Zakaria Mhammedi

Introduction

In the field of Online Convex Optimization (OCO), a learner iteratively makes predictions and receives feedback in the form of loss functions. The standard metric for success is regret: the difference between the cumulative loss incurred by the learner and the loss that would have been incurred by the best fixed strategy (the "comparator") chosen in hindsight. While algorithms like Stochastic Gradient Descent (SGD) are foundational to this field, their performance is notoriously sensitive to the choice of learning rate.

To set an optimal learning rate, a practitioner typically needs two pieces of information that are rarely available in advance: the Lipschitz constant ($G$), which bounds the magnitude of the gradients, and the norm of the optimal comparator ($\|w_*\|$), which represents the distance to the best solution. This paper introduces a novel algorithm that achieves "fully unconstrained" learning, adapting to both unknown gradient scales and unknown solution distances simultaneously without requiring manual tuning.

The Challenge of Parameter Tuning

Existing "parameter-free" algorithms have attempted to bridge the gap between theory and practice, but they often encounter a theoretical "loophole." Previous lower bounds suggested that if an algorithm does not know $G$ or $\|w_*\|$, it must suffer a suboptimal dependence on the maximum gradient. Specifically, many algorithms struggled to maintain efficiency when the range of possible gradients was large or unknown.

This research addresses this by asking: Is it possible to design an algorithm that performs as well as one that knew the optimal parameters from the start? The authors demonstrate that by reframing the constraints of the problem, they can achieve a regret bound that matches the theoretical optimum in nearly every scenario where sublinear regret is achievable.

Methodology: The "Soft Constraint" Approach

The authors arrive at their solution through a series of mathematical innovations designed to bypass traditional limitations in unconstrained optimization:

  1. Dimension Reduction: The paper proves that the $d$-dimensional unconstrained OCO problem can be effectively reduced to a one-dimensional problem, simplifying the analysis without losing generality.
  2. Soft Constraint Regularization: Instead of enforcing a "hard constraint" (restricting the learner's output to a specific feasible set), the algorithm employs a "soft constraint" via regularization. By adding a small quadratic term (e.g., $\psi(w) = w^2$) to the loss, the algorithm naturally penalizes overly large steps.
  3. Epigraph Re-parameterization: To handle the regularization term effectively, the authors treat it as a convex constraint by analyzing the "epigraph" (the set of points lying on or above the function's graph). This allows them to map the regularized problem back into a constrained framework that is more mathematically tractable.
  4. Magnitude Hints: The algorithm utilizes the maximum gradient observed in previous rounds as a "hint" for the current round. This dynamic adaptation allows the step size to evolve in real-time as the learner encounters new data.

Theoretical Insights and Results

The core contribution of the paper is a new upper bound on regret (Theorem 1). For any sequence of $G$-Lipschitz convex losses and any comparator $w_*$, the algorithm guarantees:

$$\text{Regret}_T(w_*) \leq \tilde{O}\left( G\|w_*\|\sqrt{T \log(\|w_*\|G\sqrt{T})} + \|w_*\|^2 + G^2 \right)$$

Sidestepping the Lower Bound

A key insight of this work is the realization that the "unavoidable" regret suggested by previous literature only applies if one insists on a strictly linear dependence on the maximum gradient. By allowing for a quadratic dependence ($G^2$), the authors found they could significantly improve the scaling of regret relative to time ($T$) and the comparator norm ($\|w_*\|$). This trade-off is highly beneficial in practice, as the $G^2$ term is additive and does not grow with $T$.

Second-Order Bounds

The algorithm also achieves a "second-order" regret bound. This means the regret depends on the sum of the squared gradients ($\sum \|g_t\|^2$) rather than just the total number of rounds $T$. In environments where gradients are small on average, this property allows the algorithm to achieve "fast rates," outperforming standard first-order methods.

Discussion and Limitations

While the algorithm is a significant step toward truly autonomous online learning, the authors identify several areas for further refinement:

  • The Range-Ratio Problem: The regret bound includes a logarithmic dependence on the ratio between the actual gradient scale $G$ and the learner's initial guess $h_1$. While logarithmic growth is slow, an extremely poor initial guess can still introduce large constant factors.
  • Stochastic vs. Adversarial Gap: The algorithm is optimized for the adversarial setting (where losses can be arbitrary). However, in stochastic settings (where losses follow a fixed distribution), there remains a small gap between this algorithm's performance and the theoretical best possible results.
  • Computational Overhead: The most robust version of the algorithm requires solving a convex optimization subproblem at each time step. For high-frequency applications, this may be computationally more expensive than the simple updates used in standard SGD.

Conclusion

This paper provides a robust theoretical framework for online learning without the need for hyperparameter "homework." By utilizing soft constraints and epigraph re-parameterization, the authors have developed an algorithm that is essentially parameter-free, adapting to the scale of the problem as it unfolds. This work closes a significant gap in the theory of unconstrained optimization and moves the field closer to plug-and-play machine learning systems.

Summary updated

BibTeX
@inproceedings{cutkosky2024fully,
  author = {Ashok Cutkosky and Zakaria Mhammedi},
  title = {{Fully Unconstrained Online Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=BtCrHwiBHP},
}
Figure