Enhancing Cross-domain Link Prediction via Evolution Process Modeling

Xuanwen Huang, Wei Chow, Yan Wang, Ziwei Chai, Chunping Wang, Lei Chen, Yang Yang

Abstract

This work proposes DyExpert, a dynamic graph model for cross-domain link prediction. It can explicitly model historical evolving processes to learn the evolution pattern of a specific downstream graph and subsequently make pattern-specific link predictions. DyExpert adopts a decode-only transformer and is capable of efficiently parallel training and inference by conditioned link generation that integrates both evolution modeling and link prediction. DyExpert is trained by extensive dynamic graphs across diverse domains, comprising 6M dynamic edges. Extensive experiments on eight untrained graphs demonstrate that DyExpert achieves state-of-the-art performance in cross-domain link prediction. Compared to the advanced baseline under the same setting, DyExpert achieves an average of 11.40% improvement Average Precision across eight graphs. More impressive, it surpasses the fully supervised performance of 8 advanced baselines on 6 untrained graphs.

The Challenge of Structural Ambiguity

Link prediction (LP)—predicting whether an edge will form between two nodes—is a cornerstone of dynamic graph modeling, powering applications from recommendation systems to transaction monitoring. Traditionally, these models are "End2End," meaning they are trained and tested on the same specific graph. However, this approach faces significant hurdles: high training costs for every new graph, data scarcity in niche domains, and, most critically, structural ambiguity.

Structural conflict in link prediction: identical local structures in different graphs can lead to opposite ground-truth outcomes, necessitating evolution modeling.

Structural ambiguity occurs when the same local graph structure implies different outcomes across domains. For instance, in a social network, two individuals sharing a common friend often form a link (triadic closure). Conversely, in a competitive B2B network, that same structure might indicate a rivalry where a link is unlikely. Standard models, focusing purely on static or local structures, cannot distinguish these cases without domain-specific training.

DyExpert: Modeling Evolution as a Sequence

To overcome these limitations, DyExpert shifts the focus from static structure to Evolution Process Modeling. The core insight is that a graph's history acts as a "DNA" or context that defines its behavioral rules.

The DyExpert framework: modeling the historical evolution process of dynamic graphs using a decode-only Transformer for zero-shot link prediction.

Key Components:

  • Evolution as a Sequence: DyExpert samples a sequence of historical link prediction tasks. It represents the "evolutionary pattern" as a series of node representations and their corresponding ground-truth labels.
  • Conditioned Link Generation (CLG): Inspired by Large Language Models (LLMs), DyExpert treats link prediction as a "next-token" prediction task. It employs a 12-layer decoder-only Transformer to ingest the historical evolution sequence. When predicting a new target link, the model uses the preceding "context" to adapt its logic to the specific domain.
  • Graph Encoding: A structural encoder (specifically DyGFormer) converts local subgraphs into vectors before they are processed by the Transformer.
  • Efficiency via KV-Caching: To maintain scalability, DyExpert utilizes KV-caching, allowing it to reuse historical context for multiple predictions efficiently.

Experimental Setup and Datasets

The study utilized 14 diverse dynamic graphs to test the model's zero-shot capabilities:

  • Training Set: 6 graphs including Mooc, Wikipedia, LastFM, Review, UN Vote, and Reddit (comprising 6M dynamic edges).
  • Zero-Shot Evaluation Set: 8 untrained graphs such as Enron, UCI, Nearby, Myket, UN Trade, Ubuntu, Mathoverflow, and College.
  • Feature Standardization: To ensure the model learns structural patterns rather than domain-specific node features, all features were standardized to zero, forcing reliance on structural evolution patterns.

Key Results and Insights

DyExpert demonstrates that link prediction can be treated as a generalized task. By observing how a graph has behaved previously, the model "learns" the underlying rules of that specific domain on the fly.

  • State-of-the-Art Performance: DyExpert achieved an average improvement of 11.40% in Average Precision (AP) across eight untrained graphs compared to existing cross-domain baselines.
  • Zero-Shot Superiority: Remarkably, DyExpert’s zero-shot performance surpassed the fully supervised performance of 8 SOTA baselines on 6 out of 8 test graphs. On the Ubuntu dataset, it outperformed supervised models by nearly 13.69%.
  • Scaling Laws: Performance improved consistently as the number of training graphs and the model's hidden size increased, suggesting that dynamic graph modeling follows scaling trends similar to those observed in NLP.

Conclusion and Future Work

DyExpert proves that modeling the evolution process is key to cross-domain success. While the sequential nature of the model introduces some inference latency compared to simpler structural models, the gains in accuracy and generalizability are substantial. Future work will explore scaling to even larger datasets and developing "universal" feature encoders to incorporate domain-specific information without sacrificing zero-shot performance.

Summary updated

BibTeX
@inproceedings{huang2024enhancing,
  author = {Xuanwen Huang and Wei Chow and Yan Wang and Ziwei Chai and Chunping Wang and Lei Chen and Yang Yang and Yang, Yang},
  title = {{Enhancing Cross-domain Link Prediction via Evolution Process Modeling}},
  booktitle = {The Web Conference},
  year = {2024},
}
Figure