Abstract
High-dimensional time series prediction is needed in applications as diverse as demand forecasting and climatology. Often, such applications require methods that are both highly scalable, and deal with noisy data in terms of corruptions or missing values. Classical time series methods usually fall short of handling both these issues. In this paper, we propose to adapt matrix matrix completion approaches that have previously been successfully applied to large scale noisy data, but which fail to adequately model high-dimensional time series due to temporal dependencies. We present a novel temporal regularized matrix factorization (TRMF) framework which supports data-driven temporal dependency learning and enables forecasting ability to our new matrix factorization approach. TRMF is highly general, and subsumes many existing matrix factorization approaches for time series data. We make interesting connections to graph regularized matrix factorization methods in the context of learning the dependencies. Experiments on both real and synthetic data show that TRMF outperforms several existing approaches for common time series tasks.
Introduction
Modern time-series data—such as sensor readings from global climate networks or inventory levels for retail giants—is increasingly high-dimensional. Analyzing thousands of interdependent time series simultaneously presents two major challenges: scalability and missing values. Classical models like Autoregressive (AR) models or Kalman Filters suffer from high computational complexity ($O(n^4)$ to $O(n^6)$), making them impractical for large datasets. Furthermore, real-world data is often riddled with missing values due to sensor failures or stock-outs. While Matrix Factorization (MF) is effective for missing data imputation, it is "permutation invariant" and fails to capture the temporal order of observations.
The TRMF Framework
To address these limitations, we introduce the Temporal Regularized Matrix Factorization (TRMF) framework. TRMF integrates the scalability of matrix factorization with the predictive power of autoregressive models. The core idea is to decompose the data matrix $Y$ (where rows represent items and columns represent time) into two low-rank matrices: $F$ (spatial features) and $X$ (latent time embeddings).
Unlike standard MF, TRMF introduces a temporal regularizer for $X$ based on an AR model. This forces the model to learn latent embeddings that are linear combinations of their own past, effectively teaching the model about the "arrow of time." The dependency weights (parameters $\Theta$) are learned directly from the data, allowing for a flexible, data-driven approach to modeling temporal dynamics.
Temporal Dependencies and Signed Graphs
A key theoretical insight of TRMF is the connection between AR regularization and graph-based methods. We demonstrate that using an AR regularizer is mathematically equivalent to regularizing on a "weighted signed graph." While traditional graph-based MF typically uses positive weights for smoothing, TRMF can capture negative correlations between time points. This capability is essential for modeling complex oscillations and seasonal patterns.
Experimental Results
We evaluated TRMF on several large-scale datasets, including hourly electricity consumption, San Francisco freeway traffic, and retail sales data from Walmart. In the Walmart datasets, approximately 50% of the data was missing. TRMF-AR consistently outperformed traditional time-series models (AR, DLM) and standard matrix factorization variants.
Key findings include:
- Accuracy: TRMF achieved significantly lower Normalized RMSE (NRMSE) compared to SVD-based approaches on Traffic and Electricity data.
- Robustness: On the sparse Walmart datasets, TRMF was the only model capable of both imputing missing values and providing reliable 6-week-ahead forecasts.
- Scalability: TRMF successfully handled the Traffic dataset ($n=963$) where traditional R-DLM packages failed due to memory and computational constraints.
Conclusion
TRMF provides a scalable and robust framework for high-dimensional time series prediction with missing values. By embedding autoregressive dependencies into the latent space of matrix factorization, it bridges the gap between classical time-series analysis and modern large-scale data techniques. Future work includes exploring non-linear temporal regularizers and automating the selection of seasonal lags.
Summary updated