Universal Prompt Tuning for Graph Neural Networks

Taoran Fang, Yunchao Zhang, Yang Yang, Chunping Wang, Lei Chen
9/30/2022
cs.LGcs.AI
gnnlora-peft-merging

Official code: zjunet/GPF (38 stars, Python, MIT, last commit 2023-10-16).

Abstract

In recent years, prompt tuning has sparked a research surge in adapting pre-trained models. Unlike the unified pre-training strategy employed in the language field, the graph field exhibits diverse pre-training strategies, posing challenges in designing appropriate prompt-based tuning methods for graph neural networks.

Show full abstract

While some pioneering work has devised specialized prompting functions for models that employ edge prediction as their pre-training tasks, these methods are limited to specific pre-trained GNN models and lack broader applicability. In this paper, we introduce a universal prompt-based tuning method called Graph Prompt Feature (GPF) for pre-trained GNN models under any pre-training strategy. GPF operates on the input graph's feature space and can theoretically achieve an equivalent effect to any form of prompting function. Consequently, we no longer need to illustrate the prompting function corresponding to each pre-training strategy explicitly. Instead, we employ GPF to obtain the prompted graph for the downstream task in an adaptive manner. We provide rigorous derivations to demonstrate the universality of GPF and make guarantee of its effectiveness. The experimental results under various pre-training strategies indicate that our method performs better than fine-tuning, with an average improvement of about 1.4% in full-shot scenarios and about 3.2% in few-shot scenarios. Moreover, our method significantly outperforms existing specialized prompt-based tuning methods when applied to models utilizing the pre-training strategy they specialize in. These numerous advantages position our method as a compelling alternative to fine-tuning for downstream adaptations.

View on arXivView PDF

Code Implementations(1)

zjunet/GPFOfficial100%
MIT

The code Implementation of the paper “Universal Prompt Tuning for Graph Neural Networks”.

387Python, ShellOct 16, 20233 years agoMIT

Similar Papers

Cite this paper

@article{fang2022universal,
  title  = {Universal Prompt Tuning for Graph Neural Networks},
  author = {Taoran Fang and Yunchao Zhang and Yang Yang and Chunping Wang and Lei Chen},
  year   = {2022},
  eprint = {2209.15240},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.15240}
}

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/2209.15240.svg)](https://codeofpaper.com/paper/2209.15240)

Discussion