Abstract
Traditional matrix factorization (MF) techniques often assume data points are independent and identically distributed, failing to capture the inherent temporal dynamics of real-world time-series. We present Probabilistic Sequential Matrix Factorization (PSMF), a framework that treats MF as a nonlinear Gaussian state-space model. By utilizing an Extended Kalman Filter (EKF) approach and a Kronecker covariance structure for the dictionary, PSMF provides a computationally efficient, recursive method for online data decomposition. Our results across diverse datasets—including air quality and financial indices—demonstrate that PSMF significantly improves missing data imputation and uncertainty quantification compared to state-of-the-art offline and online methods.
Introduction
Matrix Factorization (MF) is a fundamental tool for latent structure discovery, typically expressed as $Y \approx CX$. However, standard methods like SVD or NMF treat observations as i.i.d., ignoring the temporal correlations present in sensor networks or financial markets. While "online" MF variants exist, they often rely on point estimates (Maximum Likelihood), which lack uncertainty quantification and are prone to overfitting. PSMF addresses these gaps by explicitly modeling the evolution of latent coefficients over time within a fully probabilistic framework.
Methodology
PSMF frames the decomposition problem as a Nonlinear Gaussian State-Space Model (SSM). The model consists of two primary components:
- Dictionary Modeling: A matrix-variate Gaussian prior is placed on the dictionary $C$. To maintain efficiency, a Kronecker covariance structure is employed, allowing for analytical posterior updates.
- Coefficient Dynamics: The latent coefficients $x_k$ follow a Markovian transition $x_k = f_\theta(x_{k-1}) + q_k$. This allows the model to learn specific temporal patterns, such as periodicities or trends.
Inference is performed using an Extended Kalman Filter (EKF), which linearizes the nonlinear dynamics at each step to maintain a recursive, single-pass update. A robust variant, rPSMF, incorporates Student-t noise distributions to handle outliers and model misspecification.
Experimental Results
The performance of PSMF was evaluated on several high-dimensional datasets, including Beijing and London air quality metrics, the UCI Gas Sensor dataset, and S&P500 stock prices.
Missing Data Imputation
In scenarios with 30% missing data, PSMF and its robust counterpart (rPSMF) consistently outperformed both online and offline baselines. As shown in the table below, PSMF achieved the lowest Root Mean Square Error (RMSE) across most datasets. For instance, on the $NO_2$ dataset, PSMF reached an RMSE of 5.72, significantly better than the offline Bayesian Probabilistic Matrix Factorization (BPMF) at 9.22.
Uncertainty and Robustness
Beyond point estimates, PSMF provides $2\sigma$ uncertainty intervals. The robust version (rPSMF) achieved up to 89% coverage of missing values within these intervals, whereas standard MLE-based sequential MF methods only achieved 43-56% coverage. Furthermore, by integrating a Gaussian Process subspace, PSMF improved multivariate changepoint detection accuracy to 85-95%.
Discussion and Future Work
PSMF offers a powerful bridge between state-space modeling and matrix factorization. Its recursive nature makes it ideal for streaming applications. While parameter convergence in general nonlinear SSMs remains a theoretical challenge, the empirical success of PSMF suggests it is a robust choice for dynamic data decomposition. Future research will explore switching state-space models to handle abrupt regime changes and the use of Ensemble Kalman Filters for even higher-dimensional systems.
Summary updated