Introduction
Graph Neural Networks (GNNs) have become a cornerstone for high-stakes, human-centered applications, ranging from social network recommendations to credit scoring. To mitigate the risk of discriminatory outcomes, researchers have developed fairness-aware GNNs designed to ensure equitable predictions across demographic groups. However, the security of these fairness mechanisms remains largely unexplored.
While traditional adversarial attacks on GNNs typically aim to degrade model utility (accuracy), a more insidious threat exists: attacks that specifically target fairness. An adversary might seek to subtly bias a model for competitive or personal gain without triggering performance alarms. This paper introduces G-FairAttack, the first framework designed to perform such "stealthy" fairness attacks.
The G-FairAttack Framework
G-FairAttack addresses the challenge of attacking "gray-box" models where the specific fairness metric or mechanism used by the victim is unknown. The framework relies on several key innovations:
- Universal Surrogate Loss: The authors utilize Total Variation (TV) as a surrogate loss. They provide a mathematical proof that TV serves as a common upper bound for most major fairness metrics, such as Demographic Parity and Mutual Information. This allows the attack to generalize across various fairness-aware architectures.
- Unnoticeable Utility Constraint: To maintain stealth, the framework incorporates a strict constraint ensuring that the model's accuracy does not drop beyond a minimal threshold ($\epsilon$). By keeping utility stable, the attack remains undetected by standard monitoring systems.
- Sequential Greedy Optimization: The attack strategically selects edges to flip (add or remove) one by one to maximize the induced bias.
- Fast Computation Technique: To scale to large real-world graphs, the authors developed an incremental update method. Instead of re-calculating the entire GNN state after every perturbation, they update only the affected aggregated features, achieving up to a 95% speedup.
Experimental Evaluation
The effectiveness of G-FairAttack was evaluated on three real-world datasets: Facebook (predicting education level), Pokec_z (predicting work fields), and Credit (predicting defaults). The attack was tested against several victim models, including standard GCNs and specialized fairness-aware models like FairGNN and EDITS.
Key Results
Experimental results demonstrate that G-FairAttack consistently outperforms existing baselines in increasing bias while maintaining high accuracy. As shown in the comprehensive results table below, the attack significantly increases the demographic parity gap ($\Delta_{dp}$) across different datasets and victim models.
For instance, on the Facebook dataset with a Regularized GNN, G-FairAttack more than doubled the bias (increasing $\Delta_{dp}$ from 3.06% to 6.84%) while accuracy remained stable at 81%. In contrast, random attacks or simpler fairness-agnostic attacks failed to achieve similar levels of bias without significantly impacting utility.
Discussion and Future Work
The findings reveal that fairness is a distinct and vulnerable attack surface in GNNs. The ability to decouple social bias from overall performance highlights a critical gap in current defense mechanisms. While some preprocessing methods like EDITS offer marginal protection, most current fairness-aware GNNs are fundamentally vulnerable to targeted structural perturbations.
Future research is urgently needed to develop "robust fairness" frameworks that can withstand adversarial attempts to corrupt a model's ethical alignment. Additionally, while this work focuses on structural attacks (edges), extending these principles to node attribute perturbations remains an important next step.
Summary updated