Subgroup Fairness in Graph-based Spam Detection

Jiaxin Liu, Yuefei Lyu, Xi Zhang, Sihong Xie

Abstract

User-generated reviews of products are vital assets of online commerce, such as Amazon and Yelp, while fake reviews are prevalent to mislead customers. GNN is the state-of-the-art method that detects suspicious reviewers by exploiting the topologies of the graph connecting reviewers, reviews, and target products. However, the discrepancy in the detection accuracy over different groups of reviewers can degrade reviewer engagement and customer trust in the review websites. Unlike the previous belief that the difference between the groups causes unfairness, we study the subgroup structures within the groups that can also cause discrepancies in treating different groups. This paper addresses the challenges of defining, approximating, and utilizing a new subgroup structure for fair spam detection. We first identify subgroup structures in the review graph that lead to discrepant accuracy in the groups. The complex dependencies over the review graph create difficulties in teasing out subgroups hidden within larger groups. We design a model that can be trained to jointly infer the hidden subgroup memberships and exploits the membership for calibrating the detection accuracy across groups. Comprehensive comparisons against baselines on three large Yelp review datasets demonstrate that the subgroup membership can be identified and exploited for group fairness.

Introduction

In the world of online commerce, fake reviews pose a significant threat to consumer trust. While Graph Neural Networks (GNNs) have emerged as powerful tools for spam detection by analyzing the relationships between users, reviews, and products, they often suffer from "topological bias." Specifically, models tend to be much more accurate at catching spammers with few posts (the "protected" group) than those with many posts (the "favored" group).

Overview of the review graph and subgroup structures, highlighting the difference between protected, favored, mixed, and pure users.

The root of this unfairness lies in the graph structure. "Favored" users with high node degrees can "dilute" the suspicious signal of their spam reviews by surrounding them with legitimate content. This creates a discrepancy in detection accuracy that unfairly penalizes new or less active users while allowing established spammers to evade detection. This paper introduces a framework to discover hidden "mixed-behavior" subgroups and uses fairness-aware data augmentation to ensure equitable treatment across all reviewer groups.

Methods

The proposed approach identifies and exploits hidden subgroup structures through four key components:

  1. Subgroup Definition ($A'$): The "favored" group is split into "Mixed" users (posting both spam and non-spam) and "Pure" users (posting only one type). Mixed users are identified as the primary source of GNN evasion.
  2. Joint Training Framework: Two interconnected GNNs are trained simultaneously: an Inferrer ($g_\theta$) to predict "mixed" subgroup membership, and a Detector ($f_W$) that utilizes this membership to improve review classification.
  3. Fairness-Aware Data Augmentation: To address the scarcity of "mixed" user data, the authors employ Subgroup Augmentation (replicating mixed users and pruning non-spam edges) and Graph Mixup (interpolating features between favored and protected spams).
  4. Differentiable Fairness Regularizer: A ranking-based penalty (NDCG-based) is incorporated into the loss function to minimize the performance gap between favored and protected groups.

Key Insights: The Camouflage Effect

The central insight of this work is the "Camouflage Effect." High-degree nodes are not uniformly difficult to classify; rather, they are heterogeneous. By distinguishing between "pure" spammers and "mixed" users who use legitimate reviews as a shield, the model can specifically target the source of unfairness.

Visualization of how incorporating subgroup membership ($A'$) allows the decision boundary to separate camouflaged spam from legitimate reviews.

As shown in the visualization, a standard 2D decision boundary often fails to separate spam from "mixed" users because their features overlap with legitimate content. By introducing the subgroup membership $A'$ as a third dimension, the model can define a more effective decision boundary that correctly identifies camouflaged spam.

Experimental Results

The model was evaluated on three large-scale Yelp datasets (YelpChi, YelpNYC, and YelpZip) using various cutoff percentiles for user degrees.

  • Reduced Fairness Gap: The proposed method consistently achieved the lowest $\Delta NDCG$, significantly reducing the performance gap between favored and protected groups compared to vanilla GNNs and other debiasing baselines.
  • Improved Detection for Mixed Users: Using the Average False Ranking Ratio (AFRR), the authors demonstrated that their model significantly improved the ranking of spams from "mixed" users.
  • No Accuracy Trade-off: Unlike many fairness interventions, this method maintained or improved overall detection accuracy by more accurately modeling the complex behavior of established users.

Conclusion

This research demonstrates that structural properties of a graph can serve as effective proxies for fairness optimization in anonymous environments. By jointly inferring and exploiting hidden subgroup memberships, the proposed framework mitigates topological bias in spam detection. Future work may explore more complex camouflage strategies, such as temporal patterns or coordinated group attacks, to further enhance the robustness and fairness of graph-based detectors.

Summary updated

BibTeX
@misc{liu2022subgroup,
  author = {Jiaxin Liu and Yuefei Lyu and Xi Zhang and Sihong Xie},
  title = {{Subgroup Fairness in Graph-based Spam Detection}},
  year = {2022},
  eprint = {2204.11164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.11164},
}
Figure