Subgraph-level universal prompt tuning

Junhyun Lee, Wooseong Yang, Jaewoo Kang

TL;DR

Subgraph-level Universal Prompt Tuning (SUPT) is a parameter-efficient framework for adapting pre-trained Graph Neural Networks (GNNs) to new tasks. By injecting learnable "prompts" at the subgraph level rather than globally, it captures rich local context while remaining compatible with any pre-training strategy, outperforming full fine-tuning in 93% of tested scenarios while using less than 1% of the parameters.

What Problem Does This Paper Address?

The "pre-train, fine-tune" paradigm has become the standard for leveraging large-scale data in machine learning. However, in the graph domain, this approach faces two major hurdles:

  1. Objective Misalignment: The tasks used for pre-training (like predicting missing edges) often differ significantly from downstream tasks (like classifying a whole molecule), leading to suboptimal performance.
  2. Resource Intensity: Fine-tuning millions of parameters for every new task is computationally expensive and can lead to "catastrophic forgetting," where the model loses the general knowledge it gained during pre-training.

While "prompt tuning"—modifying the input data rather than the model—has emerged as a solution in NLP and Computer Vision, applying it to graphs is tricky. Early graph prompting methods were either tied to specific pre-training tasks or used overly simplistic "global" prompts that ignored the intricate local structures (subgraphs) that define graph data.

Methods

SUPT introduces a universal prompting mechanism that operates in the input feature space, making it compatible with any GNN architecture and pre-training method. Its core innovation is moving from global or node-type prompts to subgraph-level prompts.

Comparison of different tuning approaches, highlighting how SUPT differentiates nodes based on their subgraph context.

The authors propose two variants of SUPT:

  • SUPT$_{soft}$: Inspired by soft-cluster graph pooling, it uses a small GNN to calculate an assignment matrix, where every node receives a weighted combination of different prompt "bases" depending on its local neighborhood.
  • SUPT$_{hard}$: Inspired by node-selection pooling, it uses a top-rank selection mechanism to assign specific prompt bases only to the most relevant nodes in a subgraph, leaving others untouched.

Crucially, the authors provide a theoretical proof demonstrating that subgraph-level prompting maintains "universal capability"—meaning it can theoretically emulate any prompting function, providing a performance upper bound that simpler methods cannot reach.

Datasets

The researchers evaluated SUPT across a wide array of benchmarks:

  • Pre-training: They used the Biology dataset (395k protein ego-networks) and the Chemistry dataset (2 million molecules from ZINC15).
  • Downstream Tasks: Evaluation was conducted on the PPI (Protein-Protein Interaction) network for biological function prediction and 8 MoleculeNet datasets (including BBBP, Tox21, HIV, and BACE) for molecular property prediction.
  • Pre-training Strategies: To prove universality, they tested against five different strategies: Infomax, Attribute Masking, Context Prediction, Graph Contrastive Learning (GCL), and Edge Prediction.

Key Insights and Ideas

  • Context is King: The jump from global prompts (GPF) to subgraph prompts (SUPT) shows that local structural information is vital for aligning pre-trained models with downstream tasks. A node's role is defined by its neighbors, not just its own features.
  • GNNs as Natural Groupers: The authors observed that because GNNs act as low-pass filters (smoothing features across neighbors), nodes in close proximity naturally exhibit similar scoring patterns. This allows SUPT to group adjacent nodes into meaningful subgraphs for prompting without needing complex manual definitions.
  • Universality via Input Space: By applying prompts directly to the input features ($X^* = X + P$), the method remains "model-agnostic." You don't need to change the internal layers of a frozen, pre-trained GNN to make it work.

Key Results

SUPT demonstrated remarkable efficiency and effectiveness:

  • Parameter Efficiency: SUPT requires only ~0.6K to 3K parameters, compared to the 1.8M to 2.7M parameters needed for full fine-tuning (FT). That's a reduction of over 99%.
  • Full-Shot Performance: In 45 different experimental settings, SUPT outperformed full fine-tuning in 42 cases, with an average performance gain of 2.5%.
  • Few-Shot Excellence: The benefits were even more pronounced in 50-shot scenarios, where SUPT excelled in 41 out of 45 experiments, achieving an average performance boost of 6.6% over fine-tuning.

Limitations and Future Work

The primary trade-off for SUPT's performance is a slight increase in computational overhead. Calculating the subgraph assignments ($\alpha$) involves an extra GNN pass and, in the case of SUPT_hard, a sorting operation for top-rank selection. While the authors show this adds only fractions of a millisecond per graph, it is a factor to consider for massive-scale real-time applications.

Future work could involve exploring more sophisticated ways to capture complex graph contexts or extending the framework to dynamic graphs where structure changes over time.

Summary updated

BibTeX
@article{lee2026subgraph,
  author = {Junhyun Lee and Wooseong Yang and Jaewoo Kang},
  title = {{Subgraph-level universal prompt tuning}},
  journal = {Information Sciences},
  year = {2026},
  doi = {10.1016/j.ins.2026.123516},
}

Loading related content...

Figure