HGPrompt: Bridging Homogeneous and Heterogeneous Graphs for Few-Shot Prompt Learning
Xingtong Yu, Yuan Fang, Zemin Liu, Xinming Zhang
Abstract
Graph neural networks (GNNs) and heterogeneous graph neural networks (HGNNs) are prominent techniques for homogeneous and heterogeneous graph representation learning, yet their performance in an end-to-end supervised framework greatly depends on the availability of task-specific supervision. To reduce the labeling cost, pre-training on self-supervised pretext tasks has become a popular paradigm, but there is often a gap between the pre-trained model and downstream tasks, stemming from the divergence in their objectives. To bridge the gap, prompt learning has risen as a promising direction especially in few-shot settings, without the need to fully fine-tune the pre-trained model. While there has been some early exploration of prompt-based learning on graphs, they primarily deal with homogeneous graphs, ignoring the heterogeneous graphs that are prevalent in downstream applications. In this paper, we propose HGPROMPT, a novel pre-training and prompting framework to unify not only pre-training and downstream tasks but also homogeneous and heterogeneous graphs via a dual-template design. Moreover, we propose dual-prompt in HGPROMPT to assist a downstream task in locating the most relevant prior to bridge the gaps caused by not only feature variations but also heterogeneity differences across tasks. Finally, we thoroughly evaluate and analyze HGPROMPT through extensive experiments on three public datasets.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
31 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs cites BEiT: BERT Pre-Training of Image Transformers
- MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs cites Strategies for Pre-training Graph Neural Networks
- MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs cites On the Feasibility of Simple Transformer for Dynamic Graph Modeling
- MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs cites Language Models are Few-Shot Learners
- MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs cites Graph Contrastive Learning with Augmentations
- One For All: Towards Training One Graph Model For All Classification Tasks cites MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs
- One For All: Towards Training One Graph Model For All Classification Tasks cites Language Models are Few-Shot Learners
- On the Feasibility of Simple Transformer for Dynamic Graph Modeling cites Language Models are Few-Shot Learners
- Edge Prompt Tuning for Graph Neural Networks cites MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs
- Edge Prompt Tuning for Graph Neural Networks cites Strategies for Pre-training Graph Neural Networks
- Edge Prompt Tuning for Graph Neural Networks cites Graph Contrastive Learning with Augmentations
- SAMGPT: Text-free Graph Foundation Model for Multi-domain Pre-training and Cross-domain Adaptation cites MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs
- SAMGPT: Text-free Graph Foundation Model for Multi-domain Pre-training and Cross-domain Adaptation cites One For All: Towards Training One Graph Model For All Classification Tasks
- SAMGPT: Text-free Graph Foundation Model for Multi-domain Pre-training and Cross-domain Adaptation cites Graph Contrastive Learning with Augmentations
Cited by top-tier papers31
- One For All: Towards Training One Graph Model For All Classification TasksHao Liu, Jiarui Feng, Lecheng Kong, Ningyue Liang et al.ICLR 2024 · 253 citations
- Edge Prompt Tuning for Graph Neural NetworksXingbo Fu, Yinhan He, Jundong LiICLR 2025 · 140 citations
- MultiGPrompt for Multi-Task Pre-Training and Prompting on GraphsXingtong Yu, Chang Zhou, Yuan Fang, Xinming ZhangWWW 2024 · 65 citations
- On the Feasibility of Simple Transformer for Dynamic Graph ModelingYuxia Wu, Yuan Fang, Lizi LiaoWWW 2024 · 49 citations
- SAMGPT: Text-free Graph Foundation Model for Multi-domain Pre-training and Cross-domain AdaptationXingtong Yu, Zechuan Gong, Chang Zhou, Yuan Fang et al.WWW 2025 · 45 citations
Builds on18
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen et al.ICML 2021 · 5,401 citations
- BEiT: BERT Pre-Training of Image TransformersHangbo Bao, Li Dong, Songhao Piao, Furu WeiICLR 2022 · 3,632 citations
- Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
- Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations
Related papers
- HePa: Heterogeneous Graph Prompting for All-Level Classification TasksJia Jinghong, Lei Song, Jiaxing Li, Youyong KongAAAI 2025 · 2 citations
- GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural NetworksZemin Liu, Xingtong Yu, Yuan Fang, Xinming ZhangWWW 2023 · 263 citations
- HeterGP: Bridging Heterogeneity in Graph Neural Networks with Multi-View PromptingFengyu Yan, Xiaobao Wang, Dongxiao He, Longbiao Wang et al.AAAI 2025 · 5 citations
- GPPT: Graph Pre-training and Prompt Tuning to Generalize Graph Neural NetworksMingchen Sun, Kaixiong Zhou, Xin He, Ying Wang et al.KDD 2022 · 141 citations
- HetGPT: Harnessing the Power of Prompt Tuning in Pre-Trained Heterogeneous Graph Neural NetworksYihong Ma, Ning Yan, Jiayu Li, Masood S. Mortazavi et al.WWW 2024 · 50 citations
