Mixability made efficient: Fast online multiclass logistic regression

Rémi Jézéquel, Pierre Gaillard, Alessandro Rudi

Abstract / TL;DR This paper tackles a long-standing efficiency bottleneck in online learning: achieving optimal "logarithmic regret" for multiclass logistic regression without incurring a prohibitive computational cost. The authors introduce the Gaussian Aggregating Forecaster (GAF), the first computationally efficient algorithm for this task that avoids an exponential dependence on the parameter space size. By using quadratic surrogates to approximate the loss function, GAF reduces the complexity of optimal "mixable" forecasters from a theoretical $O(n^{37})$ to a practical $O(n^4)$.

The Challenge in Online Multiclass Logistic Regression

In online learning, a model makes predictions sequentially, receiving the true label as feedback after each prediction. The primary goal is to minimize regret—the difference between the model's total loss and the loss of the best fixed model in hindsight.

For multiclass logistic regression, researchers have historically faced a massive gap between theory and practice:

  1. Fast but "Loose" Algorithms: Standard methods like Online Newton Step (ONS) are computationally efficient ($O(n)$ per step) but suffer from regret that grows exponentially with the norm of the weights ($e^B$). In high-dimensional or complex settings, this statistical performance degrades significantly.
  2. Slow but "Tight" Algorithms: Theoretical "aggregating forecasters" achieve optimal logarithmic regret ($O(\log n)$) with only polynomial dependence on the weight norm. However, these require sampling from complex, log-concave probability distributions. A previous state-of-the-art approach (Foster et al., 2018) achieved this optimal regret but required a staggering $O(n^{37})$ operations, rendering it practically unusable.

The core challenge was to design an "improper" learning algorithm—one that aggregates information rather than just picking a single weight vector—that is both statistically optimal and computationally feasible.

The Gaussian Aggregating Forecaster (GAF)

To bridge this gap, the authors propose GAF. The central innovation is the use of quadratic surrogates to simplify the belief distribution over possible models.

Standard aggregating forecasters maintain a belief distribution updated based on the exact logistic loss. Because this loss is complex, the resulting distribution requires expensive Monte Carlo Markov Chain (MCMC) sampling. GAF bypasses this bottleneck through three steps:

  • Quadratic Approximation: Instead of the exact logistic loss, GAF employs a quadratic lower bound (a surrogate) that incorporates the actual Hessian (the second derivative) of the loss.
  • Gaussian Beliefs: Because the surrogates are quadratic, the updated belief distribution naturally takes the form of a simple Gaussian distribution.
  • Efficient Sampling: Sampling from a Gaussian is extremely fast ($O(K^2)$, where $K$ is the number of classes). The algorithm approximates the aggregated prediction using a simple Monte Carlo average of a few Gaussian samples.

Crucially, the paper proves that exact loss is not strictly necessary to benefit from "mixability" (the property enabling logarithmic regret). As long as the quadratic surrogate satisfies specific curvature conditions, high statistical performance is maintained.

Key Results and Performance

GAF was evaluated theoretically and empirically (using standard multiclass datasets like Vehicle, Shuttle, and Segmentation from LIBSVM).

Comparison of Regret and Complexity
  • Regret Bound: GAF achieves a regret of $O(dKB^2 + dK \log n)$. Unlike ONS, the dependence on the weight norm $B$ is polynomial rather than exponential. This is largely because GAF utilizes the actual Hessian rather than the outer product of gradients used by ONS.
  • Computational Complexity: The total complexity is reduced to $O(nK^3d^2 + K^2n^4)$. While $O(n^4)$ remains significant for very large datasets, it represents a monumental leap in efficiency over previous optimal-regret methods like Foster et al. (2018).
  • Empirical Stability: In experiments, GAF proved more stable than ONS. GAF's "hedging" strategy of aggregating multiple models makes it more robust, particularly in scenarios with scarce data or adversarial environments.

Limitations and Future Directions

While $O(n^4)$ is a massive theoretical improvement, it remains slower than the $O(n)$ complexity of simpler gradient methods like Online Gradient Descent (OGD). The authors note that in "favorable" (non-adversarial) cases, fewer samples are needed, which can accelerate the algorithm in practice.

Additionally, the regret bound contains a $B^2$ term, whereas some slower theoretical models achieve $\log B$. Closing this gap while maintaining or improving the $O(n^4)$ complexity is an open question. Finally, the authors suggest this quadratic surrogate approach could be extended to other loss functions (e.g., Huber loss) and kernel-based learning.

Summary updated

BibTeX
@inproceedings{jezequel2021mixability,
  author = {Rémi Jézéquel and Pierre Gaillard and Alessandro Rudi},
  title = {{Mixability made efficient: Fast online multiclass logistic regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=ejmqyWW0MK6},
}

Loading related content...

Figure