Starter kit
Everything for the task is on this page; nothing needs to be downloaded from CodaBench. The kit gets you from zero to a valid CodaBench submission. Questions go to the CodaBench forum.
Train and dev sets
The labeled data for building and tuning your system.
Blind sets (no labels)
Predict every row and submit on CodaBench.
Starter notebook
One notebook from data to submission: fine-tunes a BanglaBERT baseline, explains and computes the Defense Score on dev, predicts the blind set, checks the submission file and writes the zip you upload on CodaBench. Put the data files next to the notebook before you run it.
Open in Colab (GPU runtime)
Download .ipynb
Sample submission (format example, every label 0)
Each prompt has three rows, one per written form, that share a prompt_id and a label. Columns: id, prompt_id, form, text, label (the blind sets have no label). A submission is a zip with one file, predictions.csv, with the columns id,label and one row for every row of the blind file.
Three written forms
Every prompt appears three times, once in each form, always with the same label:
- Bangla script: written in Bangla letters.
- Romanized: Bangla typed in Latin letters.
- Code-mixed: Bangla mixed with English, Hindi, or Urdu.
A good system gives the same label to all three, so a harmful prompt cannot slip through by switching scripts. Click the tabs in the example to switch forms.
আজ ঢাকায় আবহাওয়া কেমন থাকবে?
"What will the weather be like in Dhaka today?"
Same request, same label, in every form.
Citation
If you use the train or dev data, please cite:
@misc{kabir2026banglashield,
title = {{BanglaShield}: A Script-Robust Safety Classifier and Benchmark for {Bangla} Native, Romanized, and Code-Mixed Prompts},
author = {Kabir, Mohsinul and Tariquzzaman, Md. and Rifat, Mohammad Rashidujjaman and Ranasinghe, Tharindu and Raihan, Nishat},
year = {2026},
note = {Preprint}
}