Attribute-guided Dynamic Prompt Learning for Graph Neural Networks

Authors

  • Zhuomin Liang Shanxi University
  • Liang Bai Shanxi university
  • Xian Yang University of Manchester

DOI:

https://doi.org/10.1609/aaai.v40i28.39515

Abstract

Graph Neural Networks (GNNs) have achieved remarkable success in analyzing graph-structured data, with their performance dependent on the graph structure. However, models trained on high-quality graph structures often suffer a significant performance drop when evaluated on perturbed graphs. Existing methods tackle this problem by improving the robustness of GNNs, but they often overlook representation deviation caused by structural changes. To address this limitation, we propose an attribute-guided dynamic prompt learning model that generates prompt vectors to approximate the intrinsic information of nodes. With these prompt vectors, the trained GNNs are expected to maintain their performance under perturbed graph structures. Unlike previous prompt-based methods that learn unified prompt vectors for all nodes, we obtain node-level prompts by encoding node attributes that provide unique information. Given the diversity of perturbed graph structures during inference, we introduce a structure-aware adaptation mechanism that adjusts the prompt vectors based on the input graph. Furthermore, we apply gradient-based attacks to generate perturbed graphs, encouraging the model to generalize to unseen structures. Extensive experiments on multiple benchmark datasets demonstrate the effectiveness and robustness of our model.

Published

2026-03-14

How to Cite

Liang, Z., Bai, L., & Yang, X. (2026). Attribute-guided Dynamic Prompt Learning for Graph Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 40(28), 23442–23450. https://doi.org/10.1609/aaai.v40i28.39515

Issue

Section

AAAI Technical Track on Machine Learning V