Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multilingual Sexism Detection in Tweets

Overview

This project presents a comprehensive multilingual NLP framework for the detection and categorization of sexism in tweets, developed for the CLEF EXIST 2025 Lab. The solution tackles three related tasks in both English and Spanish, using ensemble learning, data augmentation, and cross-lingual training strategies.

We built and fine-tuned 12 independent models, optimized for hard and soft probability predictions across tasks and languages. Key innovations include dynamic ensembling, translation-based augmentation, and post-processing techniques that simulate real-world annotation behavior.

Our paper detailing the results and approaches in depth will by published by September 2025 and available at EXIST's official website.


Data Augmentation

To improve generalization and data diversity, we applied three main augmentation strategies:

1. Cross‑Translation

  • Each tweet was translated into the opposite language using the Helsinki‑NLP translation model — English tweets were translated to Spanish and added to the Spanish dataset, and vice versa.
  • Cross‑translation creates mirrored datasets across languages while preserving labels and structure, effectively doubling the dataset size and enabling language‑aware training.

2. EASE (Extract Units, Acquire Labels, Sift, Employ)

  1. Extract meaningful sentence‑level units via NLTK
  2. Acquire labels for these units using pre‑trained models
  3. Sift out samples based on length and relevance
  4. Employ synonym replacement
  5. Merge the augmented data back into the original training set

3. AEDA (An Easy Data Augmentation)

  • Random punctuation insertion in tweets
  • Inspired by NYCU’s 2024 winning strategy
  • Applied to both original and cross‑translated datasets

All tasks used cross-translation in training and observed significant improvement in ICM, ICM Norm, and F1 scores.


Tasks

Task 1: Sexism Identification (Binary Classification)

  • Output: "YES" or "NO"
  • Approach: Ensemble-based classification using soft and hard thresholds derived from annotator votes.

Task 2: Source Intention Classification (Multi-class)

  • Classes: NO, DIRECT, REPORTED, JUDGMENTAL
  • Approach: Metadata-aware modeling using annotator demographic splits, class balancing with AEDA Augmentation, and separate pipelines for hard and soft labels. Metadata aware modeling involved creating six component models to simulate six annotators, built for both English and Spanish + soft and hard evaluations, totaling the number of models trained for this approach to be 24. Similarly, 4 models were trained for AEDA and cross-translation approach each.

Task 3: Sexism Categorization (Multi-label)

  • Categories: Multiple sexism categories per tweet: Ideological and inequality, Stereotyping and dominance, Objectification, Sexual violence, Misogyny and non-sexual violence
  • Approach: EASE-S and AEDA Augmentation and snapped soft probabilities to reflect multi-label annotation using a 1/6 threshold for annotator agreement.

Architecture

flowchart TD

%% Data Preparation
A[Raw Tweets EN + ES] --> B[Preprocessing and Language Split]

%% Augmentation
B --> C[Cross-Translation EN to ES and ES to EN]
C --> D[AEDA and EASE-S Augmentation]

%% Task-Specific Models
D --> T1_EN[T1 - English Models Soft and Hard]
D --> T1_ES[T1 - Spanish Models Soft and Hard]
D --> T2_EN[T2 - English Models Soft and Hard]
D --> T2_ES[T2 - Spanish Models Soft and Hard]
D --> T3_EN[T3 - English Models Soft and Hard]
D --> T3_ES[T3 - Spanish Models Soft and Hard]

%% Ensembling and Post-processing
T1_EN --> E1[Task 1 Ensemble and Post-processing]
T1_ES --> E1
T2_EN --> E2[Task 2 Post-processing]
T2_ES --> E2
T3_EN --> E3[Task 3 Post-processing]
T3_ES --> E3

%% Final Outputs
E1 --> O1[Task 1 Output Soft and Hard]
E2 --> O2[Task 2 Output Soft and Hard]
E3 --> O3[Task 3 Output Soft and Hard]
Loading

Releases

Packages

Contributors

Languages