NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GP2F: Cross-Domain Graph Prompting with Adaptive Fusion of Pre-trained Graph Neural Networks

Dongxiao He, Wenxuan Sun, Yongqi Huang, Jitao Zhao, Di Jin

Abstract

Graph Prompt Learning (GPL) has emerged as a powerful technique for adapting pre-trained Graph Neural Networks (GNNs) to downstream tasks with minimal labeled data. However, applying GPL in cross-domain scenarios—where the pre-training and downstream data distributions differ significantly—remains challenging. Surprisingly, simple baselines like full fine-tuning and linear probing often rival complex GPL methods in these settings. To address this, researchers introduce GP2F (Cross-Domain Graph Prompting with Adaptive Fusion), a novel framework that explicitly combines frozen pre-trained knowledge with task-specific adaptation. Supported by theoretical proofs demonstrating reduced estimation error, GP2F achieves state-of-the-art performance in few-shot cross-domain classification while remaining highly parameter-efficient.

The Challenge of Cross-Domain Graph Prompting

Graph Neural Networks are highly effective at capturing structural and relational data, but training them from scratch requires massive amounts of labeled data. Graph Prompt Learning (GPL) mitigates this by "prompting" a frozen, pre-trained model to perform new tasks using only a few labels (few-shot learning).

While GPL works well in-domain, real-world applications frequently involve cross-domain shifts. For instance, a model pre-trained on citation networks might be deployed on product co-purchase graphs. Under these severe distribution shifts, existing GPL methods often struggle. Empirical observations reveal a surprising trend: simple baselines like Linear Probing (training only a final classification layer) and Fine-Tuning (retraining the entire network) frequently perform as well as, or better than, sophisticated GPL techniques. This suggests that pre-trained GNNs capture highly transferable structural information, but existing prompting mechanisms fail to optimally balance this pre-trained stability with the flexibility needed for new domains.

The GP2F Framework

To explicitly leverage the strengths of both pre-trained stability and task-specific flexibility, the authors propose GP2F, a dual-branch architecture designed for adaptive fusion. The framework consists of four core components:

  1. Dual-Branch Encoding: Instead of choosing between a frozen or a fine-tuned model, GP2F utilizes both simultaneously.
  2. Frozen Branch: A pre-trained GNN that preserves universal, domain-agnostic structural knowledge.
  3. Adapted Branch: A pathway utilizing lightweight Residual Adapters—bottleneck layers that project features into a lower-dimensional space and back up. This allows the model to learn task-specific nuances without distorting the original feature space.
  4. Adaptive Fusion: A learnable scaling factor ($\alpha$) dynamically weights the contribution of each branch. This mechanism allows the model to rely heavily on pre-trained knowledge during early training stages and gradually shift toward adapted features as it learns the target domain.
  5. Structural Contrastive Loss ($L_{ctr}$): This loss function treats the outputs of the two branches as different "views" of the same graph, forcing them to align their semantic representations and preventing the adapted branch from drifting too far from the pre-trained latent space.
  6. Topology-Consistent Fusion Loss ($L_{fus}$): To ensure the final fused representations respect the underlying graph structure, this loss penalizes the model if nodes that are connected in the original graph do not exhibit similar fused embeddings.

Theoretical Foundations and Key Insights

The design of GP2F is grounded in a rigorous theoretical analysis. The authors mathematically prove that if a model has two unbiased but noisy observations of a "latent" ideal representation (represented by the frozen and adapted branches), an affine combination of the two will consistently yield a smaller mean-squared error than relying on either branch alone.

This insight explains why GP2F avoids the "representation drift" commonly seen in full fine-tuning, where models overfit to few-shot examples and forget useful pre-trained patterns. Furthermore, the paper highlights that Linear Probing is a remarkably strong baseline in cross-domain settings, reinforcing the idea that pre-trained GNNs are "sleeping giants" of transferable information. By using the graph's topology as a regularizer, GP2F ensures that new knowledge learned by the adapters integrates seamlessly with fundamental structural relationships.

Experimental Results

GP2F was rigorously evaluated across a comprehensive suite of 15 real-world datasets, encompassing both node classification (e.g., Cora, CiteSeer, WikiCS, ogbn-arxiv, ogbn-products) and graph classification (e.g., PROTEINS, MUTAG, ENZYMES). The experiments focused specifically on cross-domain transfer.

  • Superior Accuracy: In 1-shot node classification tasks, GP2F outperformed the best existing GPL methods by an average of 1.66%, achieving gains as high as 3.5% on specific datasets like CiteSeer and CS.
  • Robustness: The framework's performance remains consistent regardless of the underlying pre-training strategy (e.g., GRACE, DGI, or GraphMAE).
  • Parameter Efficiency: By relying on lightweight adapters, GP2F requires training only 9.23% of the parameters compared to full fine-tuning, making it highly efficient to deploy.
  • Scalability: Unlike many memory-intensive GPL methods, GP2F successfully scales to massive datasets like ogbn-products, which contains over 2.4 million nodes.

Limitations and Future Directions

While GP2F represents a significant step forward, the authors note a few limitations. The theoretical proof relies on idealized assumptions, such as linearly separable latent representations and unbiased errors. In cases of extreme "negative transfer"—where the source and target domains share virtually no commonality—these assumptions may weaken. Additionally, the auxiliary contrastive and topology losses introduce a slight computational overhead during training compared to simpler baselines.

Looking ahead, the authors suggest exploring how this dual-branch adaptive fusion approach could be integrated into emerging Graph Foundation Models (GFMs), which are pre-trained on hundreds of diverse domains simultaneously, potentially unlocking even greater cross-domain adaptability.

Summary updated

BibTeX
@inproceedings{he2026gp,
  author = {Dongxiao He and Wenxuan Sun and Yongqi Huang and Jitao Zhao and Di Jin},
  title = {{GP2F: Cross-Domain Graph Prompting with Adaptive Fusion of Pre-trained Graph Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=aDYZuNjHsi},
}
Figure