Dynamic matrix factorization: A state space approach

John Z. Sun, Kush R. Varshney, Karthik Subbian

TL;DR

This paper introduces Collaborative Kalman Filtering (CKF), a principled framework that treats recommendation systems as a state-tracking problem. By combining Probabilistic Matrix Factorization (PMF) with linear dynamical systems, the authors create a model that can accurately follow and predict how user preferences evolve over time, significantly outperforming static models and heuristic temporal approaches.

What Problem Does This Paper Address?

Standard Matrix Factorization (MF)—the math behind the famous Netflix Prize—usually treats user preferences as static snapshots. However, in the real world, tastes change: a toddler grows into an adolescent, or a business client shifts from needing basic relationship management to technical expertise.

Existing attempts to add a "time" dimension to MF are often heuristic. For example, the popular TimeSVD model assumes preferences drift linearly from a central point, which is too rigid for complex, non-linear changes. The authors identify a gap: the need for a mathematically rigorous way to incorporate temporal trajectories into the recommendation process while handling the "noise" inherent in sparse user data.

Methods

The authors propose a Dynamic Matrix Factorization model based on a state-space approach. Here’s the breakdown:

  • The State Space Model: They treat user latent factors as "states" that evolve over time according to a linear transition process (controlled by a matrix $A$). Item factors are treated as the "measurement" process.
  • Collaborative Kalman Filtering (CKF): To estimate these shifting user states, they use the Kalman Filter and the Rauch-Tung-Striebel (RTS) smoother. This allows the system to "track" a user's position in the preference space even when observations are noisy or missing.
  • Learning via EM: Since the system parameters (like the transition matrix $A$ and noise variances) aren't known upfront, they use an Expectation-Maximization (EM) algorithm. The "E-step" uses the Kalman smoother to estimate user factors, and the "M-step" updates the model parameters to better fit the observed data.

Datasets

The paper primarily evaluates the model using generative (synthetic) data.

The authors explicitly chose synthetic data over common benchmarks like the Netflix dataset for two reasons:

  1. Ground Truth: Real-world datasets don't provide the "true" latent trajectory of a user, making it impossible to measure how well an algorithm actually tracks a preference path.
  2. Parameter Control: Generative data allowed them to test the algorithm across different regimes (varying noise levels and transition dynamics) to see exactly where the model succeeds or fails.

Key Insights and Ideas

  • Recommendation as Tracking: The most powerful idea here is reframing recommendation not as a static "matching" problem, but as a "target tracking" problem from control theory.
  • Collaboration via Shared Measurements: While each user has their own trajectory, the system is "collaborative" because all users share the same item factor matrix ($V$) in the measurement process.
  • Beyond Linear Drift: Unlike TimeSVD, which can only handle simple linear drift, the CKF approach can track complex trajectories (like an arc in factor space) because the state-space model is inherently designed for motion.
  • Principled Probabilistic Foundation: By building on PMF, the model naturally handles uncertainty and measurement noise through Gaussian priors, making it more robust than purely heuristic models.

Key Results

  • Superior Tracking: In simulations where user preferences followed an arc, CKF successfully tracked the evolution, while SVD and TimeSVD failed.
  • RMSE Performance: CKF achieved significantly lower Root Mean Square Error (RMSE) compared to SVD and TimeSVD on dynamic datasets.
  • Convergence: The EM algorithm proved robust, with variance parameters and process matrices typically stabilizing after just 10–20 iterations.
  • Failure of Baselines: The authors found that TimeSVD actually performed worse than static SVD in some dynamic scenarios because it tried to overfit an incorrect linear-drift model to non-linear data.

Limitations and Future Work

  • Linear-Gaussian Assumption: The current model assumes transitions and measurements are linear and Gaussian. The authors suggest that future versions could use Extended or Unscented Kalman Filters to handle non-linear dynamics.
  • Static Item Factors: The model assumes item factors (e.g., the "essence" of a movie) stay constant. In reality, items can also change (e.g., a brand's reputation evolving), which the current model doesn't capture.
  • Real-World Validation: While the synthetic results are compelling, the paper notes that testing on large-scale, real-world datasets is the necessary next step.
  • Control Signals: The authors propose an intriguing future direction: using the state-space model to include "control signals" that could help a system decide which items to recommend to steer a user toward certain high-value or sponsored content.

Summary updated

BibTeX
@inproceedings{sun2012dynamic,
  author = {John Z. Sun and Kush R. Varshney and Karthik Subbian},
  title = {{Dynamic matrix factorization: A state space approach}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2012},
  doi = {10.1109/icassp.2012.6288274},
}
Figure