Black-Box Attacks Against Signed Graph Analysis via Balance Poisoning

Jialong Zhou, Yuni Lai, Jian Ren, Kai Zhou

TL;DR

Signed Graph Neural Networks (SGNNs) rely heavily on "balance theory"—the social logic that "the enemy of my enemy is my friend"—to predict relationships. This paper introduces balance-attack, a novel black-box poisoning attack that degrades model performance by strategically flipping edge signs to reduce a graph's "balance degree." By disrupting the structural patterns these models expect, the researchers successfully tanked the accuracy of five state-of-the-art SGNNs across four real-world datasets.

What Problem Does This Paper Address?

Signed graphs are essential for modeling social interactions because they capture both positive (trust, like) and negative (distrust, hate) relationships. To analyze these, researchers use SGNNs for tasks like link sign prediction (guessing if a new connection will be friendly or hostile).

Most SGNNs are built on the assumption of Balance Theory, which suggests that "balanced" triangles (e.g., three friends, or two enemies with a common friend) are the natural state of social networks. However, the authors identified a critical security gap: while there are many adversarial attacks for unsigned graphs (like Nettack or Metattack), there is a distinct lack of effective black-box attacks tailored for the unique structure of signed graphs. If a model's intelligence is rooted in structural balance, can an attacker destroy that balance to blind the model?

Methods

The authors propose balance-attack, a poisoning attack that operates in a black-box setting—meaning the attacker doesn't need to know the model's architecture or parameters.

  1. Objective Function: The attack aims to minimize the Balance Degree ($D_3(G)$), which is the ratio of balanced triangles to total triangles in a graph.
  2. The Challenge: Optimizing for minimum balance is an NP-hard problem.
  3. The Solution (Greedy Flips): To make the attack computationally feasible, the authors developed a heuristic algorithm. It calculates the gradient of the balance degree function with respect to the adjacency matrix. It then iteratively selects the edges with the highest absolute gradient values and flips their signs (positive to negative or vice versa), provided the flip aligns with the direction of the gradient.
  4. Constraints: To keep the attack "inconspicuous," they limit the number of flips to a specific "perturbation budget" ($\Delta$).

Datasets

The researchers evaluated their attack on four well-known real-world signed network datasets:

  • Bitcoin-Alpha & Bitcoin-OTC: Networks of users rating each other's trustworthiness on trading platforms.
  • Slashdot: A technology news site where users can tag others as "friends" or "foes."
  • Epinions: A consumer review site where users indicate trust or distrust in others.

These datasets are characterized by high "positivity ratios" (80-90% of edges are positive), making them naturally imbalanced in terms of class distribution but highly balanced in terms of social theory.

Key Insights and Ideas

  • The Irony of Balance: The very feature that makes SGNNs powerful—their adherence to social psychology theories—is their greatest vulnerability. By targeting the underlying "logic" of the data rather than the model's weights, the attack remains effective across different architectures.
  • Structural Poisoning: Unlike attacks that focus on node features, this attack is purely structural. It proves that even without knowing user attributes, an attacker can degrade a system's predictive power just by manipulating a small percentage of reported relationships.
  • Universal Vulnerability: Surprisingly, the attack worked even on models that don't explicitly use balance theory in their loss functions (like contrastive learning models SGCL and UGCL). This suggests that balance is such a fundamental property of signed graphs that any model learning from them becomes implicitly dependent on it.

Key Results

The authors compared balance-attack against a random sign-flipping baseline across five models (SGCN, SNEA/SDGNN, RSGNN, SGCL, and UGCL).

  • Drastic Balance Reduction: While random attacks barely moved the needle, balance-attack reduced the balance degree of the datasets from ~0.9 down to ~0.1 with a 20% perturbation rate.
  • Performance Drop: In link sign prediction tasks, the Micro-F1 and Binary-F1 scores dropped significantly. For example, on the Bitcoin-Alpha dataset using the RSGNN model, the Micro-F1 score plummeted from 0.88 to 0.63.
  • Superiority over Random: In almost every test case, balance-attack outperformed random flipping by a wide margin, proving that strategic "poisoning" of social triangles is far more damaging than noise.

Limitations and Future Work

While the attack is highly effective, the authors note a few areas for further exploration:

  • Attack Scope: The current method focuses on flipping existing edge signs. Future iterations could explore the impact of adding or deleting edges entirely.
  • Defense Mechanisms: The paper serves as a "wake-up call." The authors suggest that future research should focus on developing SGNNs that are more resilient to structural poisoning, perhaps by incorporating "status theory" or other social metrics that aren't as easily manipulated as simple triangles.
  • Real-time Constraints: The greedy algorithm, while efficient, still requires multiple passes over the graph; optimizing this for massive-scale networks remains a challenge.

The code for this research is available on GitHub.

Summary updated

BibTeX
@inproceedings{zhou2024black,
  author = {Jialong Zhou and Yuni Lai and Jian Ren and Kai Zhou},
  title = {{Black-Box Attacks Against Signed Graph Analysis via Balance Poisoning}},
  booktitle = {ICNC},
  year = {2024},
  url = {https://openreview.net/forum?id=RaorVCEmBl},
}
Figure