Learning to Decipher Hate Symbols

Jing Qian, Mai ElSherief, Elizabeth M. Belding, William Yang Wang

Abstract

Hate speech detection has traditionally been treated as a binary classification task. However, extremist groups frequently employ coded language—symbols, acronyms, and numeric ciphers—to bypass automated filters and communicate covertly. This paper introduces the task of deciphering hate symbols by translating them into plain English definitions based on their surrounding context. We propose a Variational Decipher model that leverages latent context to generalize to unseen symbols, outperforming standard sequence-to-sequence models in zero-shot scenarios.

Introduction

Online hate speech is a persistent challenge for social media platforms. While automated detection systems have improved, they often struggle with "dog whistles"—coded language used by extremist groups to signal identity and intent without triggering simple keyword filters. For instance, the number "1488" combines a 14-word white supremacist mantra with "88" (representing "Heil Hitler").

An example tweet containing multiple hate symbols and their decoded meanings.

To effectively combat this, we must move beyond simple classification and toward decipherment: providing interpretable explanations of what these symbols mean in context. This task is difficult because hate symbols are often short, lack formal definitions, and evolve rapidly to stay ahead of moderation.

Methodology

We frame the decipherment of hate symbols as a translation task, where the goal is to generate a natural language definition given a symbol and its context. We evaluate two primary neural architectures:

  1. Sequence-to-Sequence (Seq2Seq) with Attention: A standard encoder-decoder model using LSTMs or GRUs. This model is effective at memorizing symbols seen during training but struggles with novel or rare terms.
  2. Variational Decipher (VD): Our proposed model is based on Conditional Variational Autoencoders (CVAE). It introduces a latent variable $z$ to represent the underlying semantic space of definitions. By modeling the probability distribution of meanings rather than a direct mapping, the VD model can better capture the semantic "vibe" of the context, allowing it to generate plausible definitions for symbols it has never encountered before.

Data Collection

To train and evaluate these models, we constructed a new dataset through a multi-step process:

  • Symbol Dictionary: We scraped Urban Dictionary for terms associated with hashtags like #racism and #nazi, identifying 2,105 unique hate symbols and their definitions.
  • Twitter Corpus: We collected tweets containing these symbols from 2011 to 2017. After filtering for actual hate speech using an SVM classifier, we curated a final dataset of 18,667 (tweet, symbol, definition) tuples.

Results and Discussion

The models were evaluated on three subsets: Seen Definitions ($D_s$), Unseen Definitions ($D_d$), and the full dataset ($D$).

Quantitative performance comparison between Seq2Seq and Variational Decipher (VD) across different datasets.

As shown in the table above, the Seq2Seq model excels at "behavior cloning" on seen data ($D_s$), achieving a BLEU score of 37.80. However, the Variational Decipher model demonstrates superior generalization on the "hard mode" task of unseen definitions ($D_d$), outperforming Seq2Seq (28.38 vs 25.44 BLEU). Human evaluations further supported this, with judges finding VD's definitions more reasonable or tied with Seq2Seq nearly 70% of the time for unseen symbols.

Conclusion

This work demonstrates that context is the primary driver for deciphering coded hate speech. While standard models are proficient at memorization, the Variational Decipher's use of latent space allows for more robust interpretation of evolving extremist language. Future research will focus on improving the grammatical fluency of generated definitions and capturing the nuances of longer, more complex historical explanations.

Summary updated

BibTeX
@inproceedings{qian2019learning,
  author = {Jing Qian and Mai ElSherief and Elizabeth M. Belding and William Yang Wang},
  title = {{Learning to Decipher Hate Symbols}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=HyNWm7WdbB},
}

Loading related content...

Figure