Abstract
Given a time-evolving tensor with missing entries, how can we effectively factorize it for precisely predicting the missing entries? Tensor factorization has been extensively utilized for analyzing various multi-dimensional real-world data. However, existing models for tensor factorization have disregarded the temporal property for tensor factorization while most real-world data are closely related to time. Moreover, they do not address accuracy degradation due to the sparsity of time slices. The essential problems of how to exploit the temporal property for tensor decomposition and consider the sparsity of time slices remain unresolved. In this paper, we propose TATD (Time-Aware Tensor Decomposition), a novel tensor decomposition method for real-world temporal tensors. TATD is designed to exploit temporal dependency and time-varying sparsity of real-world temporal tensors. We propose a new smoothing regularization with Gaussian kernel for modeling time dependency. Moreover, we improve the performance of TATD by considering time-varying sparsity. We design an alternating optimization scheme suitable for temporal tensor factorization with our smoothing regularization. Extensive experiments show that TATD provides the state-of-the-art accuracy for decomposing temporal tensors.
1. Introduction
Tensors are multi-dimensional arrays that capture complex relationships in data, such as (user, item, time) or (location, pollutant, hour). In many real-world scenarios, these tensors are highly sparse due to sensor failures, missing ratings, or data loss. Predicting these missing entries is a critical task in machine learning and data mining.
Standard tensor factorization methods, such as CP (CANDECOMP/PARAFAC) decomposition, decompose a large tensor into a set of factor matrices. However, these methods typically treat time as a discrete, independent dimension, failing to account for the continuous nature of temporal processes.
2. Challenges in Temporal Tensor Factorization
Existing approaches to temporal tensor factorization often suffer from two main limitations:
- Temporal Blindness: Most models ignore the inherent dependency between adjacent time steps. While some use autoregressive components, they often fail to utilize "future" context relative to a missing entry, which is available in many offline prediction tasks.
- The Sparsity Trap: Real-world data density is rarely uniform. Standard models often lose accuracy when dealing with extremely sparse time slices, as they lack a mechanism to borrow strength from neighboring, denser time periods.
3. Proposed Method: TATD
To address these challenges, we introduce Time-Aware Tensor Decomposition (TATD). TATD incorporates two key innovations into the tensor factorization framework:
3.1 Kernel Smoothing Regularization
TATD utilizes a Gaussian kernel to model temporal dependencies. This regularization term forces the latent factor vector at any given time $t$ to remain close to a weighted average of its neighbors in both the past and the future. This bidirectional context ensures that the model captures smooth, continuous temporal trends rather than fitting to local noise.
3.2 Time-Dependent Sparsity Penalty
A core contribution of TATD is its ability to adapt to varying data density. The model automatically scales the strength of the temporal smoothing based on the number of observed entries in a specific time slice. For sparse slices, the model relies more heavily on the temporal neighbors; for dense slices, it trusts the observed data more. This prevents overfitting in sparse regions and maintains high fidelity in dense ones.
3.3 Hybrid Optimization Scheme
The addition of complex smoothing terms necessitates a specialized optimization approach. TATD employs an alternating scheme that uses efficient analytical solutions for non-temporal dimensions and the Adam optimizer specifically for the time-dependent factor matrix.
4. Experimental Evaluation
TATD was evaluated against state-of-the-art methods (e.g., TRMF, NTF) on five diverse real-world datasets, including air quality measurements from Beijing and Madrid, and traffic data from Austin.
- Superior Accuracy: TATD achieved up to a 7.01× lower RMSE and 5.50× lower MAE compared to the best-performing baseline models.
- Robustness to Sparsity: Experiments with varying levels of missing data showed that TATD's performance advantage becomes even more pronounced as the tensor becomes sparser.
- Stability at High Rank: TATD maintains stability and high accuracy even as the decomposition rank increases, whereas competing models often begin to overfit.
5. Conclusion
TATD represents a significant advancement in temporal tensor factorization. By explicitly modeling bidirectional temporal dependencies and adapting to time-varying sparsity, it provides a robust and highly accurate framework for missing entry prediction. Future research will explore adaptive smoothing windows and the extension of TATD to online, streaming data environments.
Summary updated