Time-Aware Tensor Decomposition for Sparse Tensors

Dawon Ahn, Jun-Gi Jang, U Kang

TL;DR

Researchers have developed TATD (Time-Aware Tensor Decomposition), a new method for factorizing sparse, time-evolving data. By combining Gaussian kernel smoothing with a penalty that adjusts based on how much data is missing in a specific time slice, TATD captures temporal trends more accurately than traditional models, achieving state-of-the-art results in predicting missing values across environmental and traffic datasets.

What Problem Does This Paper Address?

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.

The authors identify two major gaps in existing decomposition methods like CP (CANDECOMP/PARAFAC):

  1. Ignoring Temporal Continuity: Standard models treat time steps as independent entities. In reality, what happens at 10:00 AM is usually very similar to what happened at 9:59 AM and what will happen at 10:01 AM.
  2. Uniform Regularization: Most models apply the same "penalty" to every time slice. However, a time slice with only two data points is much noisier and less reliable than one with a hundred. Failing to account for this "time-varying sparsity" leads to poor latent factor discovery.

Methods

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 "look-around" approach captures smoother, more realistic temporal trends.
  • Time-Dependent Sparsity Penalty: This is the paper's "secret sauce." The model calculates the density of each time slice. If a slice is very sparse, the model increases the weight of the smoothing regularization, essentially telling the algorithm: "We don't have much data here, so trust the neighbors more."
  • Hybrid Optimization (ALS + Adam): Because the new temporal constraints make the math complex, the authors couldn't use standard Alternating Least Squares (ALS) for everything. Instead, they use a hybrid approach: they update non-time factors using the efficient, analytical ALS method, but update the time factor using the Adam optimizer, a popular gradient-based tool in deep learning.

Datasets

The authors evaluated TATD on five diverse, real-world datasets:

  • Beijing & Madrid Air Quality: 3-mode tensors tracking pollutants across various locations and hours/days.
  • Radar Traffic: 3-mode tensor of traffic volumes in Austin, Texas.
  • Indoor Condition: 3-mode tensor of humidity and temperature readings.
  • Server Room: A 4-mode tensor (time, AC setup, power usage, location) recording temperatures.
  • Synthetic Data: A custom-built tensor used to measure how closely the model could recover "ground truth" latent factors.

Key Insights and Ideas

  • The "Aha!" of Bi-directional Context: Most temporal models are "causal" (past affects future). TATD recognizes that for factorization and imputation, the future provides just as much context about the present as the past does.
  • Sparsity as a Weighting Factor: Instead of viewing missing data as a hurdle, TATD uses the amount of missing data as a signal to decide how much to rely on global trends versus local observations.
  • Stability at High Rank: One surprising finding was that while standard CP-ALS becomes unstable or overfits as you increase the "rank" (the number of latent patterns), TATD actually improves. The smoothing regularization acts as a guardrail, allowing the model to discover finer-grained patterns without spiraling into noise.

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 in data.
  • 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.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Batch Processing: Currently, TATD is designed for "offline" analysis where the entire tensor is available. It isn't yet optimized for real-time streaming data.
  • Scalability: While the hybrid optimization is effective, the authors suggest that future versions could be adapted for distributed computing environments (like Spark or MapReduce) to handle even larger "Big Data" tensors.
  • Kernel Selection: While the Gaussian kernel worked best here, the authors note that other weight functions could potentially be swapped in for specific types of periodic data (like seasonal cycles).

Summary updated

BibTeX
@inproceedings{ahn2021time,
  author = {Dawon Ahn and Jun-Gi Jang and U Kang},
  title = {{Time-Aware Tensor Decomposition for Sparse Tensors}},
  booktitle = {DSAA},
  year = {2021},
  doi = {10.1109/dsaa53316.2021.9564142},
}

Loading related content...

Figure