Scale-free Unconstrained Online Learning for Curved Losses

Jack J. Mayo, Hédi Hadiji, Tim van Erven

Introduction

In the realm of online supervised learning, algorithms process data sequentially, aiming to minimize regret—the difference between their cumulative loss and that of the best fixed model (the "comparator") in hindsight. Achieving optimal regret typically requires tuning learning rates based on two critical parameters: the scale of the data (feature norms $X$ and label ranges $Y$) and the norm of the optimal comparator weights ($\|\theta\|$).

In general Online Convex Optimization (OCO), it is a known mathematical reality that adapting to both scale and norm simultaneously incurs a strict theoretical penalty. This paper investigates whether this penalty is inevitable for specific, well-behaved supervised learning tasks, specifically those involving "curved" losses like logistic and square loss.

The Challenge of Adaptivity

Standard OCO algorithms often require prior knowledge of $X$ and $\|\theta\|$. Without this, they suffer an additive error term. The authors challenge this limitation by asking if scale-free (invariant to data scaling) and comparator-adaptive algorithms can be designed for common regression tasks without sacrificing performance.

Methodology: Leveraging Mixability

The core of the proposed solution lies in the mathematical property of mixability. Mixable losses, such as logarithmic and square losses, allow for the efficient aggregation of predictions from multiple "expert" sub-algorithms.

The authors' framework employs several key techniques:

  1. Exponential Grid Search: The algorithm maintains a set of sub-algorithms, each tuned to a different potential value of the unknown comparator norm $\|\theta\|$ using an exponentially spaced grid.
  2. Bayesian Aggregation: Predictions are combined using Bayesian strategies or Exponential Weights, which efficiently manage the "expert" sub-algorithms.
  3. Dynamic Clipping: To handle unknown label ranges $Y$ in square loss, the authors implement a clipping mechanism that restricts data based on the maximum label observed to date.
  4. Scale-Free Initialization: To ensure true scale-invariance, the hyperparameter grid is initialized dynamically based on the first non-zero data point.

Key Results and Theoretical Bounds

The primary finding is that for curved losses, the "price for adaptivity" essentially vanishes. The overhead for searching the hyperparameter grid is a double logarithm, $O(\log \log \|\theta\|)$, which is practically negligible even for astronomical weight values.

Comparison of non-adaptive and adaptive regret rates for various loss functions.

As shown in the table above, the authors achieve adaptive regret bounds that match the best known non-adaptive rates across several domains:

  • Logistic Regression: Achieving $O(dK \ln(\|\theta\|XT/dK))$, matching non-adaptive benchmarks while remaining scale-free.
  • Least-Squares Regression: The "A-KAAR" algorithm achieves an adaptive regret of $O(dY^2 \ln(\|\theta\|XT/dY))$.
  • Non-parametric Regression: Extensions to Sobolev spaces and RKHS prove that these adaptive rates hold even in infinite-dimensional settings.

Discussion and Future Directions

While the paper successfully bridges the gap for curved losses, challenges remain. A theoretical gap persists for the hinge loss when the product $\|\theta\|X$ is large. Additionally, the bounds contain a minor "nuisance term" related to the ratio of the maximum feature scale to the first observed scale ($X_T / X_{t^*}$), which remains a subject for future theoretical refinement.

Despite these minor caveats, the work demonstrates that for the most common supervised learning scenarios, one can have full adaptivity and scale-invariance "for free."

Summary updated

BibTeX
@inproceedings{mayo2022scale,
  author = {Jack J. Mayo and Hédi Hadiji and Tim van Erven},
  title = {{Scale-free Unconstrained Online Learning for Curved Losses}},
  booktitle = {Conference on Learning Theory},
  year = {2022},
  url = {https://openreview.net/forum?id=4lPQ3ePA0x},
}
Figure