Enhanced Detection of Hate Speech in Dravidian Languages in Social Media Using Ensemble Transformers
Paper · 2024 · V. Arunachalam and N. Maheswari
Summary
A YouTube comment can switch between a Dravidian language and English, including by writing a Dravidian word in Roman letters. An offensive-language detector has to make sense of these forms before it can decide whether the comment belongs in the same category as an insult written in the native script. Arunachalam and Maheswari study this problem for Tamil, Malayalam, and Kannada using labeled YouTube comments from the HASOC offensive-language track in Dravidian Code-Mix FIRE 2021. They combine the dataset’s different kinds of offense into a single category and exclude comments labeled as being outside the intended language. The resulting text classification task asks whether a comment is offensive under that combined label.
The authors clean the comments, correct some textual errors, and convert some Roman-script forms to native script. They remove frequent words using language-specific lists and apply stemming to reduce variation among forms of a word. Pretrained transformer encoders then represent the processed comments as numerical vectors. The authors compare several ways of classifying those vectors, including CatBoost, which builds a sequence of decision trees. They use grid search with cross-validation to choose settings for CatBoost and XGBoost.
On the study’s test data, the paper reports weighted F1 scores of 0.94 for Tamil, 0.98 for Malayalam, and 0.82 for Kannada for its featured CatBoost approach. The abstract attributes these results to multilingual BERT, or mBERT, paired with tuned CatBoost. The detailed results include several ties, and mBERT with tuned XGBoost reaches 0.95 weighted F1 on Tamil. The conclusion also highlights MuRIL, an encoder designed for Indian languages, for Tamil. These results make the strongest case for comparing complete encoder–classifier pairings within each language, since the ordering depends on which pairings are compared.
The experiments show how the systems perform with the chosen preprocessing in place. They leave open how much stemming or stopword removal individually contributed. All three datasets contain more non-offensive than offensive comments, so weighted F1 gives the more common class greater influence. The authors also identify a shortage of recent comments and a smaller Kannada dataset as limits on how well the reported results carry over to newer YouTube discussions.
Deep dive: Enhanced Detection of Hate Speech in Dravidian Languages in Social Media Using Ensemble Transformers
Arunachalam and Maheswari test whether text normalization and boosted trees improve detection of offensive YouTube comments in Dravidian languages. · about 32 minutes to read
The problem and its context
A comment can vary in language, script, and word form
The authors begin with a moderation problem. Comment sections let people respond to content and to one another, but insults, threats, and harassment can discourage participation. The paper presents automatic detection as a way to help identify material that would be difficult to review manually at social media scale. Its experiment makes that problem concrete by assigning a label to individual comments. The label can be checked against an existing dataset, which gives the researchers a way to measure how frequently the system makes the intended decision.
The comments bring together several kinds of variation. A user can write in Tamil, Malayalam, or Kannada in its native script. A user can also write words from one of those languages in Roman letters. And a comment can contain material from English and a Dravidian language together. Switching languages within a comment is code-mixing. Writing a word in another script is transliteration. These distinctions matter because a comment can contain a spelling that looks English at the character level while expressing a Dravidian word. Conversely, ordinary English words can appear alongside Romanized Dravidian words. Converting script and determining which language a word belongs to are therefore different problems. English
Variation also occurs within a script. A word can take different endings as its grammatical role changes. The paper describes the grammatical, lexical, and morphological characteristics of the Dravidian languages as part of the reason that processing them calls for language-specific care. For the detector, the practical question is whether two forms should give similar evidence about the label. Where the difference is a grammatical ending and the shared stem carries the relevant meaning, a common representation may help. Where an ending changes who is being addressed or how an expression functions, the full form may carry useful evidence. The preprocessing method makes choices about which of those distinctions to retain. Morphology
These questions would be easier to investigate with abundant labeled examples covering different forms of writing. The authors describe limited data and uneven class frequencies as recurring problems for Dravidian-language research. A dataset can supply many examples of ordinary conversation while offering much less evidence about the forms that a detector is meant to flag. Script choice and code-mixing add a further dimension to that scarcity. Even where the overall dataset is large enough to train a classifier, the set of offensive examples in a particular language or writing style can be substantially smaller. Low-resource languages
What the experiment calls offensive
The dataset already contains human judgments about offense. Its original categories distinguish several kinds of offensive comment, including comments aimed at particular targets and comments whose offense is less specific. The study puts those categories together. An insult aimed at an individual and offensive language directed at an identity group can therefore lead to the same output even though the original labeling scheme distinguished them. The system is trained to reproduce the broader decision represented by the merged category.
This choice also explains how to read the paper’s use of hate speech. In the experiment, the category named Hate contains the pooled offensive labels. The question that the scores answer is how well a classifier recovers membership in that pool. A score on the pooled task gives no separate estimate for distinguishing targeted hate from other forms of abuse. That difference matters for readers familiar with work that uses hate speech for a narrower class of utterances, since a common term can cover different decisions across studies. Linguistic annotation
The authors also remove comments whose label indicates that they are outside the intended language. This keeps the classification problem focused on offense within the language collections. It also draws a boundary around the input population. A live comment stream may contain both code-mixed writing that belongs in the task and comments that an annotator would treat as outside it. In the study, the existing labels settle that distinction before training and evaluation. The classification experiment begins after that decision has been made.
What earlier studies contributed
The paper places its work in a shift from conventional text representations toward encoders that use surrounding words to represent a passage. Its review describes Spanish offensive-language research that compared word-count representations with transformers. It discusses Arabic and Turkish studies that adapted pretrained encoders, as well as Urdu work that used contextual representations for threatening content and target identification. Those examples illustrate two choices that recur throughout the review. A study chooses what the system should predict, such as offense or the target of a threat, and it chooses what information about the text to give the predictor. Natural language processing
For Tamil YouTube comments, the authors cite the work of Rajalakshmi and colleagues as a direct precedent for combining stemming with stopword removal. That study considered different representations, including Tamil-specific TaMillion and BERT-based alternatives. The overlap is important to the scope of Arunachalam and Maheswari’s contribution. Their study carries language-aware preprocessing into a comparison across Tamil, Malayalam, and Kannada and examines a range of classification methods on the resulting vectors. The relevant prior question was already whether the representation of Tamil text could benefit from changes made before encoding.
Another line of Tamil research compared conventional machine learning with transformer-based methods on code-mixed comments. The paper describes the study by Subramanian and colleagues as considering both kinds of approach, including nearest-neighbor classification and XLM-RoBERTa. Hande and colleagues addressed limited labeled data through a different design. They used multitask learning, in which a shared system learns related tasks, to study sentiment and offensive-language identification in the same Dravidian languages. Sentiment analysis classifies the attitude or tone expressed in text. Its labels ask a different question from whether a comment contains offense. Sentiment and emotion
Ensembling also had precedents. Roy and colleagues combined conventional learning, deep neural methods, and transformers for offensive-language classification in code-mixed text. The review describes other systems that couple BERT with a convolutional network, which can recognize local patterns, or with a recurrent network, which builds a representation through a sequence. The paper also cites work on task-adaptive multilingual encoders and on customized pretrained encoders for Dravidian-language classification. These examples make clear that a transformer can participate in a larger system in several ways. It can supply features to another learner, make predictions that are combined with other predictions, or be adapted further before classification. IIITK offensive-language identification and meme classification
The review connects some of these methods to more specific detection tasks. Work on homophobic and transphobic comments uses categories that identify a particular kind of harm. The focal study instead uses the broader binary label, which gives it a common decision across the language collections. Its main experimental question is how that decision changes when the encoder or the downstream classifier changes after the authors have applied a common preprocessing approach. This makes it possible to study the choice of components while keeping the label definition broadly consistent across the comparisons.
The method, step by step
Set up the binary task
The starting material is a collection of annotated YouTube comments from the HASOC offensive-language track in Dravidian Code-Mix FIRE 2021. The paper’s procedure takes Tamil, Malayalam, and Kannada data as separate inputs. It prepares and classifies each collection and keeps an F1 result for each language. The same multilingual encoder can be evaluated for multiple collections. The language-specific encoders are used for their corresponding language, with TaMillion providing an additional Tamil comparison.
Before working on the wording of a comment, the researchers decide what its label will mean. They retain the non-offensive category, join the offensive categories, and discard rows marked as being outside the intended language. A labeled example then consists of a comment and its binary judgment. The text is what the system will read. The judgment is the answer used for training or evaluation. Changes to the label act on the answer, while cleaning and normalization act on the input.
From annotated YouTube comments to held-out classification scores
The steps in order.
Clean and normalize the input
The cleaning procedure handles a mixture of web-specific material and ordinary variation in text. The algorithm describes removing URLs, punctuation, and special characters, converting text to lower-case, and handling contractions. The prose also mentions removing extra spaces. These operations can reduce the number of surface forms the encoder encounters. For instance, lowercasing makes capitalization variants of a Roman-script string arrive in the same form. Removing a URL means the classifier receives the surrounding words without the characters of the link itself.
The paper describes emoji handling in two ways. Its prose says it uses the demoji library to convert emoticons into text, while the algorithm includes emoji in a removal step. Conversion would allow a textual description of an emoji to remain available to the encoder. Removal would leave the surrounding comment as the input. Because those operations preserve different information, the account establishes that emoji were addressed in cleaning but does not settle which representation was used throughout.
For Tamil, Malayalam, and Kannada text, the authors report correcting some spelling and grammatical errors. They also convert some Romanized words into the native script. The word some matters. The preprocessing is intended to bring selected variants closer to a common form while still admitting comments with a mixture of native and English-coded writing. The paper does not specify an exhaustive transliteration procedure or identify every word that was changed. The described result is a collection with normalization applied to selected forms, alongside comments whose mixed-language character is part of the task.
Transliteration changes how a word is written. It can make a Dravidian word written in Roman letters resemble the same word as written in the native script, which may give the tokenizer a more familiar input. An English word in the same comment can carry its meaning in its original spelling. The method’s intended advantage rests on preserving that shared meaning while reducing variation introduced by writing conventions. The paper treats this as part of preparing input for the encoder, before the question of offense is decided.
Remove frequent words and reduce inflected forms
Stopword removal deletes items selected from a list of frequent words. The authors’ Tamil example is an ordinary sentence about pupils at a school. Its shortened form keeps the words for the school and the students while dropping words that express possession, quantity, and existence. The example illustrates a change in how much of the sentence reaches the encoder. The remaining words retain the broad subject of the sentence, while some information about the grammatical relationship and the speaker’s claim is lost.
The authors report removing 125 stopwords for Tamil, 57 for Malayalam, and 152 for Kannada. These counts describe the language-specific stopword inventories used in preprocessing. They do not measure the number of deleted word occurrences across all the comments. A word on a list can occur many times or never occur in a particular split. The counts also give little indication of how much linguistic information disappears. That depends on which words are listed and how they are used in the comments.
Stemming addresses a different source of variation. It reduces related word forms to a shared stem, frequently by stripping affixes. For this study, the authors use a morphological analyzer from the IndicNLP library. A morphological analyzer uses language-specific information to examine how words are built. Its role here is to support the reduction of inflected forms before those forms become input to a pretrained encoder. This is especially relevant to the authors’ aim of treating grammatical variants as related evidence.
The Tamil examples in the paper show two possible outcomes. A form conveying that someone is reading can produce a stem that the authors say would not normally stand alone. Their other example reduces a word for a scholar or educationist to a form that still conveys knowledge or learning. Stemming can therefore produce either a recognizable lexical form or a fragment that serves as a common representation. For the classification experiment, its value depends on what the tokenizer and encoder can do with that output.
The preprocessing procedure orders stopword removal before stemming. At the point when the stopword list is applied, a word is still in the form left by the earlier cleaning. Stemming then acts on what remains. This order is consequential because deleting a form as a stopword and reducing it to a stem have different effects. Deletion removes the item from the input. Reduction keeps an item available while changing how it is represented. Both decisions take effect before contextual encoding can use the original sentence.
Turn the text into a numerical representation
Each encoder has an associated tokenizer, selected with AutoTokenizer in the paper’s algorithm. Tokenization breaks the cleaned text into pieces the encoder can accept. A piece can be a word or a part of a word. Dividing a string into smaller units gives an encoder a way to process forms that are absent as whole entries in its vocabulary. Tokenization comes after stemming, so even a stem that is unfamiliar as a standalone word can be split into units according to the chosen tokenizer. Subword tokenization
The paper uses BERT to explain the representation stage. BERT stands for Bidirectional Encoder Representations from Transformers. Bidirectionality refers to the use of context on both sides of a piece of text. A token’s numerical representation can therefore depend on surrounding material. This matters for comment classification because the same word can contribute differently to the meaning of an utterance depending on what other words accompany it. The building block the paper emphasizes is self-attention, through which the encoder incorporates information from other positions in the input. Attention Is All You Need
The general BERT description also identifies the special tokens [CLS] and [SEP]. The former marks a position whose contextual representation is commonly used for classifying the input as a whole. The latter marks a boundary. In the standard classification setup described by the authors, a classification head takes the [CLS] representation and produces scores for the possible labels. The study’s downstream comparisons also use vectors derived from the encoders as classifier inputs. Thus a comment is represented by numerical features that can be passed to a decision tree, a support vector machine, or a boosted ensemble. The paper’s architecture discussion explains the typical use of [CLS] but does not fully specify vector pooling for every encoder comparison. Word embeddings
The authors use fine-tuning to adapt pretrained encoders to the labeled task. The starting parameters come from prior training on text. During adaptation, the system predicts a label or assigns it a score, compares the prediction with the labeled answer through a loss, and updates parameters to reduce that loss. Back-propagation computes how changes in parameters affect the loss. The optimizer uses that information to take an update. The paper describes the practical procedure through this account and its pseudocode. The explicit equations it gives for the study concern the evaluation metrics.
Compare broad and language-specific encoders
The multilingual encoder group includes mBERT, XLM-RoBERTa, and MuRIL. The paper describes mBERT as pretrained on text from 104 languages, with an objective that requires predicting masked material. This provides a starting representation learned from multiple languages before any offense labels are introduced. XLM-RoBERTa similarly gives the study a broadly multilingual option, and the authors choose its base variant. MuRIL provides a different focus within the multilingual group because its pretraining emphasizes Indian languages. Multilingual and cross-lingual NLP
DistilBERT supplies a compact alternative to the other encoders in the common comparison. Distillation, as the paper describes it, aims to retain capabilities from a larger pretrained system in a smaller one. The authors adjust training for DistilBERT, describing additional epochs and, in its feature-representation discussion, a learning rate of <= 3e-5. The reason for including a compact encoder is straightforward. It allows the study to ask how a smaller representation system performs when paired with the same kinds of classifier. The reported classification results concern predictive performance, while the discussion of reduced memory and faster inference describes the motivation for the architecture. Efficient models and compression
TaMillion gives the Tamil experiment a monolingual option. The paper describes its pretraining as drawing on 482 megabytes of Wikipedia material and 11 gigabytes from IndicCorp Tamil, with 224,000 pretraining steps. Those numbers concern the earlier training of TaMillion. They are separate from the amount of labeled data used for offense detection. The authors also evaluate Tamil-BERT, Malayalam-BERT, and Kannada-BERT in their corresponding collections. These comparisons give each language a provision specifically adapted to its own text, alongside the encoders evaluated across languages.
The options differ in more than linguistic coverage. They can differ in their training corpora, tokenizers, and architectures. This is meaningful for the practical question of which package gives useful comment vectors. An encoder’s score in this experiment reflects the package the authors actually use, including its tokenizer and adaptation settings. A comparison of these packages consequently cannot attribute every observed difference to multilingual versus monolingual pretraining alone.
Fit classifiers to the comment vectors
A downstream classifier learns a decision from the vector supplied for each comment. The paper compares a support vector machine, a decision tree, and a random forest, as well as the boosted classifiers XGBoost and CatBoost. Each operates on numerical features, but each looks for a different kind of boundary between the labels. Comparing them on vectors from the same encoder provides information about how easily that representation separates the two categories under different learning procedures. Machine learning
A support vector machine seeks a boundary with a margin between the classes. The paper describes using a radial basis function kernel, which allows that boundary to capture nonlinear relationships among features. Its account also mentions bag-of-words and term weighting, although the overall experiment describes transformer vectors as classifier inputs. Those are different ways to construct features. A bag-of-words representation records which terms occur, and TF-IDF assigns more weight to terms according to their frequency within a document and their rarity across documents. A contextual vector is produced by the encoder from the whole input. The exact relationship between these feature descriptions is left unspecified in the discussion of the support vector machine.
A decision tree learns successive tests on feature values. The answer at each branch determines which test comes next until the path reaches a label. A random forest combines predictions from multiple trees, so a single tree’s decisions have less influence on the final classification. Gradient boosting also builds a collection of trees, but it grows the collection sequentially, using later trees to improve predictions that the existing collection handles poorly. Both XGBoost and CatBoost belong to this last group.
The paper discusses CatBoost’s ordered boosting and symmetric trees, and it draws attention to the algorithm’s ability to handle categorical features. In the experimental pipeline as described, the input consists primarily of numerical embeddings. CatBoost’s design motivates trying it, while the comparison measures the performance of the classifier on the features it was given. The paper’s featured pairing has one encoder supplying a representation and a boosted tree ensemble supplying the decision. The other encoders are alternatives in the experiment.
Train the encoders and choose boosting settings
The implementation uses Python and SimpleTransformers for the pretrained encoders, with Pandas for handling the data and NumPy for array operations. The paper places the experiments in Google Colab using T4 and V-100 GPUs. It also says the implementation code is available on GitHub. The reported optimization method for the encoders is AdamW. In the authors’ explanation, AdamW keeps weight decay separate from the adaptive changes used when updating parameters. Weight decay discourages weights from growing unnecessarily large during training.
The general schedule calls for 20 epochs on Tamil, 17 on Malayalam, and 15 on Kannada. An epoch is a pass through the training data. The paper gives 20 epochs as an exception for DistilBERT on Malayalam and Kannada. It describes early stopping with patience of two to four epochs. Patience is the amount of time training can continue without sufficient improvement on the monitored criterion before it stops. An upper schedule and an early-stopping rule serve different functions. The first provides a training budget, while the second can end a run earlier if progress levels off.
The implementation discussion emphasizes learning rates at or below 2e-5. The earlier DistilBERT discussion uses the separate description <= 3e-5. A learning rate controls the size of the parameter update. The paper also reports a gradient accumulation setting of 2. This allows gradients from two mini-batches to contribute to one update, while the device processes the smaller mini-batches separately. The authors use the setting to accommodate memory limits without making each update depend on only one mini-batch.
For the boosted classifiers, the study adds grid search cross-validation, abbreviated GSCV. A grid is a set of candidate training settings chosen before comparing them. For XGBoost the examples include the number of estimators, tree depth, and learning rate. In cross-validation, part of the training data is temporarily held out to evaluate a candidate, and the role of that validation portion rotates across folds. The paper reports threefold cross-validation for XGBoost and selection by F1. CatBoost uses stratified folds, so the class proportions in each fold are intended to resemble those in the training data. Its description refers to accuracy when choosing settings and also discusses early stopping and final F1. The internal criterion used to choose settings and the metric reported on the held-out test set are separate parts of the procedure.
Convert prediction counts into scores
The classification procedure produces a confusion matrix. This counts predictions according to the combination of assigned label and reference label. For a given class treated as positive, a true positive is a correct prediction of that class, a false positive is a prediction of the class when the reference gives another label, and a false negative is a missed instance of the class. These counts allow the researchers to distinguish the reliability of flags from the coverage of flags. The paper’s precision formula is:
P = TP ÷ (TP + FP)
P is precision for the class being evaluated. TP counts true positives and FP counts false positives. The plus sign adds those counts to obtain the number of predictions assigned to the class. The division sign expresses the share of those predictions that were correct, and the equals sign identifies that share as precision. With the offensive label treated as positive, the question is how many comments flagged as offensive actually have that label in the dataset.
Recall uses the same count of correct positive predictions and changes what it compares that count with:
R = TP ÷ (TP + FN)
R is recall. TP counts true positives, and FN counts false negatives. The plus sign combines them to give the number of instances labeled positive in the reference data. Division gives the share of those instances that the classifier found. The equals sign defines that share as recall. With offense as the positive class, low recall means a substantial portion of the reference offenses were missed.
The paper combines precision and recall with the F1 formula:
F1 = 2 × P × R ÷ (P + R)
F1 is the combined score, P is precision, and R is recall. The numerator multiplies precision and recall and scales the product by 2. The parentheses group the sum of precision and recall in the denominator. The division yields their harmonic mean, and the equals sign defines the resulting F1 score. Because the calculation depends on both terms, a weak value on either side limits the combined score. This makes F1 informative when a classifier can increase coverage by flagging more comments at the cost of less reliable flags.
The paper reports weighted averages of precision, recall, and F1 across the two labels. A weighted average gives each class influence according to its support, the number of reference examples carrying that label. The offensive class has lower support in all three language collections. In particular, a weighted F1 score is an average of the class-specific F1 scores with these weights. It cannot be interpreted as the recall of offensive comments or as the F1 of the offensive class alone.
Experiments and results
The data behind the scores
The source collection consists of YouTube comments annotated for sentiment and offensive-language research. Arunachalam and Maheswari use the offense labels and turn them into the binary decision described above. The counts in their dataset statistics are the useful starting point for reading the experiment. They show both the scale of the language collections after label grouping and the imbalance between the classes.
| Language | Hate | Not hate |
|---|---|---|
| Tamil | 9283 | 28,618 |
| Malayalam | 706 | 17,697 |
| Kannada | 1477 | 4397 |
These are dataset counts by class. They are distinct from the counts for the training and test splits. Malayalam has 706 comments in the merged offensive category and 17,697 in the non-offensive category. That distribution matters when interpreting the very high weighted Malayalam scores. The larger class has greater weight, so strong performance on that class can account for much of a high aggregate result. The distribution table by itself leaves the performance on the smaller class open.
Tamil has the largest count of offensive comments among the three collections. Kannada has fewer comments in either class than Tamil and fewer non-offensive comments than Malayalam. The language comparisons therefore bring together differences in pool size and class balance, along with whatever differences exist in the comments themselves. Even if every language were processed by an identical system, its test score would reflect the characteristics of the examples and labels it was asked to predict.
The reported split sizes are as follows:
| Language | Training comments | Testing comments |
|---|---|---|
| Tamil | 33,685 | 4216 |
| Malayalam | 12,882 | 5521 |
| Kannada | 4699 | 1175 |
The methods and results sections describe a 70:30 division, with 70% assigned to training and 30% to testing. The listed sizes do not uniformly match that description. The paper also gives 42 as the selected random state, which is a setting used to control decisions that involve randomness. For interpreting the headline numbers, the safest description is that they are the paper’s held-out test results. The split table provides the specific reported sample counts, while the prose provides the stated design.
Two kinds of comparison
The study first compares encoder–classifier pairings evaluated by the authors. Within a language, a fixed representation can be passed to several classifiers. A fixed classifier can likewise be tried with vectors from different encoders. These results are the closest comparison of components under the study’s processing pipeline. They show whether the choice of a classifier or encoder changes the reported score for a particular language and which combinations tie at the displayed precision.
The second comparison uses findings published by earlier studies. These rows help place the new results alongside prior work on the dataset. They include systems that make different architectural choices, such as combining MPNet with a convolutional network or combining multiple pretrained encoders. A published comparison is informative about the scores each article reports. Its interpretation depends on how closely the split, language coverage, label mapping, and averaging procedure agree. The paper presents the earlier rows as rankings and uses weighted F1 as its main ranking measure.
Tamil
The paper’s featured Tamil pairing, mBERT with grid-tuned CatBoost, has weighted precision, recall, and F1 of 0.94 on the Tamil test set. The internal comparison gives the same F1 for mBERT with a support vector machine. It gives 0.92 for the decision tree and 0.93 for the random forest. With grid-tuned XGBoost, the mBERT pairing reaches 0.95. The result is a case where the paper’s chosen system performs strongly while the highest reported entry with the same encoder belongs to a different classifier.
Classifiers using mBERT vectors on Tamil HASOC test comments by weighted F1
Tuned XGBoost leads this comparison, and tuned CatBoost ties the support vector machine.
The numbers
| System or setting | Weighted F1 |
|---|---|
| Decision tree | 0.92 |
| Random forest | 0.93 |
| Support vector machine | 0.94 |
| CatBoost with grid search (this paper) | 0.94 |
| XGBoost with grid search | 0.95 |
The Tamil tables also show that strong results occur with several encoders. With tuned CatBoost, XLM-RoBERTa, Tamil-BERT, and MuRIL each report 0.94 weighted F1 on the Tamil test set, tying the featured mBERT pairing at the reported precision. DistilBERT and TaMillion each report 0.9 weighted F1 with that classifier. This pattern makes the conclusion’s emphasis on MuRIL understandable as a choice among competitive encoders. The same results give firmer evidence for a group of leading pairings than for a unique Tamil encoder winner.
In the paper’s comparison with published Tamil systems, Roy and colleagues’ deep ensemble has an F1 entry of 0.9, the MPNet–CNN system of Chakravarthi and colleagues has 0.85, and the preprocessing and MuRIL approach attributed to Rajalakshmi and colleagues has 0.84. Each number here is from the Tamil ranking table. The row for MPNet and CNN also reports precision of 0.97 and recall of 0.76. This shows why the ranking criterion matters. The earlier system has higher precision than the featured pairing, while the featured pairing has a higher F1 in that comparison.
The paper gives another figure for Roy and colleagues in its literature review. There it describes weighted F1 of 0.933 on the Tamil code-mixed dataset. The paper does not explain the relationship between that figure and the ranking row of 0.9. Both are reported with their respective context, so the comparison table is best read on its own terms, with the literature review serving as a separate account of the earlier work.
Malayalam
For Malayalam the featured mBERT–CatBoost pairing reports weighted precision, recall, and F1 of 0.98 on the test set. The internal results show several other configurations attaining 0.98 F1. With CatBoost held fixed, MuRIL reaches the same value. The XLM-RoBERTa and DistilBERT pairings sit at 0.97, while Malayalam-BERT with CatBoost is listed at 0.94. The chart compares the encoders with the same kind of downstream classifier. Other classifiers give some different relationships between the encoders.
Encoders paired with tuned CatBoost on Malayalam HASOC test comments by weighted F1
The featured mBERT pairing shares the highest score with MuRIL.
The numbers
| System or setting | Weighted F1 |
|---|---|
| Malayalam-BERT | 0.94 |
| DistilBERT | 0.97 |
| XLM-RoBERTa | 0.97 |
| MuRIL | 0.98 |
| mBERT (this paper) | 0.98 |
The Malayalam ranking table also records 0.98 F1 for an earlier MPNet–CNN approach. In the same table, the combination of a convolutional network with XLM-RoBERTa and mBERT is reported at 0.97 F1. An ensemble involving mBERT, XLM-RoBERTa, and ULMFiT is also listed at 0.97. Read together, the rows show that the new system reaches the best Malayalam F1 already reported in the paper’s historical comparison. They also show how little the displayed weighted metric separates several alternatives in this collection.
An earlier result from Roy and colleagues creates a reporting ambiguity similar to the one in Tamil. The literature review gives weighted F1 of 0.802 on the Malayalam code-mixed dataset. The Malayalam ranking table attributes an F1 of 0.769 to their deep ensemble. The differences in the paper’s accounts make it especially important to identify which comparison a number belongs to. Neither figure changes the central observation about the featured system’s own Malayalam result and the prior 0.98 listed in the rankings.
Kannada
For Kannada, the paper’s headline CatBoost result is weighted F1 of 0.82. It also reports weighted precision of 0.82 and weighted recall of 0.83 for the featured approach in the abstract and conclusion. The internal table gives 0.82 F1 to both MuRIL and mBERT with tuned CatBoost. For the same classifier, XLM-RoBERTa and Kannada-BERT are each listed at 0.81 F1. The authors’ discussion favors MuRIL slightly in some classifier comparisons, while the conclusion highlights mBERT for Kannada. The shared CatBoost F1 is the clearest point of agreement across those descriptions.
Encoders paired with tuned CatBoost on Kannada HASOC test comments by weighted F1
MuRIL and mBERT tie at the top of this set of CatBoost pairings.
The numbers
| System or setting | Weighted F1 |
|---|---|
| XLM-RoBERTa | 0.81 |
| Kannada-BERT | 0.81 |
| MuRIL | 0.82 |
| mBERT (this paper) | 0.82 |
The discussion identifies 0.76 as the highest Kannada F1 from prior work in its comparison. It also reports 0.74 F1 for Saha and colleagues on Kannada. Within that comparison, the new 0.82 is higher. The Kannada result is below the featured Tamil and Malayalam results, but the ranking within Kannada and the ordering across languages answer different questions. The former concerns the reported alternatives for a given language. The latter compares test collections whose sizes and label distributions differ.
Across the three languages, the headline F1 ordering puts Malayalam highest, then Tamil, then Kannada. That ordering describes weighted scores on these test collections. It cannot rank how effectively the systems catch offensive comments in each language, because the relative support of the offensive class changes across the collections and the headline values average across both classes. The class distribution and the comparisons within each language help give those numbers their proper scale.
What the ablations show
The paper gives no controlled ablation of stemming, stopword removal, or script normalization, and instead analyzes alternative encoders, alternative classifiers, and CatBoost with and without grid search.
What the component comparisons isolate
The closest comparisons for encoder choice hold a downstream classifier fixed. For example, the Malayalam CatBoost comparison gives a tie between mBERT and MuRIL, while the Kannada comparison again puts them at the same reported F1. In Tamil, the fixed CatBoost comparison includes language-specific and multilingual encoders at the same reported F1. These observations establish that multiple encoders can provide useful inputs under the chosen pipeline. They offer limited support for preferring one encoder across all the collections and classifier choices.
The converse comparison holds the encoder fixed and varies the classifier. The Tamil mBERT results provide a clear example. The decision tree, random forest, support vector machine, and boosted trees occupy different places in the ranking. The fact that tuned XGBoost reaches 0.95 weighted F1 while tuned CatBoost reaches 0.94 with the same encoder indicates that downstream decisions matter even after a contextual representation is available. The CatBoost and support vector machine tie also shows that a more elaborate classifier need not produce a higher displayed score for every encoder–language pair.
These comparisons control the named component in the table. Other implementation choices can still matter. Grid search is explicitly described for the boosted classifiers. The encoder training schedule varies by language and, in the case of DistilBERT, by architecture. Differences under those choices are evidence about the tested configurations. They do not isolate the effect of model size, pretraining language coverage, or the amount of tuning independently.
What the CatBoost tuning comparison addresses
The paper presents paired Tamil mBERT figures for CatBoost with and without grid search. A useful way to read this comparison is to follow the errors rather than just the final rank. A confusion matrix indicates how many examples move between correct and incorrect predictions for each class. A classification report puts those decisions into precision, recall, and F1. The authors describe the tuned setting as improving the outcome, and they present the two figures to support that claim for the Tamil pairing.
Grid search assesses alternative settings for the same family of classifier. That is a narrower change than replacing the entire classifier, which makes this comparison closer to a controlled test. The changes being assessed are a package of model selection choices, including evaluation on validation folds and the described use of early stopping. The paper does not give a matched numeric account of that gain for each language. The Tamil illustration therefore supports the practical value of tuning in the reported setup while leaving the size and consistency of its benefit across languages less clear.
What remains unresolved about normalization
The authors attribute some of the performance to stemming, stopword removal, and the use of both native and English-coded material. Their explanation is plausible in terms of the representation they want. Related forms can enter the encoder in a more consistent spelling or with a shared stem, and the input can contain fewer of the words the researchers regard as uninformative. The reported comparisons demonstrate performance after these choices have been made together.
To measure the effect of one choice, a comparison would need to change that choice while keeping the rest of the setup comparable. For example, a matched test of stemming would use the same labels, input comments, splits, and encoder–classifier pairing in the two conditions. Any difference would then concern the introduction of stemming under those conditions. The paper does not report that comparison. Its claim about stemming is an interpretation of the complete pipeline’s results and the linguistic rationale for normalization.
The same issue applies to the mix of writing styles. A stronger score than an earlier system could reflect handling of script variation, choice of classifier, differences in the data used, or several of those factors together. The reported results do not give separate scores on native-script and English-coded comments or separate runs in which one type is withheld from training. The combined evaluation shows that the pipeline can be tested on a collection containing both. It does not identify which forms of writing account for the observed advantage or measure how learning from one form changes predictions on the other.
The paper also proposes linguistic similarity as an explanation for high mBERT scores in Tamil and Malayalam. The language-level comparisons are consistent with mBERT being competitive in those collections. They do not test the explanation directly. Because the language collections differ in size and balance, and because strong results occur with several encoders, the reported experiments leave multiple explanations open. This is an important distinction between a pattern in results and evidence for the mechanism that produced it.
Limitations
Limits identified by the authors
The authors identify the lack of recent comments as a limitation. A classifier tested on held-out material from an existing corpus is measured on the writing found in that corpus. The authors describe inaccuracies when applying the approach to newer YouTube comments and connect them to the age and composition of the data. They give no separately scored recent-comments test. As a consequence, the paper describes the problem qualitatively while the benchmark results quantify performance on the reported test collections.
Kannada receives particular attention. The authors describe its balance of native and code-mixed comments as different from that of Tamil and Malayalam. They also point to the smaller amount of Kannada data as a constraint on generalization and a possible source of its lower weighted F1. These explanations are reported as the authors’ interpretation. The test comparisons do not isolate dataset size, writing style, and language as independent variables.
Their future-work discussion emphasizes slang, language-specific linguistic characteristics, and improvements to stemming. It also mentions extending the research to further Indian languages. These directions follow from the study’s account of preprocessing. Each additional language or writing style can change which spellings should be normalized, which grammatical differences carry meaning, and which frequent words a useful preprocessing list should retain. The reported results cover the three evaluated collections.
Limits visible in the experimental design
The aggregate metric emphasizes the majority class. The weighted averages are valid descriptions of performance at the class frequencies represented in the data. For a moderation application, a reader may also want to know how many actual offenses the detector misses and how many of its flags concern non-offensive text. Those questions refer specifically to the offensive class. A weighted recall of 0.98 on Malayalam combines recall for offensive and non-offensive comments according to their support. It supplies no direct offensive-class recall figure. The imbalance in Malayalam makes the distinction especially consequential.
The label combines different kinds of offense. A system can do well at reproducing the merged category while being uneven at identifying its sources. For instance, competence on common insults need not indicate comparable competence on content aimed at an identity group. Because the offensive subtypes are joined before training and evaluation, the reported scores answer a broad screening question. The experiments provide no subtype-level measure of mistakes or of how the detector behaves for different targets. Bias, fairness and safety
The exact evaluation setup is partly ambiguous. The paper describes a 70:30 split repeatedly, but its table gives language-specific counts that do not consistently fit that statement. It also reports a selected random state without giving the variation in scores across different seeds or held-out splits. Where systems are separated by close displayed values, the reader cannot tell whether the same ordering would hold if different comments were used for training and testing. The historical rankings have an additional layer of uncertainty because the paper does not establish the equivalence of every row’s experimental conditions. Evaluation and benchmarks
Some preprocessing and representation details remain open. The paper describes operations such as spelling correction, transliteration, and emoji handling without fully fixing how each operation was carried out for all comments. It also explains BERT’s usual classification representation while leaving the exact extraction of vectors across all the tested encoders underdescribed. Those decisions could matter for a reader trying to replicate the results, especially if an apparently minor difference changes which tokens survive or which vector reaches the classifier.
Encoder rankings depend on how the comparison is framed. The headline names mBERT with CatBoost. The conclusion also highlights MuRIL for Tamil, and several pairings tie at the paper’s displayed precision. With the encoder fixed to mBERT, tuned XGBoost has the strongest reported Tamil F1. With CatBoost fixed, multiple Tamil encoders tie. These statements can all be read coherently as descriptions of different comparisons. Taken together, they support a family of competitive configurations and provide weaker grounds for an across-the-board ranking.
What a benchmark result can establish about moderation
The experiment measures agreement with dataset labels on filtered YouTube comments. It neither measures the downstream effects of hiding comments nor tests whether the classifier reduces cyberbullying after deployment. The authors discuss these outcomes as motivations and potential applications. To evaluate those claims would require observing how predictions are used and what happens to comments and conversations afterwards. Even a correct flag under the paper’s labeling scheme is evidence about the classification stage only.
The paper also motivates parts of the design by referring to training efficiency, inference speed, and memory use. The implementation provides information about its computing environment and the steps taken to accommodate memory limits. Its central comparisons report precision, recall, and F1. They supply no measured timing or throughput comparison establishing which tested pairing would flag comments most quickly in practice. The evidence is strongest for predictive performance within the chosen benchmark procedure.
What came after
A later citing study, A Feature-Fusion Ensemble Approach for Tamil Hate Speech Detection, focuses on Tamil and identifies feature fusion and ensembling as its approach. The title establishes a connection to the earlier paper’s question of how numerical text representations and ensemble classification can work together. Arunachalam and Maheswari compare individual encoder representations as inputs to downstream classifiers. The later study’s title puts the combination of features at the center of its approach and narrows the language scope to Tamil.
The citation and title establish that thematic connection. They leave the details of the later method open, including which features were combined, which classifiers were used, and whether the study reused the earlier preprocessing or test split. The relationship that can be traced is the continuation of Tamil hate-speech research through the design of representations and ensembles, with feature fusion named as the later study’s focus.
Cite
Cite as V. Arunachalam and N. Maheswari. 2024. Enhanced Detection of Hate Speech in Dravidian Languages in Social Media Using Ensemble Transformers. Interdisciplinary Journal of Information Knowledge and Management.
@article{arunachalam2024enhanced,
title = {{Enhanced Detection of Hate Speech in Dravidian Languages in Social Media Using Ensemble Transformers}},
author = {V. Arunachalam and N. Maheswari},
journal = {Interdisciplinary Journal of Information Knowledge and Management},
year = {2024},
doi = {10.28945/5403},
url = {https://doi.org/10.28945/5403}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arunachalam-2024-enhanced-detection-hate-speech-dravidian/