Decoding the Role of Emojis in Bangla Sarcasm and Offensiveness
A Multitask, Emoji-Intent-Aware Approach with a New Sarcastic-Offense Class
View the source code, research documentation, and benchmarks:
View Source CodeProject Overview
In Bangla online comments, emojis often reverse or intensify the literal meaning of text. Prior work treats sarcasm and offensiveness as separate tasks, ignores emojis, and cannot represent comments that are both sarcastic and offensive (sarcastic offense). Furthermore, no prior work quantifies how much emojis contribute compared with words.
This project introduces a multitask, emoji-intent-aware approach evaluated on a newly constructed Bangla corpus of 3,000 social media comments featuring rich emojis and Bangla-English code-mixing, establishing a new Sarcastic-Offense class.
Interpretability is analyzed via LIME applied to the model's actual emoji-expanded input to quantify token-level attribution. Controlled ablation experiments validate the emoji contribution using fold-level paired t-tests, sample-level one-sided McNemar tests on shared hold-out sets, bootstrap 95% confidence intervals, and label-permutation tests.
Key Features
- Novel Sarcastic-Offense Composite Class — Introduces a new category capturing comments that are simultaneously sarcastic and offensive, bridging a critical gap in emotion and toxicity analysis.
- Curated 3,000-Comment Dataset — A newly annotated Bangla corpus of 3,000 social media comments with emojis and Bangla-English code-mixing.
- Emoji vs. Word Attribution via LIME — LIME explainability applied to the emoji-expanded input to compare mean absolute attribution of emoji and word tokens across all test samples.
- Controlled No-Emoji Ablation Study — Trained on identical folds, seed, and hyperparameters to empirically isolate and prove the contribution of emoji semantics.
- Rigorous Statistical Significance Testing — Fold-level paired t-tests, sample-level one-sided McNemar tests, bootstrap 95% confidence intervals, and label-permutation tests against chance.
Technical Highlights
- Multitask Emoji-Intent Architecture — Jointly learns sarcasm, offensiveness, and the composite sarcastic-offense class using transformer backbones.
- Token-Level Interpretability with LIME — Quantifies how individual emoji tokens alter decision boundaries and sentiment polarity compared to word tokens.
- Hypothesis Testing & Permutation Validation — Validates model performance gains with paired t-tests and permutation testing, proving findings are not artifacts of seed variation.
Challenges & Solutions
Tech Stack Breakdown
frontend
Matplotlib, Seaborn (Attribution & Performance Plots)
backend
Python, PyTorch, Hugging Face Transformers, LIME
database
Pandas, NumPy, Scikit-learn (Corpus & Benchmarks)
tools
Git, Jupyter Notebook, LaTeX, Google Colab Pro