Mitigating Abusive Comment Detection in Tamil Text: A Data Augmentation Approach with Transformer Model
Paper · 2023 · Reshma Sheik, Raghavan Balanathan and Jaya Nirmala S.
Summary
An abusive comment detector has to do more than recognize offensive words. It may need to distinguish an attack from a reply that challenges it, and to identify whom an attack targets. That is a difficult training problem when some kinds of comments are much rarer than others. Sheik and colleagues study this problem on a collection of labeled Tamil YouTube comments. The task is to choose among labels for several kinds of abuse, alongside categories such as counter-speech, hope speech, and None-of-the-above. The authors compare multilingual classifiers and ask whether the strongest one can learn more from rewritten versions of the comments already available for training.
The strongest classifier on the original comments was MuRIL, a system pretrained on Indian languages. The authors then tested changes to the training text. Removing stop words or emojis yielded lower macro F1 than leaving the text intact. Replacing English words with Tamil equivalents gave a small improvement. For data augmentation, the authors used Google Translate to translate Tamil comments into English or Hindi and then back into Tamil. The returned Tamil text supplied additional training examples. The premise was that translation could change how a comment was expressed while preserving the basis for its original label.
On the Tamil test set, MuRIL trained on the original comments reached a macro F1 of 0.44, compared with 0.32 for the earlier CEN-Tamil baseline. With lexical replacement and an English round trip, MuRIL reached the study’s highest macro F1, 0.47. Macro F1 gives each class equal weight, so it can reveal changes that overall accuracy obscures when frequent labels dominate a dataset. The setting using both English and Hindi round trips reached the highest test accuracy, 0.69, while its macro F1 was 0.42. The choice of metric therefore changed which translation setting looked strongest.
The class-level results were uneven. In the paper’s comparison with the baseline, F1 rose for Xenophobia and Hope-Speech and fell for Misandry and Misogyny. Transphobic had an F1 of 0.00 for both systems, and the authors report that only six test comments belonged to that class. The experiments show that a particular translation route helped on the paper’s primary metric. The individual class results show where the task remained difficult, even with a higher aggregate score.
Deep dive: Mitigating Abusive Comment Detection in Tamil Text: A Data Augmentation Approach with Transformer Model
This study tests whether translating Tamil YouTube comments out and back improves the detection of different kinds of abusive language. · about 34 minutes to read
The problem and its context
Classifying a comment means deciding what it is doing
The authors start from the harm that abusive comments can cause to people and groups. They describe harassment and other forms of online abuse as problems that grew more pressing as social platforms became places for exchanging information at scale. Offensive language can be part of an attack, but identifying abuse also involves deciding whether a comment directs hostility at someone, what kind of hostility it expresses, and how it relates to the surrounding exchange. The paper treats automatic categorization as a way to help assess abusive material. Its experiment concerns the assignment of categories to written comments.
The technical task is text classification. A classifier receives a comment and chooses a label from a fixed inventory. In this dataset, identifying a comment as abusive in a broad sense would leave part of the task unfinished. A prediction must also distinguish among categories such as Misogyny, Homophobia, and Xenophobia. The categories turn a broad question about whether a comment is abusive into a set of more specific decisions, some of which the training data represent much better than others.
The inventory also contains labels for different kinds of non-abusive speech. The authors describe counter-speech as a response that uses reasoned argument and avoids aggression. Hope speech concerns positive accounts of facing or overcoming adversity. A comment that discusses prejudice in order to rebut it can share vocabulary with a comment that expresses prejudice. Likewise, a hopeful account can refer to the same circumstances as a hostile comment. These are implications of the label definitions. The text of a comment matters in part because of the purpose it serves, and a word can provide different evidence depending on that purpose.
Some labels specify other boundaries of the task. Not-Tamil lets the dataset designate a comment by language. None-of-the-above gives it a place for comments outside the listed categories. The latter label is best read relative to that inventory. Choosing it says that the comment falls outside the other choices under the dataset’s labeling scheme. A classifier tested on that inventory is being evaluated on those boundaries, including the decisions the labels require about which comments belong together.
Scarcity and imbalance are different problems
The authors situate the study in low-resource language processing. They describe Tamil as a Dravidian language spoken by Tamil communities in South Asia and as one of India’s 22 scheduled languages. The scarcity at issue concerns resources for natural language processing, particularly the difficulty of obtaining enough suitable labeled data. The size or social importance of a language community and the availability of annotations for a particular experiment are separate matters. A task can have a clearly defined set of labels and still give a classifier little practice with some of them.
Scarcity affects the task at more than one level. There can be relatively few labeled comments in total, and the comments that do exist can be distributed unevenly among the categories. Additional examples of a common category expand the collection while leaving a rare distinction poorly represented. Conversely, a procedure that repeats underrepresented examples can change how often the system encounters those labels without supplying new instances of the language people use to express them. The study’s training procedures address these questions in different ways.
Tamil comments also need to be understood as social-media writing. A collection designated as Tamil can contain individual English words within otherwise Tamil comments. The paper treats this as a reason to test lexical replacement, in which the English words are changed to Tamil equivalents. Related work discussed by the authors treats code-mixing, or using material from different languages in the same text, as a challenge for hate-speech detection. The immediate question in this experiment is narrower. It asks whether changing some of that vocabulary helps a classifier applied to this Tamil collection.
The paper connects its study to multilingual and cross-lingual NLP through the classifiers it compares. A pretrained multilingual system brings prior experience with text to the classification task. It can then be adapted using the available annotated comments. Data augmentation operates at a different stage. It changes the examples used for that adaptation, with the aim of expanding the ways a comment can be expressed in the training data. The authors examine both choices because either could matter when labeled Tamil comments are scarce.
Earlier approaches to abuse and related kinds of speech
The authors describe earlier work on the boundary between abusive language and free expression. They also discuss hate-speech detection across several mixtures of Indic languages and English. The cited work compares machine-learning and deep-learning approaches and treats mixed-language writing as a complication for recognizing harmful content. The connection to this study is the need to classify short social-media text whose linguistic form can vary even when the kind of speech is similar.
Hope-speech detection supplies a related example. The paper describes work on short, informal texts in English, Malayalam, and Tamil that tried a range of machine-learning methods. According to its account, simple approaches could work satisfactorily with sufficient training data. That work also explored cross-lingual transfer by adapting XLM-RoBERTa for hope-speech detection. For the Tamil abuse study, the relevant precedent is that a pretrained multilingual system can be adapted to a narrowly defined social-media classification task. Hope speech also appears as its own label in the dataset used here.
The closest earlier comparison is CEN-Tamil, a system from the Tamil abusive-comment detection shared task. The authors describe a procedure that used TF-IDF with character-level word-boundary information. TF-IDF gives weight to text features based on their occurrence in an item and their prevalence across the collection. CEN-Tamil also used the Random Kitchen Sink algorithm to produce numerical features. A support vector machine with a polynomial kernel made the final classification. In that pipeline, the feature extraction procedure determines how the comment is represented before the classifier chooses a label.
Other work discussed in the paper compared feature extractors and classifiers on Tamil and on mixed Tamil–English comments. The authors also describe Tamil hate-speech work that studied different representations and applied stemming, which reduces related word forms to a shared stem. That work examined classifiers including logistic regression and support vector machines, as well as systems that pool predictions. As characterized by Sheik and colleagues, the study gave a reason to examine how Tamil text is represented before classification and to pay attention to class imbalance when judging the result.
These precedents put several choices on the table. A system can change how it represents a comment, how it learns to classify those representations, or which labeled examples it sees. Sheik and colleagues first ask which of several pretrained classifiers performs best with the original comments. They then use that classifier to study changes to the input and additions to the training data. The structure of the experiment follows that distinction. The comparison across classifiers addresses the starting system, while the later comparisons address what to give the selected system during training.
The method, step by step
From labeled comments to a Tamil classifier
The starting point is a collection of YouTube comments, each paired with a category in the training split. The authors use the labels as examples of the decisions the classifier is expected to make. They first train several Transformer classifiers on the original data. A Transformer can use the surrounding text when representing a word or part of a word. That is relevant here because a classification decision can depend on the relationship among expressions within a comment. The authors compare the pretrained systems before choosing which one to use for their experiments with the training text.
They then test several ways of preprocessing the comments. One removes stop words, the common terms selected for omission before classification. Another removes emojis. The third substitutes Tamil words for English words that occur inside the text. These trials are separate settings. Describing them as a sequence of operations all performed on the final input would misrepresent the comparison. In the later augmentation setting, the authors retain lexical replacement and retain the original stop words and emojis.
The next stage adds rewritten Tamil examples. A comment is sent through a translation route with English or Hindi as the intermediate language and Tamil as the destination. The intermediate text is a means of obtaining a different wording of the comment. The classifier is still trained to categorize Tamil comments. The authors describe oversampling as a way to address imbalance in the augmented training data. This gives minority-class instances more exposure by duplicating examples.
Selecting and training a classifier for Tamil comments
The steps in order.
This diagram shows the progression of the study. The translation step branches into experimental settings, and the authors compare those settings with a reference condition that omits augmentation. The paper’s illustration of round-trip translation concerns the passage from the original Tamil through an intermediate language and back into Tamil. The method relies on the returned comment being usable for the same classification task as the original.
Choosing the pretrained starting point
The paper compares MuRIL, XLM-RoBERTa-base, M-BERT, and IndicBERT. All are used as pretrained starting points for the Tamil task, but the descriptions in the paper emphasize different sources and scopes of pretraining. That makes their comparison relevant to a resource-limited classification problem. The authors can use an existing representation of text before training on their smaller collection of task-specific labeled comments.
MuRIL is based on BERT. The paper describes it as pretrained on 17 Indian languages, with transliterated counterparts included. Transliteration represents text in another script. That differs from translating the comment’s meaning into a different language, as the authors do later to create training examples. Here the transliterated material belongs to the description of how the pretrained system was built. It is part of the system the authors begin with, separate from the processing they apply to the YouTube comments.
XLM-RoBERTa extends RoBERTa to multilingual use. The paper describes its pretraining data as 2.5TB of filtered CommonCrawl text covering 100 languages. Its role in the experiment is to offer a multilingual starting point with broad language coverage. The comparison tests that starting point as a whole. The amount of pretraining text, its origin, and its language coverage belong to the description of XLM-RoBERTa, rather than to treatments the authors vary independently.
M-BERT is the multilingual BERT system. In the paper’s description, its pretraining covers 104 languages and uses a masked objective. A masked objective hides part of an input and trains the system to predict what was hidden from the surrounding material. That task takes place during pretraining. When adapting M-BERT to this benchmark, the authors use it to assign categories to comments. The distinction matters because the benchmark measures those category decisions. It contains no test of how well M-BERT recovers hidden text.
IndicBERT is built on ALBERT. The paper describes pretraining on 12 Indian languages, including Tamil, using a corpus of around 9 billion tokens. Tokens are the units of text a system processes. Like MuRIL, IndicBERT represents a choice centered on Indian languages. The experiment can show how the particular systems compare after adaptation. The descriptions of their pretraining explain why their comparison is interesting, while leaving open which feature of any one system accounts for its eventual performance.
Adapting the systems to the labeled task
The authors use SimpleTransformers in the Hugging Face ecosystem to train the classifiers. This adaptation is fine-tuning. In this case it means using comments with known labels to adjust a pretrained system so that it can predict the category of a comment. The training data supply the decisions it learns from. The validation data give the authors a separate basis for comparing candidate training settings. The test data are the basis for the reported comparison of classification performance.
The paper says the authors chose hyper-parameters by trying different values and judging performance on validation data, with macro F1 as the target. Hyper-parameters are settings used to run training. They govern such things as the size of a training batch or the step size used to adjust the classifier. Optimizing macro F1 at this stage gives each class equal influence in the chosen validation measure. Selecting on accuracy would answer a different question, since an improvement on a frequent label can affect accuracy more than an improvement on a rare label.
The training settings reported are 3 epochs and a learning rate of 4e-5. An epoch is a pass through the training data. The learning rate governs the scale of adjustments made during optimization. The paper reports a maximum sequence length of 128 and a batch size of 32. Sequence length sets the maximum size of the input representation used in training. Batch size specifies how many examples the training procedure processes together. These are settings of the classification run. They should be distinguished from the amount of text used to pretrain any of the systems or the counts of comments in the dataset splits.
The optimizer is AdamW. An optimizer governs how the changes suggested by the training examples are applied to the system’s parameters. The paper cites the work on Adam when naming that optimizer. It reports the settings selected for training and the validation metric used to choose them. The comparison thus concerns the systems as trained in this study. The descriptions establish the main training choices without specifying a complete search over all values that could have been tried.
What the preprocessing trials change
Stop-word removal discards selected common words from the text supplied to the classifier. The rationale for trying it is that some frequent words might add little to the decision. In a comment, however, frequent words can contribute to how expressions relate to one another. Dropping them changes the context the classifier receives. The experiment tests the effect of this deletion on classification, leaving the question of which particular deleted words matter for individual decisions open.
Emoji removal targets another part of the comment. An emoji can accompany a statement and influence how a reader takes it. Removing it produces an input with less of the original comment’s expressive material. The authors test the change directly. Its comparison with intact text measures what happens to the aggregate scores under the removal procedure. The experiment does not assign separate functions to emojis or record which particular cases become easier or harder to classify.
Lexical replacement changes words instead of deleting them. The authors identify English words in the text and replace them with Tamil equivalents. The scope of the operation is narrower than a round trip through another language. It changes the selected words in the comment while leaving the task and its labels in place. The authors’ motivation is to make the text easier for the Tamil classifier to process. The procedure can be understood as an attempt to reduce some vocabulary variation associated with English words occurring in Tamil comments.
The distinction between these trials is important for interpreting the later results. Removing a stop word or emoji removes a piece of the original expression. Lexical replacement tries to carry the content of an English word into Tamil. Round-trip translation can produce a different version of a larger stretch of text, and the resulting comment adds to the training examples. All of these operations change the material the classifier sees, but they intervene at different points and supply different kinds of evidence.
Generating additional comments through translation
The augmentation method uses machine translation as a rewriting procedure. Google Translate takes Tamil text into the selected intermediate language. The service then translates the result back into Tamil. For the English setting, the comment makes the passage from Tamil to English and back to Tamil. For the Hindi setting, Hindi occupies that intermediate position. The authors also evaluate a setting using both languages and describe it in terms of double round trips.
The intermediate language matters because it is part of the transformation that produces the new wording. The returned Tamil can express the same point with different words or phrasing. That possibility is the reason to use a translation route even though the starting and ending languages are the same. The resulting training material is synthetic in the sense that it is derived from existing comments through translation. It supplies alternate expressions of material that is already represented in the labeled collection.
For a returned comment to serve as a labeled training example, its category needs to remain applicable. That assumption is particularly consequential here. The distinction between an attack and a response to an attack can turn on the direction of a statement. Categories that identify a target can turn on whom a phrase refers to. The method is useful to the extent that the changed wording presents a fresh example of the same labeled kind of comment. The translation step itself supplies the rewrite. The study evaluates the resulting training procedure by the performance of the classifier.
Oversampling addresses a different part of the data problem. The authors describe duplicating instances from minority categories in the augmented training set to make the category distribution more balanced. Duplication raises the frequency with which training uses an existing example. Generating a translated variant can change what the example looks like. The former alters the exposure to underrepresented categories, while the latter offers additional wording. Both enter the description of the training procedure, which becomes important when deciding how narrowly to attribute any gain to translation.
The paper identifies the Abusive Comment Detection Dataset as its data source and names the ICON-ML/ACDT repository for its implementation. Its experimental description establishes which preprocessing choices were compared, which classifier went forward to augmentation, and which translation routes it tested. The reported procedure concerns the preparation of training data for MuRIL. The decision being evaluated remains the assignment of a benchmark label to a Tamil comment.
Experiments and results
The benchmark and its splits
The Abusive Comment Detection Dataset contains comments collected from YouTube and categorized for the Tamil shared task. The training split contains 2240 samples, validation contains 560, and test contains 699. A labeled training entry connects the comment text to the category the classifier is expected to learn. The validation split is used when choosing training settings. The test split is where the authors report how well those choices carry over to a separate group of comments.
The dataset uses nine classes. Misogyny covers abuse aimed at women or particular gendered groups. Homophobia concerns gender-based harassment expressed through derogatory language, and Transphobic covers remarks belittling transgender people. Xenophobia refers to hostility toward people or things treated as foreign or alien. Misandry is another named abuse category. The dataset also includes Counter-Speech and Hope-Speech, along with Not-Tamil and None-of-the-above. Together, those labels require distinctions among forms of abuse as well as decisions about other kinds of comments.
The authors illustrate the class distribution in a figure and discuss imbalance as a reason to oversample during training. Their most concrete account of rare test support concerns the Transphobic category, which has only six test comments. Test support is the number of true examples of a category in the set being evaluated. It is different from frequency in the augmented training data. Repeating underrepresented training examples changes the material used for learning. The test support still determines how much direct evidence the evaluation supplies about each class.
The labels also explain why overall classification accuracy is only part of the evaluation. Confusing Hope-Speech with None-of-the-above and overlooking a Transphobic comment both contribute to the count of wrong predictions. Accuracy groups those errors together. Class-level measures can show which categories account for the successes and failures. Macro averaging, in turn, makes the aggregate reflect how the system does across the labels, including those with little test support.
What the reported measures capture
Accuracy is the proportion of comments whose predicted label matches the recorded label. It treats each comment as an equal contribution to the score. That makes it easy to interpret as an overall rate of correct decisions on this particular test set. It also means the distribution of that set matters. A frequent class has more opportunities to contribute correct answers, while even a serious failure on a rare class can make a relatively small impression on overall accuracy.
Precision and recall ask different questions about a particular class. Precision concerns the comments assigned that label and asks how many belong there. Recall concerns the comments that truly have that label and asks how many the classifier finds. A system that rarely uses a particular label can miss many examples of it. A system that uses the same label too freely can assign it to comments recorded under other categories. The paper reports each measure because the two kinds of performance can move differently.
F1 combines precision and recall in a measure that is sensitive to weakness in either. The paper reports F1 for individual classes and in aggregate. Macro F1 averages the class-level F1 scores with equal influence for each class. Weighted F1 gives classes influence according to their support. Macro precision and macro recall likewise give individual categories equal weight in their respective averages. Their weighted counterparts give more influence to categories that have more examples.
The validation objective makes macro F1 the main measure for following the study’s argument. Accuracy and weighted F1 still show how a change appears when common categories have more influence. When the measures disagree, they describe different features of the same predictions. A high accuracy can coexist with weakness across some classes. A higher macro F1 can coexist with fewer correct comments overall if the improvement occurs where class support is smaller. The paper’s translation settings give a concrete instance of that distinction at the aggregate level.
The earlier baseline and the original training text
CEN-Tamil is the previously reported system used for comparison. Its macro F1 is 0.32. The paper also gives its macro precision as 0.38 and its macro recall as 0.29. The baseline row does not report accuracy or weighted scores. The direct benchmark comparison with CEN-Tamil is therefore strongest on the measures that appear for both the earlier system and the authors’ classifiers. It is also a comparison of complete systems, since the earlier feature-based pipeline differs from the pretrained classifiers used in this study.
All the pretrained classifiers in the paper’s original-data comparison exceed the reported baseline on test macro F1. MuRIL reaches 0.44, the highest value in that comparison. M-BERT reaches 0.43, XLM-RoBERTa-base reaches 0.42, and IndicBERT reaches 0.35. These results establish the basis for choosing MuRIL for the later experiments. The gap between its macro F1 and that of the nearest alternative is small at the displayed precision, so the table is more informative about the ranking under the authors’ setup than about how decisively it would hold under another training run.
Original-data systems and the CEN-Tamil baseline on Tamil test macro F1
MuRIL leads the reported comparison on macro F1.
The numbers
| System or setting | Macro F1 |
|---|---|
| CEN-Tamil baseline | 0.32 |
| IndicBERT | 0.35 |
| XLM-RoBERTa-base | 0.42 |
| M-BERT | 0.43 |
| MuRIL (this paper) | 0.44 |
Accuracy gives a different view of the original-data comparison. MuRIL and M-BERT both reach 0.67 on the Tamil test set. IndicBERT reaches 0.66, while XLM-RoBERTa-base reaches 0.65. Weighted F1 is 0.67 for MuRIL and M-BERT, 0.65 for XLM-RoBERTa-base, and 0.62 for IndicBERT. Thus the metrics that respond more strongly to frequent categories put MuRIL and M-BERT together at the displayed precision, whereas macro F1 gives MuRIL the lead.
Macro precision and recall help locate the differences in that ranking. On the test set, MuRIL has macro precision of 0.48 and macro recall of 0.44. M-BERT has macro precision of 0.45 and macro recall of 0.43. XLM-RoBERTa-base matches MuRIL’s displayed macro recall of 0.44 and has macro precision of 0.42. IndicBERT has macro precision of 0.43 and macro recall of 0.31. These values show how systems with similar overall accuracy can give different results when performance is averaged across categories.
The raw-data comparison also provides a reference for the later results that is more informative than the historical baseline alone. MuRIL has already moved the reported macro F1 from the earlier system’s 0.32 to 0.44 before the authors apply their chosen preprocessing or generate additional examples. The subsequent experiments ask what can be gained by changing the data for the selected classifier. The headline comparison against CEN-Tamil spans both the change in classification system and the later data procedures.
Preprocessing before augmentation
The reference for the preprocessing comparison is MuRIL with no preprocessing. On the test set, it gives accuracy of 0.67 and macro F1 of 0.44. The stop-word removal trial reports accuracy of 0.65 and macro F1 of 0.41. Emoji removal gives accuracy of 0.66 and macro F1 of 0.43. Lexical replacement reaches accuracy of 0.67 and macro F1 of 0.45. The authors carry lexical replacement forward because it improves the metric they use to select settings.
The precision and recall columns put that change in perspective. With lexical replacement, test macro precision is 0.47 and macro recall is 0.45. With original text they are 0.48 and 0.44, respectively. The reported macro F1 improvement therefore accompanies higher macro recall and slightly lower macro precision at the table’s displayed precision. Weighted F1 is 0.66 with lexical replacement and 0.67 on the original text. The authors’ choice follows the class-balanced objective stated for validation, and the test results show why that choice would look different if weighted F1 were the deciding metric.
The distinction between the references matters when reading the augmentation results. The original-data comparison starts with raw comments. The augmentation comparison starts with a no-augmentation condition that reports the same scores as the lexical replacement setting. In particular, the test macro F1 reference there is 0.45. Comparing an English round trip with that condition tells the reader more about the addition of translation after the preprocessing choice than a comparison with the older CEN-Tamil score would.
Comparing the translation routes
On the Tamil test set, the English round trip reaches macro F1 of 0.47. This is the highest reported macro F1 in the augmentation comparison. Hindi alone reaches 0.44, and the English-and-Hindi setting reaches 0.42. The no-augmentation reference is 0.45. The record supports a specific finding about the use of English in this procedure. The other routes do not reproduce its improvement in macro F1.
MuRIL translation settings on Tamil test macro F1
The English round trip leads when each category has equal weight.
The numbers
| System or setting | Macro F1 |
|---|---|
| Without augmentation | 0.45 |
| English round trip (this paper) | 0.47 |
| Hindi round trip | 0.44 |
| Hindi and English round trips | 0.42 |
Test accuracy ranks the settings differently. The English-and-Hindi setting reaches 0.69, the highest accuracy in the augmentation comparison. The no-augmentation condition reaches 0.67. The English route reaches 0.66 and the Hindi route 0.65. Thus the setting with the most correct predictions overall has the lowest macro F1 in this group. The paper’s conclusion mentions the gain in accuracy from using both intermediate languages and identifies the English route as best on macro F1.
MuRIL translation settings on Tamil test accuracy
The setting using both intermediate languages leads on overall accuracy.
The numbers
| System or setting | Accuracy |
|---|---|
| Without augmentation | 0.67 |
| English round trip | 0.66 |
| Hindi round trip | 0.65 |
| Hindi and English round trips (this paper) | 0.69 |
The English route’s test macro precision is 0.47, the same displayed value as for the condition without augmentation. Its macro recall is 0.48, compared with 0.45 for that reference. The Hindi route reaches macro precision of 0.45 and macro recall of 0.44. The setting using both languages reaches macro precision of 0.46 and macro recall of 0.4. These are averages across categories. The English result is consistent with better recovery of classes on average, though the table does not show which classes drive the change from the unaugmented condition.
Weighted F1 varies little across these tests. It is 0.66 for the unaugmented setting and the English setting, 0.65 for Hindi, and 0.67 for the setting that uses both languages. The authors characterize weighted F1 as broadly consistent across the augmentation experiments. The displayed values support that reading. They also underline the different conclusion available from macro F1, for which the choice of route matters more visibly in this comparison.
The results by class
The paper’s class-level table gives a comparison between the baseline and the authors’ best-performing system as those columns are labeled. For Xenophobia, the listed test F1 values are 0.18 for the baseline and 0.43 for the authors’ system. For Hope-Speech, the values are 0.26 and 0.41. Homophobia moves from 0.67 to 0.71. The largest changes among these improving rows occur where the baseline had relatively low F1. Those improvements help explain the importance of looking at the categories individually.
Several displayed categories move in the other direction. Counter-speech has test F1 of 0.35 for the baseline and 0.32 for the authors’ system. Misandry has 0.71 and 0.64. Misogyny has 0.54 and 0.50, and None-of-the-above has 0.83 and 0.76. That last category retains the strongest F1 among the displayed classes for the authors’ system. The fact that it declines alongside gains elsewhere illustrates how a better aggregate can coexist with weaker results on specific labels.
Transphobic has a displayed test F1 of 0.00 in both columns. The authors connect this to the class having only six test comments. The table gives F1 alone for this comparison, so it supplies no separate account of false alarms and missed cases for the category. It also gives no Not-Tamil row, although Not-Tamil appears in the label inventory. The table can be read as evidence about the displayed categories. The reported aggregate values come from the paper’s separate system and augmentation comparisons.
What the ablations show
Removing text can make the classification harder
The preprocessing trials are the paper’s most direct comparisons of changes to the input. For MuRIL, the authors report a condition with the original text and individual conditions for stop-word removal, emoji removal, and lexical replacement. Holding the classifier choice fixed makes these comparisons more focused than the comparison among pretrained systems. The experiment tests how the observed scores respond when each preprocessing operation is applied in the reported setup.
Stop-word removal weakens every displayed test measure relative to the condition with original text. The reduction is visible in macro F1 and in both of its related averages. Macro precision is 0.43 with stop-word removal against 0.48 without preprocessing. Macro recall is 0.4 against 0.44. The experiment gives a practical reason for retaining those words here. It leaves the linguistic explanation open. A common word could contribute to the structure of a comment, or the lower scores could arise from how the procedure changes the inputs more generally. The reported aggregates cannot decide between those possibilities.
Emoji removal has a smaller effect on macro F1, which is 0.43 compared with 0.44 for the original text. Test macro precision is 0.47 and macro recall is 0.41 under emoji removal. The decline is compatible with some emojis conveying information the classifier can use. It could also reflect other effects of changing the input. The experiment does not trace predictions back to particular emojis, distinguish their meanings, or show how much the change depends on categories with different patterns of use. Its direct finding is that deletion failed to improve the evaluated setting.
The comparison between the two deletion trials matters because both operations are plausible ways to simplify short text. Here their removal yields no advantage on the primary metric. The paper consequently keeps the material in the subsequent procedure. This is a decision based on the measured conditions. It does not require assuming that every common word or every emoji is individually useful for understanding abusive comments.
Lexical replacement changes the balance of the scores
Lexical replacement produces the only increase in test macro F1 among the individual preprocessing trials. Its accuracy ties the original-text condition at 0.67. Its weighted F1 is slightly lower. Macro recall improves while macro precision is slightly lower. Taken together, these measures give the improvement a specific interpretation. Under class-balanced evaluation the substitution is favorable, with a change in how well classes are recovered on average. It has no displayed advantage in the total fraction of comments correctly labeled.
The paper’s motivation gives a plausible interpretation of this operation. Replacing English words with Tamil equivalents can bring some vocabulary closer to the language emphasized by the classifier. But the comparison changes the input directly and reports aggregate results. It does not test whether the advantage is concentrated in comments containing substantial English material, whether certain types of replacements account for it, or whether the original and substituted words carry exactly the same connotations. The observed effect belongs to the substitution procedure as applied to this dataset.
The preprocessing results also establish what remains fixed in the next set of comparisons. The no-augmentation condition uses the results of the chosen preprocessing setting as its reference. The English route is therefore assessed as an addition to lexical replacement. The paper does not present a parallel English round trip without that replacement. As a consequence, the experiments show the effect of adding the English route in the chosen setting while leaving its interaction with lexical replacement open.
The intermediate language changes which outcome improves
The translation trials vary the route for generating additional Tamil text. The English setting gives the strongest macro F1 and macro recall in the augmentation comparison. The Hindi setting gives a lower macro F1 than the no-augmentation reference. Using both intermediate languages raises overall accuracy but leaves macro F1 below the reference. The rankings are especially informative because they come from the same benchmark and classifier choice. They show that the reported success depends on how the additional text is generated and which measure defines success.
One interpretation is that the routes offer different kinds of variation in the Tamil returned by translation. That would be consistent with the different results. The paper does not evaluate the returned text in enough detail to identify what those differences are. The tables also do not establish whether the route that performed best generated more helpful rewrites, preserved labels more reliably, or changed the training data in some other favorable way. These are distinct explanations for the same pattern of aggregate scores.
The higher accuracy in the setting using both languages shows that it makes more correct predictions overall on this test set. Its lower macro F1 indicates that those gains do not carry through to the class-balanced measure. The combination is compatible with improvements concentrated in more frequent categories, but the paper does not show per-class changes for that setting. The results identify the difference between the overall and class-balanced outcomes without assigning the difference to named categories.
The English condition illustrates the same point from the other side. It raises macro F1 and macro recall while yielding lower accuracy than the reference without augmentation. That is grounds for preferring it when the objective is to treat classes equally in the aggregate. To judge a preference about a particular kind of abuse, a reader would need scores for that class before and after each augmentation choice. The paper’s comparison with the historical baseline supplies a different contrast, covering changes made before translation as well.
The class comparison identifies uneven gains
The class-level table is an analysis of the final comparison with the earlier system. It shows that gains in Xenophobia and Hope-Speech coexist with declines in categories such as Misandry and Misogyny. It also identifies an unresolved category in Transphobic. This is a finer-grained account than the aggregate alone gives, especially for a task that distinguishes the targets and roles of different kinds of speech.
That analysis cannot isolate the contribution of English back translation to an individual class. The baseline uses a different representation and classifier, and the authors’ system includes the selected text processing. A comparison between that baseline and the best-performing system shows the outcome of replacing the complete pipeline. A comparison within MuRIL, with per-class results before and after augmentation, would be needed to follow the effect of the added text on specific categories. The paper reports the within-MuRIL comparison at the aggregate level.
The score for Transphobic shows how equal weighting and small test support can coexist. The class matters to macro F1 as a category in its own right, while its reported test support gives a limited basis for characterizing the classifier’s behavior on it. The authors’ explanation points to rarity. The experiment does not manipulate the number of examples for this category alone or report a dedicated comparison of ways to improve it. Its zero F1 remains a concrete outcome of the evaluated systems.
The architecture comparison has another kind of evidential scope. It establishes that MuRIL gives the highest macro F1 when the candidate pretrained systems are trained on the original comments. The authors keep MuRIL for the later trials, so the augmentation comparison gives no corresponding estimates for the other starting points. It answers the question the study poses about altering the data for the selected classifier. Whether another classifier would respond similarly to those alterations remains an open part of the design.
Limitations
Limits identified by the authors
The authors frame limited resources for Tamil as a constraint on the study and point to the Transphobic results as an example of how sparse coverage can appear in evaluation. The category has six test samples and F1 of 0.00 for both the baseline and the authors’ system. They attribute the poor class-level score to limited representation. Their observation about support is direct. The attribution is an explanation of the result, since the study does not manipulate the representation of that class separately to test the explanation.
The authors also identify the intermediate language as consequential. Their experiments cover English, Hindi, and the setting that uses both. The conclusion proposes exploring a wider choice of intermediate languages and investigating that choice in other linguistic contexts and with ensembles, which combine the predictions of multiple systems. That is an extension they propose. Their reported evidence concerns the tested routes and the selected classifier on this Tamil benchmark.
The scope of their conclusions is clearest when the metrics are named. The authors report improved accuracy with the setting that uses both languages and the highest macro F1 with the single English round trip. They describe the potential for augmentation in resource-limited settings. The measured result concerns a particular way to augment labeled Tamil comments and a particular set of test labels. It provides an empirical starting point for that broader idea while leaving its application in other tasks to be tested.
What the experimental design leaves open
A reader can distinguish the overall baseline comparison from the effect of the added training data. The earlier CEN-Tamil system has test macro F1 of 0.32. MuRIL with original comments has 0.44, the lexical replacement setting has 0.45, and the English augmentation setting has 0.47. The comparison with CEN-Tamil includes all the changes between its feature-based pipeline and the authors’ best setting. It cannot estimate a gain due to translation alone. The comparison at fixed MuRIL and after the choice of preprocessing gets closer to that question.
Even within the augmentation study, the training procedure includes an additional response to imbalance. The paper says minority-class examples were duplicated to make the augmented training set more balanced. It does not provide a separate oversampling-only comparison with matched training conditions, or give the final class counts for each translation setting. This limits the ability to assign score changes to the rewrites, to altered exposure to rare labels, or to their combination. The reported score describes the setting that was trained and evaluated.
The study also uses MuRIL alone for its subsequent data experiments. The ranking on original comments supplies the reason for that choice. It does not answer whether XLM-RoBERTa-base, M-BERT, or IndicBERT would benefit from the same treatment, respond better to a different intermediate language, or rank differently after augmentation. The design supports a claim about adding rewritten comments for MuRIL under these conditions. A conclusion about multilingual classifiers generally would require evidence across those starting points.
There is a similar limit on explaining the raw-data ranking. The systems differ in their architectures or pretraining descriptions, including the languages they cover and the kinds of text they use. The study compares the resulting classifiers. It does not vary the presence of transliterated pretraining, the number of pretraining languages, or the size of the pretraining collection while holding the other choices fixed. MuRIL’s emphasis on Indian languages motivates its inclusion and helps characterize it. The results cannot attribute its lead to any one part of that pretraining.
The authors report point scores for the tested conditions and describe using validation to choose settings. The results do not include variation across repeated training runs or uncertainty intervals. That matters when comparing nearby displayed scores. The table records the ranking of the reported runs. The stability of that ranking under another run, or under another sample of labeled comments, is unmeasured. The same consideration applies to the modest change with lexical replacement and to the raw comparison between MuRIL and M-BERT.
What the paper can establish about the rewritten text
Translation augmentation depends on the returned Tamil preserving information relevant to the label. In this task, successful preservation involves more than retaining the general subject of a comment. A translated remark could still discuss a group after a change in how it addresses that group or in what position the speaker takes. The original category could then be harder to defend for the rewritten text. That possibility is important for interpreting the procedure, without establishing that any particular returned comment suffered such a change.
The paper evaluates translation through downstream classification scores. It does not report a separate human review of whether returned comments preserve their labels, a count of near-duplicates, or a comparison of the linguistic changes produced by each route. As a result, the English setting can be identified as the best macro F1 result among the routes tried. The explanation for its advantage remains open. A quality check on the rewritten comments would address a different question from whether a classifier trained on them obtains a better aggregate score.
The reported settings likewise leave several procedural details at a coarse level. The paper identifies Google Translate and describes using English and Hindi as intermediate languages. It does not give a full account of the handling of every translated return in each training condition, or quantify how much additional text ultimately reaches the classifier. The comparison therefore establishes the route categories and resulting performance, while offering less detail on the precise training collection behind each score.
Lexical replacement raises a related question at the word level. The authors say that English words were replaced with Tamil equivalents. Their report does not evaluate the fidelity of those substitutions or show detailed outcomes by type of mixed-language comment. The table supports the choice to retain the procedure when optimizing macro F1. It does not identify whether the gain comes from particular translations, particular categories, or changes spread across the dataset.
What the test set can and cannot resolve
The benchmarks in the study come from a labeled YouTube collection. That is the setting in which the tested systems have been compared. The article’s motivation concerns online abuse more widely, including harms that reach beyond one platform. The experiment does not evaluate comments on another service, establish performance after a change in the mixture of categories, or measure the consequences of using predictions in moderation. Its outcomes are test scores for assigning dataset labels.
The dataset’s labels also fix the kind of linguistic judgment the study evaluates. Accuracy, F1, precision, and recall are computed in relation to those labels. The paper does not report a new study of how people agree on ambiguous comments, or how decisions would change if a reader could consult a fuller conversation. Distinctions such as Counter-Speech versus an abusive category can depend on how a remark is read. The benchmark shows how well the classifiers recover the recorded decisions from the task inputs available to them.
The class-level table has a narrower scope than the full inventory. Not-Tamil appears in the dataset description and has no row in the class-level comparison. The absence means readers lack a displayed F1 for that category in that table. Its contribution to reported aggregate results cannot be recovered from the displayed class rows alone. Treating those rows as the complete set of category outcomes would go beyond what the paper reports.
The class comparison also omits separate precision and recall for the displayed categories. It can show that a category’s F1 is higher or lower, while leaving the source of the change unclear. For example, the gain in Xenophobia could reflect a change in the number of true instances found, the reliability of the label when predicted, or both. A breakdown of category decisions or their errors would be needed to tell. The macro precision and recall values in the other tables describe aggregate behavior and cannot supply those missing class-level details.
Finally, equal weighting across labels is a choice about evaluation. It makes rare categories matter to the headline score, a feature that suits the authors’ concern about imbalance. It does not make the estimate for each rare label equally well supported. Weighted F1 and accuracy give more influence to the frequency of comments in the test collection, which is why the strongest accuracy setting differs from the strongest macro F1 setting. The reported results allow both views. They provide no direct measurement of the costs of particular mistakes for commenters or moderators.
What came after
There is no documented follow-up to describe. The paper closes by proposing tests of additional intermediate languages and of augmentation in systems that combine several classifiers. Those questions follow directly from its results. English led on macro F1 in the reported setting, while using English and Hindi together led on accuracy. A wider comparison could establish whether that dependence on the translation route persists across other settings. The proposal belongs to the authors’ future work, with the reported findings confined to their Tamil YouTube experiments.
Cite
Cite as Reshma Sheik, Raghavan Balanathan and Jaya Nirmala S. 2023. Mitigating Abusive Comment Detection in Tamil Text: A Data Augmentation Approach with Transformer Model. Proceedings of the 20th International Conference on Natural Language Processing (ICON).
@inproceedings{sheik2023mitigating,
title = {{Mitigating Abusive Comment Detection in Tamil Text: A Data Augmentation Approach with Transformer Model}},
author = {Reshma Sheik, Raghavan Balanathan and Jaya Nirmala S.},
booktitle = {Proceedings of the 20th International Conference on Natural Language Processing (ICON)},
year = {2023},
url = {https://aclanthology.org/2023.icon-1.39/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/sheik-2023-mitigating-abusive-comment-detection-tamil/