PEACE: Cross-Platform Hate Speech Detection- A Causality-guided Framework

Paras Sheth, Tharindu Kumarage, Raha Moraffah, Aman Chadha, Huan Liu

TL;DR

PEACE is a new framework that improves hate speech detection across different social media platforms by leveraging "causal cues"—specifically sentiment and aggression—that remain consistent even when linguistic styles change. By guiding a detector with these platform-invariant features, the model generalizes significantly better to new, unseen platforms than current state-of-the-art methods.

What Problem Does This Paper Address?

Detecting hate speech is a moving target. A model trained to find hateful comments on Twitter might fail miserably on Reddit or Wikipedia because each platform has different community norms, moderation policies, and linguistic styles. For example, a strict platform might force users to express hate through subtle sarcasm, while a lenient one might be filled with explicit abuse.

Current models often fall into the trap of learning "spurious correlations"—they might become overly sensitive to specific abusive words or grammatical structures (like certain parts of speech) common on their training platform. When moved to a new platform where those specific markers aren't present, the model's performance plummets. The authors of PEACE aim to find features that are causally linked to hate speech across all platforms, making the detection system more robust and generalizable.

Methods

The authors propose PEACE (Platform-indEpendent cAusal Cues for generalizable hatE speech detection). The core idea is that while vocabulary changes, the underlying intent (aggression) and tone (negative sentiment) are universal markers of hate speech.

The architecture consists of two main components, as shown in Figure 1:

  1. Cue Extractor: This component uses two pre-trained, frozen transformer modules—one specialized in sentiment analysis and the other in aggression detection. By keeping these modules frozen, the authors ensure they don't pick up platform-specific biases from the hate speech training data. The extractor pulls attention maps from these modules to identify which tokens in a sentence are most relevant to its sentiment and aggression levels. An "Attention Selector Head" then learns how to weigh these two cues based on the specific context of the input.
  2. Hate Detector: This is the primary classification model (based on RoBERTa). Instead of just processing the text normally, it receives the combined attention map from the Cue Extractor as an auxiliary signal. This signal is applied via element-wise multiplication to the detector's internal representations, essentially "guiding" the model to pay more attention to the parts of the text that are causally linked to hate.
Fig. 1: Proposed framework architecture for PEACE. The pre-trained sentiment and aggression modules guide the representation learning process to ensure generalizability.

Datasets

The researchers evaluated PEACE across five diverse datasets representing different social media environments:

  • GAB: Known for more explicit, less regulated content.
  • Reddit: Focused on conversational threads.
  • Wikipedia: A collection of personal attacks from talk pages.
  • Twi-Red-You: A multi-platform dataset combining Twitter, Reddit, and YouTube.
  • FRENK: Facebook comments specifically targeting LGBTQ+ individuals and migrants.
Extracted table from page 7 of PEACE showing dataset statistics.

Key Insights and Ideas

  • Causality over Correlation: Most models look for what is said (vocabulary). PEACE looks for how it is said (aggression and sentiment). Because aggression and negative sentiment are intrinsic to the act of denigrating a group, they serve as more reliable, "causal" indicators that don't change just because a user moves from Twitter to Gab.
  • Aggression is the Stronger Signal: Through ablation studies, the authors found that while both cues help, aggression is generally a more potent indicator of hate speech than sentiment alone. This aligns with psychological theories suggesting aggression is a direct precursor to hateful behavior.
  • Contextual Weighting: The "Attention Selector Head" is crucial. It recognizes that in some hateful sentences, the aggression might be the primary cue, while in others (perhaps more subtle ones), the overall negative sentiment is more telling.

Key Results

PEACE consistently outperformed state-of-the-art baselines like HateBERT and HateXplain in cross-platform scenarios.

  • Generalization Gains: When trained on one platform and tested on others, PEACE showed improvements in Macro-F1 scores ranging from 3% to 6% over the strongest baselines.
  • Cross-Target Success: The model also generalized better when the target of the hate changed (e.g., training on hate toward migrants and testing on hate toward the LGBTQ+ community), showing a 4% average gain.
  • Qualitative Accuracy: Case studies revealed that PEACE correctly identifies critical contextual words like "unworthy" or "forced eradication" in implicit hate speech, whereas baseline models often fixated on surface-level abusive words or missed the hateful intent entirely.

Limitations and Future Work

Despite its success, PEACE faces challenges with implicit hate. The authors noted a higher error rate in detecting "offensive" content compared to "violent" content, as implicit hatred is harder to signal through simple sentiment or aggression cues.

Future work could involve:

  • Automating Cue Discovery: Instead of manually selecting sentiment and aggression, can a system automatically identify other platform-invariant causal cues?
  • Incorporating Conversation Context: Currently, the model only looks at individual posts. Leveraging the surrounding conversational thread could provide much-needed context for detecting subtle or implicit hate.
  • Addressing Target Bias: The error analysis showed the model still struggles with specific targets (like migrants) depending on the training source, suggesting a need for even more robust debiasing techniques.

Summary updated

BibTeX
@inproceedings{sheth2023peace,
  author = {Paras Sheth and Tharindu Kumarage and Raha Moraffah and Aman Chadha and Huan Liu},
  title = {{PEACE: Cross-Platform Hate Speech Detection- A Causality-guided Framework}},
  booktitle = {Ecml/pkdd},
  year = {2023},
  url = {https://openreview.net/forum?id=ITSncchXfJ},
}
Figure