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

Yan Jiang, Ruihong Qiu, Zi Huang
5/14/2026
1 citation
cs.LG
lora-peft-merging

Official code: YanJiangJerry/GFMate (2 stars, Python, last commit 2026-05-15).

Abstract

Graph prompt tuning has shown great potential in graph learning by introducing trainable prompts to enhance the model performance in conventional single-domain scenarios. Recent research has extended graph prompts to improve Graph Foundation Models (GFMs) by few-shot tuning auxiliary prompts.

Show full abstract

Despite their progress, most existing methods embed source-domain information into prompts, which serve either as input to GFMs or encoded during model pre-training. Such prompt entanglement with specific source domains and GFM pre-training strategy restricts their generalisability to other domains and different GFMs. Furthermore, existing GFM prompts merely rely on few-shot tuning for adaptation, neglecting the rich information in unlabelled target domain test data. Motivated by these insights, this paper aims to empower GFMs with pre-training-agnostic test-time graph prompt tuning, named GFMate. GFMate introduces centroid and layer prompts applied after pre-training on target domains, avoiding entanglement with specific source domains and model pre-training. In addition, a test-time complementary learning objective is devised to exploit both labelled and unlabelled target domain data for effective test-time prompt tuning. Extensive experiments on 12 benchmark datasets demonstrate the superior performance and efficiency of GFMate, achieving improvements of up to 30.63%. Code is available at https://github.com/YanJiangJerry/GFMate.

View on arXivView PDF

Code Implementations(1)

Official Repository for GFMate

20Python, ShellAug 8, 20256 months agoNOASSERTION

Similar Papers

Cite this paper

@article{jiang2026gfmate,
  title  = {GFMate: Empowering Graph Foundation Models with Test-time Prompt Tuning},
  author = {Yan Jiang and Ruihong Qiu and Zi Huang},
  year   = {2026},
  eprint = {2605.14809},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.14809v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.14809.svg)](https://codeofpaper.com/paper/2605.14809)

Discussion