Skip to main content
QUICK REVIEW

[Paper Review] Neural Word Decomposition Models for Abusive Language Detection

Sravan Bodapati, Spandana Gella|arXiv (Cornell University)|Jan 1, 2019
Hate Speech and Cyberbullying DetectionComputer Science34 references2 citations
TL;DR

This paper investigates neural word decomposition models—character-level, subword (BPE), and hybrid word+character—combined with fine-tuned BERT and pre-trained embeddings for abusive language detection. It demonstrates that BERT fine-tuning achieves state-of-the-art performance on Wikipedia attack and toxicity datasets, and that BERT's subword tokenization significantly boosts word-based models like fastText and TextCNN, outperforming custom BPE models.

ABSTRACT

User generated text on social media often suffers from a lot of undesired characteristics including hatespeech, abusive language, insults etc. that are targeted to attack or abuse a specific group of people. Often such text is written differently compared to traditional text such as news involving either explicit mention of abusive words, obfuscated words and typological errors or implicit abuse i.e., indicating or targeting negative stereotypes. Thus, processing this text poses several robustness challenges when we apply natural language processing techniques developed for traditional text. For example, using word or token based models to process such text can treat two spelling variants of a word as two different words. Following recent work, we analyze how character, subword and byte pair encoding (BPE) models can be aid some of the challenges posed by user generated text. In our work, we analyze the effectiveness of each of the above techniques, compare and contrast various word decomposition techniques when used in combination with others. We experiment with finetuning large pretrained language models, and demonstrate their robustness to domain shift by studying Wikipedia attack, toxicity and Twitter hatespeech datasets

Motivation & Objective

  • To address the challenge of detecting abusive language in noisy, user-generated social media text, including obfuscated words and implicit stereotypes.
  • To evaluate the effectiveness of character-level, subword (BPE), and hybrid word+character models in comparison to traditional word-based models.
  • To investigate whether large pretrained language models like BERT can generalize robustly to abusive language detection despite domain shift from standard text.
  • To examine how BPE tokenization—especially BERT’s WordPiece—improves performance of word-based models on abusive language datasets.

Proposed method

  • Fine-tunes BERT on Wikipedia attack and toxicity datasets to assess transferability and robustness to domain shift.
  • Applies BERT WordPiece tokenization to input text before feeding it into word-based models (fastText, TextCNN) to leverage subword representations.
  • Trains end-to-end character-level models and compares them with word+character embedding models to assess representation learning.
  • Uses custom BPE models trained on W-ATT and W-TOX datasets and compares performance with BERT’s pre-trained BPE for subword segmentation.
  • Employs macro F1 score as the primary evaluation metric across multiple datasets: Twitter hatespeech, Wikipedia toxicity, and attack.
  • Conducts qualitative analysis on failure cases of word-based models and success cases of BERT-WordPiece tokenized models to understand subword informativeness.

Experimental results

Research questions

  • RQ1Does subword-level modeling (via BPE or WordPiece) improve abusive language detection compared to pure word-level or character-level models?
  • RQ2Can fine-tuned BERT models achieve state-of-the-art performance on abusive language detection despite pre-training on non-toxic, standard text?
  • RQ3How does BERT’s pre-trained subword tokenization compare to custom BPE models trained on abusive text in terms of performance and subword quality?
  • RQ4To what extent does BERT’s subword representation enhance word-based models like fastText and TextCNN?
  • RQ5Can character-level models outperform subword models in detecting obfuscated or noisy abusive language?

Key findings

  • Fine-tuning BERT on Wikipedia attack and toxicity datasets achieves state-of-the-art macro F1 scores, demonstrating strong robustness to domain shift.
  • BERT’s WordPiece tokenization significantly boosts performance of word-based models (fastText and TextCNN), outperforming both custom BPE models and standard word-level models.
  • Subword models (especially BERT’s WordPiece) outperform end-to-end character-based models, indicating that word boundary information remains valuable even in noisy text.
  • Custom BPE models trained on abusive text degrade performance compared to BERT’s pre-trained BPE, suggesting that pre-trained subword units are more informative and generalizable.
  • Adding character embeddings to TextCNN models provides a slight performance boost over word-CNN alone, but is outperformed by subword-based approaches.
  • Qualitative analysis confirms that BERT’s WordPiece effectively splits abusive terms (e.g., 'nlgg3r') into meaningful subwords, enabling better detection than word-based models.

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.