Efficient improper learning for online logistic regression

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

Abstract

We consider the setting of online logistic regression and consider the regret with respect to the $\ell_2$-ball of radius $B$. It is known (see Hazan et al. (2014)) that any proper algorithm which has logarithmic regret in the number of samples (denoted $n$) necessarily suffers an exponential multiplicative constant in $B$. In this work, we design an efficient improper algorithm that avoids this exponential constant while preserving a logarithmic regret. Indeed, Foster et al. (2018) showed that the lower bound does not apply to improper algorithms and proposed a strategy based on exponential weights with prohibitive computational complexity. Our new algorithm based on regularized empirical risk minimization with surrogate losses satisfies a regret scaling as $O(B\log(Bn))$ with a per-round time-complexity of order $O(d^2 + \log(n))$.

The Challenge of Online Logistic Regression

In online logistic regression, a learner receives data points sequentially and must predict labels to minimize regret—the difference between the learner's cumulative loss and that of the best fixed model in hindsight. Traditionally, learners have been categorized into two types:

  1. Proper Learners: These algorithms must output a linear prediction function. They face a fundamental trade-off: achieving logarithmic regret requires suffering an error constant that grows exponentially with the weight size ($e^B$).
  2. Improper Learners: These algorithms are allowed to output non-linear predictions. Theoretically, they can bypass the exponential penalty, but until now, known improper algorithms were computationally prohibitive, often requiring complex MCMC sampling with per-round complexities as high as $O(n^{12})$.

AIOLI: Efficient Improper Learning

The authors introduce AIOLI (Algorithmic efficient Improper Online LogIstic regression), which bridges the gap between theoretical optimality and computational efficiency. AIOLI is built on two technical pillars:

  • Adaptive Curvature Surrogate Losses: Unlike standard algorithms that use fixed, pessimistic estimates of curvature, AIOLI uses a data-dependent curvature ($\eta_t$) that adapts based on prediction accuracy, preventing overreaction to "easy" data points.
  • Improper Regularization via Virtual Data: This "secret sauce" involves adding two virtual losses to the objective function—one for each possible label (+1 and -1)—before making a prediction. This stabilizes the prediction and makes it non-linear relative to the input.
Comparison of prediction functions: AIOLI's non-linear (improper) prediction vs. linear FTRL and the complex Foster et al. model.

Crucially, the authors demonstrate that finding the optimal parameters for this objective can be reduced to a 2D optimization problem, regardless of the original dimensionality $d$, making the algorithm nearly as fast as standard Online Newton Step (ONS).

Theoretical and Empirical Performance

AIOLI achieves a regret of $O(dB \log(Bn))$, representing a "doubly-exponential" improvement over proper learners. In terms of efficiency, it reduces the per-round time complexity to $O(d^2 + \log n)$, a massive leap from the previous state-of-the-art improper learner.

Comparison of regret and computational complexity across different algorithms, highlighting AIOLI's efficiency.

In simulations using synthetic adversarial distributions designed to force proper learners into exponential regret, AIOLI maintained logarithmic regret while standard Follow-The-Regularized-Leader (FTRL) suffered polynomial regret, confirming the theoretical advantages of the improper approach.

Discussion and Future Directions

While AIOLI provides a significant breakthrough, some limitations remain. The current framework is optimized for binary classification; extending the "virtual data" regularization to multi-class problems is a subject for future research. Additionally, while AIOLI can be used with Kernels, the complexity increases to $O(n^3)$. Future work may explore integrating Nyström projections or random features to maintain efficiency in non-parametric settings. Finally, developing high-probability bounds for improper procedures remains an open challenge, as current guarantees are provided in expectation.

Summary updated

BibTeX
@inproceedings{jezequel2020efficient,
  author = {Rémi Jézéquel and Pierre Gaillard and Alessandro Rudi},
  title = {{Efficient improper learning for online logistic regression}},
  booktitle = {Conference on Learning Theory},
  year = {2020},
  url = {https://openreview.net/forum?id=CA3Iddi586o},
}
Figure