Elamur Research

Optimize_Prime@DravidianLangTech-ACL2022: Abusive Comment Detection in Tamil

Paper · 2022 · Shantanu Patankar, Omkar Gokhale, Onkar Litake et al.

Summary

A system that screens YouTube comments needs to recognize more than the presence of an offensive word. It may need to distinguish an attack from a reply that challenges abuse, and to recognize supportive comments alongside several kinds of hostility. The Optimize Prime team studies this problem in a shared task on Tamil and Tamil–English comments. It treats each comment as a text classification example, with a category supplied by the dataset. The two tracks test Tamil comments and code-mixed comments, which alternate between Tamil and English. Finding enough labeled examples is a challenge, particularly when some categories appear much less frequently than others.

The authors compare three approaches. They give conventional classifiers a numerical representation of the whole comment from multilingual BERT, train recurrent systems that process text in sequence, and use direct fine-tuning to adapt pretrained transformers to the task. They also try cleaning the comments and changing how often different classes appear during training. The effect of these choices depends on the system. Cleaning helped the recurrent systems and most direct transformer classifiers in the authors’ experiments, while MuRIL and the conventional classifiers using BERT representations did better with the original text. A sampling procedure that redistributed examples across classes helped the latter group and the transformers but weakened the recurrent systems.

On Tamil, MuRIL and XLM-RoBERTa share the highest reported macro F1, at 0.43. On Tamil–English comments, MuRIL and multilingual BERT share the lead at 0.45. Macro F1 gives each category equal influence, so errors on scarce categories matter even when most comments belong to the residual category. The other aggregate in the paper, weighted F1, gives more influence to classes with more examples. It changes the result on the code-mixed track, where the recurrent ULMFiT system adapted on code-mixed data reaches 0.68, the highest reported weighted F1 on that track.

The authors also describe differences among labels. They report stronger recognition of homophobia and misandry than of transphobic content and counterspeech on Tamil, and identify xenophobia, misandry and transphobic content as comparatively well recognized on the code-mixed track. They describe comments without abuse as generally well classified in both. These observations give some sense of where the systems succeed, while the paper reports their performance chiefly through aggregate scores. The experiments establish which approaches led on each measure in this shared task and show how much the answer depends on what that measure values.

Deep dive: Optimize_Prime@DravidianLangTech-ACL2022: Abusive Comment Detection in Tamil

Optimize Prime compares ways to detect abuse in Tamil and Tamil–English YouTube comments and shows how class imbalance affects the results. · about 31 minutes to read

The problem and its context

A comment can play several roles in a conversation

The authors start from the harm that abuse can cause people who encounter it online. Their introduction describes hostile comments as attacks directed at people or groups and discusses the harassment and distress associated with online abuse. The amount of discussion on social platforms makes finding such comments a practical problem. The task the authors enter narrows that broad problem to a specific test. Given the text of a YouTube comment, a system must assign a category from the shared task’s inventory.

The inventory matters because the task encompasses more than a decision about whether abuse is present. Some labels identify the kind of target, including categories for misogyny and xenophobia. Others describe the role of a comment, including counterspeech and hope speech. A comment that argues against hostility belongs to a different part of this inventory from a comment that expresses it. The label structure thus asks a classifier to use cues about what a comment is doing as well as the vocabulary it contains. This is one reason the paper’s interest in contextual representations fits the task.

The authors connect categorization to decisions about responding to abuse. More detailed labels can help distinguish situations that call for different responses. The experiment itself concerns category assignment to comments. It contains no separate severity scale. For instance, a label about a target describes one aspect of a comment even if the label alone leaves its severity open. The shared task makes the narrower question measurable by specifying the available answers and giving examples with reference labels.

A further complication comes from the residual category. The paper calls it None-of-the-above in its dataset description and None-of-these in its distribution table. Its role is to catch comments that fall outside the other categories. That makes it part of the prediction problem in its own right. A classifier has to learn when a comment warrants a specific label and when none of the listed alternatives applies. Because this category represents most of the comments in both tracks, a system can do well on a substantial portion of the dataset while still struggling with the distinctions that motivated the task.

Tamil and Tamil–English create distinct evaluation settings

The paper places Tamil among low-resource languages and identifies a shortage of suitably labeled data as an obstacle. In this setting, the relevant resource is a collection of comments paired with the particular labels a classifier is supposed to predict. A pretrained encoder may have encountered Tamil during its initial training, while the examples that teach it to recognize the shared task’s categories are much scarcer. The paper’s comparison draws on several ways to make use of that prior training.

The Tamil–English track adds multilingual and cross-lingual NLP to the problem. A code-mixed comment can contain material from both languages in the same input. The category applies to the complete comment, so an expression in one language can affect how the reader understands words in the other. The authors use systems with multilingual or Indian-language pretraining in the hope that those representations give the classifier a useful starting point. They also include a recurrent transfer approach that had already been used on Tamil–English social media text.

The tracks differ in more than their language format. Their sizes and label distributions differ, and those differences affect the evidence available during training and evaluation. The paper therefore treats them as separate tasks. Even where the category names coincide, an overall score on one track reflects the comments and frequencies in that track. A comparison across tracks has to account for the fact that the inputs, class distributions and available training examples change together.

The earlier approaches the paper draws on

The authors describe a progression in how earlier work represented text for classification. In the conventional approach, the system first converts a sentence into a numerical representation. A classifier then learns which patterns in those numbers are associated with a label. The representation and the final decision are distinct stages. Optimize Prime keeps that arrangement in one branch of the study but obtains its comment vectors from multilingual BERT, so the conventional decision rules have access to a pretrained contextual representation.

A second line of work uses recurrent neural networks. A recurrent network processes a sequence while maintaining a representation of what it has encountered so far. Long short-term memory, or LSTM, is the recurrent architecture discussed in the paper for retaining information across a sequence. The authors cite an earlier study by Pitsilis and colleagues that used a recurrent approach to detect offensive language in tweets. Its relevance is the combination of a similar classification problem with the kind of sequence processing the team wants to test on YouTube comments.

The paper also cites Arora’s work on hate speech in code-mixed Tamil–English comments. That work used ULMFiT, a method for adapting a pretrained recurrent system to a text classification task. It gives the authors a more direct starting point for Tamil–English than the tweet study. They reuse the released ULMFiT work from that earlier shared task and adapt it for the labels in their own experiment. This connects the recurrent branch to prior work on a related language setting as well as to the more general tradition of LSTM classification.

The third line comes from the transformer architecture introduced in Attention Is All You Need. The paper highlights attention, a mechanism that lets a representation of a word draw on information elsewhere in the input. It also traces subsequent systems through BERT and its multilingual variants. The authors cite a hate-speech evaluation in Indo-European languages where Mishra and Mishra used multilingual and monolingual BERT. They also discuss a study by Ziehe and colleagues that adapted XLM-RoBERTa for hope-speech detection in English, Malayalam and Tamil. That earlier task is especially pertinent because hope speech is one of the categories in the present benchmark.

The discussion of resources includes earlier dataset creation by Chakravarthi and colleagues, such as the Tamil–English corpus for code-mixed sentiment analysis. The paper also cites HopeEDI in its discussion of this area. Such work supplies annotated examples for linguistic settings or categories that are otherwise difficult to study. The experiment here uses the shared task’s abusive-comment dataset, where those distinct concerns come together in one inventory. Its contribution is a comparison of strategies for learning that inventory from the available comments.

The method, step by step

From the comment to a category

Each example starts with a comment and, in the labeled data, its assigned category. During training, the system uses the association between text and label to learn a decision rule. In the comparison, the systems differ in how they represent the comment and in how much of that representation can be adapted to the task. They also differ in which version of the input works best. The authors test preprocessing choices and ways to redistribute training examples alongside the choice of classifier.

The term ensemble has a specific meaning in this paper. In that branch, a multilingual encoder supplies a vector for a comment and a downstream classifier uses the vector to predict the category. The authors try several downstream classifiers. Each table entry for this branch is one such pairing. Their recurrent branch uses sequence encoders, with a plain LSTM as the baseline and ULMFiT as the transfer approach. Their direct transformer branch adapts pretrained encoders for the classification task itself.

From a YouTube comment to a category

The steps in order.

From a YouTube comment to a categoryStep 1: Start with labeled comments from each track1. Start with labeled comments from each trackStep 2: Try original text and cleaned text2. Try original text and cleaned textStep 3: Compare sampling and class weighting3. Compare sampling and class weightingStep 4: Train the chosen classifier on comment representations4. Train the chosen classifier on comment representationsStep 5: Assign a category to each evaluated comment5. Assign a category to each evaluated commentStep 6: Compare macro and weighted F16. Compare macro and weighted F1

This flow represents choices across the experiments. Training-set adjustments address the frequency of categories, while text cleaning changes the form of individual inputs. Neither of those choices determines the architecture. For example, a system can use the original comment as text and still train on a redistributed collection of examples. Keeping those choices distinct helps explain why the paper reports different settings for different system families.

Cleaning changes the evidence available to the classifier

The authors’ cleaning procedure removes punctuation, web-address patterns and stop words. Stop words are words selected for removal because they are treated as less informative for the task. The report does not specify the list used. The authors take a different approach to emojis. They replace them with words intended to convey the same signal. Their example is a laughing emoji rendered as an expression for laughter in Tamil. This makes laughter available in a form the text processor can treat as language.

The example shows the goal of the procedure. A classifier may need to recognize that a comment expresses laughter even when the writer supplies that information through a symbol. Converting the emoji to words preserves an interpretation of the symbol, while the removal steps discard material judged less helpful. The whole procedure changes several kinds of evidence simultaneously. A comparison between cleaned and original inputs therefore concerns the package. The paper’s observation that performance improved for some systems cannot identify which deletion or replacement produced the gain.

The branch using BERT vectors and downstream classifiers worked better with the original text, according to the paper. MuRIL also did better without the cleaning procedure. The recurrent systems and the other transformers benefited from cleaning. The authors use these observations to describe which treatment fits each family, instead of setting a single text representation for every system. The paper makes the direction of the differences clear but does not give their sizes.

Changing the representation of rare classes in training

Class imbalance arises when some categories have much more training material than others. If examples are drawn in their original proportions, a classifier encounters the frequent labels more often. Training has fewer chances to learn the features of scarce categories. That matters in this study because macro F1 ultimately gives a rare class the same influence as a common one.

The authors try ordinary oversampling, a combination of oversampling and undersampling, SMOTE, and class weights. Oversampling increases the representation of a class. Undersampling reduces it. In the combined procedure, the authors increase the presence of classes below the desired frequency and reduce the presence of those above it while keeping the total length of the dataset constant. It changes which examples account for the available training observations without expanding the overall collection used by that procedure.

SMOTE refers to synthetic minority oversampling. Conceptually, it addresses the same scarcity by supplying generated examples in the representation used for training. The paper names it as one of the methods considered. It does not describe where in the text-processing pipeline the synthetic examples were created or how their settings were chosen. Class weighting takes a different route. It changes the importance placed on examples from a given category in fitting the classifier. Changes to weights and changes to sample counts can both increase attention to scarce categories, but their operations on the training data differ.

The authors say the combined sampling procedure worked best among the balancing choices for their direct transformers and for the BERT pairings. They report that the procedure hurt their recurrent systems. They also identify a gain from weighting for the pairing of multilingual BERT and logistic regression. These are empirical choices within the paper’s comparison. Their effects can be read as evidence that the appropriate training distribution depends on the way the later stages learn from the representation.

A pretrained vector with a conventional classifier

In the ensemble branch, multilingual BERT provides the same kind of input to each downstream classifier. The paper describes it as pretrained across 104 languages. It produces a comment embedding with 768 components. An embedding is a numerical representation, and here the individual coordinates together describe the comment in a form the downstream classifier can use. The paper refers to this as a sentence embedding even though the input unit in the task is the YouTube comment.

The distinction between an embedding and a label is central to this branch. The embedding offers features for the decision. It is the downstream classifier that learns which regions or patterns in those features correspond to the task’s categories. Consequently, the paper can compare several kinds of decision rules on the same type of input. Logistic regression learns scores for the available categories from the input features. The support vector classifier, abbreviated SVC in the results, learns boundaries in the space of the vectors. The multilayer perceptron, or MLP, uses layers of learned transformations between the vector and the prediction.

The authors also feed the vectors to a decision tree, a random forest and XGBoost. A decision tree makes a prediction through a sequence of splits on its inputs. A random forest combines trees, and XGBoost is the boosted tree approach named in the comparison. These entries let the authors compare tree-based decisions with the other options without substituting a new type of textual representation. The common feature source helps localize the comparison at the classification stage, although the final systems can still differ in settings selected for them.

The team tunes this branch using grid search. This means choosing candidate values for settings and evaluating the candidate combinations. They score the choices by weighted F1 with cross-validation using 5 -10 folds, the range the paper gives. Cross-validation rotates which portion of a collection is used for validation so that candidate settings can be compared on examples kept apart from fitting in each fold. The paper does not map particular fold counts to individual classifiers. Its explicit choice of weighted F1 during search matters because that score gives more influence to frequent classes, while much of the final discussion emphasizes macro F1.

Recurrent systems with and without prior training

The plain LSTM is the authors’ recurrent baseline. It starts from a vocabulary selected by frequency, using the top 64,000 words described in the paper. Its embedding layer gives words 100-dimension vectors. In this branch, the word embeddings describe individual words. The recurrent layer reads the sequence of those vectors and can carry information about earlier words forward while processing the later ones. This is a different role from that of the fixed-length comment representation supplied to a downstream classifier in the ensemble branch.

The architecture contains spatial dropout at 0.2, one LSTM layer and a softmax output. Dropout is a training operation that withholds some of the internal signal so that the fitting procedure has less opportunity to depend on any particular input feature. The LSTM handles the sequence, while the final softmax converts output scores into a distribution across the available labels. Taken together, those components create a baseline that can learn distinctions between sequences without relying on the ULMFiT checkpoint used elsewhere in the recurrent comparison.

ULMFiT starts from an existing recurrent system and adapts it to a new text classification problem. The authors motivate that approach by referring to prior work on learned word representations, including Distributed Representations of Words and Phrases. In ULMFiT, the value carried over from earlier training extends beyond a lookup of word vectors. The recurrent network has already learned to process sequences of text. The authors use that network as a starting point for learning the labels of the present task.

The particular starting point comes from the team named gauravarora in the earlier HASOC-Dravidian-CodeMix shared task. The paper says the earlier work built corpora from Wikipedia articles and used a Fastai implementation of ULMFiT. The authors reuse the released system and adapt it on the Tamil training data, the Tamil–English training data, and a combination of the two. The separate versions have an opportunity to fit their own track. The combined version exposes the recurrent system to both forms of input before it is evaluated on each track.

The paper identifies SentencePiece for tokenization, the conversion of a comment into units the network can process. It describes the recurrent backbone as AWD-LSTM, referring to An Analysis of Neural Language Modeling at Multiple Scales. Its architecture uses an LSTM cell with spatial dropout. In the classification portion, two linear layers transform the recurrent representation before softmax supplies the final distribution. In the results, ULMFiT refers to adaptation on the individual track, and ULMFiT CD denotes the version adapted on combined data.

Adapting transformers for the classification task

The final branch compares MuRIL, XLM-RoBERTa, multilingual BERT and Indic BERT. The pretrained encoders differ in what text they saw and in how their earlier training was organized. The authors use them as starting points and train them for comment classification. Multilingual BERT consequently has two roles in the study. It supplies comment vectors to downstream classifiers in the ensembles, and it has a separate result as a directly adapted transformer. A score for the latter concerns a different learning procedure from a score for logistic regression or SVC attached to its embeddings.

MuRIL was developed for Indian languages and trained on Indic text. The paper presents that specialization as relevant to Tamil and to comments that mix Tamil and English. XLM-RoBERTa follows the RoBERTa line and uses multilingual pretraining. The authors describe its training collection as 2.5 TB of filtered CommonCrawl text across 100 languages. That gives it a different source of prior experience from MuRIL. The results compare these starting points as part of complete classifiers, which means the contrast includes more than the coverage of the underlying corpora.

The paper describes multilingual BERT as pretrained on 104 languages with a masked prediction objective. In that objective, parts of the input are hidden and the encoder learns from the task of recovering them using the surrounding text. Indic BERT comes from the IndicNLPSuite work and follows the ALBERT architecture. The authors say it was trained on corpora for 12 Indian languages, among them Tamil. The comparison thus contains both encoders aimed at a broad collection of languages and encoders designed for Indian-language use.

The authors use SimpleTransformers with the Hugging Face Transformers software for training. They use early stopping, ending training when F1 fails to improve for three consecutive epochs. An epoch is a pass through the training data. Waiting for consecutive epochs without an improvement lets the monitored score guide the duration of training. The paper does not specify whether this stopping score is macro or weighted F1.

The authors make their implementation available in the PICT-NLP repository named Optimize_Prime-DravidianLangTech2022-Abusive_Comment_Detection. The task data are the Abusive Comment Detection Dataset compiled by the shared-task organizers. The paper describes the procedures, selected settings and results in prose and tables. It gives no mathematical equations for the architecture or training objective.

Experiments and results

What the two tracks contain

The shared task uses labeled comments collected from YouTube. The Tamil track has 2240 training examples, 560 development examples and 700 test examples. The Tamil–English track has 5948 training examples, 1488 development examples and 1859 test examples. The training data supply the text and its associated label. The development and test sizes describe the evaluation partitions available in the task. The paper’s comparison table gives results by track without explicitly naming the split behind every score.

The full inventory described by the authors contains nine labels. Misandry, misogyny, homophobia, xenophobia and the label Transphobic identify different types of hostility. Counterspeech and hope speech cover other functions a comment can serve. The residual category collects comments outside the named categories. The inventory also has a Not-Tamil label. The paper explains that there are no development or test instances for that last category, so the reported classification covers eight labels. The class distribution table accordingly lists the eight categories used in the comparison.

The table reports a large concentration in the residual category for both tracks. Its share is 59% for Tamil and 62% for code-mixed comments. Misandry has shares of 19.34% in Tamil and 14.4% in the code-mixed data. The counts of examples available for categories are therefore highly uneven even among the recognized forms of hostility. The paper labels these figures as a distribution of the data without specifying a partition for the percentages. They describe the imbalance the authors faced without establishing how it breaks down across training, development and test.

The frequencies of less common labels also vary across tracks. The Transphobic label accounts for 0.2% of Tamil data in the distribution table and 2.74% of the code-mixed data. Homophobia is listed at 1.46% for Tamil and 2.91% for code-mixed comments. For counterspeech, the corresponding entries are 6.62% and 5.71%. Hope speech is 3.51% in Tamil and 3.61% in code-mixed data. These differences mean that a category can present a different learning and evaluation problem on each track even though its name is the same.

The remaining class shares show that the imbalance extends beyond the rarest label. Misogyny accounts for 5.62% in Tamil and 3.42% in the code-mixed data. Xenophobia is 4.25% in Tamil and 4.97% in code-mixed comments. These categories have different levels of support from the residual category and from misandry. Their influence on the aggregate depends on whether the metric gives each category equal standing or emphasizes classes according to their frequency.

How the reported measures differ

F1 summarizes the relationship between precision and recall. For a given class, precision asks how often a prediction of that class is correct. Recall asks how many reference examples of that class the system recovers. F1 combines the two as a harmonic mean, so a classifier needs both to achieve a strong score. Predicting a category broadly may recover a large share of its examples while sending many unrelated comments into it. A restrictive classifier can produce fewer false positives while leaving more genuine cases undiscovered. Per-class F1 registers either kind of weakness.

Macro F1 averages the category scores with equal weight. A change in the score for hope speech or the Transphobic category has the same influence on this average as a change for the residual class. Weighted F1 averages the same kind of per-class scores with weights based on the number of reference examples in each class. Strong performance on the residual category can therefore carry substantial influence. These are two views of the same task, and a tie or lead under one averaging rule can give way to a different ordering under the other.

The plain LSTM is the baseline explicitly identified by the authors for the recurrent branch. ULMFiT offers a recurrent alternative with previous training. The BERT pairings give a set of comparisons with conventional classifiers atop the same kind of contextual representation. The direct transformer entries then show how the four pretrained encoders perform when adapted to the labels. The experiments compare these entries against each other. The paper gives no majority-class baseline and lists no leaderboard placement for the team.

Tamil results

MuRIL and XLM-RoBERTa both reach 0.43 macro F1 on Tamil in the results table. Multilingual BERT and Indic BERT each reach 0.40. The comparison between these entries establishes a tie for the lead at the reported precision. It also places all four direct transformers above the plain LSTM and the conventional classifiers in this metric. The strongest recurrent score comes from ULMFiT adapted on combined data, at 0.36 macro F1 on the Tamil track.

Classifiers on the Tamil track by macro F1

MuRIL and XLM-RoBERTa share the lead and the direct transformers occupy the highest positions shown.

Classifiers on the Tamil track by macro F1Vanilla LSTM: 0.21Vanilla LSTM0.21Multilingual BERT with SVC: 0.33Multilingual BERT with SVC0.33ULMFiT adapted on Tamil: 0.33ULMFiT adapted on Tamil0.33ULMFiT adapted on combined data: 0.36ULMFiT adapted on combined data0.36Indic BERT: 0.40Indic BERT0.40Multilingual BERT: 0.40Multilingual BERT0.40XLM-RoBERTa (this paper): 0.43XLM-RoBERTa (this paper)0.43MuRIL: 0.43MuRIL0.43
The numbers
System or settingmacro F1
Vanilla LSTM0.21
Multilingual BERT with SVC0.33
ULMFiT adapted on Tamil0.33
ULMFiT adapted on combined data0.36
Indic BERT0.40
Multilingual BERT0.40
XLM-RoBERTa (this paper)0.43
MuRIL0.43

The Tamil weighted scores group the leading transformers differently. MuRIL reaches 0.68, as does multilingual BERT. XLM-RoBERTa has 0.66 and Indic BERT has 0.65. MuRIL therefore shares the best reported Tamil result under each averaging rule, while the scores of the systems it ties with depend on the rule. Multilingual BERT has a lower macro F1 than XLM-RoBERTa but a higher weighted F1. The table permits that comparison of aggregate behavior. It does not give the per-class scores needed to attribute the reversal to particular categories.

For the recurrent systems, the Tamil-only ULMFiT entry produces 0.33 macro F1 and 0.63 weighted F1 on Tamil. The combined-data variant has 0.36 macro F1 and 0.61 weighted F1. The plain LSTM scores 0.21 macro F1 and 0.61 weighted F1. On the weighted measure, the Tamil-only ULMFiT system leads the other recurrent entries for Tamil. On the equal-class measure, the variant trained on combined data is the strongest recurrent system. This is also a case where the plain LSTM and a stronger macro-F1 system have the same weighted score.

The BERT ensembles give a narrower range at the top of their Tamil results. SVC and the multilayer perceptron each score 0.33 macro F1 in the table. SVC has 0.61 weighted F1, while the perceptron has 0.60. Logistic regression returns 0.32 macro F1 and 0.60 weighted F1. In the narrative the authors single out the support vector approach as their best ensemble on Tamil and give its weighted F1 as 0.6. Since the table lists 0.61 and gives the complete classifier comparison, the table’s value is used here when comparing the entries.

The tree-based options perform less well. XGBoost gives 0.25 macro F1 and 0.59 weighted F1 on Tamil. The random forest yields 0.17 macro F1 and 0.53 weighted F1, and the decision tree yields 0.16 macro F1 and 0.50 weighted F1. The same source of embeddings can support quite different results depending on how the classifier turns the vectors into categories. These findings concern the tested tree configurations with this representation and dataset.

Code-mixed results

MuRIL and multilingual BERT reach 0.45 macro F1 for Tamil–English comments. XLM-RoBERTa follows at 0.44. Indic BERT reaches 0.35, which puts it behind the leading recurrent result and level with the plain LSTM on macro F1. The transformer family therefore supplies the leaders on this track, with appreciable variation among its individual entries. The result also changes which encoder ties with MuRIL. Multilingual BERT shares the code-mixed lead, while XLM-RoBERTa shares the Tamil lead.

Classifiers on the Tamil–English track by macro F1

MuRIL and multilingual BERT share the lead, with XLM-RoBERTa close behind.

Classifiers on the Tamil–English track by macro F1Multilingual BERT with logistic regression: 0.33Multilingual BERT with logisticregression0.33Vanilla LSTM: 0.35Vanilla LSTM0.35Indic BERT: 0.35Indic BERT0.35ULMFiT adapted on combined data: 0.38ULMFiT adapted on combined data0.38ULMFiT adapted on code-mixed data: 0.40ULMFiT adapted on code-mixed data0.40XLM-RoBERTa: 0.44XLM-RoBERTa0.44Multilingual BERT (this paper): 0.45Multilingual BERT (this paper)0.45MuRIL: 0.45MuRIL0.45
The numbers
System or settingmacro F1
Multilingual BERT with logistic regression0.33
Vanilla LSTM0.35
Indic BERT0.35
ULMFiT adapted on combined data0.38
ULMFiT adapted on code-mixed data0.40
XLM-RoBERTa0.44
Multilingual BERT (this paper)0.45
MuRIL0.45

The weighted results alter the picture. ULMFiT adapted on code-mixed data leads the entire reported comparison at 0.68 weighted F1. The plain LSTM gives 0.66, and the BERT embedding system with a multilayer perceptron scores 0.65. Among the direct transformers, XLM-RoBERTa has the strongest weighted result at 0.62, followed by multilingual BERT at 0.61. Table 2 gives MuRIL 0.60 weighted F1 and Indic BERT 0.52. The results narrative gives 0.61 in a sentence describing the two macro-F1 leaders together, so the separate MuRIL and multilingual BERT scores here follow the table.

Selected classifiers on the Tamil–English track by weighted F1

ULMFiT adapted on code-mixed comments leads under weighting by class frequency.

Selected classifiers on the Tamil–English track by weighted F1MuRIL: 0.60MuRIL0.60Multilingual BERT: 0.61Multilingual BERT0.61XLM-RoBERTa: 0.62XLM-RoBERTa0.62Multilingual BERT with multilayer perceptron: 0.65Multilingual BERT with multilayerperceptron0.65Vanilla LSTM: 0.66Vanilla LSTM0.66ULMFiT adapted on code-mixed data (this paper): 0.68ULMFiT adapted on code-mixed data (thispaper)0.68
The numbers
System or settingweighted F1
MuRIL0.60
Multilingual BERT0.61
XLM-RoBERTa0.62
Multilingual BERT with multilayer perceptron0.65
Vanilla LSTM0.66
ULMFiT adapted on code-mixed data (this paper)0.68

Evaluated on code-mixed comments, combined-data ULMFiT scores 0.38 macro F1 and 0.62 weighted F1. Adaptation on the code-mixed data alone gives 0.40 macro F1 and 0.68 weighted F1. The plain LSTM reaches 0.35 macro F1 and 0.66 weighted F1. ULMFiT with adaptation to the target track leads the recurrent branch on both measures for this setting. The relation between the plain and combined recurrent systems depends on the metric. Combined training gives the stronger macro result of those two, while the plain LSTM retains the higher weighted result.

Among the BERT pairings, the multilayer perceptron gives the leading code-mixed scores, with 0.35 macro F1 and 0.65 weighted F1. The logistic regression pairing scores 0.33 macro F1 and 0.64 weighted F1. SVC reaches the same weighted result of 0.64 with a macro F1 of 0.32. Thus two downstream classifiers can achieve the same weighted score while separating slightly on the equal-class measure. The perceptron leads the ensemble entries on both measures on this track.

The lower ensemble scores again come from tree-based classifiers. The decision tree and random forest each give 0.16 macro F1 and 0.52 weighted F1 on Tamil–English. XGBoost gives 0.26 macro F1 and 0.60 weighted F1. XGBoost improves on the other tree entries under both averaging rules. It trails the leading ensemble options on both. The gap between the tree entries and the perceptron concerns the end-to-end classification results with BERT embeddings and the authors’ training procedure.

The leaders depend on how categories count

The authors’ main conclusion about the leading systems follows macro F1. On that measure, a direct transformer shares or holds the leading score across both tracks, and MuRIL shares the lead in each. Weighted F1 picks out a different strength of the recurrent branch. The best code-mixed weighted result belongs to ULMFiT adapted on code-mixed comments. Giving each label equal influence raises the relative standing of the leading transformers, while giving categories influence according to their frequencies favors ULMFiT on that track.

The results also answer two narrower comparative questions. A pretrained encoder can be useful as a provider of comment embeddings, because attaching different conventional classifiers yields a range of outcomes. Direct adaptation of a transformer can give a stronger macro result on the same track, as multilingual BERT illustrates when compared with its own vector-based pairings. The comparison involves complete training arrangements. Direct adaptation and downstream classification can differ in their search and training settings as well as in where the classifier learns.

The difference between the Tamil and code-mixed rankings is equally important. MuRIL is a consistent macro-F1 leader across the benchmark’s two settings, while the standings of XLM-RoBERTa and multilingual BERT depend on the track. ULMFiT shows a different pattern, with a stronger weighted result from target-specific adaptation in both settings and a stronger Tamil macro result from combined adaptation. These comparisons describe performance on different collections of comments. They leave the effect of each track’s language format intertwined with its data size and label distribution.

What the ablations show

The paper gives no dedicated numerical ablation table and instead offers directional comparisons for text cleaning and class balancing, a scored comparison of ULMFiT training sets, and observations about which labels were recognized more successfully.

Cleanup helps some systems and hurts others

The comparison of original and processed text reports a consistent direction within the recurrent group. The authors say cleaning improves its performance. They report the same direction for the transformers apart from MuRIL. For MuRIL and the systems that pass a multilingual BERT embedding to another classifier, the better results come from the original comments. The finding concerns the decision to apply the full cleaning package under the configurations the team tried.

The two ways of using multilingual BERT are a particularly instructive comparison. When the authors adapt multilingual BERT directly to classify comments, it belongs to the group reported to benefit from cleaning. When its embeddings go into the downstream classifiers, the original text works better. The pretrained encoder’s name therefore does not settle which treatment of input is appropriate. The downstream use of the representation, together with any other settings chosen for the complete system, helps determine the outcome.

Because cleanup combines deletions with emoji replacement, the observation cannot identify a particular cue as the source of a gain. MuRIL might respond to a changed representation of punctuation, stop words, URLs, emojis or a combination of those operations. The paper gives neither separate scores for individual changes nor a label-level breakdown. The fact that the authors translate a laughing emoji into a Tamil expression gives a concrete example of their intent, while the result evaluates the broader treatment.

Resampling changes how the systems learn from the available labels

In the balancing experiments, the authors favor combined over- and undersampling for the transformer and ensemble branches. This changes the composition of the training examples while keeping the total length fixed. For the recurrent approaches, the paper reports a loss in performance with this procedure. The systems therefore respond differently to a redistribution of examples, even though all are trained to make the same kind of prediction.

The class weighting result is more specific. The paper identifies a gain for the pairing of M-BERT vectors with logistic regression. It does not give a gain for each classifier or compare class weighting with every sampling method through reported scores. This makes the logistic regression observation evidence about that pairing. It offers no quantitative measure of the improvement and leaves open how it was distributed across labels.

These choices address overall frequencies, while the headline metric is computed from performance in individual categories. A procedure could increase the attention paid to a rare class during training and still lead to new confusions with related classes. The aggregate directions reported by the authors do not show which of those effects occurred. They establish that the usefulness of balancing depends on the classifier, with the relative merits of oversampling, SMOTE and weighting left largely unquantified.

Combined training produces different trade-offs on each track

The ULMFiT comparison has numerical entries for both training choices. On Tamil, adapting ULMFiT on the combined dataset moves it to 0.36 macro F1, compared with 0.33 after Tamil-only adaptation. The weighted ordering goes the other way, with 0.61 for the combined version and 0.63 for the Tamil-only version. Because macro F1 treats the labels equally, the combined result favors the average across categories. The weighted score favors specialization in the target track. Those totals cannot show which category improved or whether only a small set of categories drove the change.

For code-mixed comments, adapting ULMFiT on the target dataset gives 0.40 macro F1 and 0.68 weighted F1. Combined adaptation gives 0.38 macro F1 and 0.62 weighted F1. Here the target-specific version leads under both measures. The comparison gives a direction for adding the other track to training in each setting. It does not isolate the reason for the difference. The combined dataset changes the amount and composition of the training input at the same time, including which language patterns and label frequencies the recurrent system sees.

Some labels are easier for the submitted systems

The conclusion gives a qualitative account of category performance. For Tamil, the authors identify homophobia and misandry as better predicted than transphobic content and counterspeech. For code-mixed comments, they point to xenophobia, misandry and transphobic content as categories with stronger recognition. They also say the systems classify comments without abuse well in both settings. These statements supplement the averages by indicating that recognition varies with the label and with the track.

The Transphobic category provides the clearest illustration of that change. Its class share is smaller on the Tamil side in the authors’ distribution table, and their description of recognition is weaker for Tamil than for code-mixed comments. That pairing of observations is compatible with the idea that more examples help, while leaving room for other differences between the comments. Homophobia, which the authors describe as comparatively well recognized in Tamil, is also uncommon. Frequency alone therefore cannot account for all the distinctions in their qualitative assessment.

The paper describes these category observations in terms of how accurately labels were predicted. It does not present the counts of correct and incorrect decisions underlying those judgments. There is consequently no basis for identifying the particular category pairs that the systems confuse, nor for deciding whether poor recognition of a category primarily reflects missed examples or false alarms. The analysis maps out differences worth noticing within the aggregate results, with the detailed error patterns remaining open.

Limitations

The scope and next step the authors identify

The authors frame the study around the Tamil abusive-comment shared task. They describe their aim as finding effective classifiers for Tamil and Tamil–English comments under that task’s setup. Their conclusion reports uneven performance among labels, including weaker recognition of transphobic content and counterspeech on Tamil. This shows an outstanding problem within the target data. Stronger aggregate performance leaves some of the behavior the task was designed to measure less reliably recognized.

The authors handle one coverage limit directly. Not-Tamil is part of the original label inventory but has no development or test examples. The study proceeds with the remaining eight labels. The resulting scores consequently describe a classifier’s performance over that set. They provide no test of how the systems handle comments requiring the omitted label. The decision reflects the available benchmark examples, and it matters for anyone interpreting the name of the dataset as a description of everything that was evaluated.

The paper also identifies a proposal for additional work. It suggests trying ensemble methods based on genetic algorithms in order to improve performance. Such a method would search over ways of constructing or combining classifiers, whereas the tested ensembles use a particular encoder with an individual downstream decision rule. The suggestion remains a future direction in the paper. There are no reported gains from such a search.

What the published comparisons leave open

The paper’s evidence comes from the benchmark’s YouTube comments. The site supplies the setting in which the systems are trained and compared. The paper includes no evaluation on comments from another platform or from a later collection. It therefore offers no direct measure of generalization to differently written conversations. The language setting has a similar boundary. Pretraining covers more languages than the shared task, while the measured results cover only the Tamil and Tamil–English tracks.

The two tracks also differ in their training sizes and class mixes. A higher macro score on code-mixed comments cannot on its own establish that code-mixed abuse is easier to recognize. Even the same system is learning from a different amount of material, and what counts as a typical comment or category example can change. Comparisons within a track hold the benchmark task fixed more directly. Comparisons between tracks describe the joint outcome of changes in language format, input distribution and the amount of available training data.

The reported results are point estimates. The paper gives no variation over repeated runs or uncertainty intervals. The leading macro-F1 scores appear as ties at the precision used in the table. Nearby results deserve the same care. For example, the code-mixed entry of 0.44 macro F1 for XLM-RoBERTa and the leaders at 0.45 give an ordering for the reported scores. Without run-to-run variation or a statistical comparison, they do not establish how often the same ordering would recur under retraining.

The reporting of evaluation splits also limits comparison. The paper identifies train, development and test sizes and provides a table of aggregate results. It does not explicitly associate each table entry with a named split. For the BERT ensembles it describes a cross-validation range and the metric used for tuning, while the direct transformer section gives the early-stopping criterion in general terms. Those details explain parts of the fitting procedure. They leave the exact path from training and selection to the figures in the results table incompletely specified.

Some of the treatment choices are similarly underspecified. The paper describes which kinds of text are cleaned and sketches the emoji conversion, with no complete rule list. It explains the idea of reallocating classes at fixed dataset length, while leaving the target frequencies and exact sampling settings unclear. It names SMOTE without detailing the representation on which it operates. Such omissions limit how closely a reader can reproduce a specific configuration from the paper itself or attribute a reported performance difference to a single change.

What the measures cannot establish about moderation

Macro and weighted F1 offer different summaries of the shared task’s labels. Neither provides the actual balance of missed abuse and false accusations for a given category. In a moderation setting, falsely labeling counterspeech as abuse has a different consequence from missing a hostile comment. The paper does not give a confusion matrix, category precision and recall, or examples of such errors. Readers can see that counterspeech is relatively difficult in the Tamil results as described by the authors, but cannot tell which other labels absorb its mistakes.

The label inventory also mixes forms of hostility with forms of supportive or reactive speech. F1 measures agreement with the supplied labels. The paper does not measure whether the audience was harmed, whether an intervention was appropriate or whether the identified comments would have received the same judgment with the full conversation available. The examples are presented as comments paired with categories, and the method takes comment text as input. The experiment leaves open how conversation history or the circumstances of posting would change the judgments.

The annotations themselves shape the task. The paper describes the categories and their distribution, while offering little detail on how annotators resolved ambiguous cases. Some labels are scarce enough for the behavior of individual examples to matter to their reported performance. Macro F1 gives those categories equal importance in the overall average, which is valuable for the comparison. Without a breakdown by class and information about agreement, the average cannot show how stable those judgments or scores are for uncommon cases.

Finally, a lead by a particular pretrained encoder leaves several explanations possible. The encoder can differ from alternatives in architecture, training material and the way it handles linguistic input. Preprocessing and sampling can differ too, as the authors’ directional comparisons show. MuRIL’s shared macro-F1 lead on both tracks establishes its standing among the systems evaluated. It does not demonstrate that Indian-language specialization by itself caused the outcome. The paper evaluates task performance for complete approaches, with narrower causes beyond the scope of its controls.

What came after

Specific later uses of the Optimize Prime approach are undocumented here. The paper itself closes by proposing a search over ways to build ensembles through genetic algorithms. That proposal follows from an experiment in which the authors tried several classifiers on top of multilingual BERT representations and found that the strongest pairing depended on the track. It remains an open direction in the published work. The demonstrated contribution is the comparison across recurrent classifiers, direct transformer adaptation and BERT-based pairings, with macro and weighted F1 showing how the same benchmark can favor different systems.

Cite

Cite as Shantanu Patankar, Omkar Gokhale, Onkar Litake, Aditya Mandke and Dipali Kadam. 2022. Optimize_Prime@DravidianLangTech-ACL2022: Abusive Comment Detection in Tamil. Proceedings of the Second Workshop on Speech and Language Technologies for Dravidian Languages.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.dravidianlangtech-1.36

@inproceedings{patankar2022optimize,
  title = {{Optimize\_Prime@DravidianLangTech-ACL2022: Abusive Comment Detection in Tamil}},
  author = {Shantanu Patankar, Omkar Gokhale, Onkar Litake, Aditya Mandke and Dipali Kadam},
  booktitle = {Proceedings of the Second Workshop on Speech and Language Technologies for Dravidian Languages},
  year = {2022},
  doi = {10.18653/v1/2022.dravidianlangtech-1.36},
  url = {https://doi.org/10.18653/v1/2022.dravidianlangtech-1.36}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/patankar-2022-optimize-prime-dravidianlangtech-acl2022-abusive/