Skip to main navigation Skip to search Skip to main content

Can LLMs Fool Graph Learning? Exploring Universal Adversarial Attacks on Text-Attributed Graphs

  • Zihui Chen
  • , Yuling Wang*
  • , Pengfei Jiao
  • , Kai Wu
  • , Xiao Wang
  • , Xiang Ao
  • , Dalin Zhang
  • *Corresponding author for this work
  • Hangzhou Dianzi University
  • CAS - Institute of Computing Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Text-attributed graphs (TAGs) enhance graph learning by integrating rich textual semantics and topological context for each node. While boosting expressiveness, they also expose new vulnerabilities in graph learning through text-based adversarial surfaces. Recent advances leverage diverse backbones, such as graph neural networks (GNNs) and pre-trained language models (PLMs), to capture both structural and textual information in TAGs. This diversity raises a key question: How can we design universal adversarial attacks that generalize across architectures to assess the security of TAG models? The challenge arises from the stark contrast in how different backbones - GNNs and PLMs - perceive and encode graph patterns, coupled with the fact that many PLMs are only accessible via APIs, limiting attacks to black-box settings. To address this, we propose BadGraph, a novel attack framework that deeply elicits large language models' (LLMs) understanding of general graph knowledge to jointly perturb both node topology and textual semantics. Specifically, we design a target influencer retrieval module that leverages graph priors to construct cross-modally aligned attack shortcuts, thereby enabling efficient LLM-based perturbation reasoning. Experiments show that BadGraph achieves universal and effective attacks across GNN- and LLM-based reasoners, with up to a 76.3% performance drop, while theoretical and empirical analyses confirm its stealthy yet interpretable nature.

Original languageEnglish
Title of host publicationWWW 2026 - Proceedings of the ACM Web Conference 2026
PublisherAssociation for Computing Machinery, Inc
Pages1217-1228
Number of pages12
ISBN (Electronic)9798400723070
DOIs
StatePublished - 12 Apr 2026
Event35th ACM Web Conference, WWW 2026 - Dubai, United Arab Emirates
Duration: 29 Jun 20263 Jul 2026

Publication series

NameWWW 2026 - Proceedings of the ACM Web Conference 2026

Conference

Conference35th ACM Web Conference, WWW 2026
Country/TerritoryUnited Arab Emirates
CityDubai
Period29/06/263/07/26

Keywords

  • graph machine learning
  • text-attributed graph attacks

Fingerprint

Dive into the research topics of 'Can LLMs Fool Graph Learning? Exploring Universal Adversarial Attacks on Text-Attributed Graphs'. Together they form a unique fingerprint.

Cite this