Abstract
In this paper we introduce a novel online time series forecasting model we refer to as the pM-GP filter. We show that our model is equivalent to Gaussian process regression, with the advantage that both online forecasting and online learning of the hyper-parameters have a constant (rather than cubic) time complexity and a constant (rather than squared) memory requirement in the number of observations, without resorting to approximations. Moreover, the proposed model is expressive in that the family of covariance functions of the implied latent process, namely the spectral Matérn kernels, have recently been proven to be capable of approximating arbitrarily well any translation-invariant covariance function. The benefit of our approach compared to competing models is demonstrated using experiments on several real-life datasets.
Introduction
Time series forecasting often presents a fundamental trade-off between model expressivity and computational scalability. Gaussian Processes (GPs) represent the state-of-the-art for nonparametric Bayesian modeling due to their ability to learn complex patterns directly from data. However, their standard implementation suffers from a cubic computational cost ($O(N^3)$) relative to the number of observations, rendering them impractical for high-throughput streaming data. Conversely, State Space Models like the Kalman Filter offer constant-time updates ($O(1)$) but typically rely on manually specified dynamics that may fail to capture the rich stationary covariance structures inherent in GPs.
This work introduces the pM-GP filter, a state-space model that bridges this gap. It provides the full expressive power of Gaussian Process Regression with the computational efficiency of a Kalman Filter, enabling exact Bayesian nonparametric forecasting for infinite data streams.
Methods
The pM-GP filter's efficiency stems from the integration of p-Markov Gaussian Processes with Spectral Matérn Kernels.
The pM-GP Filter and Spectral Matérn Kernels
A GP is defined as "p-Markov" if its state at any given time depends only on its current value and its first $p$ derivatives. The authors demonstrate that this property holds if and only if the spectral density of the GP takes a specific rational form. By utilizing Spectral Matérn Kernels—a family proven to be dense in the space of all stationary kernels—the model can approximate any translation-invariant covariance function with arbitrary precision.
Exact State-Space Representation and Online Learning
Unlike "Sparse GP" methods that rely on data approximations, the pM-GP filter provides an exact representation of a GP under the chosen kernel family. This allows for the derivation of a Linear Gaussian State Space Model (LGSSM), enabling the use of standard Kalman filtering equations for $O(1)$ forecasting.
To handle hyperparameter tuning in a streaming context, the authors propose a Passive-Aggressive (PA) update scheme. This treats hyperparameter optimization as a convex problem with a closed-form solution, allowing the model to adapt to data patterns on the fly without revisiting historical observations.
Experimental Evaluation
The model was evaluated on two benchmark datasets: the Mauna Loa CO2 dataset (characterized by strong trends and seasonality) and the Airline Passengers dataset (featuring non-stationary growth and periodic fluctuations).
Key Results
The pM-GP filter demonstrated superior accuracy and efficiency compared to traditional online baselines. On the CO2 dataset, it achieved a Normalized Mean Absolute Error (NMAE) of 0.52, significantly lower than Autoregressive (AR) models using PA (0.77) or Bayesian Linear Regression (1.31).
The experiments confirmed that the model maintains constant time and memory requirements. Furthermore, sensitivity analysis showed the model is robust to the choice of the "aggressiveness" parameter ($c$), simplifying practical deployment.
Conclusion
The pM-GP filter offers a scalable solution for exact Bayesian nonparametric forecasting. While currently assuming trend-stationarity and Gaussian noise, it provides a rigorous framework for streaming applications. Future research may explore the integration of heavy-tailed noise models for outlier robustness and the extension of the framework to multivariate time series to capture inter-sensor correlations online.
Summary updated