A Variational Bayesian State-Space Approach to Online Passive-Aggressive Regression

Arnold Salas, Stephen Roberts, Michael A. OsbornearXiv 2015 · DOI

Abstract

Online Passive-Aggressive (PA) learning is a robust class of margin-based algorithms for real-time prediction. However, traditional PA methods are deterministic point-estimators that lack uncertainty quantification and are highly sensitive to hyperparameter selection. This paper introduces BYPASS, a novel Bayesian state-space framework for PA regression. By employing a "Genuinely Online Variational Inference" (GOVI) scheme, BYPASS provides probabilistic predictions and automatic hyperparameter tuning. Experiments on real-world datasets demonstrate that our approach significantly outperforms standard linear Gaussian state-space models.

Introduction

In the era of big data, online learning is critical for processing non-stationary streams where data cannot be stored or re-processed. Passive-Aggressive (PA) algorithms are favored for their efficiency: they remain "passive" when predictions are within a predefined margin $\epsilon$ and become "aggressive" only when errors exceed this threshold.

Despite their popularity, PA algorithms suffer from two primary limitations. First, they provide only point predictions, offering no measure of confidence—a critical requirement in domains like finance or infrastructure monitoring. Second, their performance depends heavily on manually tuned hyperparameters (aggressiveness $C$ and margin $\epsilon$), which is impractical for evolving data streams.

The BYPASS Framework

We bridge the gap between margin-based learning and Bayesian inference by reinterpreting PA regression as a Linear Gaussian State-Space Model (LGSSM).

Continuous Mixture of Gaussians

To incorporate the $\epsilon$-insensitive loss characteristic of PA learning into a probabilistic framework, we represent the noise as a Continuous Mixture of Gaussians (CMoG). This allows the weight vector to be treated as a hidden state that evolves dynamically over time. We demonstrate that the standard deterministic PA update is actually a Maximum A Posteriori (MAP) estimate within this specific state-space formulation.

Genuinely Online Variational Inference (GOVI)

Standard Variational Bayes (VB) typically requires multiple iterations over a dataset, making it unsuitable for streaming applications. We propose GOVI, a single-pass inference scheme. GOVI maintains efficiency by utilizing the posterior distribution from time $t-1$ as the prior for time $t$, enabling real-time updates without sacrificing the benefits of Bayesian uncertainty.

ADA-BYPASS: Self-Tuning Hyperparameters

To address hyperparameter sensitivity, we introduce ADA-BYPASS. This variant applies PA logic to the model's own parameters. By using the negative log-likelihood of the model as a loss function, ADA-BYPASS "learns how to learn," updating its aggressiveness and margin settings online based on recent performance.

Experimental Evaluation

We evaluated ADA-BYPASS against a standard Sequential Kalman Filter (SKF) across three real-world scenarios:

  1. Nile River Levels: A historical dataset (AD 622–1284) used to test adaptation to sudden physical changes, such as the installation of new measuring devices.
  2. Wind Speed Prediction: A large-scale stream of 40,174 measurements from a Danish wind turbine.
  3. Statistical Arbitrage: A financial task involving daily adjusted closing prices for gold-related ETFs (GLD and GDX).
Probabilistic predictions on the Nile River dataset. The shaded area represents the model's uncertainty estimates, while diamonds represent historical water level measurements.

Key Results

Across all datasets, ADA-BYPASS consistently outperformed the SKF baseline in both accuracy and probabilistic fit.

  • Accuracy and Likelihood: On the Nile dataset, ADA-BYPASS reduced the Root Mean Squared Error (RMSE) from 0.85 to 0.72 and significantly improved the Predictive Log-Likelihood (LL). Similar gains were observed in the wind speed data, where ADA-BYPASS achieved an RMSE of 0.6 m/s compared to 0.64 m/s for the SKF.
  • Financial Impact: In the statistical arbitrage experiment, the benefits of probabilistic modeling were most evident. ADA-BYPASS achieved a Sharpe ratio of 1.12, nearly doubling the SKF's 0.7. Furthermore, it maintained a much safer risk profile, with a maximum drawdown of only 14.61% compared to the SKF's 73.05%.
Performance comparison in a statistical arbitrage task. ADA-BYPASS shows significantly higher risk-adjusted returns (Sharpe ratio) and lower risk (Maximum drawdown) than the standard SKF.

Conclusion

BYPASS transforms Passive-Aggressive regression from a heuristic-based algorithm into a rigorous probabilistic framework. By enabling automatic hyperparameter tuning and uncertainty quantification through GOVI, we provide a tool that is both more accurate and more reliable for high-stakes online prediction tasks. Future work will explore extending this "genuinely online" approach to high-dimensional classification and multi-task learning environments.

Summary updated

Abstract

Online Passive-Aggressive (PA) learning is a class of online margin-based algorithms suitable for a wide range of real-time prediction tasks, including classification and regression. PA algorithms are formulated in terms of deterministic point-estimation problems governed by a set of user-defined hyperparameters: the approach fails to capture model/prediction uncertainty and makes their performance highly sensitive to hyperparameter configurations. In this paper, we introduce a novel PA learning framework for regression that overcomes the above limitations. We contribute a Bayesian state-space interpretation of PA regression, along with a novel online variational inference scheme, that not only produces probabilistic predictions, but also offers the benefit of automatic hyperparameter tuning. Experiments with various real-world data sets show that our approach performs significantly better than a more standard, linear Gaussian state-space model.
BibTeX
@misc{salas2015variational,
  author = {Arnold Salas and Stephen Roberts and Michael A. Osborne},
  title = {{A Variational Bayesian State-Space Approach to Online Passive-Aggressive Regression}},
  year = {2015},
  eprint = {1509.02438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.02438},
}
Figure