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 demonstrate this vulnerability, 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," where 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. By maintaining high balance degree in the latent space, BA-SGCL effectively circumvents the irreversibility challenge and enhances model resilience. 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. Datasets and codes of the proposed framework are at the github repository https://anonymous.4open.science/r/BA-SGCL-submit-DF41/.
Introduction
In social network analysis, relationships are often characterized by sentiment, represented as signed graphs with positive edges (e.g., trust, friendship) and negative edges (e.g., distrust, conflict). A primary task in this domain is link sign prediction—forecasting the polarity of future interactions. Most state-of-the-art Signed Graph Neural Networks (SGNNs) rely heavily on Balance Theory, a social science insight summarized by principles like "the enemy of my enemy is my friend."
While Balance Theory provides a powerful inductive bias for modeling social structures, it also introduces a significant security vulnerability. Attackers can strategically flip a small number of edge signs to create unbalanced triangles, causing the predictive accuracy of SGNNs to plummet.
The Vulnerability: Balance-Attack and Irreversibility
The researchers identified that the very logic SGNNs use to learn—maximizing structural balance—can be turned against them. They propose balance-attack, a black-box poisoning strategy. Without needing access to a model's internal gradients, an attacker can use the graph's overall balance degree as a proxy. By employing a greedy, gradient-guided heuristic, the attack iteratively flips edge signs that most drastically reduce the network's balance.
A significant hurdle in defending against such attacks is the "Irreversibility of Balance-related Information." Traditional structural learning defenses attempt to "fix" a poisoned graph by maximizing its balance degree. However, because there are numerous ways to achieve a balanced state, the restored structure often fails to match the original, un-attacked graph. This discrepancy makes direct structural recovery ineffective for maintaining predictive performance.
The BA-SGCL Framework
To overcome the irreversibility challenge, the authors developed Balance Augmented-Signed Graph Contrastive Learning (BA-SGCL). Rather than attempting to repair the graph structure directly, BA-SGCL focuses on learning robust node representations in the latent space that are invariant to adversarial noise.
The framework utilizes a contrastive learning approach with two distinct views:
- Negative View: The original, potentially poisoned input graph.
- Positive View: A version of the graph generated by a learnable augmenter. This augmenter uses a Bernoulli distribution to flip signs in a way that increases the balance degree, serving as a "cleaner" reference.
By maximizing the mutual information (agreement) between the embeddings ($Z_1, Z_2$) of these two views, the encoder learns to prioritize underlying social signals over malicious perturbations.
Experimental Evaluation
The framework was evaluated on four real-world datasets: Bitcoin-Alpha, Bitcoin-OTC, Slashdot, and Epinions. These datasets are typically imbalanced, with a high "positivity bias" that makes negative edge prediction difficult.
Key findings include:
- Attack Potency: The
balance-attackproved highly effective, reducing the balance degree of the Bitcoin-Alpha dataset from approximately 0.9 to 0.1 with only a 20% perturbation rate. - Robustness: BA-SGCL consistently outperformed nine state-of-the-art baselines. Under a 20% attack on Bitcoin-Alpha, BA-SGCL achieved an AUC of 0.7474, significantly higher than standard SGNNs which dropped as low as 0.65.
- Generalization: Interestingly, BA-SGCL also improved performance on clean graphs, suggesting that balance-based augmentation acts as an effective regularizer even in the absence of an attacker.
Conclusion
The reliance of SGNNs on Balance Theory creates a vulnerability that can be exploited by targeted adversarial attacks. BA-SGCL addresses this by shifting the focus from structural repair to robust representation learning via contrastive balance augmentation. Future work will explore attacks modifying graph topology and scaling the framework to larger networks.
Summary updated