Elamur Research

L3Cube-MahaHate: A Tweet-based Marathi Hate Speech Detection Dataset and BERT Models

Paper · 2022 · Hrushikesh Patil, Abhishek Velankar and Raviraj Joshi

Summary

A Marathi tweet can attack a community, insult a person, or use a swear word. Those features can overlap, and the way a dataset resolves the overlap determines what a classifier is expected to learn. L3Cube-MahaHate makes that decision explicit for tweets written in Marathi Devanagari. Its four labels distinguish group-directed hate, individual-directed abuse, profanity, and posts that meet none of those criteria. When a tweet contains a swear word, the authors give profanity priority even if the tweet also attacks a person or a group. The resulting task measures how well a system can reproduce a particular set of judgments about abusive language.

The authors pulled tweets from Twitter using Marathi search terms and periods of controversy, and gathered additional material from Marathi accounts for the non-abusive category. Native speakers carried out the linguistic annotation. They first worked through a common batch to align their judgments, then labeled tweets in parallel and reconsidered ambiguous cases together. The final four-class benchmark has 25,000 tweets, with 6250 in each class. A separate binary version combines hate, personal abuse, and profanity into a single class and adds non-abusive examples to balance it. This gives researchers a choice between recovering the detailed label and detecting a broader class of harmful or profane language.

The authors benchmarked convolutional and recurrent classifiers alongside pretrained encoders adapted to the task. MahaBERT led the binary comparison with an accuracy of 0.909. On the four-class task, MahaBERT and MahaRoBERTa both reached 0.803 at the precision shown in the results table. The experiments also found that keeping pretrained FastText word representations fixed consistently helped relative to letting those same representations change during training. The authors report making the data and trained classifiers available through their MarathiNLP project.

The benchmark fills a gap between the available Marathi offensive-language datasets and a task that distinguishes profanity, personal attacks, and attacks on groups. Its balance gives each category equal weight in the four-class evaluation, and its labels make the annotation policy open to inspection. Twitter-wide prevalence, performance on Romanized or mixed-language Marathi, and the treatment of posts whose meaning depends on surrounding conversation remain separate questions.

Deep dive: L3Cube-MahaHate: A Tweet-based Marathi Hate Speech Detection Dataset and BERT Models

L3Cube-MahaHate labels Marathi tweets for hate, personal abuse, and profanity and tests how well classifiers distinguish these categories. · about 34 minutes to read

The problem and its context

Why the distinctions matter

The paper begins with a practical concern about how harmful language spreads on social media. People use the same channels to discuss politics, address public figures, quarrel with other users, and circulate reports of what others have said. An abusive post can draw its force from who it targets, the language it uses, or both. A dataset that records all such posts as one category can support a broad screening task. To find out whether a classifier can distinguish a threat to a community from an insult directed at a person, researchers need labels that preserve the distinction.

The authors place Marathi within a wider problem in natural language processing for low-resource languages. They cite a figure of over 83 million speakers in India and describe the available work on Marathi hate speech as limited. The size of the speaking population and the supply of annotated data for a particular task measure different things. A sizable readership can still lack a benchmark with enough labeled examples to compare ways of identifying abuse, or with categories that match the questions researchers want to ask.

The paper also uses the term hate speech at different levels of generality. In its discussion of harmful online language, the term sits alongside abuse, threats, and offensive speech. Inside the four-class corpus, HATE has a narrower operational meaning tied to the target of the tweet. Understanding the corpus therefore requires reading its label definitions as decisions about this task. OFFN and PRFN remain part of the paper’s broader interest even when the annotation policy assigns them a different class from HATE.

The distinction between a group and an individual gives annotators something concrete to look for. It also makes the target of the language part of the task. A singular form of address may help identify a personal insult. A remark directed at members of a community, or people aligned with a political group, calls for a different reading. The annotator has to decide whether a named person is the object of the attack, whether the post addresses a group through that person, or whether it contains a swear word that settles the label under the paper’s priority rule. Those questions explain why the work is a study in text classification as well as a data collection exercise.

The Marathi work it follows

The closest earlier Marathi task described in the paper is the Marathi Offensive Language Dataset, or MOLD. The authors report that it contains nearly 2,500 annotated tweets and distinguishes offensive from non-offensive language. Its creators evaluated conventional machine learning methods and a recurrent neural classifier. MOLD provided a way to measure detection in Marathi already. The MahaHate paper’s contribution is to enlarge the available labeled material and give the harmful side of the task more internal structure.

The paper also situates itself alongside work in the Hate Speech and Offensive Content Identification shared task and cites research that trained systems for English and Marathi. It mentions related efforts to tackle hate speech across Indian languages. These strands offered a setting for comparing systems and asking whether a classifier trained with resources spanning languages could help on a particular language. The MahaHate authors pursue a complementary question by constructing and evaluating a dataset centered on Marathi Devanagari. HASOC at FIRE

Their most direct example of earlier general Marathi classification is a study of tweet sentiment. That project manually assigned positive, negative, and neutral labels to over 16,000 Marathi tweets, set out rules for applying the labels, and evaluated convolutional, recurrent, and pretrained text classifiers. The fact that a sentence expresses negative sentiment scarcely settles which MahaHate label applies. A complaint can be negative and free of abuse, and the addressee of an insult matters for the hate–offensive distinction. The earlier work matters here as a precedent for annotating Marathi tweets and evaluating multiple classifier families on the same task. L3CubeMahaSent

Another strand of Marathi work supplied representations that could be adapted to a labeled dataset. The authors draw on a resource effort that assembled Marathi text and used it to develop MahaBERT. This matters because the collection of text used to learn Marathi representations and the collection of tweets judged by annotators serve different purposes. One supplies examples of how language is written. The other supplies the decisions a detector should learn to make. The paper brings those resources together for a specific classification task. L3Cube-MahaCorpus and MahaBERT

How earlier studies found and represented abusive posts

The authors describe English research that used a repository of hate-related phrases to find Twitter posts. Crowd workers assigned the sampled tweets to hate, offensive language, or neither, and the resulting data were used to compare conventional classifiers such as logistic regression and linear support vector machines. The phrase search and the judgment about the retrieved post were separate operations. That separation carries over to MahaHate. A search term can make an abusive tweet easier to find while leaving the interpretation of the tweet to an annotator.

The account of Hindi hostility detection illustrates a different choice about categories. The Hindi collection drew on several social platforms and treated hostility as an umbrella that included fake content, defamation, offensive content, and hate. The paper describes 8192 posts and experiments using multilingual BERT representations. That grouping is helpful context for MahaHate’s binary version. Naming a broad class implies a decision about which finer distinctions will be collapsed into it. A binary hostility task spanning several platforms may therefore differ substantially from the binary version of a Marathi tweet benchmark.

Work on Hindi–English text took code-mixing as part of the problem. As MahaHate describes it, researchers used keywords and hashtags tied to political events, protests, and other public controversies to obtain tweets. After cleaning, they had 4575 code-mixed examples. Their classifiers used word and character n-grams, contiguous sequences that can capture repeated expressions or fragments of words. The event-based search makes that work relevant to MahaHate’s collection strategy. The language boundary differs because MahaHate restricts its scope to Marathi in Devanagari. Hindi–English Code-Mixed Hate Speech Dataset

The related-work discussion also mentions experiments on contextual information and on the filtering of generated examples for data augmentation. The first asks how an abusive-language decision changes when surrounding information is supplied. The second asks whether added training material helps once it has been screened. These are distinct ways of changing the evidence available to the classifier. MahaHate instead centers its contribution on finding original Marathi tweets and deciding what label to assign to each. Context enters its discussion most clearly when the annotators find it hard to judge intent or encounter a report that repeats abusive words.

Taken together, those precedents explain the paper’s design choices. Search terms help assemble enough potentially harmful material to study. Manual labels turn the stream of candidate posts into a defined task. A range of classifiers makes the result useful as a benchmark for subsequent experiments. The paper’s specification of profanity, personal abuse, and group-directed hate is what allows those familiar steps to answer a finer question for Marathi.

The method, step by step

Finding candidate tweets

The authors used the Twint Python library to collect Twitter posts from users across Maharashtra over a period they describe as over 5 years. They drew up a list of over 150 Marathi terms associated with hostile online language, including swear words and other offensive expressions. The list was written in Devanagari, consistent with the paper’s focus on that script. Search worked as a way to collect candidate tweets for manual inspection. The final label depended on the tweet and the annotation policy.

The authors also identified periods surrounding controversial events in India, which they regarded as moments when online hostility was likely to surface. Much of the material they gathered concerned politics or social issues. A collection assembled in this way can include tweets that use familiar abuse vocabulary and tweets that make sense in relation to current disputes. The two signals can overlap. A common insult may become especially frequent during a particular controversy, while discussion of an event can contain both hostility and ordinary political comment.

To reduce concentration around a single expression, the authors kept the number of tweets for a particular query below 150. The cap operates at the level of the search query. It limits the number sourced through a chosen term or phrase, even when that query returns plenty of eligible material. Similar queries may still retrieve tweets on the same subject or tweets with related expressions. The cap consequently documents an effort to broaden the collected language while leaving the overall mix dependent on the search list and the selected events.

The collection procedure also treats author information differently from the words of the tweet. The authors say they excluded references to the author when collecting posts to reduce author-related bias. For non-abusive examples, they gathered tweets from a range of Marathi accounts. This step supplies material beyond the pool retrieved for hostile language, including ordinary messages that an abuse-oriented keyword search would seldom find. Labeling is still necessary because an account used as a source of candidate NOT examples can post language that requires another label.

From Marathi tweet collection to benchmark evaluation

The steps in order.

From Marathi tweet collection to benchmark evaluationStep 1: Search Marathi terms and periods of controversy1. Search Marathi terms and periods of controversyStep 2: Gather additional candidates from Marathi accounts2. Gather additional candidates from Marathi accountsStep 3: Align native speakers on the annotation rules3. Align native speakers on the annotation rulesStep 4: Label tweets and vote on ambiguous cases4. Label tweets and vote on ambiguous casesStep 5: Remove noisy material and balance each dataset5. Remove noisy material and balance each datasetStep 6: Clean the text for baseline training6. Clean the text for baseline trainingStep 7: Train and evaluate classifiers on the designated splits7. Train and evaluate classifiers on the designated splits

Turning overlapping features into a single label

Each tweet in the four-class benchmark receives one label. HATE covers attacks on a group or community. The paper’s definitions and examples encompass characteristics such as religion, ethnicity, gender, and geographic origin, alongside targets associated with political opinion. In the authors’ account of the collected material, political parties and the government feature prominently among group targets. The paper also mentions attacks involving minorities and gender. The central practical question is whether the tweet’s hostility is aimed at a group as the annotators understand it.

OFFN applies to harmful language directed at an individual. The paper describes personal insults, dehumanizing remarks, and threats as relevant. The individual can be a politician or celebrity, or someone with no public standing. The annotators looked for indications such as singular phrasing when deciding whether the attack addressed one person. That use of linguistic evidence is especially important when a tweet concerns politics. A mention of politics can accompany criticism of an administration, an attack on party supporters, or abuse of a named individual.

PRFN captures recognizable swearing or cursing, and the annotation instructions give this label priority. If a tweet contains the relevant kind of profanity, the annotators assign PRFN even when its target and meaning would otherwise qualify it for OFFN or HATE. The label therefore answers a question about the language used, whereas the two target-based labels ask whom the language attacks. A classifier trained on a single answer per tweet has to learn the priority between these questions as well as the distinctions themselves.

NOT is the residual class for posts that meet none of the abuse or profanity criteria. The authors include congratulations and expressions of thanks as examples. They also give a political example that calls for the government to answer to the public. This makes the label broader than friendly or approving language. A tweet can convey dissatisfaction and still fall in NOT if it expresses that dissatisfaction without the features that trigger the other categories under the paper’s policy.

The examples help explain why both topic and vocabulary matter, yet neither provides a universal shortcut. An angry statement about public institutions may amount to a group-directed attack depending on its wording. A question directed at another user may become a personal insult through what it implies about that user. A political sentence with swearing falls under PRFN according to the priority rule. The annotations turn these recurring situations into a classification task with a determinate answer for each included tweet.

Establishing a shared reading of the rules

The annotation team comprised 4 native Marathi speakers who could read and write the language fluently. The authors established guidelines before large-scale labeling began. The annotators worked through the first 200 items together to improve consistency and then labeled the remaining material in parallel, with special handling for ambiguous cases. The common batch gave them a chance to compare how the same rule applied to the same utterance. A guideline can say that a post attacks an individual, while the judgment in practice may depend on whom a pronoun or a sarcastic remark seems to address.

Ambiguous tweets were revisited and decided by a vote among the 4 annotators. The paper presents this as a way to handle cases where the writer’s intent was hard to determine. A vote supplies a final class for use in the corpus. The need for a vote also illustrates the difference between settling the reference label and recovering the speaker’s private intent. For benchmarking, the recorded label represents the result of the stated procedure.

One case the authors single out involves news accounts quoting hateful remarks. The annotators assigned such tweets to HATE because the authors regarded circulation of the quoted remark as capable of promoting violence indirectly. Under this policy, the text can receive the hate label regardless of whether the account originated the language. That decision bears directly on how to interpret errors. A classifier that recognizes the surrounding language as reportage and assigns NOT may disagree with a reference label whose authors intentionally included quoted hate.

The paper supplies example tweets and English renderings to show how the distinctions look in context. Its hate examples address sets of people or organizations. Its offensive examples address an individual through pointed insults or disparaging questions. Its profane examples contain obscured expletives in the display. The examples labeled NOT include public criticism and gratitude. Read together, the examples show which parts of a tweet the authors expected annotators to attend to. The paraphrased cases explain the guideline without requiring the reader to interpret every detail of a Marathi sentence.

Building the two versions of the corpus

The authors report collecting over 40k Marathi tweets and annotating approximately 28,000. They describe removing over 3k noisy tweets, with poorly written material, unfamiliar regional vocabulary, and frequent grammatical errors among the reasons. They give the detailed final size of the four-class corpus as 25,000 tweets, chosen randomly within class to obtain 6250 examples per label. The collection, annotation, and filtering figures are best read as reported stages at different levels of precision. The per-class counts and the split table specify the final four-class benchmark.

Equal class counts simplify training and evaluation. For the four-class task, all categories receive the same number of examples in training, testing, and validation. This means that the test score gives each label the same influence by construction. The authors recognize that the balance differs from the naturally occurring distribution. The design is suited to comparing systems when each of the annotation categories should receive attention, including categories that could be harder to collect from a general stream of tweets.

The binary dataset groups HATE, OFFN, and PRFN under the broad category the authors call hateful. NOT forms the other side. To keep the binary benchmark balanced, the authors collected over 12,500 additional NOT tweets beyond those used in the four-class corpus. The corpus description gives 18,750 examples in each binary category and calls the dataset 37.5k. A tweet that attacks an individual or contains profanity is therefore positive in the binary task even if its four-class label is never HATE.

The additional NOT material changes more than the output format. The binary benchmark shares its harmful categories with the four-class corpus, then broadens the pool of non-abusive tweets. A comparison between accuracies across the tasks thus involves different amounts of data, different label boundaries, and a different composition of the NOT side. The detailed task asks the classifier to reproduce the priority of profanity and the distinction between individual and group targets. The binary task asks whether any of the designated harmful-language criteria apply.

Preparing text for the baseline experiments

The authors describe a distinction between the release and the input they used in their experiments. The public version retains hashtags, symbols, emojis, and URLs so that researchers can investigate them. The baseline experiments strip those elements. The experimental description also names user mentions among the items removed before training. Separately, the dataset section describes a plan to omit user mentions from the public data for privacy. These choices concern different stages. Training cleanup specifies what text the experimental classifier uses, while release decisions specify what information remains in the shared corpus.

A hashtag can contribute to the meaning of a Marathi tweet by naming a subject or indicating which discussion it belongs to. An emoji can accompany a literal remark or signal that its tone differs from the words alone. A mention can help indicate the target of a sentence, which is relevant to the distinction between OFFN and HATE. The baseline pipeline evaluates text after removing those clues. Retaining them in the release, where described, leaves their contribution available for separate study.

The paper gives a common account of cleaning before it introduces the architectures. The evidence therefore concerns performance on the cleaned benchmark. The paper does not specify a complete normalization and tokenization recipe for every system. Tokenization is the step that breaks an input into units a classifier can process. In this case, knowing which visible items were removed helps explain the evaluation conditions, while details such as how unusual word forms were segmented remain relevant to a full replication.

Training the convolutional and recurrent baselines

The conventional neural baselines begin with word embeddings, numerical representations used in place of raw word forms. The paper compares random initialization with pretrained FastText initialization. For the latter, the authors either let the representations change during supervised training or keep them fixed. With the fixed option, the later layers still learn from the labeled tweets. The embedding comparison concerns whether the starting representation of each word is itself updated during that process.

A convolutional neural network, or CNN, applies a learned operation to short stretches of the text. It can give a strong response to an expression wherever that expression occurs in the input. The paper describes a one-dimensional convolution with filter size 300 and kernel size 3, followed by a ReLU activation and max pooling with pool size 2. ReLU suppresses negative activations, and max pooling retains the strongest response within the region it covers. The authors repeat the convolution and pooling layers, then use a dense layer of size 50 with a ReLU activation. They report dropout of 0.3 after max pooling. Dropout suppresses some activations during training.

The long short-term memory classifier, or LSTM, processes the sequence with a state that can carry information from earlier positions. The paper describes an LSTM layer with 32 nodes followed by global max pooling. Whereas the CNN’s pooling acts locally, global pooling keeps a feature’s strongest response over the text. A dense layer with 16 nodes and a ReLU activation follows, with dropout of 0.2. This architecture combines the sequential processing of the LSTM with a way to summarize responses from across the tweet.

The bidirectional version, BiLSTM, processes the sequence in both directions, so representations can reflect material that occurs before and after a position. The reported BiLSTM layer has 300 nodes. It is followed by global max pooling and a dense layer with 100 nodes and ReLU, then dropout of 0.2. The differences in layer sizes matter when interpreting the comparison. The paper is benchmarking complete recurrent configurations, with bidirectionality and layer capacity both changing between them.

For these architectures, the methods describe a final softmax layer with 2 output nodes. Softmax turns the output scores into relative probabilities over the alternatives represented by those nodes. The stated layer corresponds to binary classification. The results also report four-class evaluations for each architecture and embedding setting. The article’s architecture description gives the binary output specification, with the corresponding four-class output configuration left implicit.

Adapting pretrained encoders to Marathi hate detection

The other baseline family uses Transformer and attention architectures. Attention lets a text representation draw on other positions in the input when it represents a particular token. The paper introduces BERT as a bidirectional encoder pretrained on large amounts of text. The classifier learns the hate speech task through fine-tuning, which adapts a pretrained system with labeled examples from the target task. The labels and tweets in MahaHate supply that adaptation signal.

The multilingual comparisons cover different pretraining choices. The authors describe multilingual BERT as pretrained on Wikipedia material for 104 languages. IndicBERT uses ALBERT and covers 12 languages in the paper’s list, including Marathi and English. In one case the relevant starting point is a broadly multilingual Wikipedia-based encoder. In the other it is a resource designed to cover a set of languages that includes Marathi. The comparison indicates how both starting points fare once applied to the same tweet-labeling task. IndicNLPSuite

The authors describe XLM-RoBERTa as pretrained on 2.5TB of filtered Common Crawl text across 100 languages. They describe its objective, also used by multilingual BERT, as masked language modeling. During that kind of pretraining, the system learns to predict text hidden from the input using the surrounding visible text. Predicting obscured text and predicting a tweet’s abuse label are separate stages, with the latter relying on the annotations supplied by the paper. Unsupervised Cross-lingual Representation Learning at Scale

The Marathi-focused comparisons use MahaBERT, MahaALBERT, and MahaRoBERTa. The method gives the most specific account for MahaBERT. It starts from multilingual BERT and undergoes further adaptation on L3Cube-MahaCorpus and other publicly available Marathi monolingual material. The authors give 752M tokens as the total for that material. The term Marathi-focused describes this later specialization. MahaBERT’s ancestry remains relevant when asking what the comparison can say about the value of concentrating training on Marathi.

The paper names the MahaBERT classifier fine-tuned on MahaHate as MahaHate-BERT. That name identifies the task-specific release, while MahaBERT identifies the starting point used in the comparison. The authors report sharing the corpus and trained resources under the MarathiNLP project. Their method has no explicit mathematical formula to reproduce. It is specified through the rules for selecting and labeling tweets, descriptions of the classifier layers, and the distinction between updating and freezing pretrained word representations.

Experiments and results

What the splits and the metric measure

For the four-class task, each label contributes 5375 tweets to training, 500 to test, and 375 to validation. The totals given in the split table are 21,500 training tweets, 2000 test tweets, and 1500 validation tweets. Training examples give the classifier labeled cases to learn from. Validation provides a separate partition for decisions made during development. The test split is the held-out partition for performance assessment. The paper gives the binary train, test, and validation division as 80:10:10 percent. It does not give a corresponding table of individual binary split counts.

The paper reports an average of 21 words and 113 characters per tweet for the corpus it describes before introducing the binary version. It gives a word-length range of 2 to 93 and includes figures for the distribution of tweet lengths and character counts. A further figure compares average words and characters by label. These statistics describe the inputs that make up the benchmark. A short tweet may contain little beyond the offensive expression, while a longer tweet can combine a statement of opinion, an addressee, and a quotation. The benchmark exposes classifiers to variation in length, with the main accuracy table aggregating performance across it.

Accuracy is the share of evaluated tweets whose predicted label matches the assigned label. On the detailed task, a tweet labeled PRFN counts as an error if it is predicted as OFFN, even if its text also contains a personal attack. On the broad task, both labels would be absorbed into the harmful side of the distinction. Accuracy thus uses the same principle in both cases, but the meaning of a match follows the label space of the task. The paper presents one accuracy column per task and displays the values as proportions.

The balance of the four-class test split matters for interpreting the aggregate. Each label has the same number of test examples. A system that performs strongly on a common-looking category within this set cannot rely on that category appearing more often in the test split. The aggregate still leaves room for different error patterns across labels. Two classifiers can agree with the reference equally often overall while differing in their handling of profanity, personal abuse, or group attacks.

The split table describes the intended held-out evaluation, but the result table names its columns by task and metric without repeating the partition. The discussion presents these as the study’s reported benchmark results and provides confusion matrices for the best cases. When reading the comparisons, the split counts establish how the corpus was organized and the result columns establish which task each value describes. The paper gives no separate set of validation accuracy values.

The binary results

MahaBERT has the highest reported binary accuracy, at 0.909. Multilingual BERT reaches 0.903 and MahaRoBERTa reaches 0.902. XLM-RoBERTa scores 0.894 and MahaALBERT scores 0.883, while IndicBERT scores 0.865. These are the paper’s reported accuracy values for distinguishing the combined harmful category from NOT. The leading Marathi-focused result and the strong multilingual results both matter. On this task the table interleaves the two groups of encoders.

Pretrained encoder accuracy on binary L3Cube-MahaHate

MahaBERT leads, with multilingual BERT and MahaRoBERTa close behind.

Pretrained encoder accuracy on binary L3Cube-MahaHateIndicBERT: 0.865IndicBERT0.865MahaALBERT: 0.883MahaALBERT0.883XLM-RoBERTa: 0.894XLM-RoBERTa0.894MahaRoBERTa: 0.902MahaRoBERTa0.902Multilingual BERT: 0.903Multilingual BERT0.903MahaBERT (this paper): 0.909MahaBERT (this paper)0.909
The numbers
System or settingaccuracy
IndicBERT0.865
MahaALBERT0.883
XLM-RoBERTa0.894
MahaRoBERTa0.902
Multilingual BERT0.903
MahaBERT (this paper)0.909

The CNN shows why initialization and training strategy deserve attention alongside the name of the encoder. For binary classification, the CNN with randomly initialized embeddings reports 0.880 accuracy. Trainable FastText gives 0.866 and fixed FastText gives 0.870. The random setting is the CNN’s strongest binary entry. The fixed setting improves on the trainable FastText setting, which is a narrower and more consistent comparison than the paper’s prose sometimes suggests.

For the LSTM, the binary results are 0.857 with random initialization, 0.860 with trainable FastText, and 0.869 with fixed FastText. The corresponding BiLSTM results are 0.858, 0.860, and 0.870. In each recurrent configuration, the fixed representations earn the highest binary accuracy of the tested embedding treatments. All the fixed-embedding convolutional and recurrent results also exceed IndicBERT’s binary accuracy. The best results in the pretrained encoder family still come from the upper end of that group.

Those binary comparisons concern the ability to identify broad harmful-language membership on the specially balanced corpus. Calling a PRFN tweet harmful is a correct binary prediction whether the system responds to the swear word itself or detects a separate insult. The same result gives no direct account of whether the system could assign a detailed label to that tweet. This is one reason to consider the binary and four-class columns together while reading their accuracies as answers to different questions.

The four-class results

MahaBERT and MahaRoBERTa each reach 0.803 four-class accuracy in the results table. The paper names MahaRoBERTa as the best four-class system and discusses its confusion matrix. At the displayed precision the two share the leading value. XLM-RoBERTa reaches 0.787 and multilingual BERT reaches 0.783. MahaALBERT obtains 0.764 and IndicBERT 0.711. The Marathi-focused entrants include the leaders as well as a system below both multilingual BERT and XLM-RoBERTa.

The four-class entry for BiLSTM with fixed FastText is 0.761. Among the convolutional and recurrent baselines, it has the highest accuracy on this task, with the fixed CNN and fixed LSTM both on 0.751. This puts the fixed BiLSTM ahead of IndicBERT and close to MahaALBERT in the displayed results. The architecture and the word representation matter together. A recurrent classifier can occupy a materially different position in the comparison depending on which embedding treatment it uses.

Selected classifier accuracy on four-class L3Cube-MahaHate

MahaBERT and MahaRoBERTa share the highest reported accuracy.

Selected classifier accuracy on four-class L3Cube-MahaHateIndicBERT: 0.711IndicBERT0.711CNN with fixed FastText: 0.751CNN with fixed FastText0.751BiLSTM with fixed FastText: 0.761BiLSTM with fixed FastText0.761MahaALBERT: 0.764MahaALBERT0.764Multilingual BERT: 0.783Multilingual BERT0.783XLM-RoBERTa: 0.787XLM-RoBERTa0.787MahaBERT (this paper): 0.803MahaBERT (this paper)0.803MahaRoBERTa: 0.803MahaRoBERTa0.803
The numbers
System or settingaccuracy
IndicBERT0.711
CNN with fixed FastText0.751
BiLSTM with fixed FastText0.761
MahaALBERT0.764
Multilingual BERT0.783
XLM-RoBERTa0.787
MahaBERT (this paper)0.803
MahaRoBERTa0.803

The CNN’s four-class accuracy is 0.703 with randomly initialized embeddings and 0.710 with trainable FastText. Its fixed FastText value is 0.751. The LSTM obtains 0.681 with random initialization, 0.691 with trainable FastText, and 0.751 with fixed FastText. For BiLSTM, the four-class accuracy is 0.699 with random initialization, 0.664 with trainable FastText, and 0.761 with fixed FastText. The direction of the change from random initialization to trainable FastText depends on the architecture. Freezing the pretrained embeddings gives the strongest result within each architecture in this column.

The four-class task requires the classifier to recover the boundaries drawn by the annotators, including the priority of profanity and the distinction between attacks on people and attacks on groups. Every architecture in the table has a higher reported accuracy on the broad task than on the detailed task. The difference is consistent with the loss of distinctions that can cause errors in the detailed task. The larger binary dataset and the extra non-abusive examples also change the experimental conditions. The results describe the behavior of the two benchmarks as built.

Reading the figures alongside the table

The paper presents confusion matrices for the configurations it identifies as best on the two tasks. A confusion matrix groups predictions by the reference label and the label returned by the classifier. Its diagonal represents matches. The remaining cells show which labels are mistaken for which others. This matters particularly for a four-class task where the same tweet can contain several cues to abuse but receives just one reference label. An error between HATE and OFFN has a different relationship to the annotation rules from an error between HATE and NOT.

The results discussion identifies the tasks and the leading configurations associated with those figures. It does not give a class-by-class numerical account in its prose. The supported headline claims are therefore about the aggregate accuracy of the systems and the existence of a figure that displays how the best systems’ predictions are distributed. Claims about a specific confusion cell dominating the errors, or about a given label having the highest recall, would require the values from those cells and the relevant denominators.

The comparative results table also qualifies the general claim that the Marathi-focused systems outperform their multilingual counterparts. The leaders are Marathi-focused in both tasks, including a reported tie at the top of the detailed task. Individual comparisons show a more varied picture. The score of multilingual BERT exceeds some Marathi-focused entries on the binary task, and both multilingual BERT and XLM-RoBERTa exceed MahaALBERT on the four-class task. Specialization is associated with the strongest observed settings. The choice of starting encoder remains consequential within both groups.

What the ablations show

Keeping pretrained embeddings fixed

The paper has no separately designated ablation study, but it compares embedding initialization and update settings within architectures and examines the best classifiers through confusion matrices.

The nearest comparison to an ablation holds the classifier family and the FastText initialization in place while changing whether the embeddings are updated. That is a more focused question than swapping an entire encoder. Both settings begin with pretrained word representations. In the trainable setting, labeled tweets can change those representations along with the rest of the classifier. In the fixed setting, the layers that combine those representations learn from MahaHate while the starting word vectors stay intact.

Fixed FastText exceeds trainable FastText in each CNN, LSTM, and BiLSTM comparison reported for both tasks. The pattern is particularly easy to see for the four-class BiLSTM, where accuracy is 0.664 with trainable FastText and 0.761 with fixed FastText. It is also visible in the four-class LSTM, which reports 0.691 and 0.751 for the same respective treatments. Those results establish an empirical ordering of the treatments for the tested configurations. The paper does not trace the changes to particular words, dimensions of the embeddings, or kinds of tweet.

The randomly initialized conditions help separate two questions. Starting with pretrained representations can supply useful structure. Allowing that structure to change during task training can help or hurt under a given setup. For the four-class CNN and LSTM, trainable FastText improves on random initialization and fixed FastText improves further. In the four-class BiLSTM, trainable FastText falls below random initialization while the fixed version leads. On binary CNN, random initialization yields 0.880 and leads both FastText conditions. A claim about the benefit of freezing should therefore specify that its consistent comparator is trainable FastText.

One possible reading is that the pretrained word representations contain distinctions useful to the task, and that changing them with supervision from the annotated tweets can sometimes reduce their usefulness. That is an interpretation of the pattern. The paper leaves open which part of training produces the effect. It supplies no measurement of how much embeddings moved, whether changing the update schedule would alter the result, or how results vary when training is repeated. Freezing is an observed treatment with favorable results relative to updating the same pretrained embeddings.

Comparing architectures and language coverage

The convolutional and recurrent classifiers offer another comparison, but it is less controlled. Their layers summarize the input in different ways, and the dense layers and state sizes also differ. The fixed BiLSTM’s four-class lead within that family shows that its complete configuration works well here. The experiment does not isolate the added value of letting the recurrent layer read in both directions. A comparison designed for that purpose would need to account for the other differences the paper describes.

The Marathi-focused encoders and multilingual encoders likewise differ along several dimensions. Their pretraining corpora, architecture families, and language coverage vary. MahaBERT also has a specific training history that begins with multilingual BERT and continues on Marathi material. The high accuracy it achieves is compatible with a benefit from Marathi adaptation. The comparisons leave open how much of the result follows from the language mix, the training material, the amount of additional training, or other properties of the encoders.

The ordering of the results across tasks makes those coupled factors visible. Multilingual BERT comes close to MahaBERT on binary accuracy. XLM-RoBERTa finishes ahead of multilingual BERT on four-class accuracy, although the binary order favors multilingual BERT. The table illustrates that an encoder’s ranking depends on the label space and data in the task. A conclusion about language coverage in isolation would require a design that varies coverage while controlling the other parts of pretraining and adaptation.

Analyses of the data and of prediction errors

The descriptive figures characterize the tweets by length and by class. They help establish what kind of inputs the benchmark contains and make it possible to ask whether the collection regimes yield different text lengths. The paper does not pair these distributions with accuracy broken down by length. A plot of how long tweets are can show the range a classifier encounters. To establish whether short messages or long ones are responsible for particular mistakes would require predictions analyzed against those lengths.

The confusion matrices answer a different question from the embedding comparison. They organize the errors of selected classifiers after training. They can distinguish a failure to identify harmful membership from a failure to assign the appropriate detailed category, provided the corresponding task and labels are kept in view. They do not identify a causal feature of the training process. The tasks and the plots together make clear why aggregate accuracy is only one view of the decisions the systems make.

The authors describe design choices that would also lend themselves to controlled comparisons, including profanity priority, keyword selection, and removal of hashtags or mentions. They hold those choices in place for the reported baseline experiments. As a result, the comparisons show which tested architectures and embedding treatments do well under the chosen pipeline. They leave open how the rankings would change if the dataset preserved overlapping labels or if the input retained more information from the original tweets.

Limitations

Limits the authors state

The authors explicitly say that their equal class distribution does not represent the true distribution of tweets. It is a deliberate feature of the benchmark. Equal counts make it easier to compare performance across a defined set of classes and remove the need to handle class imbalance in these experiments. The class proportions in the benchmark consequently describe the selection procedure. Estimating how often Marathi users encounter the different kinds of language would require a collection designed to measure natural frequency.

The paper places Romanized Marathi and code-mixed text outside its collection scope. Its search vocabulary is written in Devanagari, and the procedure focuses on tweets that meet that language and script choice. A writer who moves between scripts or incorporates substantial English creates a type of input that the benchmark was expressly designed to leave aside. The reported scores apply to the task as delimited, and the paper provides no parallel evaluation by script or degree of mixing.

The authors acknowledge that the intent behind some tweets cannot be determined readily. They resolve such cases through further review and voting. They also describe the decision to treat quoted hate as HATE, even when it appears in material shared by a news account. Both choices define the kind of judgment encoded in the data. A reader who wants a dataset of author-endorsed hostility, or a distinction between quotation and endorsement, would need information beyond the assigned class.

The paper also describes filtering out difficult text considered noisy, including material containing less commonly used regional words and text with many grammatical errors. That supports constructing a cleaner benchmark according to the authors’ criteria. It simultaneously defines a boundary around the forms of Marathi that appear in the final data. The performance claims concern the filtered corpus, while performance on the removed material is outside the experiments.

Limits implied by the collection and labels

Search-guided collection is particularly useful when the goal is to assemble examples of several harmful categories. It makes the sample depend on the vocabulary and events chosen in advance. Abuse expressed indirectly, in regional terms, or in vocabulary outside the search list can have a different chance of appearing. The per-query cap reduces the influence of any one query on the sample. It cannot establish how much language outside the queries is represented or whether periods of less pronounced controversy would yield similar results.

The authors say that much of the collected material concerns political or social issues. The group-directed category includes attacks on political groups and government, as well as examples involving minorities and gender. The main accuracy table combines these cases into the same label. It leaves unresolved whether the systems do equally well across targets, or whether performance largely reflects the political material that the paper says is prominent. That is a limit on drawing conclusions about the treatment of different communities from an aggregate benchmark score.

The recruitment of extra NOT tweets and the search for harmful material use distinct routes. This makes it possible that collections differ in subject, style, or expected audience as well as in label. A classifier could then make use of cues that predict the source of a candidate tweet alongside cues relevant to abuse. The paper describes the recruitment choices and the evaluation balance. It does not quantify how much those source differences affect predictions, and it reports no comparison in which harmful and harmless examples are matched by event or account.

The practice of leaving out author information helps guard against a classifier using a direct author cue. Tweets from the same event can still contain similar wording or refer to the same public figures. The paper gives split counts and explains random selection for balanced classes, while leaving the details of topic, event, or author separation across splits unspecified. The results establish performance within the reported benchmark. Evaluation across events or authors held entirely outside training remains open.

The single-label scheme also compresses overlapping evidence. A HATE or OFFN tweet has passed the rules that distinguish the target. A PRFN tweet can attack a group, attack an individual, or contain profanity without either attack. The label alone does not separate those possibilities. Counts for HATE therefore count assignments under a priority policy. They do not enumerate every tweet with group-directed hostility. Likewise, an accuracy value for PRFN cannot by itself reveal how well the classifier recognizes the target of those tweets.

The binary version broadens this issue. The positive side brings together group attacks, personal abuse, and profanity. That fits a task framed around the presence of any of the designated harmful categories. Use as a measure of group-directed hate specifically would obscure what the binary label means. A system could achieve much of its binary success on explicit profanity and still find subtler group attacks difficult. The reported aggregate accuracy leaves the contribution of each subtype unresolved.

Limits of the evaluation evidence

The voting procedure gives ambiguous tweets a working label, but the paper does not report an inter-annotator agreement statistic or the proportion of examples escalated for a vote. It also does not specify how equal votes were handled. Readers can see how the authors sought consistency through joint work and review. They have less evidence about how reproducible the labels would be with a new set of Marathi speakers, or about which distinctions generated persistent disagreement.

The reported experiments give point estimates of accuracy. They do not include uncertainty intervals or repeat-run variation. Rankings close to one another at the displayed precision should be read as values from these reported comparisons. The four-class equality of MahaBERT and MahaRoBERTa in the table is especially clear on this point. The authors single out MahaRoBERTa in the narrative. The displayed values provide no basis for inferring a numerical lead.

The paper describes the main architectural components and embedding treatments, while details of optimization and training schedules are sparse. For convolutional and recurrent classifiers, the described softmax head specifies 2 outputs, and the table includes the detailed task as well. The exact four-class training configuration is left implicit. The results remain useful as reference points for the corpus. Reproducing every setting from the architecture descriptions alone would require resolving details that those descriptions leave open.

Input cleanup presents another limit. The experiments remove items that can express stance or clarify who is being addressed. The public corpus retains several of those items so their role can be studied. The paper contains no paired result for training otherwise identical systems with and without those features. Its scores therefore leave open whether individual labels would benefit from keeping emojis, hashtags, or links and whether any gain would transfer across events.

Finally, binary and four-class accuracies are scores of agreement against this annotation policy on these particular datasets. The experiment does not measure judgments of severity, effects on the people targeted, or the consequences of acting on predictions in a live moderation system. Its strongest evidence is the ranking of the tested setups on a balanced, manually labeled Marathi benchmark. Questions about operational thresholds, variations in who is targeted, and changes to the distribution of incoming posts remain outside that evaluation.

What came after

Marathi evaluation beyond abusive language

The later citation from the MahaSent-MD study places MahaHate alongside work on Marathi sentiment across domains. MahaSent-MD presents a multi-domain sentiment dataset and evaluates Transformer classifiers. The change in subject matters because a sentiment label describes an attitude, while MahaHate’s detailed labels describe a type of abusive language or an absence of the specified features. A negative political tweet can fall into NOT under MahaHate’s rules, and a profane tweet receives PRFN regardless of which target it also attacks. The citation establishes continuity in the work on Marathi evaluation, while reuse of MahaHate’s tweets or labeling policy is unconfirmed. L3Cube-MahaSent-MD

MahaSQuAD takes up Marathi question answering. Its citation of MahaHate connects two efforts to define language-specific evaluation material, with very different outputs. MahaHate asks a system to choose among labels assigned to a short post. A question-answering task asks for an answer to a question. What carries across at the level established by the citation is an interest in making Marathi tasks concrete enough to evaluate. The relationship does not establish that MahaSQuAD uses Twitter data, the same preprocessing, or the same pretrained encoders. MahaSQuAD

These works help locate MahaHate among resources that address different aspects of Marathi. A resource can serve as evidence that Marathi evaluation has been built for a certain task without supplying a shared label space across other tasks. The sentiment study broadens the domain setting of sentiment analysis. The question-answering work changes what a system is asked to produce. MahaHate remains a reference for designing and evaluating decisions about abuse in Marathi tweets.

Changing how Marathi text is presented

The later study on representation-aware prompting takes up zero-shot Marathi text classification. Its title identifies IPA, Romanization, and repetition as the representations or input changes of interest. In zero-shot classification, the system is prompted to perform a task without training on labeled examples of that task as part of the evaluation procedure. MahaHate’s reported baselines, in contrast, learn from an annotated training split and evaluate against held-out labels. The later study’s emphasis on representation brings attention to a design choice that MahaHate fixes up front by selecting Devanagari and cleaning the baseline input. The citation alone leaves open which MahaHate examples, if any, the later study evaluates and how it assigns their labels. Representation-Aware Prompting for Zero-Shot Marathi Text Classification

Across the citing studies, the documented questions extend to domains, answer formats, and input representations. For MahaHate, the corresponding choices were tightly connected: select Marathi tweets in Devanagari, define how overlapping signs of abuse become a single label, and measure agreement with that label under a fixed preprocessing setup. That combination is what gives the benchmark its meaning when other Marathi studies cite it.

Cite

Cite as Hrushikesh Patil, Abhishek Velankar and Raviraj Joshi. 2022. L3Cube-MahaHate: A Tweet-based Marathi Hate Speech Detection Dataset and BERT Models. Proceedings of the Third Workshop on Threat, Aggression and Cyberbullying (TRAC 2022).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{patil2022l3cube,
  title = {{L3Cube-MahaHate: A Tweet-based Marathi Hate Speech Detection Dataset and BERT Models}},
  author = {Hrushikesh Patil, Abhishek Velankar and Raviraj Joshi},
  booktitle = {Proceedings of the Third Workshop on Threat, Aggression and Cyberbullying (TRAC 2022)},
  year = {2022},
  url = {https://aclanthology.org/2022.trac-1.1/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/patil-2022-l3cube-mahahate-tweet-based-marathi/