Skip to main content
QUICK REVIEW

[Paper Review] Universal Prompt Tuning for Graph Neural Networks

Taoran Fang, Yunchao Zhang|arXiv (Cornell University)|Sep 30, 2022
Advanced Graph Neural NetworksComputer Science11 citations
TL;DR

This paper proposes Graph Prompt Feature (GPF), a universal prompt tuning method for pre-trained graph neural networks that operates directly on the input graph's feature space, enabling effective adaptation across diverse pre-training strategies without requiring task-specific prompting functions. GPF achieves state-of-the-art performance, outperforming fine-tuning by 1.4% on average in full-shot and 3.2% in few-shot scenarios, and surpasses specialized prompt methods even on their native pre-training strategies.

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. 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.

Motivation & Objective

  • To address the lack of a general-purpose prompt tuning method for pre-trained GNNs due to the diversity of pre-training strategies in graph representation learning.
  • To overcome the limitations of existing prompt-based methods that are restricted to specific pre-training tasks, such as edge prediction or attribute masking.
  • To develop a unified, theoretically grounded prompting mechanism that can emulate any prompting function in the input feature space.
  • To improve downstream performance in low-data regimes (few-shot) where fine-tuning suffers from catastrophic forgetting.
  • To provide a plug-and-play alternative to fine-tuning that preserves pre-trained model generalization while adapting to downstream tasks.

Proposed method

  • GPF introduces learnable prompt embeddings that are added to the input node features, effectively transforming the input graph into a 'prompted' version without modifying the model parameters.
  • The method operates in the input feature space, enabling it to be universally applicable regardless of the pre-training objective (e.g., edge prediction, attribute masking, contrastive learning).
  • The prompt tuning is formulated as a differentiable optimization problem, where the prompt embeddings are optimized end-to-end while the GNN backbone remains frozen.
  • Theoretical analysis shows that GPF can achieve an equivalent effect to any form of prompting function, making it universally applicable across different pre-training strategies.
  • The approach includes a GPF-plus variant that applies additional learnable projections to further improve performance.
  • The method is trained using standard cross-entropy loss on downstream tasks, with hyperparameters tuned per dataset and pre-training strategy.

Experimental results

Research questions

  • RQ1Can a single prompt tuning method be universally applied across diverse pre-training strategies for graph neural networks?
  • RQ2Does prompt tuning in the input feature space outperform fine-tuning in both full-shot and few-shot learning scenarios?
  • RQ3Can a universal prompt method surpass specialized prompt-based methods even when applied to models they were designed for?
  • RQ4How does GPF perform across different pre-training objectives, including contrastive learning and self-supervised node-level tasks?
  • RQ5To what extent does GPF mitigate catastrophic forgetting in low-data regimes?

Key findings

  • GPF outperforms standard fine-tuning by an average of 1.4% in full-shot scenarios across all pre-training strategies.
  • In few-shot scenarios, GPF achieves an average improvement of 3.2% over fine-tuning, demonstrating strong generalization under data scarcity.
  • On models pre-trained with edge prediction, attribute masking, or context prediction, GPF significantly outperforms existing specialized prompt-based methods, even when those methods are applied to their native pre-training strategies.
  • On the PPI biological graph classification benchmark, GPF achieved 77.02% ROC-AUC under the Infomax pre-training strategy, surpassing fine-tuning (71.29%) and other tuning baselines.
  • On the IMDB graph classification tasks, GPF improved accuracy from 72.60% (fine-tuning) to 73.40% under the GCC (E2E) pre-training strategy, with consistent gains across multiple runs.
  • The GPF-plus variant further improved performance, achieving 77.03% ROC-AUC on PPI with Infomax pre-training, outperforming all other tuning methods in the comparison.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.