Skip to main content
QUICK REVIEW

[Paper Review] Qualitative Analysis of a Graph Transformer Approach to Addressing Hate Speech: Adapting to Dynamically Changing Content

Liam Hebert, Hong Yi Chen|arXiv (Cornell University)|Jan 25, 2023
Hate Speech and Cyberbullying DetectionComputer Science5 citations
TL;DR

This paper proposes a graph transformer-based approach that predicts hate speech by analyzing entire discussion threads rather than isolated comments, leveraging contextual, sequential, and multi-modal (text, image, article) information. It outperforms comment-only models by reducing false positives and negatives in dynamic, context-dependent hate speech cases, especially where re-appropriated slurs or multi-modal content are involved.

ABSTRACT

Our work advances an approach for predicting hate speech in social media, drawing out the critical need to consider the discussions that follow a post to successfully detect when hateful discourse may arise. Using graph transformer networks, coupled with modelling attention and BERT-level natural language processing, our approach can capture context and anticipate upcoming anti-social behaviour. In this paper, we offer a detailed qualitative analysis of this solution for hate speech detection in social networks, leading to insights into where the method has the most impressive outcomes in comparison with competitors and identifying scenarios where there are challenges to achieving ideal performance. Included is an exploration of the kinds of posts that permeate social media today, including the use of hateful images. This suggests avenues for extending our model to be more comprehensive. A key insight is that the focus on reasoning about the concept of context positions us well to be able to support multi-modal analysis of online posts. We conclude with a reflection on how the problem we are addressing relates especially well to the theme of dynamic change, a critical concern for all AI solutions for social impact. We also comment briefly on how mental health well-being can be advanced with our work, through curated content attuned to the extent of hate in posts.

Motivation & Objective

  • To address the limitations of comment-only hate speech detection models that fail to account for evolving conversational context.
  • To develop a proactive hate speech detection system that anticipates hate speech before it is explicitly posted, using graph-based reasoning.
  • To integrate multi-modal content—such as images and external articles—into hate speech detection to improve contextual accuracy.
  • To support mental health by enabling user-controlled content moderation through dynamic, context-aware hate intensity scores.
  • To demonstrate that graph-based modeling of discussion structures leads to more accurate and fair hate speech predictions than isolated comment analysis.

Proposed method

  • The model uses Graphormer, a graph transformer architecture, to encode the structure of discussion threads as a graph where nodes represent comments and edges represent reply relationships.
  • It incorporates BERT-based contextual embeddings for text and extends the model to include multi-modal features such as image embeddings and article content.
  • The system performs sequential, depth-wise prediction of comment labels using only prior context, simulating real-world deployment conditions.
  • Attention mechanisms in the graph transformer allow the model to weigh the importance of prior comments and structural relationships in predicting future hate speech.
  • The model is fine-tuned on Reddit discussion data to predict hate speech on a 0–4 ordinal scale, reflecting increasing intensity of hate.
  • User-level information and community-level dynamics are encoded into the graph to improve contextual sensitivity.
Figure 1: Graphormer Architecture
Figure 1: Graphormer Architecture

Experimental results

Research questions

  • RQ1How does modeling entire discussion threads improve hate speech detection compared to analyzing isolated comments?
  • RQ2In what ways do multi-modal elements like images and articles affect the accuracy of hate speech classification?
  • RQ3Can graph transformer models proactively predict the emergence of hate speech before it is explicitly expressed?
  • RQ4How do re-appropriated slurs and context-dependent language affect the performance of comment-only versus graph-based models?
  • RQ5To what extent can dynamic, context-aware hate intensity scores support mental health and user self-moderation?

Key findings

  • Graph-based models significantly reduced false positives on comments using re-appropriated slurs, such as those in LGBTQ vernacular, which were misclassified as hate by comment-only models.
  • The inclusion of images and articles as part of the input improved context understanding, particularly in cases where text alone was ambiguous or misleading.
  • The model successfully predicted escalating hate speech in discussions before it became overt, demonstrating proactive detection capability.
  • In debates with high emotional tone but low actual hate, the graph model maintained lower hate predictions than comment-only models, reducing over-policing.
  • The system achieved better performance in detecting contextually hateful content—especially when hate depended on image-text combinations—than models relying solely on text.
  • The ordinal hate intensity scale enabled personalized content filtering, supporting mental health by allowing users to self-select their exposure to contentious content.
Figure 2: Photo of the Drag Queen discussed in Table 3
Figure 2: Photo of the Drag Queen discussed in Table 3

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.