mlsanityData to 14 Oct 2026

Offensive Language Detection on Social Media Using XLNet

arXiv 2506.21795 ↗First posted 26 Jun 2025cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

The widespread use of text-based communication on social media-through chats, comments, and microblogs-has improved user interaction but has also led to an increase in offensive content, including hate speech, racism, and other forms of abuse. Due to the enormous volume of user-generated content, manual moderation is impractical, which creates a need for automated systems that can detect offensive language. Deep learning models, particularly those using transfer learning, have demonstrated significant success in understanding natural language through large-scale pretraining. In this study, we propose an automatic offensive language detection model based on XLNet, a generalized autoregressive pretraining method, and compare its performance with BERT (Bidirectional Encoder Representations from Transformers), which is a widely used baseline in natural language processing (NLP). Both models are evaluated using the Offensive Language Identification Dataset (OLID), a benchmark Twitter dataset that includes hierarchical annotations. Our experimental results show that XLNet outperforms BERT in detecting offensive content and in categorizing the types of offenses, while BERT performs slightly better in identifying the targets of the offenses. Additionally, we find that oversampling and undersampling strategies are effective in addressing class imbalance and improving classification performance. These findings highlight the potential of transfer learning and XLNet-based architectures to create robust systems for detecting offensive language on social media platforms.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 47 references that are in the map. First posted on arXiv 26 Jun 2025.

Builds on

13 of 47 references.

References · 13

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  4. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  5. 2018Deep contextualized word representationscited by 2,290
  6. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  7. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
  8. 2015A Neural Attention Model for Abstractive Sentence Summarizationcited by 396
  9. 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 271
  10. 2019SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)cited by 207
  11. 2015A C-LSTM Neural Network for Text Classificationcited by 54
  12. 2015ABCNN: Attention-Based Convolutional Neural Network for Modeling Sentence Pairscited by 35
1 more
  1. 2019A Comparative Analysis of Forecasting Financial Time Series Using ARIMA, LSTM, and BiLSTMcited by 13

Built on by

Not cited yet.