hastika-task-a-xlmr-base
xlm-roberta-base fine-tuned for binary hate speech detection (Non-Hate / Hate) in Kannada-English code-mixed YouTube comments,
built for Task A of the HASTIKA @ ICON-2026 shared task.
Code and training scripts: https://github.com/GANESH-NADKARNI/HASTIKA-ICON-2026
Labels
0: Non-Hate1: Hate
How to use
from transformers import pipeline
clf = pipeline("text-classification", model="Ganesh-Nadkarni/hastika-task-a-xlmr-base")
print(clf("your Kanglish comment here"))
Training
- Data: the HASTIKA training split, 88/12 stratified train/held-out split.
- Max length 160, batch size 16, mixed precision, early stopping on validation macro-F1.
- Learning rate 2e-5.
- Macro-F1 of this model on its held-out split: 0.791.
Important notes
- This checkpoint is one component of an ensemble (MuRIL, XLM-RoBERTa and a calibrated TF-IDF SVM). The ensemble scored 0.8162 macro-F1 on the validation gold labels and 0.7963 on the official test set; this model alone is weaker.
- Trained on a small dataset; expect errors on dialect, sarcasm, reclaimed language and transliteration variants not seen in training.
- For research use. It should assist human moderators, not replace them.
- The dataset is not included. Check the HASTIKA dataset terms before any other use.
Citation
Kavatagi, S. and Rachh, R. (2025). HASTIKA: hate speech and target identification in Kannada-English code-mixed text. Language Resources and Evaluation, 59(3):2811-2856.