---
title: "Hate Speech and Offensive Language Detection in Bengali (2022)"
description: "Das and colleagues test how well hate speech and offensive language detection transfers between Bengali and Romanized Bengali tweets."
canonical: "https://research.elamur.ai/free/en/papers/das-2022-hate-speech-offensive-language-detection/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/das-2022-hate-speech-offensive-language-detection/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Hate Speech and Offensive Language Detection in Bengali

# Hate Speech and Offensive Language Detection in Bengali

Paper · 2022 · Mithun Das, Somnath Banerjee, Punyajoy Saha et al.

**Authors:** [Mithun Das](https://md.research.elamur.ai/free/en/authors/mithun-das/), [Somnath Banerjee](https://md.research.elamur.ai/free/en/authors/somnath-banerjee/), [Punyajoy Saha](https://md.research.elamur.ai/free/en/authors/punyajoy-saha/) and [Animesh Mukherjee](https://md.research.elamur.ai/free/en/authors/animesh-mukherjee/) · **Year:** 2022 · **Venue:** Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2022.aacl-main.23/)
- [PDF](https://aclanthology.org/2022.aacl-main.23.pdf)
- [DOI 10.18653/v1/2022.aacl-main.23](https://doi.org/10.18653/v1/2022.aacl-main.23)

## Summary

A Bengali tweet can be written in Bengali script, in Latin letters, or with English phrases mixed into Bengali. A system trained on just one of these forms may struggle with the others, even when they express much the same thing. Das and colleagues study this problem by asking systems to distinguish hate speech, offensive language, and ordinary posts in both scripts. The distinction matters because a profanity can be part of a group-directed attack, a personal insult, or an exclamation. Spotting the word alone leaves much of the decision unresolved.

The authors collected and annotated 10,178 public tweets, with 5,071 in Bengali script and 5,107 in Romanized Bengali. They used abusive expressions and names of communities to find candidate posts, then had native Bengali speakers assign labels and identify targets. The resulting benchmark makes it possible to measure performance within each writing form and to ask how much training on one form helps with the other. The authors made the dataset and code public.

With separate training for each script, XLM-RoBERTa led on macro-F1, a score that gives each class equal weight. It reached 0.803 on Bengali-script tweets and 0.805 on Romanized tweets. Pooling both forms for training changed the ranking on the Bengali-script test set, where MuRIL reached 0.808, while XLM-RoBERTa still led on the Romanized test set at 0.810. Transferring a classifier directly between scripts without labeled examples from the destination script gave much weaker results. Adding a small labeled sample helped. With 128 target examples per class, MuRIL reached macro-F1 of 0.751 when transferring into Romanized Bengali and 0.709 in the reverse direction. An additional experiment that combined Romanized posts with English translations of Bengali-script posts produced the highest reported Romanized macro-F1, 0.811 with m-BERT.

The authors’ review of misclassified posts shows why the task remains difficult even with examples from both scripts. In some posts, emoji changed the apparent tone. In others, strings of swear words created the appearance of an attack with no clear target, or political and religious references left room for disagreement about whom the post attacked. The paper establishes a benchmark for a particular collection and labeling procedure and shows that the best training strategy depends on which Bengali writing form is available for training and which one the system must read.

## Deep dive: Hate Speech and Offensive Language Detection in Bengali

Das and colleagues test how well hate speech and offensive language detection transfers between Bengali and Romanized Bengali tweets. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Bengali coverage includes a question about script

The authors motivate the study through a practical constraint of social media moderation. Platforms can set rules, remove posts and suspend accounts, but deciding which messages warrant action still requires interpreting what people wrote. Human reviewers have to keep up with the volume of posts, changing slang and exchanges in languages they may know to different degrees. An automated detector offers a way to process more text. Its usefulness, however, depends on what kinds of posts it has been trained and evaluated on. The paper situates that coverage problem within [bias, fairness and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/).

The shortage the authors identify is a shortage of research resources for Bengali. The paper puts the number of Bengali speakers at more than 210 million, while describing the available hate-speech data as limited in platform coverage and writing form. In this sense Bengali is one of the [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) for the task. A large community of speakers and an ample supply of labeled examples are different things. Even public text becomes a training resource only after someone can collect it, define the categories and assign labels with enough consistency to evaluate a detector.

The paper calls Bengali written in Bengali script *actual Bengali* and uses *Roman Bengali* for its Latin-script counterpart. Here, *Bengali-script* and *Romanized* refer to those experimental groups. Romanization changes the writing system used to represent Bengali. Code-mixing concerns the use of material from more than one language in the same exchange or post. The two can occur together, as when a writer uses Latin letters for Bengali and includes English words or phrases. They are worth keeping distinct because a post can create difficulties at either level. A Bengali word may have a different written form across the two groups, while an English phrase inside a Bengali sentence may have to be interpreted as part of the Bengali message.

That distinction gives the study its central transfer question. A classifier that already has labeled Bengali-script examples has been exposed to the task, including what the annotators treat as a group-directed attack or a personal insult. What remains to be learned is how those distinctions appear in the other writing form. In practical terms, the authors ask whether a labeled collection in one form can reduce the amount of annotation needed in the other. The experiment fits within [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/), although the principal comparison is between writing forms of Bengali.

#### What the labels ask readers to judge

The paper treats detection as [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). Given a post, the classifier selects a category defined by the annotation guidelines. The categories in this study are hate speech, offensive language and normal. The first category includes expressions of hatred or derogatory attacks tied to attributes such as religion, caste, ethnicity or gender. The offensive category captures abusive or vulgar language aimed at insulting an individual or group. The normal category covers posts that fall outside the first two definitions.

The boundary is easiest to see when the same kind of word can occur in different uses. The authors show a Romanized tweet that swears while questioning a film award. The annotation treats it as normal because the profanity functions as part of the speaker’s reaction. Another tweet attacks a named individual with vulgar and threatening language and receives the offensive label. A further example uses a derogatory expression aimed at Bangladeshis and is labeled hate. The task involves reading the expression together with its target and the role it plays in the post. The presence of an identifiable person, a community name or a vivid insult is only part of that judgment.

This distinction also affects how earlier resources can be used. A collection made up entirely of examples from different hate categories can show which kinds of hate its creators distinguished. Training a detector to screen a broader feed also requires examples outside those categories. A dataset that merges offensive language and hate speech supports that screening problem under a broad positive label, but leaves the finer distinction untested. The authors place their work in a line of research that explicitly separated offensiveness from hate, including [Automated Hate Speech Detection and the Problem of Offensive Language](https://md.research.elamur.ai/free/en/papers/davidson-2017-automated-hate-speech-detection-problem/).

#### The research the authors build on

The related-work discussion describes early resource building as primarily focused on [English](https://md.research.elamur.ai/free/en/topics/english/). The authors then point to shared tasks and datasets that extended the work to other languages. They cite efforts such as HASOC and TRAC, as well as work on Hindi, Danish, Greek, Turkish and Mexican Spanish. In this account, shared tasks gave researchers a common set of posts and decisions to evaluate, while individual data collection projects expanded the kinds of language represented. One of the shared tasks the authors discuss is [OffensEval](https://md.research.elamur.ai/free/en/papers/zampieri-2019-semeval-2019-task-6-identifying/).

For Bengali, the authors describe several predecessors with different scopes. Ishmam and Sharmin annotated 5K Facebook comments under categories that included incitement, hate speech, religious hatred and communal attack, alongside religious and political comments. The paper describes that dataset as unavailable to the public. Karim and colleagues assembled 8K posts from several sources, including Facebook, news articles and blogs. Those examples belonged to hate categories, so the collection by itself could support distinctions among types of hate but supplied no contrast set for deciding whether content was hateful. Romim and colleagues curated 30K comments and provided a detection benchmark. The paper identifies Bengali script as common to all of these resources. Its own collection adds Twitter posts in Romanized Bengali alongside Bengali-script tweets.

The authors also describe a change in how classifiers represent the text. Earlier systems relied on features such as character and word [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/), which are recurring sequences of units. Other features included grammatical categories and [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/), a way to give a term weight based on its occurrence in a document and its distribution across the collection. Logistic regression, support vector machines and decision trees could use these features to make class predictions. The paper describes subsequent work using deeper networks and graph embeddings before turning to pretrained Transformer encoders.

That history explains why the authors compare pretrained systems with different language coverage and training material. A classifier using manually chosen character sequences can find useful recurring patterns within a script. The two Bengali collections raise a harder question about whether useful information learned from one set of written forms remains accessible in the other. The authors select systems that have already processed multilingual text before receiving any of the task’s labels. They then vary the supervised data available to those systems. This is the paper’s connection to [language models and pretraining](https://md.research.elamur.ai/free/en/topics/language-models/).

### The method, step by step

#### From public tweets to a benchmark

The collection begins with terms that might lead to relevant posts. The authors say the multilingual hate lexicon they consulted lacked a Bengali inventory, so they compiled 74 abusive terms of their own. They included slurs or derogatory expressions aimed at individuals and communities. They also searched for names of targeted communities to find some posts that might be hateful or offensive without using a listed abusive word. A community name could retrieve a neutral mention as readily as an attack, so inclusion in the search results served as a way of finding material for human review.

The Twitter API searches returned pools of 500K Bengali-script tweets and 150K Romanized tweets. These are retrieval counts, before the annotation process produced the final benchmark. The authors capped the number of tweets at 75 per user to reduce concentration around prolific accounts. They also set a maximum of 500 tweets per month to limit the influence of particular events. The collection therefore proceeds through distinct decisions about which terms can retrieve a post, how heavily a user or time period can contribute and which label applies once the post is read.

How the Bengali hate speech benchmark was built and evaluated The steps in order.

The search and labeling procedures serve different purposes. Search gives the team a manageable way to find relevant cases. Labeling determines whether any retrieved expression was actually used in a way covered by the scheme. In the paper’s examples, a post about a Dalit organization raising questions concerning citizenship law is normal. The community reference contributes to the subject matter but supplies no group-directed insult. That kind of example is useful because it puts a potentially sensitive term in a post that the classifier should leave in the ordinary category.

#### How the authors assigned labels and targets

The team worked with four undergraduate computer science students who were native Bengali speakers. Two doctoral students with prior experience studying harmful content led the work as expert annotators. The experts first labeled a pilot collection of 100 tweets. It contained 30 hateful tweets, 35 offensive tweets and 35 normal tweets. Each undergraduate received 30 posts from that collection, along with a codebook that explained the decisions and illustrated them with examples. The pilot let the team see where the readers’ decisions diverged from the expert labels, review those cases together and incorporate feedback into the main task. This is the calibration stage of the [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

During the main task, each post went to two independent annotators. They were asked to read the entire tweet, choose its class and mark the targets that applied. Work began in batches of 100 tweets and later moved to batches of 500. The team discussed errors from earlier batches with the annotators. It also encouraged breaks between annotation sessions and held weekly meetings to check on the annotators’ well-being. The authors describe these arrangements because reading a concentrated stream of abusive material was part of how the data were produced.

If the initial readers disagreed about the class, an expert labeled the tweet. Where a class received agreement, it could be kept. Where each of the three readers chose a different class, the authors excluded the post from further analysis. The adjudication process gave the benchmark a single class label for each retained example while allowing difficult cases to be escalated. Excluding the cases with fully divided judgments also affects what the resulting evaluation measures. It tests decisions against the retained labels, after the cases with the broadest disagreement have been removed.

Targets followed a different procedure. The authors combined the targets marked by the annotators, so a post could carry several target labels. The inventory included genders, linguistic communities, national origins and religions. It also provided labels for individuals, political targets, disabled people and Dalits, among others. In one of the paper’s examples, an offensive post is marked as targeting both an individual and a woman. That example shows why the presence of a target attribute and the class of the message are separate annotations. The classification results concern the class of the post. The target information was collected to support questions such as whether a classifier behaves differently across the communities represented.

The final dataset contains 10,178 tweets. In Bengali script, there are 825 hateful, 1,341 offensive and 2,905 normal posts, out of 5,071. In Romanized Bengali, there are 510 hateful, 2,063 offensive and 2,534 normal posts, out of 5,107. The script groups are similar in size, but their class compositions differ. The Romanized collection has fewer hateful examples and more offensive examples than the Bengali-script collection. A transfer experiment thus involves changing the written input and moving between samples whose label distributions are different.

The authors report inter-annotator agreement of 0.696 using Krippendorff’s α, where α denotes the agreement coefficient. The statistic describes consistency among annotators while accounting for agreement expected by chance. It addresses a different question from the final adjudication. Two readers can initially disagree and still contribute to a usable dataset once an expert has resolved the class. The agreement score summarizes how consistently the readers made decisions under the scheme, while the final labels are the judgments that the classifiers are evaluated against. The authors place their reported agreement alongside related efforts including [Multilingual and Multi-Aspect Hate Speech Analysis](https://md.research.elamur.ai/free/en/papers/ousidhoum-2019-multilingual-multi-aspect-hate-speech/).

#### The encoders and how they learn the categories

Each system takes the tweet as input and produces scores for the classes. The shared architecture is an encoder built using the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/). Attention lets the representation of one part of a post depend on other parts. That is relevant when a swear word gets its force from a target elsewhere in the message, or when a phrase near the end changes how an earlier sentence reads. The architecture creates a way for those dependencies to matter. The supervision still has to teach the classifier which textual patterns predict each annotation category.

The authors start from pretrained encoders, then use [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) to adapt them to the labeled task. Pretraining gives an encoder experience with text before the authors supply any hate, offensive or normal examples. Fine-tuning adjusts it using posts with those labels. In the multilingual BERT setup, a fully connected classification layer receives the encoder output at the special CLS position. CLS designates the input position whose resulting representation is used for the whole message. The classification layer uses that representation to score the choices. The named baseline is m-BERT, the multilingual version of [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/).

The paper describes m-BERT as having 12 attention heads and being pretrained on Wikipedia in 104 languages. Its pretraining objective is masked language modeling, which asks the encoder to use context to recover hidden portions of its input. XLM-RoBERTa is also a multilingual Transformer encoder with 12 attention heads. The paper reports that its pretraining used 2.5TB of filtered CommonCrawl text in 100 languages and that the encoder can accept up to 512 tokens. The authors use the shorter name XLM-R in parts of the study. Its underlying work is [Unsupervised Cross-lingual Representation Learning at Scale](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/).

IndicBERT and MuRIL bring a more regionally focused pretraining mix to the comparison. The authors describe IndicBERT as a multilingual descendant of [ALBERT](https://md.research.elamur.ai/free/en/papers/lan-2019-albert-lite-bert-self-supervised/). It was pretrained on 9 billion tokens covering 12 major Indian languages and is described as having around 10x fewer parameters than the larger multilingual systems in the comparison. Its place in the experiment is to show how an encoder with this training coverage and parameter budget handles the same annotation task. It comes from [IndicNLPSuite](https://md.research.elamur.ai/free/en/papers/kakwani-2020-indicnlpsuite-monolingual-corpora-evaluation-benchmarks/).

MuRIL uses a BERT base architecture pretrained from scratch. The paper names Common Crawl, Wikipedia, PMINDIA and Dakshina as its sources and describes coverage of 17 Indian languages and their transliterated counterparts. Transliteration exposure is particularly relevant here because the downstream Bengali task explicitly changes scripts. That makes MuRIL a natural candidate when training data include both scripts or when fine-tuning has to bridge them. The study compares the complete pretrained systems, each with its own choices about corpora and training. The MuRIL work is [Multilingual Representations for Indian Languages](https://md.research.elamur.ai/free/en/papers/khanuja-2021-muril-multilingual-representations-indian-languages/).

Across the main experiments, the authors use a 70:10:20 training, validation and test split, stratified by label. The training partition supplies examples for fitting the classifier, the validation partition gives a separate set for development, and the test partition supplies held-out examples for the reported comparisons. Stratifying by class carries the label distribution into the partitions. The authors report 10 epochs, meaning 10 passes through the training data, with the Adam optimizer. They set the batch size to 16, the learning rate to 2e − 5 and Adam’s epsilon to 1e − 8. Batch size is the number of examples grouped for an update, the learning rate controls its scale, and epsilon is the small constant used by the optimizer for numerical stability.

```
n = 400
```

Here, `n` is the common input-length setting in tokens, `=` assigns the value, and `400` is the setting the authors use for each encoder in the experiment. In this context a token is a text unit passed to the encoder after [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). An encoder’s stated maximum input length and the length chosen for this set of runs are separate settings.

#### How the authors vary the available data

The first arrangement is ELFI, short for *Each language for itself*. A run on Bengali script uses Bengali-script tweets for training, validation and testing. A run on Romanized Bengali uses Romanized posts at every stage. These are the reference conditions for a team that already has a labeled collection in the writing form it wants to classify. In joint training, the authors pool the labeled training posts in both scripts, then report performance separately for the two test groups. That keeps the question about each test script visible even though a single training collection now includes both.

Direct transfer changes which group supplies the supervised labels. The authors first fine-tune an encoder on the source form, then use it to classify held-out posts in the other form, called the target. In the zero-shot condition, MTx0, the classifier receives no labeled target posts during task training. The zero applies to supervision for this task in the target form. Pretraining still preceded the experiment, and the pretrained encoders had different histories of exposure to languages and scripts.

The authors then repeat the transfer with a second round of fine-tuning on labeled target examples, a procedure known as [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/). The budgets are expressed per class, so each target sample includes hateful, offensive and normal posts under the same allowance.

```
n ∈ {32, 64, 128}
```

Here, `n` denotes the number of labeled target posts sampled per class, `∈` means that the value is drawn from the choices in braces, and `32`, `64` and `128` are the tested allowances. The paper calls these conditions MTx32, MTx64 and MTx128. At each size the authors draw three different random target sets and report average performance. Both transfer directions are tested. A Bengali-script source is adapted to Romanized examples in one direction, and a Romanized source is adapted to Bengali-script examples in the other.

A further arrangement uses [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). The authors translate Bengali posts into English with Google Translate, retain the annotations and train and test on translated text. This changes the wording that the classifier reads and also changes the language of the evaluation input. A separate experiment combines English translations of Bengali-script posts with Romanized Bengali training data, then evaluates the resulting system on Romanized posts. The motivation is that the Romanized collection can already contain English. Translated examples might supply helpful evidence in that setting even if a classifier trained and evaluated wholly on translations falls short of its Bengali-script counterpart.

### Experiments and results

#### What the scores measure

The central experiments use the same tweet collection and the same class scheme while varying the encoder and the training arrangement. The comparison among m-BERT, XLM-RoBERTa, IndicBERT and MuRIL therefore asks which complete system works best under each data condition. A separate experiment with the Romim collection changes both the dataset and the task by combining the hate and offensive labels. Its scores answer a question about a binary classification benchmark and need to be read on those terms.

Accuracy is the share of tweets assigned the recorded class. It gives every test post equal weight. Class-level F1 considers precision and recall together. For the hate class, precision addresses how often a hate prediction agrees with the benchmark. Recall addresses how many of the benchmark’s hateful posts the classifier detects. F1 combines these quantities, so good performance depends on both. Because the dataset has more ordinary or offensive posts than hateful ones, accuracy and hate-class F1 describe different parts of performance.

Macro-F1 averages F1 across the categories with equal weight for each category. The paper reports it alongside accuracy, hate-class F1, offensive-class F1 and AUROC in the main results. AUROC is the area under a receiver operating characteristic curve. It describes how well scores separate a class as the decision threshold varies. The paper reports AUROC for the multi-class task without detailing the averaging convention in its evaluation description. For the zero-shot and few-shot comparisons, the paper gives macro-F1 alone.

#### Training and testing within a single script

In the Bengali-script ELFI condition, XLM-RoBERTa leads on macro-F1, accuracy and AUROC. It reaches macro-F1 of 0.803, accuracy of 0.830 and AUROC of 0.919 on the held-out Bengali-script set. MuRIL is next on macro-F1 at 0.797 and accuracy at 0.817. m-BERT has macro-F1 of 0.795 and accuracy of 0.813. IndicBERT records 0.767 macro-F1 and accuracy of 0.790.

Macro-F1 on Bengali-script tweets with Bengali-script-only training XLM-RoBERTa leads the comparison when training and testing use Bengali script.

**The numbers**

| System or setting | Macro-F1 |
| --- | --- |
| XLM-RoBERTa (this paper) | 0.803 |
| MuRIL | 0.797 |
| m-BERT | 0.795 |
| IndicBERT | 0.767 |

The Bengali-script hate class has a different order. m-BERT records hate-class F1 of 0.824, ahead of MuRIL at 0.816 and XLM-RoBERTa at 0.812. XLM-RoBERTa leads on the offensive class at 0.717, while MuRIL reaches 0.704, m-BERT 0.693 and IndicBERT 0.656. A reader choosing an encoder specifically for detection of the hate class would therefore draw a different conclusion from one choosing on overall macro-F1. The distinction is consequential here because the benchmark was designed to separate hate speech from other offensive language.

For standalone Romanized training and testing, XLM-RoBERTa has macro-F1 of 0.805, accuracy of 0.858 and AUROC of 0.924. It also leads the reported class scores, with hate-class F1 of 0.666 and offensive-class F1 of 0.857. IndicBERT is next on Romanized macro-F1 at 0.793, followed by m-BERT at 0.789 and MuRIL at 0.788. IndicBERT reaches offensive-class F1 of 0.846, whereas m-BERT reaches hate-class F1 of 0.658. The ordering immediately below the leader changes with the metric here as well.

The per-class figures show what similar aggregate results can conceal. For XLM-RoBERTa, Bengali-script and Romanized macro-F1 are reported as 0.803 and 0.805, respectively. In Bengali script its hate-class F1 is 0.812 and its offensive-class F1 is 0.717. On Romanized posts the corresponding scores are 0.666 and 0.857. Similar macro averages coexist with different profiles of errors. The two collections also have different class compositions, so the paper’s results compare performance on the two observed subsets rather than on matched tweets rewritten in a different script.

#### Pooling the original Bengali posts

When both writing forms contribute training examples, MuRIL gives the highest Bengali-script macro-F1 at 0.808 and the highest accuracy at 0.833. m-BERT follows with 0.800 macro-F1 and accuracy of 0.829. XLM-RoBERTa reaches 0.794 macro-F1 and accuracy of 0.819, while IndicBERT has 0.769 macro-F1 and accuracy of 0.785. AUROC gives another ordering. m-BERT leads on that metric at 0.914, with XLM-RoBERTa at 0.912, IndicBERT at 0.900 and MuRIL at 0.895.

MuRIL’s Bengali-script hate-class F1 is 0.835 under joint training, compared with 0.816 under standalone training. Its offensive-class F1 is 0.704 in both arrangements. m-BERT goes from hate-class F1 of 0.824 with Bengali-script-only training to 0.831 with joint training, while its offensive-class F1 moves from 0.693 to 0.684. These comparisons help identify where changes in an aggregate score are accompanied by gains or losses on particular labels. The paper does not report normal-class F1 separately in these tables.

On Romanized Bengali, XLM-RoBERTa still leads after the authors pool the training examples. It records macro-F1 of 0.810 and accuracy of 0.865. MuRIL reaches macro-F1 of 0.800 and accuracy of 0.850, improving on its standalone Romanized macro-F1 of 0.788. MuRIL has the higher joint-training hate-class F1, at 0.670 compared with XLM-RoBERTa’s 0.666. XLM-RoBERTa does better on offensive-class F1, with 0.867 against MuRIL’s 0.842. m-BERT has the strongest AUROC in this condition at 0.928, alongside macro-F1 of 0.789.

Adding Bengali-script examples can also lower Romanized test performance. IndicBERT moves from standalone Romanized macro-F1 of 0.793 to 0.767 with both scripts in training. Its offensive-class F1 moves from 0.846 to 0.808. The authors interpret MuRIL’s stronger joint-training results in light of its pretraining on original and transliterated text. IndicBERT’s result helps establish the narrower empirical finding. Whether pooling helps depends on the encoder and the test group, even though the class definitions apply across both scripts.

#### Transferring the classifier between scripts

Without target-form supervision, the best macro-F1 for Bengali-script to Romanized transfer is 0.390 with m-BERT. IndicBERT records 0.319, MuRIL 0.269 and XLM-RoBERTa 0.230. In the reverse direction, MuRIL leads at 0.414. IndicBERT follows at 0.397, XLM-RoBERTa reaches 0.299 and m-BERT reaches 0.268. XLM-RoBERTa’s strong standalone scores establish that it can learn the task when trained on the evaluation script. Its direct-transfer results show how much harder the experiment becomes when supervision comes entirely from a different writing form.

The addition of labeled Romanized tweets changes the incoming-transfer rankings. At 32 examples per target class, m-BERT leads at 0.530 macro-F1 and MuRIL is next at 0.507. At 64 examples per class, MuRIL leads at 0.671, followed by m-BERT at 0.655. The largest target sample tested yields 0.751 for MuRIL, 0.692 for m-BERT, 0.668 for XLM-RoBERTa and 0.462 for IndicBERT. The direct-transfer leader therefore stays ahead at the smallest annotation budget, while another system makes better use of the larger samples.

MuRIL macro-F1 on Romanized Bengali after training on Bengali script MuRIL improves at each tested increase in labeled Romanized Bengali examples.

**The numbers**

| System or setting | Macro-F1 |
| --- | --- |
| MTx0 | 0.269 |
| MTx32 | 0.507 |
| MTx64 | 0.671 |
| MTx128 (this paper) | 0.751 |

In the Romanized-to-Bengali-script direction, MuRIL leads at every tested target budget. Its macro-F1 is 0.575 at 32 examples per class, 0.645 at 64 and 0.709 at 128. XLM-RoBERTa is second at the two smaller budgets, with 0.542 and 0.613. At 128 examples per class, m-BERT takes second place with 0.691. XLM-RoBERTa records 0.664 and IndicBERT 0.557 at that same budget. These are average results over the sampled target training sets. The authors report the averages without outcome ranges for the individual sample draws.

Every encoder’s reported macro-F1 increases with target supervision in both directions. This supports the practical observation that a small labeled destination sample can substantially improve an already transferred classifier. The best few-shot results remain below the corresponding standalone full-training leaders, at 0.805 on Romanized Bengali and 0.803 on Bengali script. The study consequently shows an intermediate option between deploying a directly transferred classifier and assembling a much larger labeled collection in the destination form.

#### What happened when training used English translations

In the translated-only experiment, XLM-RoBERTa achieves macro-F1 of 0.764 and accuracy of 0.796 on translated test posts. m-BERT follows on these metrics at 0.754 and 0.777. MuRIL has macro-F1 of 0.722, and IndicBERT has 0.671. m-BERT leads on translated hate-class F1 at 0.775 and AUROC at 0.893. XLM-RoBERTa has hate-class F1 of 0.757 and AUROC of 0.891. The authors compare XLM-RoBERTa’s translated macro-F1 of 0.764 with its native Bengali-script result of 0.803. Training and testing on translated text produced the weaker score in this comparison.

The other translation experiment retains the original Romanized posts as the target and adds English translations of Bengali-script posts to the training collection. Here, m-BERT leads on macro-F1 at 0.811, hate-class F1 at 0.694 and AUROC at 0.930, with accuracy of 0.856. Its standalone Romanized row reports macro-F1 of 0.789, while the paper’s prose gives 0.790 for the earlier figure. Both comparisons support the same direction of change. MuRIL moves from 0.788 in the standalone Romanized experiment to 0.791 when its training includes the translated examples.

For XLM-RoBERTa and IndicBERT, the translations give lower Romanized macro-F1 than standalone Romanized training. XLM-RoBERTa moves from 0.805 to 0.799. IndicBERT moves from 0.793 to 0.787. The best English-augmented run and the best original-text joint run also lead on different metrics. m-BERT with added translations gives macro-F1 of 0.811. XLM-RoBERTa trained jointly on the original scripts gives macro-F1 of 0.810 and the higher Romanized accuracy of 0.865.

Leading macro-F1 on Romanized Bengali under full-data training arrangements The m-BERT run augmented with English translations has the highest reported Romanized Bengali macro-F1.

**The numbers**

| System or setting | Macro-F1 |
| --- | --- |
| XLM-RoBERTa with Romanized Bengali only | 0.805 |
| XLM-RoBERTa with both original scripts | 0.810 |
| m-BERT with Romanized Bengali and English translations (this paper) | 0.811 |

The chart compares the leading run in each arrangement, so the change of encoder is part of that comparison. The paired results within an encoder answer a narrower question. For m-BERT, the translated additions work better on Romanized macro-F1 than its standalone or original-text joint training runs. For XLM-RoBERTa, the original-text joint run is stronger than the translated augmentation. The measured benefit thus depends on which pretrained system receives the extra examples.

#### Testing across a second Bengali benchmark

The authors also test XLM-RoBERTa on the Bengali-script data assembled by Romim and colleagues. For this comparison they merge hate and offensive in their own data to match the other dataset’s broader positive class. Romanized posts are outside this comparison. The authors report that the earlier work obtained 87.5% accuracy on its test dataset with a support vector machine. Their own cross-dataset experiment uses XLM-RoBERTa on both datasets, so the two training directions can be examined with the same encoder.

Training and testing on the Romim data gives accuracy of 0.905 and macro-F1 of 0.894. Training and testing on the authors’ own binary Bengali-script data gives accuracy of 0.846 and macro-F1 of 0.843. Training on Romim and evaluating on the new dataset gives macro-F1 of 0.646, while training on the new dataset and testing on Romim gives 0.754. Both transfers are weaker than training and testing within the destination collection. The direction of transfer matters even when the script, encoder and nominal class scheme have been aligned.

Joint training on both datasets yields macro-F1 of 0.899 and accuracy of 0.910 on the Romim test data. On the authors’ own test data, that run yields macro-F1 of 0.835 and accuracy of 0.837. The extra training examples help on the Romim side of the comparison, while the authors’ own test scores are higher under standalone training. Different collection and annotation procedures can give a classifier different signals to learn, and the joint experiment shows the result of combining the datasets as they stand.

### What the ablations show

#### The comparisons vary what supervision is available

The paper has no component ablation of an encoder. It offers controlled changes to the training data, a transfer budget comparison, a cross-dataset test and a manual review of errors. These comparisons show where a design choice changes performance and help narrow the explanations for that change. They address parts of the learning setup that can vary independently of the final classification task. The held-out script and target annotations remain the reference against which each result is judged.

The standalone and joint runs test the value of including the other script in supervised training. On the Bengali-script test set, MuRIL and m-BERT improve on macro-F1 when both scripts are present, while XLM-RoBERTa’s macro-F1 declines. On the Romanized test set, MuRIL and XLM-RoBERTa improve, m-BERT’s reported macro-F1 is the same and IndicBERT declines. This variation is informative because the two writing forms share a label scheme and much of their language. Even under those favorable conditions, added examples do not exert a uniform influence. The experiment measures the net result of pooling, which changes the amount and composition of supervision together.

The target budget comparison measures what happens when a source-trained system receives progressively more examples from the destination form. Its most direct result is the upward movement in macro-F1 for every system in both directions. It also shows that a good starting point and a good adapted result are distinct. m-BERT is strongest before adding Romanized labels and still leads at the smallest tested budget. MuRIL leads at the larger budgets. In the opposite direction MuRIL starts ahead and remains there. The comparison gives a reason to evaluate under the annotation budget of interest because rankings at a different budget can hide which system is best suited to the available data.

The authors offer MuRIL’s transliteration exposure during pretraining as an explanation for some of these results. The explanation is consistent with its few-shot performance and with its gains from joint training. Those findings concern the full MuRIL system. The comparison also changes pretraining corpora and other properties of the encoders, so it leaves the independent contribution of transliterated pretraining unmeasured. The zero-shot direction into Romanized Bengali is especially informative here. MuRIL has that pretraining exposure, yet m-BERT has the stronger result before target labels are introduced.

The translation comparisons test whether representing the added Bengali-script examples in English helps a classifier that reads code-mixed posts. The answer is conditional. m-BERT and MuRIL benefit on Romanized macro-F1, while XLM-RoBERTa and IndicBERT do better with standalone Romanized training than with the translated additions. The original-text joint runs put those outcomes in context, since the two alternatives offer extra training examples in different written forms. The experiment records the net benefit of the added material after translation. It does not establish whether a particular gain came from retaining the right meaning, adding English lexical overlap or introducing a different mixture of examples.

#### What the authors found in misclassified posts

The error analysis examines 50 held-out posts that a classifier assigned to a different category from the recorded one. The authors group the cases by recurring sources of difficulty. The illustrated predictions are from XLM-RoBERTa, and the authors report seeing similar patterns across the other encoders. The value of the examples lies in the specific decisions they expose. A score can show that a disagreement occurred, while inspecting the post can show whether the disagreement concerns tone, target, interpretation or the assigned label.

One pattern involves sarcasm and emoji. In the paper’s example, a post insults its addressee by comparing her to a street dog and appends a sequence of emoji. The annotation is offensive, while the displayed classifier prediction falls outside that category. The authors treat the emoji as part of what makes the tone difficult to determine. The example illustrates why a detector cannot always settle the label by reading the literal words independently of the way the message is presented. There is no paired prediction with the emoji removed, so its precise effect on this decision remains open.

Another pattern involves profanity without a clear human target. The authors show a Bengali-script message stringing vulgar terms together in a complaint about a train. The classifier marks it as offensive, while the benchmark treats it as ordinary. This is a failure in the opposite direction from the emoji example. Here, there is plenty of lexical evidence that could correlate with offensiveness, but the words express frustration at an object. The example is especially revealing in a dataset whose candidate collection began with abuse-related search terms. A good classifier has to distinguish why a term is present from the mere fact that the search could find it.

A further category concerns viewpoints in political or religious exchanges. The authors illustrate it with a Romanized reply that combines a religious reference and political affiliations. Its recorded label is hate, while the classifier gives the ordinary label. The authors point out that some of these judgments depend on how a reader interprets the viewpoint and the target implied by the message. The ambiguity can concern what the writer is endorsing, whether the reference is an attack and whom the attack includes. The paper reports difficulty of this kind across the compared systems.

The code-mixing example combines English wording with Bengali script in a message about a political party and its supporters. The annotation is offensive, while the classifier misses that reading. The paper uses this to illustrate difficulty when the grammar and the vocabulary of an utterance draw on different linguistic material. It also makes visible a complication of discussing code-mixing solely through the Romanized subset. A message can move between English and Bengali while containing Bengali-script writing, and detecting its target may require reading across the change.

Finally, the authors revisit examples in which the reference label itself may be doubtful. An illustrated post uses religious wording while attacking supporters of a politician. The recorded label is hate, whereas the classifier assigns offensive. The authors consider whether some posts with slurs were labeled hateful even though the group target was unclear. The important point is that a measured error records disagreement with the reference label. In an ambiguous case, interpreting that disagreement requires a judgment about the annotation as well as about the classifier. The paper presents these as possible labeling mistakes and does not replace the benchmark labels with the classifier’s judgments.

### Limitations

#### Limits identified by the authors

The authors explicitly identify missing external context. The classifier receives the post, without information such as the user’s profile, past posting patterns or gender. The annotators work from the tweet under the codebook. This setup supports an evaluation of decisions from the message itself. A reply can still rely on a conversation that the tweet text leaves implicit, and a political or religious remark can presume that its audience already knows the dispute. The paper’s error analysis shows where readers might want such context. The experiment does not measure how much any particular source of context would improve detection.

The authors also state that they did not test robustness to adversarial examples. Their evaluation covers naturally occurring tweets collected under the stated search procedure. Users deliberately changing how they write to defeat detection would pose a different test. The distinction matters for the comparison between scripts. Ordinary Romanization and code-mixing are included because they are forms the authors observe in regular communication. Performance on those examples cannot establish robustness to writing deliberately altered in response to a detector.

The ethics discussion describes the posts as publicly available and states that the team made no attempt to identify users or track them across platforms. It also calls for rigorous testing before deployment and further study of unintended bias toward target communities. The target annotations make such questions possible to ask, but the main results give aggregate and class-level measures. A score for the hate class cannot tell a reader whether the classifier has similar error rates for references to different religions, national origins or linguistic communities.

#### Limits that follow from the setup

The data represent tweets found through a selected vocabulary and retained under a particular sampling and annotation procedure. Searching for community names helps retrieve relevant posts beyond explicit profanity or slurs. Content expressed with neither a searched term nor a searched community name can still be absent from the candidate pool. Caps by account and month reduce concentration within retrieved material. They do not turn that material into a representative sample of all Bengali conversation on Twitter. The reported counts describe benchmark composition and give no estimate of the prevalence of hateful or offensive speech among Bengali-speaking users.

The split is described as stratified by class. The paper does not specify an evaluation in which test users, events or time periods are held out as groups. Capping an account’s contributions is a collection choice, whereas keeping that account entirely within one partition would be a split choice. The benchmark scores therefore give evidence about held-out tweets under the stated split. A test built around unfamiliar speakers or events would answer a further generalization question. The experiment with the Romim dataset provides some evidence of what happens when the collection changes, but it is restricted to Bengali script and the merged classification task.

The construction of the reference labels affects what the reported performance means. Expert adjudication lets the authors retain disputed posts when a class can be resolved, and the cases with fully divided judgments are excluded. This gives the evaluation a workable set of labels. It also leaves out some posts that would still present moderation decisions in a live setting. The reported agreement of 0.696 and the authors’ discussion of questionable labels show that interpretation remains part of the task even after annotator calibration. The dataset also stores target information by combining annotations, while the benchmark results assess the single class decision. A study of target identification would have to evaluate that output separately.

The two script subsets are naturally collected groups of tweets with different label distributions. They are not parallel sets of the same messages rewritten in each script. That limits causal claims about why transfer is difficult. The loss in a direct transfer can reflect spelling, English mixing, changes in topics or target composition, and differences in how the label categories are represented. The experiment measures the combined challenge of moving between the two collections as observed. The translation comparison likewise evaluates the full outcome of passing posts through a translation service while retaining their original annotations. There is no independent assessment of which translations preserve the expressions decisive for a hate or offensive label.

Few-shot results show how a source-fine-tuned encoder performs after it sees examples in the target form. The paper does not give a matched comparison in which the same small target set fine-tunes the original pretrained encoder with the source stage omitted. The separate effects of prior task training and the additional target labels therefore remain unresolved. The reported means across target draws give more evidence than one draw would, but the paper does not show variation across the draws or uncertainty for the small differences among the leading full-data settings. In particular, Romanized macro-F1 of 0.811 and 0.810 identify an ordering of reported scores under different training arrangements without establishing how stable that ordering would be.

The manual review explains several recognizable errors and makes the limitations concrete. Because it starts from misclassified posts, it can reveal how a system goes wrong under different interpretations of a tweet. It gives no denominator for estimating how often the system fails on sarcastic, code-mixed or political posts among all posts of those kinds. Likewise, the examples that raise doubts about the reference labels show that some errors merit a second human reading, but do not establish how many labels would change under a new review. The evidence is most precise when used to describe failure modes rather than to estimate their prevalence.

### What came after

Two later works cite the Bengali benchmark and approach related issues from different directions. One concerns the resources needed for automated identification of a particular kind of online abuse. The other concerns producing a response to harmful speech in a low-resource language setting. The citation establishes a connection to the detection paper in each case. The individual references support describing that connection at the level of research scope, while leaving the details of dataset reuse, experimental setup and results unspecified.

[Resources for the Automated Identification of Online Gender-Based Violence](https://md.research.elamur.ai/free/en/papers/abercrombie-2023-resources-automated-identification-online-gender/) takes resource coverage as its subject, with a focus on online gender-based violence. Its connection to Das and colleagues’ study is clearest in what needs to be annotated before an automated identification task can be evaluated. The Bengali dataset records gender among several possible targets and keeps those annotations separate from the post’s hate, offensive or normal label. A paper focused on resources for a particular harm operates at a finer level of scope than a general hate and offensiveness benchmark. The citation alone does not establish that the Bengali tweets or their target labels were used in its experiments.

[Low-Resource Counterspeech Generation for Indic Languages](https://md.research.elamur.ai/free/en/papers/das-2024-low-resource-counterspeech-generation-indic/) shifts the task from assigning a label to producing a reply, a problem in [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/). Counterspeech is a response that pushes back against harmful speech. The connection is the problem of working with Indic languages under limited resources. The earlier paper asks how available labels and writing forms affect recognition of harmful content. The later work concerns the additional problem of generating something to say in response. Its citation does not establish that it reused the Bengali tweets, relied on a classifier studied here or transferred the two-script training procedure.

These connections illustrate different questions a detection dataset can bring into view. A target-focused resource study asks which kinds of harm an identification task can represent. A generation study asks what a system can produce once the task calls for a response. The Bengali benchmark provides evidence about the recognition step under a specified annotation scheme and a range of script and supervision conditions. Each subsequent task requires its own evidence about which examples carry over and what counts as a successful decision.

## Cite

Cite as Mithun Das, Somnath Banerjee, Punyajoy Saha and Animesh Mukherjee. 2022. Hate Speech and Offensive Language Detection in Bengali. Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2022.aacl-main.23](https://doi.org/10.18653/v1/2022.aacl-main.23)

```bibtex
@inproceedings{das2022hate,
  title = {{Hate Speech and Offensive Language Detection in Bengali}},
  author = {Mithun Das, Somnath Banerjee, Punyajoy Saha and Animesh Mukherjee},
  booktitle = {Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2022},
  doi = {10.18653/v1/2022.aacl-main.23},
  url = {https://doi.org/10.18653/v1/2022.aacl-main.23}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
