Skip to main content
QUICK REVIEW

[Paper Review] Cyberbullying detection across social media platforms via platform-aware adversarial encoding

Peiling Yi, Arkaitz Zubiaga|arXiv (Cornell University)|Apr 1, 2022
Hate Speech and Cyberbullying DetectionComputer Science5 citations
TL;DR

This paper proposes XP-CB, a platform-aware adversarial framework that enhances cross-platform cyberbullying detection by aligning BERT and RoBERTa embeddings across different social media platforms using adversarial training. It achieves state-of-the-art performance, improving zero-shot transfer by 9% with BERT and 7% with RoBERTa across six cross-platform configurations.

ABSTRACT

Despite the increasing interest in cyberbullying detection, existing efforts have largely been limited to experiments on a single platform and their generalisability across different social media platforms have received less attention. We propose XP-CB, a novel cross-platform framework based on Transformers and adversarial learning. XP-CB can enhance a Transformer leveraging unlabelled data from the source and target platforms to come up with a common representation while preventing platform-specific training. To validate our proposed framework, we experiment on cyberbullying datasets from three different platforms through six cross-platform configurations, showing its effectiveness with both BERT and RoBERTa as the underlying Transformer models.

Motivation & Objective

  • Address the limited generalizability of existing cyberbullying detection models across different social media platforms.
  • Overcome the performance drop caused by data distribution shifts between platforms such as Twitter, Wikipedia, and Formspring.
  • Develop a framework that enables zero-shot transfer of cyberbullying detection models from a source to a target platform using only labeled source data.
  • Enhance the representational alignment of Transformer-based models across platforms through adversarial training and multi-encoder alignment.
  • Demonstrate consistent performance gains across diverse platform configurations with varying post lengths and linguistic styles.

Proposed method

  • Integrate a multi-Transformer encoder alignment strategy to map source and target platform inputs into a shared latent representation space.
  • Employ an adversarial discriminator to distinguish between source and target platform embeddings, forcing the target encoder to generate domain-invariant representations.
  • Use the ADDA (Adversarial Discriminant Domain Adaptation) framework as the backbone for adversarial adaptation between source and target domains.
  • Fine-tune the target platform encoder using adversarial loss to minimize domain shift while preserving semantic content for cyberbullying detection.
  • Train a shared classifier on the source platform's labeled data and apply it to the target platform using the aligned representations.
  • Leverage pre-trained BERT and RoBERTa as the base encoders, with domain adaptation applied during inference to enable zero-shot deployment.

Experimental results

Research questions

  • RQ1Can a single cyberbullying detection model trained on one social media platform generalize effectively to other platforms with no labeled data?
  • RQ2How effective is adversarial domain adaptation in reducing performance degradation due to platform-specific linguistic and structural differences?
  • RQ3To what extent does the XP-CB framework improve cross-platform transferability compared to vanilla BERT and RoBERTa models?
  • RQ4Does the framework maintain performance across platforms with vastly different post lengths, such as short-form Twitter vs. long-form Wikipedia?
  • RQ5How do the learned representations from XP-CB compare visually and semantically to those from standard Transformers in cross-platform settings?

Key findings

  • XP-CB achieves a 9% absolute improvement in F1-score over vanilla BERT when transferring from Formspring to Twitter, and a 7% improvement over RoBERTa in the same setting.
  • The average F1-score across all six cross-platform configurations improves from 0.235 (A&A model) to 0.693 (XP-CB with RoBERTa), demonstrating strong generalization.
  • t-SNE visualizations show that XP-CB embeddings exhibit clearer class separation and reduced domain shift compared to standard BERT, indicating better representation alignment.
  • Performance is higher when transferring between Formspring and Wikipedia (longer posts) than between Twitter and other platforms (shorter posts), suggesting length affects transferability.
  • XP-CB consistently outperforms both the A&A baseline and standard BERT/RoBERTa models across all six cross-platform configurations, confirming its robustness.
  • The framework maintains strong performance even when transferring from Twitter (short posts) to Formspring or Wikipedia, indicating resilience to data distribution shifts.

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.