Transfer Learning for Edge Classification on Dynamic Text-Attributed Graphs
Organizations: Imperial College London London, United Kingdom
Abstract
Learning transferable representations for dynamic text-attributed graphs (DyTAGs) requires models to capture underlying interaction dynamics that persist across domains. However, existing methods tend to overfit to domain-specific structural, temporal, and semantic patterns, limiting edge classification performance under distribution shifts. To expose and address this, we formally establish a leave-one-domain-out (LODO) transfer learning protocol for edge classification on DyTAGs. Under this protocol, we demonstrate that state-of-the-art self-supervised methods for dynamic graph learning perform poorly when transferred to unseen domains. Strikingly, existing methods underperform a structurally and temporally unaware Bag of Events (BoE) model we introduce, which inputs only unordered sequences of node and edge text features. Proceeding from the BoE, we propose Spatio-Temporal Semantic Alignment (STSA), which integrates a spatio-temporal encoder that fuses representations of time deltas and node occurrence frequencies into a unified manifold. STSA is trained with a Contrastive Semantic Forecasting objective, which anchors edge representations to a multi-domain textual latent space initialized by a pretrained language model, providing a robust prior that outperforms BoE and all existing methods we evaluate.
Figures & tables
| Method | Amazon | Enron | GDELT | ICEWS | Stack E | Stack U | Yelp | Avg | |
|---|---|---|---|---|---|---|---|---|---|
| Majority | 15.76 ±0.00 | 4.06 ±0.00 | 0.06 ±0.00 | 15.93 ±0.00 | 0.12 ±0.00 | 42.82 ±0.00 | 44.65 ±0.00 | 13.99 ±0.00 | 17.17 ±0.00 |
| Random | 15.26 ±0.04 | 7.00 ±0.06 | 0.16 ±0.01 | 15.02 ±0.06 | 0.13 ±0.01 | 46.72 ±0.09 | 44.81 ±0.10 | 16.95 ±0.03 | 18.26 ±0.05 |
| GCAL | |||||||||
| W/O PT | 15.76 ±0.00 | 4.20 ±1.60 | 0.04 ±0.03 | 15.93 ±0.00 | 0.09 ±0.04 | 42.82 ±0.00 | 44.65 ±0.00 | 13.99 ±0.00 | 17.19 ±0.21 |
| W/ PT | 15.76 ±0.00 | 3.59 ±2.61 | 0.05 ±0.02 | 15.93 ±0.00 | 0.10 ±0.05 | 42.82 ±0.00 | 44.65 ±0.00 | 13.99 ±0.00 | 17.11 ±0.34 |
| IDOL | |||||||||
| Variant | Amazon | Enron | GDELT | ICEWS | Stack E | Stack U | Yelp | Avg | |
|---|---|---|---|---|---|---|---|---|---|
| Reference Baseline | |||||||||
| BoE | 24.61 ±0.86 | 7.71 ±0.38 | 0.28 ±0.03 | 18.11 ±1.16 | 0.54 ±0.11 | 54.22 ±1.34 | 51.61 ±1.27 | 26.34 ±2.34 | 22.93 ±0.94 |
| STSA Variants | |||||||||
| w/o STE | 24.14 ±0.54 | 8.18 ±0.38 | 0.31 ±0.02 | 18.07 ±0.56 | 0.70 ±0.09 | 51.76 ±2.69 | 51.16 ±1.72 | 28.16 ±0.53 | 22.81 ±0.82 |
| CSF SF | 23.79 ±0.47 | 8.34 ±0.42 | 0.41 ±0.02 | 20.23 ±0.72 | 1.12 ±0.06 | 54.38 ±2.29 | 52.71 ±0.78 | 28.16 ±0.38 | 23.64 ±0.64 |
| CSF InfoNCE | 21.72 ±0.62 | 10.53 ±1.21 | 0.37 ±0.01 | 18.47 ±0.79 | 0.95 ±0.06 | 54.08 ±1.22 | 50.88 ±0.94 | 26.97 ±0.54 | 22.99 ±0.68 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | #Nodes | #Edges | #Classes | Domain |
|---|---|---|---|---|
| Enron | 42,711 | 797,907 | 10 | Corporate communication |
| GDELT | 6,786 | 1,339,245 | 236 | Political events |
| ICEWS1819 | 31,796 | 1,100,071 | 266 | Political events |
| Stack elec | 397,702 | 1,262,225 | 2 | Technical Q&A forum |
| Stack ubuntu | 674,248 | 1,497,006 | 2 | Technical Q&A forum |
| Amazon movies | 293,566 | 3,217,324 | 5 | E-commerce reviews |
Text-Attributed Graph Learning
Text-attributed graph learning combines node text and graph structure to improve classification, retrieval, anomaly detection, and reasoning.
See all 66 papers