Online Learning Algorithms

Nicolò Cesa‐Bianchi, Francesco OrabonaAnnual 2020

Abstract

Online learning is a framework for the design and analysis of algorithms that build predictive models by processing data one at the time. Besides being computationally efficient, online algorithms enjoy theoretical performance guarantees that do not rely on statistical assumptions on the data source. In this review, we describe some of the most important algorithmic ideas behind online learning and explain the main mathematical tools for their analysis. Our reference framework is online convex optimization, a sequential version of convex optimization within which most online algorithms are formulated. More specifically, we provide an in-depth description of online mirror descent and follow the regularized leader, two of the most fundamental algorithms in online learning. As the tuning of parameters is a typically difficult task in sequential data analysis, in the last part of the review we focus on coin-betting, an information-theoretic approach to the design of parameter-free online algorithms with good theoretical guarantees.

Introduction

Traditional machine learning often relies on the "i.i.d." assumption—the idea that data is sampled independently from a fixed, underlying distribution. However, in real-world applications such as high-frequency trading, sensor networks, or online advertising, this assumption frequently fails. Data in these contexts is often non-stationary, bursty, or even generated by an adversary.

Online Convex Optimization (OCO) addresses the challenge of sequential learning: building models that update in constant time per example, remain computationally efficient, and provide rigorous performance guarantees without unpredictable data sources. The primary performance metric is Regret, defined as the difference between the total loss incurred by the algorithm and the loss of the best fixed model chosen in hindsight.

Core Algorithmic Frameworks

Online Mirror Descent (OMD)

Online Mirror Descent is a generalization of gradient descent that adapts to the specific geometry of the problem space. Instead of relying solely on Euclidean distance, OMD utilizes Bregman Divergences defined by a "Mirror Map" $\psi$. This allows the algorithm to be more efficient in specific domains, such as using entropic maps for probability simplexes.

Geometric interpretation of Online Mirror Descent (OMD) showing the mapping between primal and dual spaces.

The process involves mapping the current weight $\mathbf{w}_t$ to a dual space, performing a gradient update there, and then mapping back to the primal space (and potentially projecting back into the feasible set $\mathbb{V}$).

Follow the Regularized Leader (FTRL)

FTRL is a "stability-first" approach that selects a model minimizing the cumulative loss of all past observations plus a regularization term. While conceptually different from OMD, the two frameworks are often mathematically equivalent under certain conditions, representing two perspectives on the same optimization process.

Adaptive and Parameter-Free Methods

Modern extensions like AdaGrad introduce coordinate-dependent step sizes, automatically adapting to the scale of gradients. A more recent breakthrough is the Coin-Betting framework. By transforming the optimization problem into a gambling game and applying strategies like the Krichevsky–Trofimov (KT) estimator, researchers can design "parameter-free" algorithms. These methods eliminate the need for a pre-defined learning rate while maintaining optimal regret bounds.

Key Insights and Theoretical Results

The Power of Geometry

The choice of the Mirror Map is fundamental. For instance, if the model space is a simplex, an entropic map leads to the Exponentiated Gradient algorithm, which can be exponentially more efficient than standard Euclidean gradient descent in high dimensions.

Wealth-Regret Duality

There exists a profound connection between information theory and optimization. A betting strategy that successfully grows wealth against an unknown sequence can be mathematically transformed into an online learning algorithm that minimizes regret.

Performance Speed Limits

As a theoretical review, the paper focuses on proving mathematical upper and lower bounds on regret across various loss functions:

  • General Convex Losses: For Lipschitz losses, the optimal regret is $\Theta(\sqrt{T})$.
  • Curved Losses: For "curved" functions like square or logistic loss, algorithms like the Online Newton Step can achieve $O(\log T)$ regret.
  • Parameter-Free Optimality: Coin-betting allows algorithms to match the performance of perfectly tuned Gradient Descent without prior knowledge of optimal parameters.

Limitations and Future Directions

Despite the robustness of OCO, several challenges remain. Most rigorous theory is currently limited to convex functions; sequential training of deep neural networks (non-convex) remains an area of active research. Additionally, high-performing algorithms like the Online Newton Step require $O(d^2)$ or $O(d^3)$ complexity, making them difficult to scale to extremely high-dimensional models without $O(d)$ approximations. Finally, while coin-betting removes the learning rate, it introduces sensitivity to initial wealth parameters, though typically less so than traditional hyperparameters.

Summary updated

BibTeX
@inproceedings{cesabianchi2020online,
  author = {Nicolò Cesa‐Bianchi and Francesco Orabona},
  title = {{Online Learning Algorithms}},
  booktitle = {Annual},
  year = {2020},
  doi = {10.1146/annurev-statistics-040620-035329},
}
Figure