Skip to main content
QUICK REVIEW

[Paper Review] Leveraging Intra-User and Inter-User Representation Learning for Automated Hate Speech Detection

Jing Qian, Mai ElSherief|arXiv (Cornell University)|Apr 9, 2018
Hate Speech and Cyberbullying DetectionComputer Science12 references7 citations
TL;DR

This paper proposes a novel deep learning framework that improves hate speech detection on Twitter by jointly leveraging intra-user (user's historical tweets) and inter-user (semantically similar tweets from other users) representation learning. Using a reinforced bidirectional LSTM to dynamically select relevant inter-user tweets and combining them with user-specific representations, the model boosts the F-score of a strong bi-LSTM baseline by 10.1%, significantly reducing false positives and negatives on noisy, short social media content.

ABSTRACT

Hate speech detection is a critical, yet challenging problem in Natural Language Processing (NLP). Despite the existence of numerous studies dedicated to the development of NLP hate speech detection approaches, the accuracy is still poor. The central problem is that social media posts are short and noisy, and most existing hate speech detection solutions take each post as an isolated input instance, which is likely to yield high false positive and negative rates. In this paper, we radically improve automated hate speech detection by presenting a novel model that leverages intra-user and inter-user representation learning for robust hate speech detection on Twitter. In addition to the target Tweet, we collect and analyze the user's historical posts to model intra-user Tweet representations. To suppress the noise in a single Tweet, we also model the similar Tweets posted by all other users with reinforced inter-user representation learning techniques. Experimentally, we show that leveraging these two representations can significantly improve the f-score of a strong bidirectional LSTM baseline model by 10.1%.

Motivation & Objective

  • To address the high false positive and negative rates in existing hate speech detection models, which often treat each tweet in isolation.
  • To improve detection robustness by modeling user-specific linguistic patterns through their historical tweet sequences (intra-user representation).
  • To reduce noise in individual tweets by incorporating semantically similar tweets from other users (inter-user representation) via a reinforcement learning agent.
  • To integrate target tweet, intra-user, and inter-user representations into a unified deep learning framework for enhanced classification performance.
  • To demonstrate that unsupervised user history and large-scale unlabeled tweet corpora can significantly improve hate speech detection without requiring manual labeling.

Proposed method

  • The model uses a bidirectional LSTM (Bi-LSTM) as the baseline to encode the target tweet into a representation.
  • Intra-user representation is learned by encoding up to 400 of the target user’s historical tweets using the same Bi-LSTM architecture, then aggregating them via a weighted sum.
  • Inter-user representation is constructed by selecting semantically similar tweets from other users using Locality-Sensitive Hashing (LSH), then processing them through a separate Bi-LSTM.
  • A policy gradient agent selects one inter-user tweet at a time from a candidate set, using a reinforcement learning framework to improve representation quality over time.
  • The final prediction is made by combining the target tweet representation, intra-user representation, and reinforced inter-user representation through a shared classifier head.
  • The model is trained end-to-end using the Adam optimizer with word embeddings pre-trained on a large Twitter corpus.

Experimental results

Research questions

  • RQ1Can modeling a user’s historical tweet sequence improve hate speech detection performance compared to treating each tweet in isolation?
  • RQ2Does incorporating semantically similar tweets from other users enhance robustness to noisy or ambiguous individual tweets?
  • RQ3Can a reinforcement learning agent that dynamically selects inter-user tweets outperform random selection or fixed aggregation in improving detection accuracy?
  • RQ4To what extent does combining intra-user and inter-user representations reduce false positive and false negative rates in hate speech detection?
  • RQ5Can this framework be generalized to other text classification tasks where user history or large unlabeled corpora are available?

Key findings

  • The proposed model improves the F-score of a strong bidirectional LSTM baseline by 10.1% through the integration of intra-user and reinforced inter-user representations.
  • Incorporating intra-user representations alone reduces false positive rates by capturing user-specific linguistic patterns and context.
  • The use of a reinforcement learning agent for inter-user tweet selection yields a slight but statistically significant improvement over random selection (p < 0.01).
  • The model significantly outperforms multiple strong baselines, including SVM, logistic regression, CNN, and attention-based bi-LSTM, on precision, recall, and F1-score metrics.
  • Error analysis reveals that rare abbreviations and satirical/metaphorical language remain challenging, particularly when both the target and inter-user representations are unreliable.
  • The framework is generalizable and can be extended to other NLP tasks involving user history or large-scale unlabeled text data.

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.