Abstract
Signed graphs serve as fundamental data structures for representing positive and negative relationships in social networks, with signed graph neural networks (SGNNs) emerging as the primary tool for their analysis. Our investigation reveals that balance theory, while essential for modeling signed relationships in SGNNs, inadvertently introduces exploitable vulnerabilities to black-box attacks. To showcase this, we propose balance-attack, a novel adversarial strategy specifically designed to compromise graph balance degree, and develop an efficient heuristic algorithm to solve the associated NP-hard optimization problem. While existing approaches attempt to restore attacked graphs through balance learning techniques, they face a critical challenge we term "Irreversibility of Balance-related Information," as restored edges fail to align with original attack targets. To address this limitation, we introduce Balance Augmented-Signed Graph Contrastive Learning (BA-SGCL), an innovative framework that combines contrastive learning with balance augmentation techniques to achieve robust graph representations. Extensive experiments across multiple SGNN architectures and real-world datasets demonstrate both the effectiveness of our proposed balance-attack and the superior robustness of BA-SGCL, advancing the security and reliability of signed graph analysis in social networks.
Introduction
In social networks, relationships are defined not just by connectivity but by sentiment. Signed graphs represent these interactions as positive (trust, like) or negative (distrust, dislike) edges. To predict missing signs, Signed Graph Neural Networks (SGNNs) rely heavily on Social Balance Theory, which posits that social structures tend toward stability. This is often summarized by the adages "the friend of my friend is my friend" and "the enemy of my enemy is my friend."
However, this reliance creates a critical security gap. Because SGNNs are so dependent on these balanced triangular structures, they are highly susceptible to adversarial attacks. An attacker can flip a small percentage of edge signs to create "unbalanced" triangles, effectively blinding the model and causing it to learn flawed representations.
The "Defense Trap": Irreversibility
A significant challenge in defending against such attacks is the Irreversibility of Balance-related Information. Simply attempting to "re-balance" a poisoned graph is insufficient because many different sign distributions can result in the same balance score. While a defense might restore the overall balance degree, it does not necessarily restore the original, correct signs, leading to a "defense trap" where the model remains inaccurate despite appearing structurally sound.
Methodology
The researchers contribute both a potent new attack and a robust defense framework:
1. The Attack: balance-attack
Since directly optimizing model error in a black-box setting is NP-hard, the authors use the graph's balance degree (the fraction of balanced triads) as a proxy. They developed a greedy heuristic algorithm that iteratively flips the signs of edges that cause the largest estimated decrease in the overall balance of the graph.
2. The Defense: BA-SGCL Framework
To bypass the irreversibility problem, the authors propose Balance Augmented-Signed Graph Contrastive Learning (BA-SGCL). Instead of trying to fix the input graph directly, they use a dual-view contrastive approach:
- Negative View: The original, potentially poisoned input graph.
- Positive View: An augmented version where a learnable augmenter flips signs specifically to increase the balance degree.
- The Goal: The model is trained to maximize the agreement between the embeddings of these two views. This forces the encoder to ignore the "noise" of the attack and focus on the underlying, robust features that characterize a well-structured, balanced graph in the latent space.
Key Results
The framework was evaluated on four real-world datasets: Bitcoin-Alpha, Bitcoin-OTC, Slashdot, and Epinions.
- Attack Potency: The
balance-attacksignificantly outperformed random baselines. With only a 5% perturbation rate, it reduced the balance degree of the Bitcoin-Alpha dataset from 0.85 to nearly 0.4. - Model Resilience: BA-SGCL showed superior robustness across the board. Under a heavy 20% balance-attack on the Bitcoin-Alpha dataset, BA-SGCL maintained an AUC of 0.7474, while the state-of-the-art SDGNN dropped to 0.5124 (barely better than a random guess).
- Generalization: The attack was effective against nine different SGNN architectures, proving that this is a fundamental vulnerability in the field rather than a flaw in one specific model.
Conclusion
This research highlights that the very principles used to power SGNNs can be exploited as adversarial vulnerabilities. By introducing the balance-attack and the BA-SGCL defense framework, the authors provide a path toward more secure and reliable signed graph analysis. Future work will focus on scaling these methods to massive graphs and exploring mathematical guarantees for robustness.
Summary updated