Downloads · 30 days
0
EsferSami/meme-sentiment-dual-cross-attention-v1
meme-sentiment-dual-cross-attention-v1 is a machine learning model from EsferSami. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Author: EsferSami Task: Multilingual Multimodal Meme Sentiment Analysis Dataset: MemoSen — Kaggle Version: V1 — Frozen Encoders (Pure Pretrained Baseline)
Downloads · 30 days
0
Access
Public
Updated May 8, 2026
Repo size
2.4 GB
Likes
0
Public
Click a slice to open those files.
.pt2.3 GB · 100%
From the Hugging Face model README
Author: EsferSami
Task: Multilingual Multimodal Meme Sentiment Analysis
Dataset: MemoSen — Kaggle
Version: V1 — Frozen Encoders (Pure Pretrained Baseline)
MemoSen is a multilingual multimodal meme sentiment dataset containing Bengali, English, and code-mixed meme captions paired with meme images. Each sample has a sentiment label: Positive, Negative, or Neutral.
This model resolves cross-modal conflict between meme text and image using a dual cross-attention framework. Meme understanding is challenging because text and image often conflict — especially in sarcastic, ironic, or culturally specific memes.
| Component | Details |
|---|---|
| Text Encoder | XLM-RoBERTa base (frozen) |
| Image Encoder | EVA02-CLIP-L/14 from QuanSun (frozen) |
| Feature Dim | 768 projected to 512 |
| Fusion | Dual Cross-Attention + Adaptive Gating |
| Conflict Detection | Cosine similarity + MLP |
| Reliability Weighting | Per-modality sigmoid scoring |
| Classifier | MLP (512 -> 256 -> 128 -> 3) |
Dataset: MemoSen on Kaggle
| Split | Ratio |
|---|---|
| Train | 70% |
| Validation | 15% |
| Test | 15% |
Classes: Positive, Negative, Neutral
Languages: Bengali, English, Code-mixed (Banglish)
| Parameter | Value |
|---|---|
| Epochs | 50 (early stopped at 26) |
| Optimizer | AdamW (lr=1e-4) |
| Scheduler | CosineAnnealingLR |
| Loss | Focal Loss + Class Weights |
| Early Stopping | Patience = 7 |
| Batch Size | 32 |
| Max Text Length | 128 tokens |
| Image Size | 224 x 224 |
| GPU | T4 (Kaggle) |
| Metric | Score |
|---|---|
| Macro-F1 | 0.5584 |
Full test set metrics will be updated after evaluation.
Main metric: Macro-F1

If you use MemoSen dataset, please refer to the original dataset on Kaggle:
https://www.kaggle.com/datasets/arifkaggle979/memosen-dataset