[Paper Review] Transfer Learning from LDA to BiLSTM-CNN for Offensive Language Detection in Twitter
This paper proposes a BiLSTM-CNN model for offensive language detection in German Twitter data, leveraging transfer learning from unsupervised topic clusters derived via LDA to improve performance. The best results were achieved using LDA-based topic transfer combined with thematic user cluster information, significantly reducing catastrophic forgetting and boosting F1 scores to 73.67% on the coarse-grained task.
We investigate different strategies for automatic offensive language classification on German Twitter data. For this, we employ a sequentially combined BiLSTM-CNN neural network. Based on this model, three transfer learning tasks to improve the classification performance with background knowledge are tested. We compare 1. Supervised category transfer: social media data annotated with near-offensive language categories, 2. Weakly-supervised category transfer: tweets annotated with emojis they contain, 3. Unsupervised category transfer: tweets annotated with topic clusters obtained by Latent Dirichlet Allocation (LDA). Further, we investigate the effect of three different strategies to mitigate negative effects of 'catastrophic forgetting' during transfer learning. Our results indicate that transfer learning in general improves offensive language detection. Best results are achieved from pre-training our model on the unsupervised topic clustering of tweets in combination with thematic user cluster information.
Motivation & Objective
- To address the lack of effective offensive language detection systems for German social media content.
- To investigate whether transfer learning from auxiliary tasks improves performance in offensive language classification.
- To evaluate different transfer learning strategies—supervised, weakly-supervised, and unsupervised—on German Twitter data.
- To mitigate catastrophic forgetting during transfer learning using layer-wise fine-tuning strategies.
- To explore the impact of user mention clustering on classification performance.
Proposed method
- A BiLSTM-CNN neural network architecture is used to capture sequential and local text features in tweets.
- Transfer learning is applied by pre-training the model on three auxiliary tasks: labeled near-offensive categories, emoji annotations, and LDA-derived topic clusters.
- LDA is applied to a 10-million-tweet background corpus to generate 1,000 topic clusters for unsupervised pre-training.
- Three strategies to mitigate catastrophic forgetting are evaluated: layer-wise fine-tuning, weight freezing, and joint training.
- User mention clustering is used to incorporate thematic information about frequently targeted users, even for unseen users.
- Subword embeddings are employed to handle out-of-vocabulary words, misspellings, and non-standard language like emojis.
Experimental results
Research questions
- RQ1Does transfer learning from LDA-derived topic clusters improve offensive language detection performance on German Twitter data?
- RQ2How do different transfer learning strategies—supervised, weakly-supervised, and unsupervised—affect classification performance?
- RQ3Which strategy best mitigates catastrophic forgetting during transfer learning in the context of offensive language detection?
- RQ4To what extent do user mention clusters enhance model generalization, especially for unseen users?
- RQ5Can unsupervised pre-training on in-domain data outperform supervised or weakly-supervised alternatives?
Key findings
- The unsupervised transfer learning approach using LDA topic clusters achieved the highest F1 score of 73.67% on the coarse-grained offensive language detection task.
- Pre-training on topic clusters combined with thematic user cluster information yielded the best performance, with an F1 of 73.67% and accuracy of 53.25%.
- The layer-wise fine-tuning strategy (bottom-up training) significantly outperformed other catastrophic forgetting mitigation techniques, improving performance over joint training and weight freezing.
- The model achieved 77.5% accuracy on the coarse-grained task, compared to 73.7% on the fine-grained four-category classification, indicating better generalization on broader offensive language detection.
- False positives were primarily due to harsh but non-insulting criticism or rhetorical questions, while false negatives often involved subtle dehumanizing language or indirect insinuations.
- The results suggest that unsupervised, task-agnostic pre-training on in-domain data via LDA is highly effective and transferable to other NLP tasks beyond offensive language detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.