Abstract
Graph prompting has emerged as a powerful paradigm for bridging the objective gap between pre-training and downstream tasks in Graph Neural Networks (GNNs). However, existing methods often suffer from an "identity crisis" due to the common practice of freezing the GNN encoder, which forces connected nodes to have similar embeddings regardless of their actual labels. This limitation is particularly severe in heterophily graphs. We present DAGPrompT (Distribution-aware Graph Prompt Tuning), a framework that introduces Graph Low-Rank Adaptation (GLoRA) and hop-specific prompting. By enabling parameter-efficient tuning of the message-passing schema and adaptively weighting neighborhood information across different hops, DAGPrompT significantly improves performance in few-shot scenarios, setting a new state-of-the-art across diverse graph distributions.
Introduction: The Identity Crisis in Graph Prompting
The standard "pre-train then fine-tune" pipeline for GNNs often faces a significant objective gap. For instance, a model pre-trained on link prediction (determining connectivity) may be poorly suited for node classification (determining categories) if the graph exhibits heterophily—where connected nodes belong to different classes.
Recent graph prompting methods attempt to bridge this gap by reformulating downstream tasks to match the pre-training objective. However, to maintain efficiency, these methods typically freeze the GNN encoder. This "frozen encoder" dogma creates a bottleneck: the model is constrained by the pre-trained logic that "connectivity implies similarity." In heterophily graphs, such as dating networks or certain chemical graphs, this leads to the "identity crisis" where nodes with distinct labels are mapped to nearly identical positions in the latent space, making them indistinguishable for classification.
Proposed Method: DAGPrompT
To overcome these limitations, we propose DAGPrompT, which moves beyond the frozen encoder paradigm through two key innovations:
1. Graph Low-Rank Adaptation (GLoRA)
Inspired by LoRA in natural language processing, GLoRA allows the model to adapt the pre-trained GNN weights without full fine-tuning. It introduces trainable low-rank matrices into both the projection parameters and the message-passing schema. This enables the GNN to "unlearn" the connectivity bias when necessary, allowing it to distinguish between connected nodes based on downstream task requirements.
2. Hop-specific Graph Prompting
Recognizing that neighborhood distributions vary across different distances, DAGPrompT utilizes embeddings from every layer (hop) of the GNN. It employs layer-specific learnable prompts and a set of learnable coefficients to adaptively weight the influence of 1-hop, 2-hop, and L-hop neighborhoods. This multi-scale approach allows the model to identify the optimal neighborhood distance for a given dataset.
Experimental Evaluation
We evaluated DAGPrompT on 10 diverse datasets, including heterophily-heavy graphs (e.g., Texas, Wisconsin, Chameleon) and homophily-heavy graphs (e.g., Cora). The experiments focused on few-shot scenarios (1, 3, 5, and 10 shots), where prompting methods are most critical.
Key Results
- Superior Accuracy: DAGPrompT outperformed 14 baselines, including GCN, GPPT, and GraphPrompt, achieving an average accuracy improvement of 3.63%.
- Robustness to Heterophily: While traditional prompting methods' performance degrades as graph complexity increases, DAGPrompT maintains high accuracy by effectively handling diverse node distributions.
- Efficiency: Despite the addition of GLoRA parameters, DAGPrompT remains highly efficient in terms of training speed and memory usage, offering a better trade-off than full fine-tuning.
Conclusion
DAGPrompT addresses the fundamental "identity crisis" in graph prompting by introducing distribution-aware tuning mechanisms. By combining GLoRA with hop-specific prompts, the framework provides the flexibility needed to handle heterophily while maintaining the efficiency and few-shot capabilities of prompting. Theoretical analysis using Rademacher complexity further supports the effectiveness of this low-rank adaptation approach in balancing model capacity and generalization.
Summary updated