Online Agnostic Multiclass Boosting

Vinod Raman, Ambuj Tewari

Introduction

Boosting is a fundamental machine learning strategy that aggregates multiple "weak" rules of thumb to form a single, highly accurate "strong" predictor. While boosting is well-understood for binary classification in static environments, real-world applications often present a more complex set of challenges:

  1. Multiclass: Most practical problems, such as image recognition, involve categorizing data into more than two classes.
  2. Online: Data frequently arrives in a continuous stream, requiring models to update sequentially rather than training on a static batch.
  3. Agnostic: The "realizable" assumption—which posits that a perfect classifier exists within the chosen hypothesis class—is rarely true in practice. Algorithms must perform well relative to the best possible classifier, even if that optimal classifier still makes errors.

Previously, a significant gap existed in the literature: no efficient algorithm could handle all three of these conditions simultaneously. This paper introduces the first algorithm for online agnostic multiclass boosting, providing a framework that efficiently converts weak learners into a strong multiclass predictor, even when data is noisy or imperfectly modeled.

Methods: Reduction to Online Convex Optimization

The methodological core of this work is a novel reduction from boosting to Online Convex Optimization (OCO). By framing the complex problem of agnostic boosting as a game where the booster acts as an OCO player, researchers can leverage any standard OCO optimizer (such as Online Gradient Descent) to construct a functional booster.

The proposed booster maintains $N$ copies of a weak learner and operates iteratively. In each round, the process follows three main steps:

  • Prediction: The booster aggregates the votes from all weak learners, scales them by an "advantage" parameter $\gamma$, and applies an $L_2$ projection onto the probability simplex to formulate a final prediction.
  • Updating: Once the true label is revealed, the booster uses the chosen OCO algorithm to generate a loss function.
  • Randomized Relabeling: Instead of reweighting examples—a common technique in batch boosting—the booster "relabels" them. It samples a label from a distribution provided by the OCO algorithm and passes this new, potentially different label to the weak learners. This helps the weak learners correct the mistakes of the aggregate model.
Geometric illustration of the L2 projection operator onto the probability simplex.

A key technical highlight is the use of the $L_2$ projection operator. Unlike KL-divergence or $L_1$ projections, the authors demonstrate that the $L_2$ projection creates a natural "polarization effect." As weak learners become more confident, this projection concentrates probability mass on the labels that have the majority of votes, pushing the model toward a "winner-takes-all" state that is geometrically intuitive and theoretically sound for multiclass settings.

Furthermore, this OCO-based approach provides a unified framework. It is not limited to the online agnostic case; it can be adapted to three other major regimes: statistical agnostic, online realizable, and statistical realizable boosting.

Experiments and Results

The authors evaluated their algorithm on seven standard multiclass datasets from the UCI Machine Learning Repository, ranging from 3 to 28 classes (Balance, Cars, Landsat, Segment, Mice, Yeast, and Abalone).

Theoretical Guarantees: The authors prove a rigorous regret bound for their algorithm. When utilizing Online Gradient Descent as the OCO algorithm, the average regret vanishes at a rate of $O(1/(\gamma \sqrt{N}))$, where $N$ is the number of weak learners.

Empirical Performance: In head-to-head tests against state-of-the-art realizable boosters, the new agnostic algorithm demonstrated strong practical viability:

  • Accuracy: The agnostic algorithm achieved the highest accuracy on 3 out of the 7 datasets (Balance, Cars, Mice).
  • Efficiency: Unlike previous multiclass boosting attempts, this OCO-based approach scales linearly with the number of weak learners and classes. It proved significantly faster than the previous "optimal" multiclass booster (OnlineMBBM). For instance, on the 28-class Abalone dataset, the new algorithm ran in approximately 4,000 seconds compared to 9,700 seconds for the competitor, while maintaining comparable accuracy.

Limitations and Future Work

While this work establishes a strong foundation for online agnostic multiclass boosting, the authors identify several avenues for future research:

  • Dependence on the Number of Classes ($k$): The current error rates exhibit a sub-optimal dependence on the number of labels. While a better dependence might be achievable, some evidence suggests a penalty for a high number of labels may be unavoidable in the agnostic setting.
  • Weak Learning Conditions: A "canonical" weak learning condition for multiclass agnostic problems does not yet exist. The authors propose a "one-vs-one" approach, but exploring alternative definitions could yield tighter theoretical bounds.
  • Adaptivity: The current algorithm requires prior knowledge of the advantage parameter $\gamma$. Developing an adaptive version that dynamically learns the strength of the weak learners is a critical next step.
  • Bandit Feedback: The present work assumes a "full information" setting where the booster sees the true label after each prediction. Extending this framework to the "bandit" setting—where the booster only receives binary feedback on whether its prediction was correct—remains an open challenge.

Summary updated

BibTeX
@inproceedings{raman2022online,
  author = {Vinod Raman and Ambuj Tewari},
  title = {{Online Agnostic Multiclass Boosting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=wk5zDkuSHq},
}
Figure