Learning on Graphs with Large Language Models(LLMs): A Deep Dive into Model Robustness

Kai Guo, Zewen Liu, Zhikai Chen, Hongzhi Wen, Wei Jin, Jiliang Tang, Yi Chang · DOI

Introduction

Graph Neural Networks (GNNs) have become the standard for modeling relational data, yet they remain notoriously fragile to adversarial perturbations. Small, targeted changes to graph structure—such as adding or deleting a few edges—can significantly degrade performance. With the rise of Large Language Models (LLMs), a new paradigm has emerged: integrating LLMs with Text-Attributed Graphs (TAGs). While these "Graph-LLMs" excel in accuracy, their robustness against adversarial attacks remained largely unexplored until now.

The Robustness Framework

To address this gap, researchers developed a comprehensive benchmark to stress-test Graph-LLMs. The study categorizes these models into two primary architectures:

  1. LLMs-as-Enhancers: LLMs serve as sophisticated feature extractors, converting node text into high-dimensional embeddings which are then fed into a standard GNN (like a GCN) for the final task.
  2. LLMs-as-Predictors: LLMs directly process graph structure and node text via prompting to "reason" their way to a prediction.
The proposed attack framework for evaluating Graph-LLM robustness across different architectures and datasets.

Adversarial Attack Scenarios

The framework evaluates robustness against two types of evasion attacks occurring at inference time:

  • Structural Attacks: Algorithms like PGD and PRBCD are used to manipulate graph edges (edge-flipping).
  • Textual Attacks: Word-level substitutions (e.g., SemAttack) are applied to node descriptions to mislead the model while preserving semantic intent.
Four distinct attack scenarios evaluated in the study, covering both structural and textual perturbations for Enhancer and Predictor paradigms.

Key Insights

The investigation yielded several critical findings regarding the inherent resilience of LLM-based graph models:

  • Feature Superiority: Unlike shallow methods like Bag-of-Words (BOW), LLMs generate highly distinguishable features. This semantic strength reduces the model's reliance on potentially compromised structural information, making it harder to fool with edge-flipping.
  • Structural Filtering: GNNs act as a natural defense against textual attacks by aggregating information from neighbors. If one node's text is "poisoned," clean information from its neighbors helps smooth out the error.
  • Impact of Fine-Tuning: Fine-tuning models (e.g., LLaMA-FT using LoRA) significantly enhances their adversarial resilience compared to using vanilla pre-trained versions.
  • Predictor Resilience: LLMs-as-Predictors (e.g., GPT-3.5) demonstrate remarkable zero-shot robustness. The process of summarizing neighbor information appears to naturally filter out adversarial noise.

Quantitative Results

The empirical results highlight a stark contrast between traditional models and Graph-LLMs:

  • Structural Resilience: On the PubMed dataset, a 25% edge perturbation caused a 13.9% accuracy drop for traditional TF-IDF features, while LLaMA-based features only saw a 3.9% drop.
  • Textual Resilience: In Cora dataset tests, the Attack Success Rate (ASR) for a fine-tuned LLaMA was 4.37%, significantly lower than the 9.27% observed for standard BOW models.
  • Predictor Performance: InstructGLM maintained a performance gap of only 0.58% under a 5% structural attack on PubMed, outperforming standard GCNs which saw a 3.24% drop.

Conclusion and Future Directions

This study confirms that the deep semantic understanding of LLMs provides a significant robustness advantage over traditional shallow graph models. However, the authors acknowledge that this is only the beginning. Future research should expand into link prediction and graph-level classification, address poisoning attacks during training, and develop defenses against simultaneous multi-modal (text and structure) attacks, which preliminary data suggests are more effective than single-mode perturbations.

Summary updated

BibTeX
@misc{guo2024learning,
  author = {Kai Guo and Zewen Liu and Zhikai Chen and Hongzhi Wen and Wei Jin and Jiliang Tang and Yi Chang},
  title = {{Learning on Graphs with Large Language Models(LLMs): A Deep Dive into Model Robustness}},
  year = {2024},
  eprint = {2407.12068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.12068},
}
Figure