cs.LGAug 30, 2026

Task-Specific Prompt with Global Context for Multi-Task Graph Pre-Training

Authors: Zhiyang Qiu, Yangtao Wang, Xiaocui Li, Yanzhao Xie, Siyuan Chen, Wensheng Zhang

Organizations: School of Computer Science and Cyber Engineering, Guangzhou University, Guang Zhou, 510006, Guangdong, China · Hunan University of Technology and Business, Changsha, 410205, Hunan, China

Abstract

Graph prompt learning is an effective paradigm to adapt pre-trained graph models to downstream tasks in low-resource scenarios. However, existing multi-task graph pre-training frameworks generally use randomly initialized prompts, leading to poor alignment between the prompt space, pretext objectives and graph structural characteristics. This greatly weakens the task relevance, structural awareness and transferability of prompt representations. To address this challenge, we propose TPGC, a dual-prior prompt initialization solution that explicitly models the synergy between task prior and structural prior. Specifically, the Task-Prior Injection Module first conducts a short homologous multi-task pre-training on an auxiliary graph, enabling prompt initialization to inherit optimization preferences associated with multiple pretext tasks. Built on the task-aware representations, the Structure-Prior Injection Module further extracts transferable global structural context from the auxiliary graph, converting it into layer-wise prompt vectors by aggregating structurally informative node embeddings. Extensive experiments on 6 mainstream benchmarks covering node and graph classification show that TPGC achieves consistently better performance under few-shot settings than state-of-the-art baselines, with fewer downstream tunable parameters and lower runtime. The code is available at https://github.com/Virgilqiu/TPGC

Figures & tables

Explore similar work

CardsList
  1. A Cross-graph Tuning-free GNN Prompting Framework

    Apr 1, 2026Yaqi Chen, Shixun Huang, Ryan Twemlow +6Graph Neural NetworksPrompt Engineering

  2. Unified Graph Prompt Learning via Low-Rank Graph Message Prompting

    Apr 13, 2026Beibei Wang, Bo Jiang, Ziyan Zhang +1Prompt LearningGraph Neural Networks

  3. GFMate: Empowering Graph Foundation Models with Test-time Prompt Tuning

    May 14, 2026Yan Jiang, Ruihong Qiu, Zi HuangDomain AdaptationPrompt Tuning