NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Provable Robustness of (Graph) Neural Networks Against Data Poisoning and Backdoor Attacks

Lukas Gosch, Mahalakshmi Sabanayagam, Debarghya Ghoshdastidar, Stephan Günnemann

Abstract

Generalization of machine learning models can be severely compromised by data poisoning, where adversarial changes are applied to the training data. This vulnerability has led to interest in certifying (i.e., proving) that such changes up to a certain magnitude do not affect test predictions. We, for the first time, certify Graph Neural Networks (GNNs) against poisoning attacks, including backdoors, targeting the node features of a given graph. Our certificates are white-box and based upon (i) the neural tangent kernel, which characterizes the training dynamics of sufficiently wide networks; and (ii) a novel reformulation of the bilevel optimization problem describing poisoning as a mixed-integer linear program. Consequently, we leverage our framework to provide fundamental insights into the role of graph structure and its connectivity on the worst-case robustness behavior of convolution-based and PageRank-based GNNs. We note that our framework is more general and constitutes the first approach to derive white-box poisoning certificates for NNs, which can be of independent interest beyond graph-related tasks.

Introduction

Machine learning models are notoriously fragile to adversarial manipulation. In a data poisoning attack, an adversary injects malicious samples into the training set to subvert the model's future behavior. A backdoor attack is even more insidious: the model learns to predict normally on most data but misclassifies any input containing a specific "trigger." While empirical defenses exist, they often fail against novel attacks. Robustness certificates aim to end this cycle by providing a mathematical proof that a prediction is guaranteed not to change as long as the attacker's budget remains below a certain threshold. Until now, such "white-box" certificates were an unsolved problem for Neural Networks (NNs) due to their complex, non-linear training dynamics.

The QPCert Framework

This paper introduces QPCert, the first framework for "white-box" poisoning certificates for (Graph) Neural Networks. The core innovation lies in bridging the gap between neural network training and linear optimization.

The QPCert framework: mapping (G)NNs to SVMs via NTK and certifying via MILP.

The framework operates in three main steps:

  1. The NTK Bridge: Utilizing the Neural Tangent Kernel (NTK) theory, the authors show that in the "infinite-width limit," the training dynamics of a neural network are equivalent to a kernelized Support Vector Machine (SVM).
  2. Bilevel Reformulation: Poisoning is inherently a "bilevel" problem: the attacker maximizes error while the model minimizes loss. The authors use Karush–Kuhn–Tucker (KKT) conditions to collapse this into a single-level optimization.
  3. MILP Transformation: Using "big-M" linearization, the problem is transformed into a Mixed-Integer Linear Program (MILP), which can be solved to provide deterministic safety guarantees.

Experimental Evaluation

The framework was evaluated on standard node classification benchmarks, including Cora-ML, WikiCS, and synthetic CSBM (Contextual Stochastic Block Models) graphs.

Certified accuracy across various GNN architectures and datasets under different perturbation budgets.

Key results include:

  • Superior Robustness: On the CSBM dataset, QPCert certified robustness for perturbations over an order of magnitude larger than previous gradient-based attempts for MLPs.
  • Scalability: The MILP complexity scales with the number of labeled nodes, making it practical for semi-supervised settings where labels are scarce.
  • Tightness: The authors mathematically proved that their bounds on the NTK are "tight," representing the best possible bounds under the given constraints.

Insights and Discussion

The framework provides several fundamental insights into GNN robustness:

  • Graph Structure as a Shield: GNNs are significantly more robust than standard MLPs. By aggregating information from the surrounding "clean" unlabeled graph structure, GNNs can remain robust even if all labeled training nodes are poisoned.
  • The Connectivity Paradox: Higher graph connectivity helps against small feature perturbations but can increase vulnerability to strong attacks by allowing "poison" to propagate further through the network.
  • White-Box Advantage: By leveraging internal model mathematics, QPCert provides tighter certificates than "black-box" methods like Randomized Smoothing.

Conclusion and Future Work

While QPCert marks a significant milestone, it relies on the "infinite-width" assumption of NTKs, making certificates technically probabilistic for narrow networks. Currently, the framework handles poisoning of node features; addressing poisoning of the graph structure (edges) remains an open challenge due to the non-linearities it introduces into the NTK. Future research will explore faster relaxations of the MILP to scale to fully supervised datasets with larger labeled sets.

Summary updated

BibTeX
@article{gosch2025provable,
  author = {Lukas Gosch and Mahalakshmi Sabanayagam and Debarghya Ghoshdastidar and Stephan Günnemann},
  title = {{Provable Robustness of (Graph) Neural Networks Against Data Poisoning and Backdoor Attacks}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=jIAPLDdGVx},
}
Figure