mlsanityData to 14 Oct 2026

Masked Language Models are Good Heterogeneous Graph Generalizers

arXiv 2506.06157 ↗First posted 6 Jun 2025cs.SI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Heterogeneous graph neural networks (HGNNs) excel at capturing structural and semantic information in heterogeneous graphs (HGs), while struggling to generalize across domains and tasks. With the rapid advancement of large language models (LLMs), a recent study explored the integration of HGNNs with LLMs for generalizable heterogeneous graph learning. However, this approach typically encodes structural information as HG tokens using HGNNs, and disparities in embedding spaces between HGNNs and LLMs have been shown to bias the LLM's comprehension of HGs. Moreover, since these HG tokens are often derived from node-level tasks, the model's ability to generalize across tasks remains limited. To this end, we propose a simple yet effective Masked Language Modeling-based method, called MLM4HG. MLM4HG introduces metapath-based textual sequences instead of HG tokens to extract structural and semantic information inherent in HGs, and designs customized textual templates to unify different graph tasks into a coherent cloze-style 'mask' token prediction paradigm. Specifically,MLM4HG first converts HGs from various domains to texts based on metapaths, and subsequently combines them with the unified task texts to form a HG-based corpus. Moreover, the corpus is fed into a pretrained LM for fine-tuning with a constrained target vocabulary, enabling the fine-tuned LM to generalize to unseen target HGs. Extensive cross-domain and multi-task experiments on four real-world datasets demonstrate the superior generalization performance of MLM4HG over state-of-the-art methods in both few-shot and zero-shot scenarios. Our code is available at https://github.com/BUPT-GAMMA/MLM4HG.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 34 of its 49 references that are in the map. First posted on arXiv 6 Jun 2025.

Builds on

34 of 49 references.

References · 34

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2023GPT-4 Technical Reportcited by 18,396
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2025Qwen3 Technical Reportcited by 8,820
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  8. 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
  9. 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,694
  10. 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 898
  11. 2019Heterogeneous Graph Attention Networkcited by 734
  12. 2020Heterogeneous Graph Transformercited by 582
22 more
  1. 2020MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph Embeddingcited by 304
  2. 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 303
  3. 2023Can Language Models Solve Graph Problems in Natural Language?cited by 252
  4. 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 243
  5. 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
  6. 2023Language is All a Graph Needscited by 220
  7. 2024LLaGA: Large Language and Graph Assistantcited by 181
  8. 2021Self-supervised Heterogeneous Graph Neural Network with Co-contrastive Learningcited by 130
  9. 2020A Survey on Heterogeneous Graph Embedding: Methods, Techniques, Applications and Sourcescited by 126
  10. 2023GraphLLM: Boosting Graph Reasoning Ability of Large Language Modelcited by 107
  11. 2024ZeroG: Investigating Cross-dataset Zero-shot Transferability in Graphscited by 85
  12. 2024Can we Soft Prompt LLMs for Graph Learning Tasks?cited by 52
  13. 2020Interpretable and Efficient Heterogeneous Graph Convolutional Networkcited by 48
  14. 2022Heterogeneous Graph Masked Autoencoderscited by 47
  15. 2024HiGPT: Heterogeneous Graph Language Modelcited by 45
  16. 2022Self-supervised Heterogeneous Graph Pre-training Based on Structural Clusteringcited by 30
  17. 2023Heterogeneous Graph Contrastive Learning for Recommendationcited by 28
  18. 2019Relation Structure-Aware Heterogeneous Information Network Embeddingcited by 19
  19. 2023LMBot: Distilling Graph Knowledge into Language Model for Graph-less Deployment in Twitter Bot Detectioncited by 17
  20. 2024LangGFM: A Large Language Model Alone Can be a Powerful Graph Foundation Modelcited by 13
  21. 2024Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretrainingcited by 7
  22. 2023Cross-heterogeneity Graph Few-shot Learningcited by 3

Built on by

Not cited yet.