HERO: Preserving Structure and Semantics in Heterogeneous Continual Graph Learning
Organizations: School of Computing, University of Connecticut · RMIT University, Melbourne · Department of Computer Science, University of Houston
Abstract
Machine learning on heterogeneous graphs has advanced rapidly, driven by the diverse entities, relations, and semantics inherent in real-world data. However, most existing studies assume static graphs, whereas real-world graph data are often continuously updated. Continual learning in this setting is particularly challenging because historical knowledge is encoded not only in target-node representations, but also in their heterogeneous structural contexts and relation-dependent semantic responses. To this end, we introduce HERO, a heterogeneous continual graph learning framework that preserves historical knowledge at both structural and semantic levels while adapting to incoming tasks. We analyze experience replay as an approximation to the unavailable historical gradient and decompose its error into target-selection and context-reconstruction terms. This analysis shows that replaying target nodes alone is generally insufficient for relation-sensitive HGNNs, as removing typed neighborhood context can alter both representations and historical gradients. Motivated by this, HERO employs DiSCo to select representative target nodes and reconstruct compact heterogeneous contexts through relation-aware multi-type neighbor expansion. To further preserve knowledge that cannot be captured by replayed subgraphs alone, HERO aligns task-conditioned predictions and heterogeneous semantic responses through multi-level knowledge distillation. A lightweight look-ahead adaptation step is additionally used to improve plasticity on incoming tasks. Experiments on four datasets with three HGNN backbones show that HERO achieves the best or tied-best average performance among state-of-the-art baselines, while maintaining competitive forgetting. Our code is available at https://github.com/gqBond/HCGL.
Figures & tables
| Methods | DBLP | IMDB | Freebase | Yelp | ||||
| AP / % | AF / % | AP / % | AF / % | AP / % | AF / % | AP / % | AF / % | |
| Finetune | 82.8 4.6 | 26.6 9.1 | 68.8 2.2 | 26.0 2.8 | 53.8 4.7 | 25.7 8.8 | 24.5 0.5 | 44.8 1.6 |
| Joint Train | 95.2 0.6 | 1.7 1.0 | 80.4 0.7 | 3.9 0.8 | 65.6 0.9 | 2.8 2.0 | 63.0 2.3 | 0.0 1.6 |
| EWC | 85.4 5.5 | 21.5 10.6 | 69.6 1.2 | 25.8 2.4 | 58.3 2.4 | 18.4 4.2 | 25.3 2.1 | 44.8 0.9 |
| MAS | 91.1 0.8 | 8.3 1.5 | 72.0 2.3 | 20.5 3.9 | 59.0 1.0 | 14.8 0.9 | 36.7 10.9 | 27.6 16.2 |
| TWP | 90.5 1.3 | 10.1 2.6 | 74.8 2.7 | 14.5 4.4 | 60.9 4.3 | 10.8 6.9 | 32.0 12.1 | 36.4 15.1 |
| Methods | DBLP | IMDB | Freebase | Yelp | ||||
| AP / % | AF / % | AP / % | AF / % | AP / % | AF / % | AP / % | AF / % | |
| HERO | 93.6 0.8 | 4.3 1.6 | 78.4 1.7 | 7.3 3.0 | 60.9 1.5 | 11.1 1.6 | 55.9 0.6 | 7.5 1.2 |
| w/o ER | 89.7 0.6 | 12.0 0.7 | 75.1 0.9 | 12.8 1.7 | 58.6 1.2 | 16.3 2.2 | 53.9 2.4 | 6.8 2.4 |
| w/o HKD | 89.6 1.4 | 12.1 2.6 | 72.2 1.5 | 19.3 2.3 | 59.4 1.1 | 14.7 1.8 | 44.9 14.3 | 19.3 17.0 |
| w/o G-MM | 92.6 1.7 | 5.2 0.9 | 75.0 2.7 | 13.3 4.5 | 59.7 0.9 | 12.0 2.2 | 55.6 1.9 | 8.0 2.0 |
| w/o DiSCo | 92.4 1.4 | 6.0 3.1 | 75.4 2.2 | 12.1 5.0 | 56.2 0.4 | 18.0 0.5 | 45.7 14.0 | 23.7 15.6 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Node Classification | #Nodes | #Node Types | #Edges | #Edge Types | #Classes |
| DBLP ( Lv et al., 2021 ) | 26,128 | 4 | 239,566 | 6 | 4 |
| IMDB ( Lv et al., 2021 ) | 21,420 | 4 | 86,642 | 6 | 5 |
| Freebase ( Lv et al., 2021 ) | 180,098 | 8 | 1,057,688 | 36 | 7 |
| Yelp ( Yang et al., 2020 ) | 82,465 | 4 | 32,548,358 | 7 | 16 |
| Method | Avg. GPU/task (MB) | Peak GPU (MB) |
| Replay-based methods | ||
| HERO (Ours) | 7,046 | 8,107 |
| DMSG | 7,126 | 8,131 |
| ER-GNN | 7,065 | 8,138 |
| FTF-ER | 7,097 | 8,122 |
| MetaCLGraph | 7,102 | 8,125 |
| Yelp 5-task | Yelp 8-task | |||
| Teachers | AP | AF | AP | AF |
| 53.51 | 13.41 | 55.55 | 11.31 | |
| 57.44 | 8.15 | 57.81 | 7.43 | |
| Method | DBLP | IMDB | Freebase | Yelp |
| TWP | 0.157 (x0.42) | 0.032 (x0.78) | 0.068 (x0.59) | 3.020 (x0.50) |
| FTF-ER | 1.619 (x4.39) | 0.238 (x5.78) | 0.351 (x3.06) | 8.424 (x1.39) |
| ER-GNN | 0.411 (x1.11) | 0.053 (x1.29) | 0.078 (x0.68) | 6.652 (x1.10) |
| MetaCLGraph | 1.770 (x4.80) | 0.310 (x7.53) | 0.614 (x5.34) | 9.752 (x1.61) |
| HERO | 0.369 (x1.00) | 0.041 (x1.00) | 0.115 (x1.00) | 6.043 (x1.00) |
| Methods | DBLP | IMDB | Freebase | |||
| AP / % | AF / % | AP / % | AF / % | AP / % | AF / % | |
| Finetune | 86.2 1.5 | 12.7 2.2 | 75.1 7.5 | 17.0 9.4 | 67.8 1.8 | 16.5 2.5 |
| Joint Train | 93.9 0.6 | 1.7 1.0 | 80.0 0.7 | 2.0 0.9 | 72.5 0.6 | 8.5 1.2 |
| EWC ( Kirkpatrick et al., 2017 ) | 89.1 1.2 | 10.7 1.8 | 77.3 0.4 | 12.5 0.2 | 69.6 3.0 | 14.7 2.9 |
| MAS ( Aljundi et al., 2018 ) | 89.8 2.5 | 9.0 3.0 | 77.5 1.2 | 11.8 2.6 | 70.4 3.1 | 14.8 2.0 |
| TWP ( Liu et al., 2021 ) | 89.1 2.1 | 10.3 1.1 | 77.7 0.6 | 11.1 1.6 | 69.6 2.0 | 15.1 0.9 |
| Methods | DBLP | IMDB | ||
| AP / % | AF / % | AP / % | AF / % | |
| Finetune | 79.1 5.1 | 34.8 10.1 | 71.3 0.6 | 21.7 3.0 |
| Joint Train | 94.1 0.1 | 1.9 1.0 | 77.4 0.7 | 4.7 1.5 |
| EWC ( Kirkpatrick et al., 2017 ) | 91.0 2.3 | 10.9 4.5 | 73.4 1.6 | 16.7 2.5 |
| MAS ( Aljundi et al., 2018 ) | 92.1 2.1 | 7.8 5.3 | 74.3 2.0 | 14.2 3.7 |
| TWP ( Liu et al., 2021 ) | 91.6 2.1 | 7.4 5.0 | 74.0 0.8 | 13.7 3.3 |
| Methods | DBLP | IMDB | Freebase | |||
| AP / % | AF / % | AP / % | AF / % | AP / % | AF / % | |
| Finetune | 83.5 0.9 | 24.3 2.1 | 56.7 0.7 | 49.8 1.3 | 49.2 2.3 | 31.8 5.7 |
| EWC ( Kirkpatrick et al., 2017 ) | 90.7 1.1 | 10.5 2.5 | 67.8 2.5 | 24.0 2.6 | 54.0 11.0 | 24.2 20.1 |
| MAS ( Aljundi et al., 2018 ) | 92.6 2.5 | 4.8 5.3 | 72.0 4.9 | 13.0 10.7 | 47.1 0.6 | 34.6 2.3 |
| TWP ( Liu et al., 2021 ) | 93.6 1.1 | 3.5 1.5 | 73.4 0.5 | 11.2 4.9 | 52.0 6.8 | 26.4 9.9 |
| ER-GNN ( Zhou and Cao, 2021 ) | 93.2 2.7 | 6.1 5.4 | 69.7 2.7 | 13.6 3.2 | 56.0 3.9 | 17.7 7.5 |
| Methods | DBLP | IMDB | Freebase | Yelp |
| Other | ||||
| Joint Train | 0.69 | 2.47 | 11.59 | 11.58 |
| TWP | 1.03 | 2.27 | 10.44 | 5.58 |
| Memory Replay | ||||
| ER-GNN | 0.22 | 2.62 | 8.44 | 8.46 |
| FTF-ER | 0.83 | 3.43 | 10.59 | 7.19 |
Heterogeneous GNNs
Heterogeneous graph neural networks (GNNs) learn from graphs with multiple node and relation types.
See all 77 papers