Generative temporal link prediction via self-tokenized sequence modeling

Yue Wang, Chenwei Zhang, Shen Wang, Philip S. Yu, Lu Bai, Lixin Cui, Guandong Xu

TL;DR

This paper introduces Generative Link Sequence Modeling (GLSM), a framework that treats evolving networks like a language. By using a novel "self-tokenization" mechanism to group nodes into communities, the model transforms raw link streams into predictable sequences, outperforming state-of-the-art methods by 2–10% in prediction accuracy (AUC).

What Problem Does This Paper Address?

Link prediction—predicting whether two nodes in a network will connect—is a cornerstone of recommendation systems and social network analysis. However, most existing methods suffer from two major flaws:

  1. Ignoring Chronology: Traditional "discriminative" models look at a snapshot of a graph and ask, "Is this link likely?" They ignore the specific order in which links appear, missing out on the underlying "rhythm" or dynamics of the network’s growth.
  2. The Sparsity Trap: If you try to use a Recurrent Neural Network (RNN) to predict the next link between specific nodes, the "vocabulary" (all possible pairs of nodes) becomes astronomically large ($N^2$). This leads to extreme overfitting, as the model tries to memorize specific node pairs rather than learning general patterns of how the network evolves.

The authors aim to bridge the gap between Natural Language Processing (NLP) sequence modeling and graph mining to capture these temporal dynamics without falling into the overfitting trap.

Methods

The core of the paper is the GLSM framework, which consists of two main innovations:

1. Self-tokenization Mechanism

To solve the sparsity problem, the authors don't predict links between specific nodes directly. Instead, they use a differentiable clustering process to group nodes into $K$ communities.

  • A raw link between node $u$ and node $v$ is transformed into an abstract token representing a "community-to-community" interaction.
  • The loss function is a hybrid: it minimizes both the sequence prediction error (cross-entropy) and the clustering distance. This ensures that the communities are optimized specifically to make the link sequence more predictable.

Once the model (an LSTM-based RNN) is trained, it generates future links in two stages:

  • Step 1 (Macro): The RNN predicts the probability distribution of the next "community-to-community" token and samples one.
  • Step 2 (Micro): Within the chosen communities, the model samples specific "node-to-node" links based on latent node embeddings. This "prunes" the search space significantly, making the generative process efficient.

Datasets

The authors evaluated GLSM on five diverse real-world temporal datasets:

  • CollegeMsg: An online social network at UC Irvine.
  • Movielens: A classic movie recommendation dataset (treated here as an evolving bipartite graph).
  • Bitcoin: A trust network of people trading Bitcoin.
  • AskUbuntu: Interaction data from the Stack Exchange site.
  • Epinions: A consumer review/trust network.

All datasets were preprocessed to maintain strict chronological order, simulating a real-world scenario where you only know the past and must predict the future.

Key Insights and Ideas

  • Networks have "Grammar": By analogizing link formation to language, the authors suggest that network growth isn't random; it follows structural "sentences" that can be learned.
  • Abstraction is Generalization: The "aha moment" here is that by moving from specific nodes to community tokens, the model learns the motifs of growth (e.g., "users in community A often follow users in community B"). This abstraction prevents the model from getting lost in the noise of individual node identities.
  • Joint Optimization: Unlike methods that cluster nodes as a preprocessing step, GLSM learns the clusters while learning the sequence. This means the communities are defined by their temporal behavior, not just their static connectivity.

Key Results

  • Superior Accuracy: GLSM consistently achieved the highest AUC across all five datasets, showing a 2% to 10% improvement over strong baselines like Graph Autoencoders (GAE) and Link Prediction based on Graph Neural Networks (LPGNN).
  • Robustness to Sparsity: Even on very sparse networks (like Epinions, with an edge density of 0.0004), GLSM remained stable, whereas traditional methods struggled.
  • Capturing Popularity: In a case study on the CollegeMsg dataset, the model's self-tokenization correctly identified that larger clusters tended to contain "older" (earlier registered) users who were more popular, effectively capturing the "rich-get-richer" phenomenon common in social networks.

Limitations and Future Work

  • Bipartite Limitations: While the model was tested on Movielens (a bipartite user-movie graph), it required transforming it into a one-mode graph first. A native bipartite version of GLSM could potentially yield even better results for recommendation tasks.
  • Sampling Complexity: The second step of the link generator uses a weighted random sampling. The authors suggest that more advanced techniques, such as beam search or greedy sampling, could further refine the quality of the generated links.
  • Scalability: While the time complexity is linear with respect to the number of epochs, the clustering step might become a bottleneck for extremely large graphs with millions of nodes without further optimization.

Summary updated

BibTeX
@inproceedings{wang2020generative,
  author = {Yue Wang and Chenwei Zhang and Shen Wang and Philip S. Yu and Lu Bai and Lixin Cui and Guandong Xu},
  title = {{Generative temporal link prediction via self-tokenized sequence modeling}},
  booktitle = {World Wide Web},
  year = {2020},
  url = {https://openreview.net/forum?id=5eWUCpiNWyT},
}
Figure