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.
Introduction
Dynamic link prediction (LP) is a fundamental task in graph analysis, aiming to predict the formation of edges between nodes over time. Traditional approaches typically follow an "End-to-End" paradigm, where a model is trained and deployed on the same graph. However, this approach faces significant challenges: high computational costs for per-graph training, data scarcity in smaller domains, and, most critically, structural ambiguity.
Structural ambiguity occurs when identical local structures imply different evolutionary outcomes across different domains. For instance, a triadic closure might suggest a new link in a social network but indicate a different pattern in a transaction graph. To address this, we propose DyExpert, a model designed to understand universal evolution patterns and adapt to specific domains through historical context.
Methodology
DyExpert shifts the focus from static local structures to the evolution process of the graph. The core of the framework is Conditioned Link Generation (CLG).
Conditioned Link Generation (CLG)
Instead of predicting a link based solely on the current state, DyExpert treats the graph's history as a "prompt." It samples a sequence of past link prediction tasks and their ground-truth results. This historical sequence allows the model to "learn" the specific evolution rules of a new domain before making a prediction.
Architecture
The model utilizes a decode-only Transformer architecture. The input consists of node representations generated by a graph encoder (e.g., DyGFormer) combined with their historical labels. By modeling the evolution as a sequence, the Transformer learns to predict the next label in the context of previous interactions.
Temporal Handling and Efficiency
To handle varying time scales across domains, DyExpert employs time normalization and shuffling. For inference, the model utilizes KV-caching, allowing it to process the historical evolution prompt once and perform subsequent predictions on the same graph with extreme efficiency.
Experimental Setup
DyExpert was trained on 6 diverse dynamic graphs (Mooc, Wikipedia, LastFM, Review, UN Vote, and Reddit), totaling approximately 6 million dynamic edges. It was then evaluated in a "zero-shot" manner on 8 untrained graphs from various domains, including email networks (Enron), social networks (UCI, Nearby, College), economics (UN Trade), and Q&A platforms (Ubuntu, Mathoverflow). To ensure the model relies purely on structural-temporal patterns, all node and edge features were standardized to zero.
Results and Discussion
DyExpert demonstrates superior performance in cross-domain transfer:
- State-of-the-Art Accuracy: It achieved an average improvement of 11.40% in Average Precision (AP) over existing cross-domain baselines.
- Zero-Shot Superiority: Remarkably, DyExpert's zero-shot performance surpassed the fully supervised performance of 8 advanced baselines on 6 out of 8 evaluation graphs.
- Deployment Efficiency: On the Ubuntu dataset, while standard models required over an hour of training, DyExpert required zero training time and only 10 seconds for inference.
The results suggest that link prediction can be treated as a generalized task, where performance scales with the number of training samples and the diversity of training graphs, pointing towards the feasibility of a "Graph Foundation Model."
Conclusion
DyExpert introduces a paradigm shift in dynamic link prediction by explicitly modeling evolution processes. By resolving structural ambiguities through historical context, it enables effective cross-domain transfer and achieves state-of-the-art results without the need for domain-specific training. Future work will explore scaling to even larger datasets and extending the framework to other graph-related tasks.
Summary updated