Temporal Link Prediction Using Matrix and Tensor Factorizations

Daniel M. Dunlavy, Tamara G. Kolda, Evrim Acar

In the world of social networks, e-commerce, and academic publishing, the "who-knows-who" or "who-buys-what" structure is constantly shifting. Predicting these future connections—known as temporal link prediction—is a cornerstone of modern recommendation engines and network analysis.

In their paper, "Temporal Link Prediction using Matrix and Tensor Factorizations," researchers Daniel M. Dunlavy, Tamara G. Kolda, and Evrim Acar tackle the challenge of predicting links in bipartite graphs (networks with two distinct types of nodes, like authors and conferences) that evolve over time.

TL;DR

The authors demonstrate that while traditional matrix-based methods like the Katz measure can be adapted and scaled for temporal link prediction, tensor-based methods (CP decomposition) offer a powerful advantage: they can capture and forecast periodic patterns (like weekly or yearly cycles) that matrix methods simply "collapse" away.

What Problem Does This Paper Address?

Most link prediction research focuses on "missing links"—filling in the gaps of a static snapshot. This paper shifts the focus to temporal prediction: given data from times $1$ through $T$, can we predict what happens at $T+1$? Or even $T+L$?

The challenge is twofold:

  1. Scaling: High-performing algorithms like the Katz measure involve matrix inversions that are computationally prohibitive for large datasets.
  2. Temporal Nuance: Simple methods often "collapse" time by summing up all past interactions into a single matrix. This loses the "rhythm" of the data—for example, knowing that a conference happens every two years or that certain users only log in on weekends.

Methods

The authors compare two main families of techniques:

1. Matrix Techniques (The "Collapse" Approach)

To use standard matrix tools, you first have to turn a 3D "data cube" (Author x Conference x Time) into a 2D matrix.

  • Collapsed Weighted Tensor (CWT): Instead of just summing all years equally, the authors use an exponential decay function to give more weight to recent data.
  • Truncated Katz (TKatz): The Katz measure counts paths between nodes, but it's slow. The authors derive a novel, scalable version for bipartite graphs using Truncated Singular Value Decomposition (TSVD). This turns a massive matrix inversion into a much faster low-rank approximation.

2. Tensor Techniques (The "Multi-way" Approach)

Instead of collapsing time, they use CANDECOMP/PARAFAC (CP) decomposition. This treats time as its own dimension, extracting "temporal signatures." * Heuristic Scoring: Averaging the activity of the most recent time steps. * Temporal Forecasting: Using the Holt-Winters method on the tensor's time components to predict future activity levels, which is particularly effective for periodic data.

Datasets

  • DBLP Bibliometric Data: A real-world dataset of authors publishing in computer science conferences from 1991 to 2007. This is a sparse, evolving bipartite graph.
  • Simulated Periodic Data: A synthetic dataset designed to mimic users accessing services with specific weekly patterns (e.g., "weekday workers" vs. "weekend gamers"). This allowed the authors to test how well models handle noise and varying periodicities.

Key Insights and Ideas

  • Recency is King: In the DBLP data, the "Weighted" (CWT) versions of algorithms consistently outperformed their unweighted counterparts. In evolving networks, what happened last year is a much better predictor than what happened a decade ago.
  • The Scalability Hack: The derivation of TKatz is a major "aha" moment. By showing that the Katz score can be computed directly from the SVD of the adjacency matrix, the authors provide a way to use one of the best link predictors in the field on a much larger scale.
  • Tensors as Noise Filters: Tensors proved remarkably robust. In simulations where 50% of the strongest links were randomly swapped (high noise), the CP model could still recover the underlying periodic signal and predict links with high accuracy.

Key Results

  • Top Performer: On the DBLP dataset, Katz-CWT achieved the best overall performance (AUC of ~0.95).
  • Predicting the "New": Predicting "New Links" (links never seen in the training data) is much harder. Here, TKatz-CWT and TSVD-CWT were the leaders, with AUCs around 0.91.
  • The Tensor Edge: While matrix methods were faster (seconds vs. minutes), the tensor-based CP method was the only one capable of accurately predicting multiple steps into the future for periodic data. In the simulated service-access test, CP achieved an AUC of 0.845 compared to just 0.686 for a "Last Period" baseline.

Limitations and Future Work

The primary limitation is computational cost. The CP tensor decomposition took significantly longer to compute (1300 seconds) than the matrix methods (~70 seconds). The authors note that while tensor software is improving, it remains a heavier lift.

Future directions suggested include exploring different forecasting methods beyond Holt-Winters and investigating whether other tensor models (like Tucker decomposition) could be adapted for link prediction despite their "rotational freedom" issues.

Reference: Dunlavy, D. M., Kolda, T. G., & Acar, E. (2010). Temporal Link Prediction using Matrix and Tensor Factorizations. arXiv:1005.4006v2.

Summary updated

BibTeX
@article{dunlavy2011temporal,
  author = {Daniel M. Dunlavy and Tamara G. Kolda and Evrim Acar},
  title = {{Temporal Link Prediction Using Matrix and Tensor Factorizations}},
  journal = {ACM Trans. Knowl. Discov. Data},
  year = {2011},
  doi = {10.1145/1921632.1921636},
}
Figure