Abstract: Dynamic graph neural networks (DGNNs) have emerged as a leading paradigm for learning from dynamic graphs, which are commonly used to model real-world systems and applications. However, due to the evolving nature of dynamic graph data distributions over time, well-trained DGNNs often face significant performance uncertainty when inferring on unseen and unlabeled test graphs in practical deployment. In this case, evaluating the performance of deployed DGNNs at test time is crucial to determine whether a well-trained DGNN is suited for inference on an unseen dynamic test graph. In this work, we introduce a new research problem: DGNN model evaluation, which aims to assess the performance of a specific DGNN model trained on observed dynamic graphs by estimating its performance on unseen dynamic graphs during test time. Specifically, we propose a Dynamic Graph neural network Evaluator, dubbed DyGEval, to address this new problem. The proposed DyGEval involves a two-stage framework: (1) test-time dynamic graph simulation, which captures the training-test distributional differences as supervision signals and trains an evaluator; and (2) DyGEval development and training, which accurately estimates the performance of the well-trained DGNN model on the test-time dynamic graphs. Extensive experiments demonstrate that the proposed DyGEval serves as an effective evaluator for assessing various DGNN backbones across different dynamic graphs under distribution shifts.
Introduction
Dynamic Graph Neural Networks (DGNNs) have become a standard for modeling time-evolving systems like social networks, financial transactions, and traffic patterns. However, a critical challenge persists: performance uncertainty during deployment. As real-world data distributions shift over time, a well-trained DGNN may experience a "silent failure"—a significant drop in accuracy on unseen test graphs where ground-truth labels are unavailable.
The core issue is the lack of labels at test time. Traditional evaluation relies on a labeled test set, but in practical deployment, we often need to know how a model is performing before labels are collected. This paper introduces the task of test-time model evaluation for DGNNs: estimating a model's performance on unlabeled, unseen dynamic graphs without access to future ground truth.
Methodology: The DyGEval Framework
To address this, the authors propose DyGEval (Dynamic Graph neural network Evaluator), a two-stage framework designed to map embedding shifts to performance degradation.
1. Test-time Dynamic Graph Simulation
Since an evaluator cannot be trained directly on unlabeled test data, DyGEval creates a "simulated future." By applying dynamic augmentations (such as EdgeDrop) to historical training data, the framework generates a diverse set of simulated graphs that mimic expected distribution shifts. Because these are simulations, labels are available, allowing the calculation of "true" performance metrics (e.g., NDCG) to serve as training targets for the evaluator.
2. Evaluator Training and Inference
The evaluator uses a Graphormer-based architecture. Rather than processing raw graph data directly, it focuses on discrepancy measurement. It compares latent node embeddings from the training graph with those from the simulated or test graphs. By learning the relationship between these embedding discrepancies and the known performance drops in simulated scenarios, DyGEval learns to map "embedding shifts" to "performance drops," allowing it to output an estimated performance score at test time.
Key Insights and Experimental Results
The framework was evaluated using three real-world datasets from the Temporal Graph Benchmark (TGB): tgbn-trade, tgbn-genre, and tgbn-reddit. To simulate real-world deployment, the authors created Test-Time Evaluation (TTE) variants with varying temporal gaps.
Key findings include:
- Temporal Gaps Drive Degradation: Performance drops are strongly correlated with the time gap ($\Delta T$) between training and inference. Larger gaps increase the likelihood of shifts in both node features and graph topology.
- Embedding Discrepancy as a Proxy: The distance between training and test embeddings provides a reliable signal for performance loss. DyGEval successfully captures how "uncomfortable" the model is with new data distributions.
- High Predictive Accuracy: DyGEval consistently outperformed baselines in predicting the performance of backbones like TGN, TGAT, and CAWN. On the
tgbn-reddit-TTEdataset, it achieved a Mean Absolute Error (MAE) as low as 0.0362 when predicting NDCG.
Conclusion and Future Work
Beyond simple monitoring, DyGEval is highly effective for model selection. In scenarios where multiple DGNN architectures are available, the framework can rank them based on predicted performance for a specific unseen graph, ensuring the most robust model is deployed.
While effective, current limitations include the assumption of a consistent output space (no new nodes) and a focus on covariate shift over label shift. Future research will explore handling open-world scenarios where the node set evolves and investigating more complex distribution shifts where the relationship between the graph and target labels changes fundamentally.
Summary updated