Abstract
Given a sparse time-evolving tensor, how can we effectively factorize it to accurately discover latent patterns? Tensor decomposition has been extensively utilized for analyzing various multi-dimensional real-world data. However, existing tensor decomposition models have disregarded the temporal property for tensor decomposition 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 time-aware tensor decomposition (TATD), an accurate tensor decomposition method for sparse temporal tensors. TATD is designed to exploit time 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 decomposition with our smoothing regularization. Extensive experiments show that TATD provides the state-of-the-art accuracy for decomposing temporal tensors.
Introduction
Tensors (multi-dimensional arrays) are the gold standard for modeling complex relationships, such as (time, location, pollutant). However, real-world temporal tensors are often "holey"—they are incredibly sparse due to sensor failures or intermittent collection. Standard decomposition methods like CP (CANDECOMP/PARAFAC) often struggle with these datasets because they fail to account for the inherent structure of time.
The authors identify two major gaps in existing decomposition methods:
- Ignoring Temporal Continuity: Standard models treat time steps as independent entities. In reality, temporal data usually exhibits continuity; observations at adjacent time steps are typically similar.
- Uniform Regularization: Most models apply the same penalty to every time slice. However, a time slice with very few data points is much noisier and less reliable than a dense one. Failing to account for this "time-varying sparsity" leads to poor latent factor discovery.
Methodology: The TATD Framework
TATD introduces a specialized objective function designed to "smooth" the time dimension while respecting the density of the data.
Smoothing Regularization with Gaussian Kernels
Unlike previous models that only look at the past (autoregressive), TATD uses a Gaussian kernel to ensure a time factor is similar to its neighbors in both the past and the future. This bi-directional "look-around" approach captures smoother, more realistic temporal trends, which is particularly useful for imputation tasks where the future provides context for the present.
Time-Dependent Sparsity Penalty
A key innovation of TATD is its handling of sparsity. The model calculates the density of each time slice. If a slice is very sparse, the model increases the weight of the smoothing regularization. This essentially instructs the algorithm to rely more on neighboring time steps when local data is insufficient or noisy.
Hybrid Optimization (ALS + Adam)
Because the new temporal constraints introduce complexity that standard Alternating Least Squares (ALS) cannot handle analytically, the authors developed a hybrid approach. They update non-time factors using efficient ALS, while updating the time factor using the Adam optimizer, a robust gradient-based tool commonly used in deep learning.
Experimental Evaluation
The authors evaluated TATD on five diverse, real-world datasets, including air quality data from Beijing and Madrid, traffic volumes in Austin, and indoor environmental readings.
Key Results
TATD consistently outperformed competitors like CP-ALS, TRTF, and CoSTCo across all datasets:
- Accuracy: TATD achieved up to 1.08x lower RMSE and 1.37x lower MAE compared to the next-best methods.
- Factor Recovery: On synthetic data, TATD achieved a Factor Match Score (FMS) of 0.964, vastly outperforming CP-ALS (0.603), proving it is much better at finding the "true" underlying patterns.
- Robustness: The model maintained high accuracy even when 90% of the data was removed, thanks to its ability to "borrow" information from adjacent time steps.
Conclusion
TATD addresses critical weaknesses in traditional tensor decomposition by explicitly modeling temporal continuity and time-varying sparsity. By leveraging Gaussian kernel smoothing and a density-aware penalty, it provides a more robust framework for analyzing "holey" real-world data. Future work may involve adapting TATD for real-time streaming data and exploring its scalability in distributed computing environments.
Summary updated