Abstract
Recent works show that Graph Neural Networks (GNNs) are highly non-robust with respect to adversarial attacks on both the graph structure and the node attributes, making their outcomes unreliable. We propose the first method for certifiable (non-)robustness of graph convolutional networks with respect to perturbations of the node attributes. We consider the case of binary node attributes (e.g. bag-of-words) and perturbations that are $L_0$-bounded. If a node has been certified with our method, it is guaranteed to be robust under any possible perturbation given the attack model. Likewise, we can certify non-robustness. Finally, we propose a robust semi-supervised training procedure that treats the labeled and unlabeled nodes jointly. As shown in our experimental evaluation, our method significantly improves the robustness of the GNN with only minimal effect on the predictive accuracy.
Introduction
Graph Neural Networks (GNNs) have become the gold standard for node classification tasks, such as identifying document topics in citation networks or detecting fraudulent accounts in social graphs. However, these models are surprisingly fragile. Flipping just a few binary features on a node or its neighbors can easily break their predictions. In a graph setting, this vulnerability is compounded by relational dependencies: an attacker can modify a target node's neighbors to influence the target's prediction.
Existing defense mechanisms are often heuristic, offering protection against specific known attacks but providing no guarantees against novel strategies. This paper addresses the challenge of certifiable robustness: providing a mathematical proof that no possible perturbation within a certain budget (e.g., flipping $Q$ binary attributes) can change a model's output.
Methodology
The authors focus on Graph Convolutional Networks (GCNs) with binary node attributes. Their approach consists of two main components: robustness certification and a novel training procedure.
Robustness Certification via Convex Relaxation
Finding the "worst-case" perturbation is a non-convex, NP-hard problem due to the non-linear ReLU activations in GNNs. To overcome this, the authors employ a convex relaxation, replacing the ReLU function with a linear "envelope" (a set of linear constraints).
This transformation turns the certification problem into a Linear Program (LP). If the lower bound of the margin between the correct class and any other class remains positive in this relaxed space, the node is guaranteed to be robust in the original space. To make this computationally feasible for large graphs, the authors derive an efficient dual formulation that can be computed via a "backward pass" through the GNN.
Robust Training (RH-U)
The authors propose a "Robust Hinge Loss" (RHL) that encourages the model to maximize the worst-case margin rather than just minimizing classification error. Crucially, they extend this to unlabeled nodes (RH-U). By forcing the model to be stable across the entire graph, the training procedure exploits the semi-supervised nature of GNN tasks, acting as a powerful regularizer that prevents overconfidence and improves generalization.
Experimental Evaluation
The method was evaluated on three standard citation network benchmarks: Cora-ML, Citeseer, and PubMed. The perturbations considered were $L_0$-bounded, meaning the attacker can flip a fixed number of binary bits across the node and its neighborhood.
Key Results
- Fragility of Standard GCNs: In a traditionally trained GCN on Citeseer, fewer than 20% of nodes could be certified as robust against a small budget of 12 attribute flips.
- Significant Robustness Gains: Using the proposed RH-U training, the number of certifiably robust nodes on Citeseer quadrupled for the same perturbation budget.
- Minimal Accuracy Trade-off: Surprisingly, the robust models maintained nearly identical accuracy to standard models. On the PubMed dataset, robust training actually improved generalization accuracy on unlabeled nodes.
As shown in the figure above, the RH-U method (orange line) consistently maintains a higher percentage of certifiably robust nodes across varying perturbation budgets ($Q$) compared to standard cross-entropy (CE) and other robust variants.
Conclusion
This work provides the first framework for certifying the robustness of GNNs against attribute perturbations. By combining convex relaxation with a robust training objective that includes unlabeled data, the authors demonstrate that it is possible to build GNNs that are significantly more resilient to adversarial attacks without sacrificing predictive performance. Future work remains to address structural attacks involving the addition or removal of edges.
Summary updated