Enhancing Robustness of Graph Neural Networks on Social Media with Explainable Inverse Reinforcement Learning

Yuefei Lyu, Chaozhuo Li, Sihong Xie, Xi Zhang

TL;DR

Researchers have developed MoE-BiEntIRL, a framework that uses Inverse Reinforcement Learning (IRL) to "reverse engineer" the strategies of social media attackers. By learning the underlying motives (reward functions) of diverse adversaries from a few captured samples, the system generates realistic synthetic attacks to train Graph Neural Networks (GNNs), significantly boosting their robustness and providing explainable insights into attacker behavior.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are the backbone of modern social media moderation, powering tasks like rumor detection and spam filtering. However, they are notoriously fragile; an attacker can flip just a few edges in a social graph (e.g., having a bot account follow a specific user or repost a message) to completely trick a detector.

Social Graph Rumors and Attack Styles

Defending against these "graph adversarial attacks" usually requires adversarial training—training the model on examples of attacks so it learns to ignore them. The challenge is that real-world attackers are diverse. Some use simple, low-cost rules, while others use sophisticated, high-cost optimization strategies. Social media platforms only capture a tiny fraction of these attacks.

Standard imitation learning (like Behavior Cloning) fails here because it suffers from "compounding errors"—small mistakes in predicting an attacker's next move snowball over time. Furthermore, platforms need to know why an attack is happening, not just what happened, to build better long-term defenses.

Methods

The authors propose MoE-BiEntIRL (Mixture-of-Experts Bidirectional Maximum Entropy Inverse Reinforcement Learning) to tackle these challenges.

MoE-BiEntIRL Framework

Here is how the framework operates:

  1. Mixture of Experts (MoE): Since attacks come from different sources with different goals, the model uses a "gating network" to cluster expert samples. Different "experts" within the model learn to represent different attack styles (e.g., stealthy attacks vs. high-impact attacks).
  2. Maximum Entropy IRL: Instead of just copying actions, IRL tries to find the reward function—the hidden objective the attacker is trying to maximize. The "Maximum Entropy" formulation ensures the model doesn't overfit to one specific sequence but learns a generalized policy.
  3. Hierarchical Action Space: To handle the massive scale of social graphs, the model breaks an attack (like adding an edge) into three manageable steps: picking a source subgraph, picking a destination subgraph, and finally picking the specific node pair.
  4. Precise Sample Guidance & Bidirectional Updates: Graph features can be noisy and misleading. To fix this, the authors introduce a mechanism that forces the agent to follow known expert actions early in training. They also implement a "bidirectional" update that synchronizes the learning of the reward function and the attack policy, preventing them from drifting apart.

Datasets

The framework was evaluated on two real-world rumor detection datasets:

  • Weibo: A large-scale dataset from the Chinese social media platform, containing over 10,000 nodes and 16,000 edges.
  • Pheme: A dataset based on Twitter conversations during the Ferguson unrest, focusing on how rumors spread during breaking news events.

To act as "experts" for the IRL to learn from, the authors used four existing attack methods: PageRank and GC-RWCS (low-cost/rule-based) and PR-BCD and AdRumor-RL (high-cost/optimization-based).

Key Insights and Ideas

  • Attackers aren't a monolith: By using MoE, the authors acknowledge that a single "average" attack policy is less effective than a collection of specialized ones. This allows the model to simulate a wider variety of adversarial behaviors.
  • Bypassing Feature Noise: In complex graphs, two very different structural changes might look similar in "feature space." The "Precise Sample Guidance" insight is crucial: by looking at the actual structural perturbations (the actions) rather than just the noisy embeddings, the model learns the attacker's intent much faster.
  • Explainability is a Defense: Because the model uses linear reward functions with interpretable features (like "rumor ratio" or "user influence"), it can tell human moderators which features attackers are exploiting. This turns a "black box" defense into an actionable intelligence tool.

Key Results

  • Policy Reconstruction: MoE-BiEntIRL successfully "cloned" the expert attackers. In many cases, the reconstructed policy actually outperformed the original expert attack it was trying to mimic on the Weibo dataset.
  • Boosting Robustness: When the synthetic samples generated by MoE-BiEntIRL were used for adversarial training, the GNN rumor detector's "accuracy decline" under attack was significantly reduced. For example, on Weibo, it often brought the accuracy drop down to near zero against certain attack types.
  • Superiority over Baselines: The model consistently outperformed classical IRL methods (like Apprenticeship Learning) and standard Maximum Entropy IRL, especially in the more complex, high-cost attack scenarios.

Limitations and Future Work

  • Expert Quality: Like all IRL methods, the performance is capped by the quality of the "expert" samples. If the captured samples are suboptimal or noisy, the learned policy will be too.
  • Distribution Shift: There is still a gap between the distribution of training samples and real-world, "in-the-wild" attacks.
  • Manual Grouping: Currently, the authors manually categorize experts by "attack cost." Future work could involve automating this discovery process to identify new, unknown classes of attackers dynamically.

Summary updated

BibTeX
@inproceedings{lyu2024enhancing,
  author = {Yuefei Lyu and Chaozhuo Li and Sihong Xie and Xi Zhang},
  title = {{Enhancing Robustness of Graph Neural Networks on Social Media with Explainable Inverse Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ziehA15y8k},
}
Figure