Introduction
Tensors—multi-dimensional arrays—are the standard mathematical structure for representing complex interactions, such as (user, product, time) in e-commerce or (patient, drug, clinic) in healthcare. However, most existing decomposition methods treat the underlying "factors" (the latent properties of objects) as static. In reality, these properties evolve: a user’s interests shift over time, and a patient’s health fluctuates.
Existing temporal models often rely on discrete time bins or require the entire dataset to be available at once. This creates two major hurdles: first, the computational cost of re-calculating decompositions from scratch is prohibitively expensive for high-speed data streams; second, privacy regulations and storage limits often forbid the long-term retention of raw historical data. The challenge lies in capturing continuous temporal evolution efficiently in a "one-pass" streaming setting.
The SFTL Framework
Streaming Factor Trajectory Learning (SFTL) is a novel Bayesian framework designed to learn continuous, time-varying factor trajectories from data streams without ever needing to re-process or store historical data. The framework is built on several key methodological pillars:
1. Gaussian Process (GP) Trajectories
Instead of learning a fixed vector for each object, SFTL assigns a GP prior to each factor. This allows the model to represent factors as continuous functions of time, capturing complex, non-linear dynamics and enabling the prediction of tensor values at any arbitrary timestamp, including those not seen during training.
2. The SDE Shortcut for Scalability
Standard GPs suffer from $O(N^3)$ complexity, which is unsuitable for streaming. SFTL utilizes spectral analysis to convert the GP into a Linear Time-Invariant Stochastic Differential Equation (LTI-SDE). This transformation turns the GP into a state-space model (a Gauss-Markov chain), reducing the complexity to $O(N)$—a critical requirement for real-time applications.
3. Conditional Expectation Propagation (CEP)
In tensor decomposition, factors from different modes are multiplied together, which "couples" them and breaks standard Kalman filters. SFTL employs the CEP framework to decouple these states, allowing for efficient, parallelized online updates.
4. Decoupled Smoothing
Because the estimation is decoupled, the model can run Rauch-Tung-Striebel (RTS) smoothing to refine the entire history of a trajectory. Crucially, this refinement occurs without ever revisiting the original raw data points, preserving the one-pass nature of the algorithm.
Experimental Evaluation
The model was evaluated on one synthetic dataset and four real-world temporal datasets, including workout logs (FitRecord), supercomputing center temperatures (ServerRoom), and air quality measurements (BeijingAir-2 & BeijingAir-3).
Key Results
- Accuracy: SFTL consistently outperformed state-of-the-art streaming algorithms, such as POST and BASS-Tucker, by a significant margin in both Root Mean Square Error (RMSE) and Mean Absolute Error (MAE).
- Efficiency: On the BeijingAir-2 dataset, SFTL demonstrated superior speed compared to competing continuous-time methods. For a rank of $R=7$, SFTL completed in 29–59 seconds, while the baseline BCTT took approximately 137 seconds.
- Uncertainty Quantification: The Bayesian nature of the model provides a posterior variance (often visualized as a "shaded region"). In simulations, the model correctly identified increased uncertainty at time points where trajectories overlapped, making them harder to distinguish.
- Automatic Redundancy Detection: Experiments revealed that if the model is provided with more factor trajectories than necessary, it naturally pushes the extra trajectories toward zero with high variance, suggesting an inherent capacity for automatic model selection.
Limitations and Future Work
While SFTL offers a robust solution for streaming decomposition, it is not without limitations. The model's performance is somewhat sensitive to the GP kernel's length-scale parameter, and while it scales linearly with the number of observations ($N$), it scales cubically with the rank ($R^3$). Additionally, while the current implementation focuses on Gaussian likelihoods for continuous data, future work could extend the framework to handle count (Poisson) or binary data.
Summary updated