Abusive Language Detection with Graph Convolutional Networks

Pushkar Mishra, Marco Del Tredici, Helen Yannakoudakis, Ekaterina Shutova

Introduction

Detecting abusive language, such as racism and sexism, is a critical challenge for modern social media platforms. Early detection methods primarily relied on text analysis, focusing on keywords and syntax. However, recent research has shifted toward "community-based profiling," leveraging the principle of homophily: the tendency for individuals with similar views to cluster together.

While community-based models improved detection, they often suffered from a significant flaw: they focused exclusively on social graph structure (who a user follows) without considering linguistic behavior (what a user says). This could lead to "clean" users being unfairly flagged simply for following abusive accounts. This paper proposes a novel approach using Graph Convolutional Networks (GCNs) to bridge this gap by modeling both social neighborhoods and actual content.

Methodology: Heterogeneous Graph Construction

The authors propose moving from a homogeneous graph of authors to a heterogeneous graph that includes both authors and tweets. This structure allows the model to capture the complex relationship between users and their specific linguistic output.

  1. Graph Construction: An "extended graph" is built where nodes represent both authors and individual tweets. Edges are established between authors who follow each other and between an author and every tweet they have posted.
  2. Feature Representation: Node features are represented using binary bag-of-words. For author nodes, this representation is an aggregate of all their posted tweets.
  3. Graph Convolutional Networks (GCNs): A 2-layer GCN is applied to this extended graph. By framing the task as a semi-supervised learning problem, the GCN propagates label information (racist, sexist, clean) from the tweet nodes to the author nodes during training.
  4. Classification: The model extracts 200-dimensional embeddings (author profiles) from the GCN's first layer. These profiles are appended to character n-gram features of a tweet and processed through a Logistic Regression (LR) classifier.

Key Insights: Linguistic Homophily

A central finding of the study is that abusive users do not just cluster socially; they share distinct linguistic patterns. By incorporating tweet content into the graph, the model achieves much higher resolution in user profiling.

Author profiles from the community graph (a) and extended graph (b) showing how linguistic features create more distinct clusters.

As seen in the t-SNE visualizations above, author profiles derived from the extended graph (b) form tighter, more distinct clusters compared to those from a simple follower-graph (a). This allows for "contextual correction": the model can correctly identify a neutral tweet from a user in a "bad neighborhood" as clean because it balances the author's profile with the specific tweet's content.

Results and Performance

The proposed LR + GCN method significantly outperformed existing baselines and previous state-of-the-art community-based methods.

Performance comparison of various methods across Racism, Sexism, and Overall categories.

As shown in the results table, the LR + GCN model achieved a macro-averaged F1 score of 85.42, outperforming the previous best method (LR + AUTH at 84.18). The model was particularly effective in detecting sexism, reaching an F1 of 84.44. While racism detection was also strong (F1 79.49), the authors noted that the extreme scarcity of unique authors in the dataset (only 5 authors for nearly 2,000 racist tweets) makes generalization difficult for any community-based model.

Limitations and Future Directions

Despite its success, the model faces challenges with external content and deliberate obfuscation. Many abusive tweets contain URLs; currently, the model only processes the URL string rather than the linked content. Additionally, users often use symbols (e.g., "c*nt") to bypass filters. Future work may involve incorporating URL content and more sophisticated character-based word composition models to improve robustness against such tactics.

Summary updated

BibTeX
@inproceedings{mishra2019abusive,
  author = {Pushkar Mishra and Marco Del Tredici and Helen Yannakoudakis and Ekaterina Shutova},
  title = {{Abusive Language Detection with Graph Convolutional Networks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1221},
}
Figure