Elamur Research

Hate Speech Detection in the Bengali Language: A Dataset and Its Baseline Evaluation

Paper · 2021 · Nauros Romim, Mosahed Ahmed, Hriteshwar Talukder et al.

Summary

An angry comment can contain profanity and still fall outside a hate speech policy. A comment that sounds innocuous in isolation can be an attack to readers who know the conversation. Romim and colleagues turn this difficulty into a benchmark for Bengali social media. Their task is to decide whether a comment dehumanizes a person or community, directly or by endorsing a dehumanizing idea, using the comment itself as evidence. The project addresses a shortage of labeled Bengali data for text classification.

The authors assemble 30,000 comments, including 10,000 labeled as hate speech. YouTube supplies most of the material, and a public Facebook page supplies the celebrity comments. The collection spans sports, entertainment, religion, politics, crime, celebrity, and a group covering TikTok, memes, and miscellaneous material. The released dataset retains mainly Bengali comments that mix in features such as emoji or English words. A pool of 50 undergraduate annotators supplies three judgments per comment, and a majority vote determines the label. In a separate review of randomly sampled comments from each category, the authors report that 91.05% of the annotations were correct by their assessment. The procedure makes the definition of the target a central part of the linguistic annotation work.

The authors compare a linear support vector machine with recurrent neural classifiers that use different word embeddings, numerical representations of words learned from text. The support vector machine leads on the 6,000-comment test set, with 87.5% accuracy and an F-1 score of 0.911. FastText paired with a bidirectional recurrent network comes closest among the neural baselines, at 86.55% accuracy and 0.901 F-1. Both recurrent classifiers score lower with BengFastText, a pretrained Bengali embedding whose training material, according to the paper, included no YouTube data.

The benchmark also shows why an aggregate score gives an incomplete account of the task. The authors find errors on aggressive comments whose wording falls short of dehumanization under their rules. Their inspection also uncovers test labels they judge to be wrong. And although the headline scores are high, the paper gives no hate-speech-specific precision and recall with which to assess detection of the smaller class. The dataset provides a common test for Bengali hate speech detection, with a defined scope that matters whenever its scores are used to compare systems.

Deep dive: Hate Speech Detection in the Bengali Language: A Dataset and Its Baseline Evaluation

A Bengali hate speech benchmark labels social media comments and tests how well a linear classifier and recurrent networks detect hate speech. · about 34 minutes to read

The problem and its context

Defining what a detector should recognize

The authors begin with a practical tension. Social media makes it easy to share views and respond to other people, and the same comment spaces carry abuse. They draw attention to online abuse directed at women in Bangladesh. They also point to a gap between a platform’s written rules and the way harmful speech appears in actual conversations. For a Bengali classifier to be useful in research on that gap, investigators need a body of comments whose labels make their working definition explicit. The paper frames the shortage of such resources as a problem for low-resource languages.

A policy can describe an attack in terms of its target and what the speaker does to that target. A classifier receives text, where the evidence is frequently indirect. A crude word may express irritation about a film, furnish part of a personal attack, or appear in a complaint about someone’s conduct. A short allusion may be intelligible to followers of a particular person and obscure to a reader encountering it in isolation. The paper treats these as different obstacles. Recognizing how a word functions within a comment requires sensitivity to the surrounding language. Interpreting an allusion can require knowledge from outside the comment altogether.

That distinction determines what the authors ask annotators to do. They set up a binary decision on the comment in isolation. An expression that depends on a page, an event, or an established local joke for its hostile meaning can receive the negative label under this rule. The annotated target is consequently narrower than all the harmful speech someone might encounter while reading a thread. It also differs from a broad task such as identifying any offensive wording. A reader can be offended by a comment whose language fails the dataset’s test for dehumanization. The benchmark is therefore also a study in turning a social judgment into a reproducible labeling decision, an issue within bias, fairness and safety.

The paper gives language itself a major role in the problem. Its authors describe social media writing as different from edited print. People use spelling variants, unfamiliar expressions, and forms associated with memes. The collection also contains Bengali mixed with material such as English words and emoji. Even within the paper’s restricted definition, the system has to learn to connect a variety of written forms with an underlying meaning. The difficulty grows when superficially similar wording can carry different meanings in different sentences.

The Bengali resources that preceded it

The paper describes a field with several Bengali datasets, often with fewer examples and sometimes with a more detailed label scheme. Its comparison includes a Facebook hate speech dataset with 5,126 entries and 06 classes, a study of abusive Bengali text with 4,700 entries and 07 classes, and work on threats and abuse with 5,644 entries and 07 classes. These figures describe corpus size and the number of labels in the earlier work. They concern related tasks whose category definitions and purposes can differ.

The authors give particular attention to a Bengali social media toxicity corpus with 10,219 entries and 05 classes. In their account, the investigators could use only the examples marked for toxicity in their experiments because the other labels had too little data. This example helps explain the new paper’s choice of a broad binary distinction. A scheme can preserve several meaningful kinds of behavior while leaving some classes too sparse for the experiment an investigator wants to run. With a binary label, more comments contribute to estimating performance on a common decision. The resulting benchmark then has less information about which kind of abuse an individual comment contains.

Another resource in the comparison contains 2,665 entries and uses 07 classes. The literature review describes it as translated from an English hate speech dataset. Translation offers a route to labeled Bengali text when it is difficult to collect and annotate new material. For Romim and colleagues, the question is how people write in Bengali comment sections, so collecting comments originally written in that setting serves a particular purpose. It brings in locally recognizable disputes, informal spelling, and mixtures of writing conventions that the study wants the benchmark to contain.

Earlier Bengali research also tried ways of making the text easier to represent. One approach used rule-based stemming, which reduces related word forms to a common form for feature extraction. The authors also describe Bengali studies using convolutional and recurrent networks to learn patterns from examples. Their review identifies BengFastText as a resource made for Bengali and reports a training corpus of 250 million Bengali words. This prior work provided both ways to classify comments and ways to encode them numerically. The open question for the new dataset was how some of those choices would fare on a shared collection of social media writing.

The wider approaches the authors considered

The literature review describes research that deliberately extracts features intended to capture the meaning of hateful comments. It also discusses FastText, an approach with a role in efficient text classification and in representing words using parts of their written forms. Those strands raise different questions about features. A researcher can specify semantic clues in advance, or learn representations from patterns in text. How well either approach works depends on the writing the system has to handle and on what the labels ask it to recognize.

Research outside Bengali informs the paper’s account of the field. It describes work on Arabic that compares deep learning, transfer learning, and multitask learning. Transfer learning uses what a system learned in an earlier training setting to help with a new task. Multitask learning trains a system on related tasks together so that they can share parts of the learning process. The authors also mention multilingual research using pretrained mBERT and XLM-RoBERTa. These studies indicate the range of approaches available to researchers working on abuse or aggression across languages. The Bengali paper’s own evaluation is a baseline study with a narrower set of classifiers.

The review also cites work on the influence of annotators’ backgrounds and viewpoints. This is particularly relevant where a project separates dehumanization from profanity and asks readers to make the distinction without seeing the wider conversation. If different groups of annotators apply the dividing line differently, a classifier trained against one group’s labels may reproduce its decisions. A comparison of classifiers is interpretable only in relation to the rules and judgments that produced the labels. Because of this, the collection and annotation procedures are as consequential as the choice of classifier.

The method, step by step

From social media to a labeled collection

The project has a collection stage and a baseline evaluation stage. During collection, the researchers choose sources likely to provide varied Bengali writing, record where comments came from, and preserve the mixed forms that appear in predominantly Bengali text. Annotators then decide whether each comment meets a shared definition of hate speech. During evaluation, the researchers strip out several kinds of material from the text, divide the comments into training and test sets, and compare classifiers. The baseline operates on a cleaner version of the material than the archived collection.

From Bengali social media comments to baseline evaluation

The steps in order.

From Bengali social media comments to baseline evaluationStep 1: Select source pages and videos across categories1. Select source pages and videos across categoriesStep 2: Collect comments and record category and keyword2. Collect comments and record category and keywordStep 3: Keep comments written primarily in Bengali3. Keep comments written primarily in BengaliStep 4: Assign hate speech labels by majority vote4. Assign hate speech labels by majority voteStep 5: Audit sampled annotations against the guidelines5. Audit sampled annotations against the guidelinesStep 6: Clean text and form training and test sets6. Clean text and form training and test setsStep 7: Train the linear and recurrent classifiers7. Train the linear and recurrent classifiersStep 8: Score predictions and inspect test errors8. Score predictions and inspect test errors

The researchers looked for sources spanning different settings in which people write reactions. The Facebook material came from the public page of Muhammad Zafar Iqbal, a Bangladeshi author and academic. The authors placed those comments in the celebrity category. They report that restrictions on Facebook’s Graph API led them to make YouTube their primary source. This produces a specific relationship between topic and source in the corpus. The celebrity material comes from an individual Facebook page, while most of the collection comes from comments on videos.

For the YouTube search, the researchers looked for controversial events in Bangladesh during 2017-20. They reasoned that a prominent dispute would attract videos and commenters and would offer a way to locate enough relevant examples, including hate speech. They searched with words associated with the event and selected videos with at least 700k views. One entertainment search concerned the Mithila–Tahsan divorce controversy, which the paper identifies with 2020. This illustrates the route from a public dispute to a set of videos and then to their comments. The investigators used an event to find relevant comment sections, where readers could express a range of responses.

This search procedure supplied comments for sports, entertainment, crime, religion, and politics. Searches for memes, TikTok videos, and related material supplied a further category alongside the celebrity comments. The authors used FacePager to extract the comments. For each entry, they recorded both a category and a keyword identifier. A category describes a broad subject or source grouping. A keyword identifies the more specific event or query used in collection. For example, a keyword based on Mithila can sit within entertainment.

A record therefore contains text, a hate speech judgment, and information about the collection route. The category and keyword describe the source context of the comment. The hate speech judgment comes from reading the text according to the annotation rules. Comments recovered by a search for a heated event can express sympathy, disagreement, disgust, or dehumanizing hostility. The event label tells a researcher where those reactions were found. The binary label must distinguish what the writer expressed.

Keeping the language of the original comments

After collection, the authors manually checked which entries belonged in a dataset focused on Bengali. They removed comments entirely in English or another non-Bengali language, along with entries consisting only of material such as emoji, punctuation, or numbers. A mainly Bengali comment could remain if it included some English, numbers, or emoji. The authors wanted the collection to reflect how people actually write Bengali in online comment sections, including when they mix it with other forms.

This choice gives the dataset a language boundary at the level of the comment. Writing qualifies when the Bengali part predominates, with some variation permitted inside the entry. A standalone emoji reaction falls outside that boundary, while an emoji used as part of a Bengali sentence can be preserved. The rule allows the corpus to support research on writing that is recognizably Bengali and still carries expressive material outside the Bengali alphabet. It also limits the collection’s applicability to multilingual conversations whose individual messages are mainly in another language.

The archived data and the experimental input serve different purposes. Preserving punctuation and mixed writing leaves a record of what people typed. The baseline deliberately restricts the textual evidence it presents to the classifier. Because the annotators work on the collected comments, it is possible in principle for a removed feature to have influenced a human reading. The paper gives no estimate of how many labels might be affected in this way. The difference matters when an error is interpreted as a difficulty with Bengali wording alone.

The rules for a hate speech label

The authors based their guidelines on Facebook and YouTube community standards. They made dehumanization central to the positive class and gave annotators examples of how it can appear. It can take the form of a degrading comparison, such as likening people to insects or objects, or of targeting people on grounds such as race, gender, or disability. The target can be an individual or a broader community. Annotators are asked to judge what the utterance does to the person or people it addresses or describes.

Profanity by itself is compatible with the negative label. The paper illustrates this with an example in which someone crudely disparages a film. The relevant question is whether the expression is used to dehumanize someone. That requires reading the relationship between the insulting expression and its target. An inventory of offensive vocabulary can supply clues, but the annotation rule also makes room for coarse speech whose target and function place it outside the positive class.

The opposite difficulty arises with endorsement. The paper gives an example of a comment that treats sexual violence against women as an expected consequence of how they dress. The authors count this as hate speech because the sentence endorses a dehumanizing act. The example extends the rule from the language a speaker directly uses about a group to the position that speaker adopts towards its treatment. Recognizing endorsement may require interpreting the stance of the whole sentence even when there is no obvious slur.

The guidelines also fix a boundary on where an annotator can find the evidence. A recurring jab on Iqbal’s page was recognizable to people familiar with his critics’ usage. In isolation, the authors say, the comment fails to establish the attack, so it falls into the negative class. This makes the source information a separate analytical resource. The researchers record a category and a keyword, yet the label is intended to reflect what a reader can infer from the comment alone. The same wording can acquire a different interpretation when read on its original page.

Finally, the authors separate the merits of a position from the way a comment treats people. A disagreement about the issue under discussion can be forceful and remain outside the positive category. If a comment dehumanizes a person or community in a way that can be recognized from the text, its eligibility for the positive label is independent of the merits of the speaker’s underlying position. This part of the instructions directs attention to the expressive act and gives annotators a way to handle comments about disputes on which they may have opinions of their own.

From individual judgments to the dataset label

The annotator pool comprised 50 undergraduates at Shahjalal University of Science and Technology. The authors expected the students to be familiar with social media trends and the way abuse is expressed online, and instructed them to follow the same rules. Each comment received three annotations. The label backed by a majority became the record used in the corpus. This procedure resolves disagreement into a usable target for supervised training, in which a classifier learns from comments paired with the assigned labels.

A majority label can represent unanimous judgment or a decision where an annotator disagreed. Those situations are equivalent for assigning the final class. They carry different information about how readily people can apply the rule on a specific example. The paper describes how votes become labels and gives a later author check. It does not supply a separate agreement statistic for the original annotators. The audit is therefore evidence about the authors’ assessment of the majority decisions.

For the audit, the authors randomly sampled 300 comments from each category. They reviewed the majority labels against the same rules they had written. The authors distinguish their role as guideline writers and reviewers from the students’ role in initial labeling. They report that 91.05% of the annotations checked were correct in their assessment. Sampling from every category makes the audit cover all the source groupings, including groupings that might contain different kinds of difficult cases. It still uses the judgment of the people who chose the definition, a point that matters when interpreting its scope.

Preparing text for the baseline

Before the experiments, the researchers removed emoji, punctuation, digits, symbols, and non-Bengali letters. Consider a Bengali reaction that contains an English interjection and ends with emoji. It might qualify for preservation in the corpus because it is mainly Bengali. For the baseline, the English and emoji material would be stripped out. The classifier would have to recover the label from the Bengali that remains. The cleanup is a fixed part of the reported evaluation.

The paper divides the collection into a training set of 24,000 comments and a test set of 6,000 comments, described as 80% and 20% of the dataset, respectively. The training examples provide the labels from which the supervised classifiers learn. The test examples are then used to measure how frequently their predictions match the assigned judgments. Here there is an important distinction between classifier training and learning an embedding. The paper describes training the supervised neural classifiers on the training split, but says that the authors created the in-domain embeddings using the 30k dataset. The implications of that wording belong to the interpretation of the test.

Representing words and classifying comments

An embedding gives a word a numerical representation that a neural classifier can process. Its values are learned from text, so the representation reflects the associations that the training objective draws out of the corpus. The resulting vector is an input to the classifier. The classifier in turn learns from labeled comments how to use such inputs to make the hate speech judgment. The paper compares embeddings that differ both in how they represent words and in where they learned their vocabulary and patterns.

The authors built their Word2Vec embedding with gensim on the comment collection. They chose the continuous bag-of-words approach, written CBoW in the paper. Its training task is to use surrounding words to predict a word in their context. The nearby words influence what the embedding learns about the target word. The authors set the vector dimension to 300, meaning that the representation has 300 numerical coordinates per word.

The authors also trained FastText on the comment collection, with the same embedding dimension of 300. They used skip-gram, which starts with a target word and learns by predicting its context. FastText also represents a word using substrings. Pieces shared by related spellings can therefore contribute to their representations. That feature is relevant to Bengali social media in the authors’ account because commenters sometimes spell the same word in several ways. A shared piece can help associate some variants even when their full spellings differ. Whether that explains a particular classification result is a separate empirical question.

The third embedding is BengFastText, an existing Bengali resource based on FastText. Its inclusion brings in a representation learned before the baseline experiment and on a different body of writing. The paper notes that it was trained without YouTube data. The benchmark thus tests whether a pretrained Bengali embedding is useful when applied to a collection dominated by YouTube comments. Its results combine the possible advantages of an existing Bengali vocabulary with any disadvantages of a mismatch between training text and the target comments.

The paper uses a linear support vector machine, abbreviated SVM, as the conventional baseline. In a linear classifier of this kind, numerical features contribute to a decision boundary. A comment’s features determine which side of the boundary it falls on. The authors use a linear kernel and say the other parameters were kept at their defaults. They provide little detail about the features supplied to the SVM. The architecture of the decision rule is therefore clearer than the full route from a cleaned Bengali comment to its input vector.

The neural baselines use long short-term memory, abbreviated LSTM. This type of recurrent network processes its input as a sequence, carrying forward a state that represents information from earlier in the sequence. It can use that state to interpret a word in relation to previous words in the comment. The bidirectional version, Bi-LSTM, also reads the sequence in the reverse direction, so its representation can reflect what comes after a word as well as what precedes it. Both directions still operate within an individual comment under the paper’s setup. The architecture supplies a way to use sentence context within the boundary set during annotation.

For the LSTM, the paper reports a setting of 100, described as a number of LSTM layers. It reports both dropout and recurrent dropout of 0.2. Dropout suppresses part of the network’s activity during training, and recurrent dropout applies this kind of restriction to information carried in the recurrent computation. For the Bi-LSTM, the paper gives a setting of 64 described in terms of layers, and a dropout rate of 0.2. The prose gives limited detail about how those reported layer settings translate into the full implementation. Both architectures, according to the paper, use the Adam optimizer to update trainable parameters.

The authors pair each recurrent architecture with each embedding. They train for 5 epochs, where an epoch is a pass through the training data, with a batch size of 64, the number of examples grouped for a training update. They then score the classifiers on the test set. One architecture figure depicts the combination of Word2Vec and Bi-LSTM. The experiment is described through the data workflow, the representation choices, and the training settings. The paper gives no mathematical objective or classifier equation to reproduce.

Experiments and results

What the test measures

The full dataset contains 30,000 entries, with 10,000 labeled hate speech and 20,000 labeled as other comments. The paper reports that the negative label is more common in every category. Celebrity and politics stand out for having relatively few examples labeled as hate speech. The benchmark uses the same binary decision across the source categories. A pooled score can therefore look strong if the classifiers do well on common examples, even when detecting the smaller class is the harder part of the task.

The paper uses accuracy and F-1. Accuracy measures the share of evaluated comments for which the predicted label matches the dataset label. Every test example contributes equally to this calculation. F-1 combines precision and recall. Precision for a class asks how many predictions of that class match the reference labels. Recall asks how many examples assigned to that class in the reference data the system recovers. The harmonic mean used in F-1 gives weight to both quantities, so the score reflects whether predicted instances of a class are both accurate and sufficiently complete.

A binary classification report can give F-1 for a chosen class or combine scores across classes in some way. The paper supplies a single F-1 column and leaves the positive class or averaging convention unspecified. Its table supports comparison of the reported F-1 values across systems under the authors’ scoring procedure. A reader has insufficient information to interpret 0.911, for instance, as the F-1 specifically for recognizing hate speech. Per-class precision and recall would answer questions about the smaller class more directly.

There are several roles for the test figures. First, they set a point of comparison for future evaluations on the same task. Second, they show whether the available embedding and network combinations are able to outperform a conventional linear classifier on this split. Third, they can prompt investigation of what accounts for differences between settings. The first role needs stable scoring and a defined split. The second can be answered descriptively from the reported table. The third calls for controls beyond the initial comparison.

Accuracy on the test set

Accuracy of the classifiers on the Bengali hate speech test set

The linear SVM leads, with FastText and Bi-LSTM the closest recurrent system.

Accuracy of the classifiers on the Bengali hate speech test setLinear SVM (this paper): 87.5Linear SVM (this paper)87.5FastText + Bi-LSTM: 86.55FastText + Bi-LSTM86.55FastText + LSTM: 84.3FastText + LSTM84.3Word2Vec + LSTM: 83.85Word2Vec + LSTM83.85Word2Vec + Bi-LSTM: 81.52Word2Vec + Bi-LSTM81.52BengFastText + LSTM: 81BengFastText + LSTM81BengFastText + Bi-LSTM: 80.44BengFastText + Bi-LSTM80.44
The numbers
System or settingaccuracy %
Linear SVM (this paper)87.5
FastText + Bi-LSTM86.55
FastText + LSTM84.3
Word2Vec + LSTM83.85
Word2Vec + Bi-LSTM81.52
BengFastText + LSTM81
BengFastText + Bi-LSTM80.44

The linear SVM has the highest accuracy on the 6,000-comment test set, at 87.5%. The strongest neural result is 86.55% for FastText with Bi-LSTM. FastText with the forward LSTM records 84.3%, and Word2Vec with the forward LSTM reaches 83.85%. The ranking of these settings illustrates the value of reporting the conventional baseline alongside the networks. The highest individual score in this evaluation belongs to the system whose final decision is linear.

The other settings help qualify that comparison. Word2Vec with Bi-LSTM reaches 81.52% accuracy, below the Word2Vec result with an LSTM. BengFastText produces 81% with the LSTM and 80.44% with the Bi-LSTM. These entries show that using the bidirectional network is associated with a higher accuracy for FastText alone among the embedding choices studied. Considered across the whole table, the result of changing architectures depends on which word representation serves as input.

Accuracy condenses different mistakes into a single count. A missed hateful comment and a benign comment flagged as hateful each reduce accuracy when they disagree with the reference. They have different consequences for a detector and arise from different linguistic ambiguities. The label distribution further affects what a high total accuracy establishes. Because the benchmark is dominated by negative examples overall, performance on those examples can have a large influence on the total. The paper gives the split sizes and the corpus counts, and leaves the exact class distribution of the test split unspecified.

F-1 on the test set

Reported F-1 of the classifiers on the Bengali hate speech test set

The linear SVM leads on reported F-1, and the FastText and Bi-LSTM pairing leads among recurrent systems.

Reported F-1 of the classifiers on the Bengali hate speech test setLinear SVM (this paper): 0.911Linear SVM (this paper)0.911FastText + Bi-LSTM: 0.901FastText + Bi-LSTM0.901FastText + LSTM: 0.89FastText + LSTM0.89Word2Vec + LSTM: 0.89Word2Vec + LSTM0.89Word2Vec + Bi-LSTM: 0.86Word2Vec + Bi-LSTM0.86BengFastText + LSTM: 0.859BengFastText + LSTM0.859BengFastText + Bi-LSTM: 0.857BengFastText + Bi-LSTM0.857
The numbers
System or settingF-1
Linear SVM (this paper)0.911
FastText + Bi-LSTM0.901
FastText + LSTM0.89
Word2Vec + LSTM0.89
Word2Vec + Bi-LSTM0.86
BengFastText + LSTM0.859
BengFastText + Bi-LSTM0.857

The leading settings on accuracy also lead on reported F-1. The SVM scores 0.911, and the FastText Bi-LSTM scores 0.901. For the forward LSTM, Word2Vec and FastText both have a reported F-1 of 0.89 in spite of their different accuracies. Under Bi-LSTM, the Word2Vec and BengFastText scores are 0.86 and 0.857, respectively. The BengFastText LSTM scores 0.859. The table supports judgments about which combinations fare better on the reported measure, including a tie for the forward LSTM with the in-domain embeddings at the displayed precision.

The numerical table and the discussion of FastText need to be read together. In the prose, the authors characterize FastText as having higher accuracy but lower F-1 than Word2Vec. The entries give equal reported F-1 for the LSTM pairing and higher reported F-1 for FastText in the Bi-LSTM pairing. The displayed figures are more specific evidence about those comparisons. Their interpretation still depends on the unknown F-1 convention, especially if the research question is whether the system detects the minority class.

BengFastText is the lowest-scoring representation with each recurrent architecture on both metrics. The authors propose a domain explanation. BengFastText had learned its representations from writing that excluded YouTube, while YouTube supplies much of their benchmark. The representations learned on the comment collection had access to its vocabulary and style. This is consistent with a penalty for training on a different kind of writing. The experiment changes several properties of the embedding at once, so its table gives the observed ranking more directly than it gives a reason for that ranking.

What can be said about a leading baseline

The main result is a ranking on the authors’ benchmark and split. A conventional linear SVM performs best under the reported pipeline. FastText paired with Bi-LSTM comes nearest of the recurrent configurations. Taken together, the results set a baseline against which a later system evaluated under the same conditions could be compared. The paper gives no repeated-run scores or uncertainty estimates, so consistency across new training runs or new splits remains open.

A different question is how reliably a classifier catches hateful comments. The paper’s conclusion expresses concern that the tested systems are biased toward the more frequent negative label. The size of the negative class gives a concrete reason to take that concern seriously. The accuracy and F-1 table leaves its extent undetermined. To check the claim directly, a reader would need to know how many hate speech examples were missed, how many benign examples were flagged, and how those errors vary by classifier. The paper’s manual inspection describes some of these errors qualitatively for the SVM.

What the ablations show

The paper reports no formal ablation that removes or changes a single component to measure its independent contribution. It does offer structured comparisons of embeddings and architectures, descriptive analyses of the corpus, and a manual analysis of disagreements between the SVM and the test labels. Each supplies a different part of the evidence behind the headline results.

How the embeddings and architectures interact

The closest comparison to an ablation is the experiment that changes the embedding while keeping the named recurrent architecture fixed. For the LSTM, the two representations trained on the comment collection score higher than BengFastText, and Word2Vec and FastText share the same reported F-1. For the Bi-LSTM, FastText leads Word2Vec and BengFastText on accuracy and reported F-1. Those comparisons show what happens when the entire input representation is exchanged in each architecture. They reveal an advantage for some combinations with FastText, especially for the bidirectional network.

The comparison between Word2Vec and FastText is informative because both are trained on the collected comments and both have an embedding dimension of 300. The methods still differ in their training objective as well as in how they represent a word. Word2Vec uses the surrounding words to predict the target under CBoW. FastText uses skip-gram and can incorporate substrings of the target. The authors suggest that this ability to use word parts is helpful. The difference observed in the classifier combines the effects of those choices. A comparison isolating substring information would need to hold the embedding objective and other relevant settings fixed.

Replacing the locally trained FastText with BengFastText asks a different question. Both come from the FastText family, and one representation was learned on text close to the test domain. The other was pretrained on different Bengali writing. The lower BengFastText results are compatible with the idea that domain matters. The comparison includes the properties of the existing resource as a whole, including the way it was trained and what vocabulary it represents. The study consequently leaves the effect of YouTube exposure alone unidentified.

The rows can also be read in the other direction, holding the embedding name fixed and switching from LSTM to Bi-LSTM. For FastText, the bidirectional setting scores higher. For the other embeddings, the LSTM scores higher. The recorded settings differ in more than directionality, so this provides evidence about paired configurations. It suggests that the gains associated with the backward reading pass in one configuration are conditional on what enters the network and how the rest of the network is set up. The data give little support for a general claim that a bidirectional design should win on this task.

What the corpus distributions suggest

The authors inspect label distributions by topic. They highlight relatively few positive labels in celebrity and politics and offer different explanations for the two cases. On the celebrity page, they saw references that were hostile when understood against the history of the page. Under a rule that requires the comment itself to make the attack identifiable, such references often fall outside the positive class. The distribution therefore reflects an interaction between what the commenters wrote and what level of contextual evidence the label requires.

The authors say that political commenters frequently offered their reading of the political situation, with relatively few direct attacks of the kind sought under the guidelines. This is an observation about the material they collected. It helps explain why topic categories have different label distributions even though the annotation policy is shared. It does not establish how common hateful language is in Bengali political discussion as a whole. The category consists of material found through the study’s choice of events and popular videos.

The paper also compares average comment length. The meme grouping has especially short comments in the authors’ account, while celebrity has the longest comments on average. They interpret the first pattern in terms of quick reactions and the second in terms of people using the public page to offer extended opinions or analysis. Across the collection, they report that hateful comments tend to be shorter than other comments. Length is a descriptive property here. The study gives no experiment isolating its contribution to classification or showing that the same relationship holds within every source category.

These observations point to several ways that corpus construction can influence a pooled test. Longer comments and a lower positive frequency can occur in the same source category. Shorter reactions can cluster in another. If a classifier uses length or a recurring style of expression, it may be picking up information associated with source or genre in addition to the intended label. The paper does not measure how much the classifiers depend on such cues. The descriptive analyses make the question visible and show why overall accuracy is only one view of performance.

Disagreements between predictions and labels

The authors manually compared the SVM’s predictions with the test labels and examined apparent false positives and false negatives. A false positive assigns hate speech to a comment whose recorded label is negative. A false negative misses a comment whose recorded label is positive. The labels serve as the reference for computing these errors, and the authors’ review sometimes led them to revise their view of which side was correct. They found cases in which they agreed with the classifier’s decision on rereading the text.

One example concerns a profane complaint directed at the president of the cricket board. In the authors’ interpretation, the commenter criticizes how he handled a responsibility toward players. The language is aggressive, and the classifier marks it as hate speech. The authors judge that it fails the dehumanization rule. It therefore illustrates a false positive under their judgment. The surrounding prose places similar mistakes among false negatives, but the direction of the error in the described example follows from the negative reference judgment and the positive prediction.

The example clarifies two senses of context. The celebrity jab requires information about the page and its audience to convey its attack. The cricket complaint can be assessed within the boundaries of its own sentence, provided the reader understands the role of the aggressive wording in the complaint. The first kind of context was excluded from the labeling task. The second is part of the task the SVM has to solve. The example supports the authors’ concern that a classifier can react to words with strongly hostile associations while missing their function in a particular comment.

The manual review also exposes a limit of treating every disagreement as a classifier failure. If a test label conflicts with the written policy, a prediction in line with the policy can still lose credit. The authors identify such cases qualitatively and give no revised test score after adjudication. The published figures therefore remain results against the recorded test labels. The review explains how some disagreements arose, with evidence for both language interpretation problems and annotation errors.

Limitations

Limits identified by the authors

The authors consider class imbalance a central difficulty. The available positive examples are much less numerous than the negatives, and the paper describes the networks as tending to favor the latter. This matters because the minority class is the one a detector is intended to recover. Accuracy across the whole test set gives frequent examples substantial influence, while a practitioner interested in missed hate speech needs evidence about the positive class specifically. The authors treat learning from the imbalanced data as a separate challenge beyond achieving a high aggregate score.

The paper also highlights the mismatch between pretrained Bengali representations and informal Bengali online. Its authors describe newspaper and blog writing as different from writing in comment sections, where spelling variants, unedited grammar, and expressions associated with memes are common. They give several Bengali spellings that readers can recognize as variants of the same word. A representation learned from a different type of writing may have weak or uneven evidence for these forms. This problem can occur before a classifier even tries to determine who is being attacked and how.

Emoji present another gap in the authors’ account. A commenter can use emoji to convey emotion, including in a message with little else in it. The release accommodates emoji inside otherwise Bengali comments, while the baseline removes them. The authors discuss a shortage of resources for interpreting emoji in this setting. Their experiments establish performance on the cleaned text. The value of emoji for expressing hostility, qualifying an apparent insult, or changing the tone of a Bengali sentence remains an empirical question outside the comparison.

The conclusions suggest larger multilingual pretrained systems and embeddings trained on broader social media material as avenues for research. The authors mention mBERT and XLM-RoBERTa in this connection. They point to their multilingual training and attention mechanisms, which allow a system to weight relationships among positions in its input. These are proposed ways to address the limitations of the baselines. The benchmark comparison leaves their benefit for this task unmeasured.

The authors also limit the annotation task to attacks recognizable from the text. This rule makes it easier to specify what evidence ought to count, while reviewers in a live platform may have access to a history of repeated targeting, a thread, or a set of references shared by an audience. The celebrity example shows why the difference matters. A system that reproduces the benchmark labels is learning the paper’s judgment for isolated comments. The usefulness of that judgment for reviewing interactions with richer context would require its own evidence.

Limits in the collection and annotation

The sampling procedure gives a reason for caution when interpreting the supplied class counts. The YouTube material comes from searches for prominent disputes and from highly viewed videos. The authors chose those sources partly because they expected relevant and heated reactions. The Facebook material comes from a single public page. The resulting numbers describe the collected benchmark. Estimating the prevalence of hate speech across Bengali social media would require a sampling design with a defined population and a different account of how the selected comments represent it.

The topic metadata are valuable for identifying how the material was assembled, but category can stand for several things at once. A celebrity comment in this dataset also signals a particular page, platform, subject, and community of readers. The meme grouping refers to a style of content as well as a collection category. If a category has a distinctive average length or labeling pattern, the distribution alone cannot identify which feature produced the difference. The paper’s explanations are best read as informed observations about its sources. Testing them separately would require additional source variation.

The language filter has consequences for coverage, too. The collection reflects comments written mainly in Bengali, including some mixed writing. A multilingual exchange could have hostile comments primarily in English, or exchanges in which people use only symbols or emoji to react. Such items can matter to an account of abuse in a Bengali-speaking online setting. They lie outside the chosen collection boundary. The benchmark is consequently a resource for studying hate speech in Bengali text under a language filter, with limited evidence about an entire multilingual conversation.

Likewise, the binary annotation rule makes for a clear target while collapsing cases with distinct reasons for receiving the same label. A supportive comment, a rude complaint, and an allusive attack whose meaning depends on the thread can each have a negative label. A prediction system trained on the binary decision receives the same supervision for all of them. Researchers interested in profanity, coded attacks, or contextual ambiguity would need information beyond this label to measure those behaviors separately.

The annotation audit tests how well the students’ majority judgments match the authors’ reading of their own guidelines. It has real value as a check after annotation because it can identify cases in which the intended rules were applied differently. The reviewers are also the people who devised the definition, and the annotators all come from the same university and educational stage. The paper offers no comparison with judgments from a wider set of Bengali speakers. Questions of how a different audience would interpret the same comments or agree on borderline cases remain open.

The use of votes introduces another distinction between a usable classification target and a record of uncertainty. The majority supplies the former. Information about whether voters split on a case could help a researcher distinguish straightforward errors from reasonable disagreements over a difficult sentence. The paper gives no vote distribution or agreement analysis that would allow such a test. The later manual corrections suggest that confidence in the benchmark’s labels can vary by example, even with a clear general procedure.

Limits in the performance evidence

The train and test partition makes it possible to assess prediction on comments with labels held back from supervised classifier training. The paper gives the partition sizes but little account of its construction. It leaves open whether comments from the same video, keyword, or discussion context can appear on both sides of the split. If they do, test examples can resemble training examples in subject matter and wording. Such a test measures prediction on held-out comments from the collection. Generalization to a new event, channel, or platform is a different experimental condition.

The embedding training creates a related ambiguity. The authors say that they trained Word2Vec and FastText on the 30k dataset. Taken literally, this places text from the test comments inside the corpus used to learn those representations, even if the classifiers never see their test labels. Learning input representations from an unlabeled test corpus differs from predicting entirely unseen text using representations fixed in advance. The paper’s wording leaves uncertainty about the exact separation of the stages. This matters particularly when the in-domain embeddings are compared with a pretrained representation that did not see the benchmark’s YouTube text.

Reproduction also depends on choices that receive little detail. The SVM’s feature representation is unclear, although its linear kernel is specified. The reported recurrent layer settings do not fully specify the architecture. The test partition procedure and the F-1 convention leave room for different implementations. A later experiment can follow the broad pipeline and still obtain a score whose meaning differs because of these details. The ranking in the paper is a record of the configurations as run by the authors.

The interpretation of overfitting goes beyond what can be established from the test table. The paper treats BengFastText’s low F-1 as an indication of stronger overfitting and makes a related comparison between Word2Vec and FastText. A low test score establishes weaker performance under that particular evaluation. To diagnose overfitting, one would want to examine how well the same setting learned the training examples and how its performance changed on independent examples during development. The paper gives no paired training scores or learning curves for this purpose. Domain mismatch and poor fit to the task remain possible explanations for the same ranking.

The evidence about minority-class detection is similarly limited. The authors’ conclusion stresses that high overall accuracy can coexist with poor prediction of hate speech. Their corpus counts explain why that can happen. Class-specific precision and recall, a breakdown of errors by true and predicted class, and the test set’s label counts would establish whether and how often it happened for each baseline. The single reported F-1 value per system leaves this question unresolved. The manual error review adds concrete examples, with no error counts that would establish their frequency.

Finally, the authors apply the same cleaning policy in all the reported experiments. This means that the comparison is about learning from cleaned Bengali text. There is no matched condition measuring what happens when punctuation, Latin-script words, numbers, emoji, or symbols are kept. Any gain from retaining them, or harm from the additional variation, lies outside the results. The published data and the evaluation together therefore answer a carefully bounded question about the separability of the labels with the baseline input, rather than about the full range of signals that readers use in social media.

What came after

Later work citing Romim and colleagues spans language-specific corpus construction, explanations for hate speech decisions, and cross-cultural research. The titles establish the focus of these citing studies. Their citation establishes a connection to the Bengali benchmark, while the details of any dataset reuse or experimental comparison remain unspecified. The clearest continuities are in the research questions they place around language, judgment, and evaluation.

The 2024 Arabic hate speech study addresses corpus design, construction, and evaluation for another language. Its scope is directly comparable to the Bengali project’s emphasis on defining a task, building a labeled collection, and testing detectors against it. For Arabic, the work centers the corpus itself alongside the detection problem. That shared emphasis explains why the Bengali contribution is relevant to research across languages. The citation alone leaves open how the Arabic study’s labeling scheme or evaluation relates to any particular Bengali rule. Hate speech detection in the Arabic language

The 2026 BanHADEX work brings human-annotated explanations to explainable hate speech detection in Bangla. This extends the kind of human judgment that researchers seek to capture. The earlier benchmark turns the annotators’ judgments into a binary decision. An explanation adds evidence about why an example was judged that way. That focus relates to a problem visible in the SVM’s profane complaint example. The predicted label alone cannot tell a reader whether the classifier interpreted the relation between the wording and its target or merely reacted to an aggressive expression. The later work makes the reasons for judgments a research object in their own right. BanHADEX

CultureLLM, from 2024, considers how to incorporate cultural differences into language technology. The connection to Bengali hate speech lies in judgments whose meaning depends on community usage. The example of a recurring jab on a public page shows how recognition can depend on familiarity with the people and discourse around a text. Romim and colleagues handle that dependence by restricting the evidence allowed during annotation. CultureLLM takes cultural differences as its broader subject. The cited relationship leaves open whether the Bengali comments served as data, evaluation material, or background for that work. CultureLLM

CulturePark, also from 2024, focuses on cross-cultural understanding. That focus relates to how a phrase can carry a meaning recognized by members of a community that is hard to recover from the written form alone. The Bengali study makes the distinction concrete by labeling some familiar attacks according to what can be established without their original setting. CulturePark places understanding across cultural settings at the center of its work. Its citation connects that broader question to the benchmark, with the specific role of the Bengali data left open. CulturePark

Cite

Cite as Nauros Romim, Mosahed Ahmed, Hriteshwar Talukder and Md. Saiful Islam. 2021. Hate Speech Detection in the Bengali Language: A Dataset and Its Baseline Evaluation. Algorithms for intelligent systems.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/978-981-16-0586-4_37 · arXiv 2012.09686

@inproceedings{romim2021hate,
  title = {{Hate Speech Detection in the Bengali Language: A Dataset and Its Baseline Evaluation}},
  author = {Nauros Romim, Mosahed Ahmed, Hriteshwar Talukder and Md. Saiful Islam},
  booktitle = {Algorithms for intelligent systems},
  year = {2021},
  doi = {10.1007/978-981-16-0586-4\_37},
  eprint = {2012.09686},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/978-981-16-0586-4_37}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/romim-2021-hate-speech-detection-bengali-language/