A Bayesian Approach for Online Classifier Ensemble

Qinxun Bai, Henry Lam, Stan SclaroffarXiv 2015

Abstract

Online ensemble learning traditionally relies on optimization techniques such as Stochastic Gradient Descent (SGD) or Online Boosting. However, these methods often struggle with local minima and require sensitive hyperparameter tuning, particularly regarding learning rates. This paper introduces a unified theoretical framework that reframes online ensemble learning as a recursive Bayesian estimation problem. By treating loss functions as "likelihoods," the proposed method maintains a posterior distribution over ensemble weights, converging to global loss minimizers more robustly than gradient-based alternatives. Experimental results across 13 benchmark datasets demonstrate that this Bayesian approach achieves superior accuracy and faster convergence without the need for manual step-size tuning.

Introduction

In the field of machine learning, ensemble methods combine multiple "weak" classifiers to produce a single "strong" predictor. While batch (offline) ensemble learning is well-established, the online setting—where data arrives sequentially and must be processed one sample at a time—presents unique challenges.

Currently, the state-of-the-art for online ensembles involves Stochastic Gradient Descent (SGD) or variants of Online Boosting. These methods face two primary limitations:

  1. Local Minima: As local optimizers, gradient-based methods can become trapped in sub-optimal weight configurations.
  2. Hyperparameter Sensitivity: The performance of SGD is heavily dependent on the learning rate (step size). In an online environment, where the global properties of the data stream are unknown, tuning this parameter is notoriously difficult.

This paper addresses these issues by shifting the paradigm from optimization to Bayesian inference.

The Bayesian Recursive Ensemble Framework

The core innovation of this work is the Bayesian Recursive Ensemble. Instead of iteratively "stepping" toward a minimum, the algorithm maintains and updates a posterior distribution over the ensemble weights, denoted as $\lambda$.

The "Likelihood Artifact"

To bridge the gap between loss minimization and Bayesian estimation, the authors define a "likelihood" function based on the loss $\ell$: $$p(g|\lambda) = e^{-\ell(\lambda;g)}$$ Under this framework, Bayesian updating serves as a proxy for empirical loss minimization. As each new data point $(x_t, y_t)$ is observed, the algorithm updates the posterior distribution of the weights. The final weight used for prediction is the posterior mean.

Efficient Implementation

While Bayesian methods can be computationally intensive, the authors identify a specific configuration that allows for closed-form updates. By utilizing a natural loss function (the sum of weighted losses plus a logarithmic barrier to ensure positive weights), they pair a Gamma prior with an Exponential likelihood. This results in a computationally efficient update rule (Algorithm 2) that avoids the need for expensive numerical integration or sampling.

Theoretical Insights

The Bayesian approach offers several theoretical advantages over traditional SGD:

  • Global Optimization: By considering the entire distribution of weights rather than a single point estimate, the framework approximates the global empirical loss minimizer, providing greater robustness against the local minima that plague SGD.
  • Optimal Convergence: Statistical asymptotic theory (specifically the Laplace method) indicates that the posterior mean converges to the optimal weights at a rate of $O(1/\sqrt{T})$. While SGD can theoretically match this rate, it only does so with a perfectly tuned learning rate. The Bayesian framework achieves this optimal convergence naturally, without a-priori tuning.

Experimental Evaluation

The authors evaluated the proposed method against several baselines, including SGD, Polyak averaging, and Stochastic Average Gradient (SAG), as well as leading online boosting algorithms like GradientBoost, Smooth-Boost, and OzaBoost.

Methodology

  • Datasets: 13 binary classification benchmarks from the LIBSVM repository, ranging from small-scale (e.g., Heart, Diabetes, Ionosphere) to large-scale (e.g., Adult, Cod-RNA, Covertype).
  • Base Learners: The framework was tested using two types of weak classifiers: Perceptrons and Naive Bayes.

Key Results

  • Superior Accuracy: The Bayesian method consistently achieved the highest performance across nearly all testing sequences. It particularly excelled when using Perceptrons as base learners.
  • Stability and Speed: Experimental error curves demonstrated that the Bayesian approach converges faster and more smoothly than SGD variants. This confirms the theoretical claim that the method effectively bypasses the volatility associated with manual learning rate selection.

Limitations and Future Directions

Despite its advantages, the current framework operates under the assumption of stationarity, meaning the underlying data distribution is assumed to be constant over time. In many real-world applications, data streams are subject to concept drift, where the relationship between features and labels changes.

Future work will focus on extending this Bayesian framework to non-stationary environments. Additionally, while the current implementation relies on specific conjugate priors for efficiency, exploring more complex loss functions through advanced numerical techniques remains an open area of research.

Summary updated

BibTeX
@misc{bai2015bayesian,
  author = {Qinxun Bai and Henry Lam and Stan Sclaroff},
  title = {{A Bayesian Approach for Online Classifier Ensemble}},
  year = {2015},
  eprint = {1507.02011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.02011},
}
Figure