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:
- 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.
- Wind Speed Prediction: A large-scale stream of 40,174 measurements from a Danish wind turbine.
- Statistical Arbitrage: A financial task involving daily adjusted closing prices for gold-related ETFs (GLD and GDX).
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%.
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