AdapterGNN: Efficient Delta Tuning Improves Generalization Ability in Graph Neural Networks

Shengrui Li, Xueting Han, Jing Bai · DOI

Abstract

Graph Neural Networks (GNNs) face significant challenges when fine-tuned on small downstream datasets, primarily due to overfitting and catastrophic forgetting. We introduce AdapterGNN, a novel parameter-efficient fine-tuning (PEFT) framework specifically designed for GNN architectures. By freezing the pre-trained backbone and inserting specialized "dual adapter" modules, AdapterGNN updates only ~5% of total parameters. Our results demonstrate that AdapterGNN consistently outperforms full fine-tuning across chemistry and biology benchmarks, improving performance by up to 5.7% while significantly reducing the generalization gap.

Introduction

The "pre-train then fine-tune" paradigm, while successful in Natural Language Processing (NLP), often fails in graph-based tasks where labeled data is scarce. Fine-tuning all parameters of a large GNN on a small dataset typically leads to the model memorizing noise rather than learning generalizable features. Furthermore, standard PEFT methods like LoRA, designed for Transformers, often underperform on GNNs because they do not account for the unique message-passing operations inherent to graph data.

The AdapterGNN Framework

AdapterGNN addresses these issues by introducing a dual-adapter architecture. Unlike standard adapters that follow a layer, AdapterGNN places one adapter before the message-passing step to process node features and another after to handle aggregated neighborhood information. This design ensures that the adapter captures the full context of graph operations. Additionally, the framework incorporates tunable Batch Normalization (BN) layers to manage distribution shifts and a learnable scaling factor ($s$) to balance pre-trained knowledge with task-specific updates.

Architecture of AdapterGNN featuring dual adapter modules.

Theoretical Motivation

The authors provide a theoretical justification based on generalization bounds. They argue that while massive Transformers often exhibit "double descent," GNNs on small datasets typically operate in the classical "U-shaped" error regime. In this regime, restricting the number of tunable parameters acts as a powerful structural regularizer, preventing the model from entering the over-parameterized zone where test error increases. By maintaining expressivity with a fraction of the weights, AdapterGNN hits the optimal sweet spot for generalization.

Experimental Results

Evaluation across 8 molecular datasets from MoleculeNet and the PPI protein dataset shows that AdapterGNN is the only PEFT method to consistently exceed the performance of full fine-tuning. On average, it achieved a 1.6% improvement in chemistry and a 5.7% improvement in biology tasks.

AdapterGNN performance vs. parameter efficiency compared to other PEFT baselines.

As shown in the results, AdapterGNN achieves these gains while tuning only 4% to 5.2% of parameters. It significantly outperforms other PEFT baselines such as BitFit, LoRA, and various prompt-tuning techniques, which often fail to match the full fine-tuning baseline. Furthermore, the "gap" between training and test error was significantly smaller for AdapterGNN, confirming its robustness against overfitting.

Conclusion

AdapterGNN demonstrates that for GNNs, "less is more." By strategically placing small, trainable modules within a frozen pre-trained network, we can achieve better generalization and higher performance with a fraction of the computational cost. While this study focused on the GIN architecture and graph-level classification, the principles of dual-adapter tuning provide a promising foundation for scaling GNNs to larger architectures and more diverse graph tasks.

Summary updated

BibTeX
@inproceedings{li2024adaptergnn,
  author = {Shengrui Li and Xueting Han and Jing Bai},
  title = {{AdapterGNN: Efficient Delta Tuning Improves Generalization Ability in Graph Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i12.29264},
}
Figure