Graphically Speaking: Unmasking Abuse in Social Media with Conversation Insights

Célia Nouri, Chloé Clavel, Jean-Philippe CointetACL 2025

Abstract

Detecting abusive language on social media is notoriously difficult because toxicity often hides in the context of a conversation rather than a single comment. This paper introduces a graph-based framework using Graph Attention Networks (GATs) to model conversations as structured trees, demonstrating that capturing the "topology" of a thread significantly outperforms traditional text-only models, especially for ambiguous or reactive abuse.

Introduction

Most Abusive Language Detection (ALD) systems treat comments as isolated snippets of text. However, a phrase like "No u" is harmless in a vacuum but can be part of a toxic "snowball effect" when it's the third reply in a homophobic flame war. While some newer models try to include context by simply concatenating the previous comment to the target text (a "flat" representation), they often lose the complex branching structure of social media threads. This paper tackles the challenge of context-aware ALD by asking: How much context do we actually need, and how should we structure it so a machine can understand the flow of a fight?

Methodology

The authors propose a novel approach using Graph Neural Networks (GNNs), specifically Graph Attention Networks (GATs). The process involves three key stages:

  1. Graph Construction: Instead of a flat list of words, the conversation is modeled as a directed graph where nodes are comments (represented by BERT embeddings) and edges represent "reply-to" relationships.
  2. Affordance-based Trimming: Real Reddit threads can have hundreds of comments. The authors developed a trimming strategy based on UI affordances—only including the comments a human user would actually see on their screen when writing a reply (the original post, top-ranked replies, and the direct parent path).
  3. The Model: The GAT layers allow the model to "attend" to different parts of the conversation. For example, the model can learn to give more weight to a parent comment that contains a slur than to a random side-discussion in the same thread.
The proposed pipeline: from conversation graph to affordance-based trimming and GNN classification.

Dataset and Experimental Setup

The study utilizes the Contextual Abuse Dataset (CAD), which consists of approximately 25,000 Reddit comments. CAD is one of the few high-quality datasets that provides the full conversation thread for every annotated comment. It uses a 6-way classification taxonomy, including Identity-directed, Affiliation-directed, and Person-directed abuse. To ensure robust training, the authors balanced the dataset with 3,605 abusive and 3,605 non-abusive samples.

Results and Insights

The 3-layer GAT model achieved a top performance of 76.24% F1 score, outperforming all text-only and flat-context baselines.

Performance comparison of the GAT 3L model against context-blind and flat-context baselines.

Key insights from the evaluation include:

  • The "Three-Hop" Sweet Spot: A 3-layer GAT was found to be optimal. This suggests that toxicity usually propagates or becomes clear within three levels of interaction. Adding more layers (4 or 5) actually decreased performance by introducing "noise" from distant, irrelevant parts of the thread.
  • Structure Trumps Sequence: Modeling the conversation as a graph outperformed "flat" models. This proves that how comments are linked (the topology) is just as important as what they say.
  • Unmasking the Ambiguous: The model showed its greatest strength in Context-Sensitive Samples (CSS)—cases where human annotators explicitly said they needed context to label the comment. In these tricky cases, the graph model reached 74.07% accuracy, compared to just 70.71% for a standard context-blind BERT model.
  • Efficiency: Despite the complexity of graphs, the model remains lightweight. Inference takes about 850ms per sample on a CPU, making it significantly more viable for real-time moderation than massive Generative LMs.

Conclusion and Future Work

By trimming the graph to match the Reddit UI, the authors created a model that "sees" what a human sees. This cognitive mimicry suggests that the context humans use to be toxic is the same context we should use to catch them. Future work includes expanding to other platforms with different UI structures, addressing potential biases in datasets, and integrating multimodal inputs like memes or video replies into the graph nodes.

Summary updated

BibTeX
@inproceedings{nouri2025graphically,
  author = {Célia Nouri and Chloé Clavel and Jean-Philippe Cointet},
  title = {{Graphically Speaking: Unmasking Abuse in Social Media with Conversation Insights}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure