DLRG@DravidianLangTech-EACL2021: Transformer based approachfor Offensive Language Identification on Code-Mixed Tamil
Paper · 2021 · Ratnavel Rajalakshmi, Yashwant Reddy and Lokesh Kumar
Summary
A tweet can mix Tamil and English in the same sentence, and the words that make it offensive may depend on the rest of the message. Rajalakshmi and colleagues study how to assign a label to such a tweet in the DravidianLangTech shared task. It is a text classification problem with several possible answers. A tweet can be non-offensive, offensive towards a group, offensive toward an individual, offensive with another kind of target, offensive without a specified target, or outside the Tamil category. The dataset contains many more non-offensive tweets than examples of any individual offensive category.
The authors describe cleaning the tweets, using a Tamil-to-English mapping resource, and applying a resampling procedure intended to give the less frequent labels more representation in training. They explore representations based on word counts and word vectors, and select a classifier built on BERT for the test set. BERT uses a Transformer encoder that can draw on surrounding text in both directions. The authors adapt the pretrained encoder to predict the shared-task labels through fine-tuning.
The selected configuration reaches 65% accuracy on the validation set and 63% on the test set. Its weighted test F1, which gives categories influence according to their frequency, is 0.64. Its macro F1, which gives every category equal influence, is 0.31. The non-offensive class achieves an F1 of 0.78, and the not-Tamil class reaches 0.66. For offensive tweets targeting a group, F1 is 0.14. It is 0.27 for untargeted offense and 0.00 for both the individual-target and other-target categories.
The result shows how much the interpretation depends on the label and the averaging rule. The headline F1 describes performance across a collection dominated by non-offensive examples. The individual class scores show how rarely the system made successful distinctions among the offensive labels. The authors connect this weakness to the skewed distribution and leave further work on imbalance open. Their experiments document the behavior of the selected classifier, while leaving the separate effects of resampling, preprocessing, and the encoder unresolved.
Deep dive: DLRG@DravidianLangTech-EACL2021: Transformer based approachfor Offensive Language Identification on Code-Mixed Tamil
A BERT study of offensive language in Tamil–English tweets shows how class imbalance can hide weak detection behind a weighted F1 score. · about 32 minutes to read
The problem and its context
What the classifier has to decide
The paper takes the speech people use to express opinions on social media as its starting point. The authors describe posts about subjects such as politics, sports, and entertainment, alongside language directed against individuals and groups. Their practical question is whether a system can identify an offensive post when the writer uses Tamil and English together. They use Tanglish for this combination. A post can contain words or phrases from both languages, so even a short message may require processing decisions about more than one language. The paper places this problem within multilingual natural language processing.
The authors introduce the task through work on sentiment analysis, where a system tries to recover the attitude expressed in a text. The relationship is clearest when the intended attitude is indirect. A word encountered on its own may give an incomplete account of what a writer is expressing. The task in this study asks a more specific question about offense and its target. An opinion about a film or a public issue can be unfavorable while still belonging to the non-offensive class. A successful prediction depends on the distinctions made by the task’s labels.
The paper also uses the term hate speech to describe its objective. In the experiment, the published label inventory determines what this means operationally. Group-directed offense is one category. Several other forms of offensive language have their own categories, and the inventory includes a label for material outside Tamil. The experiment thus asks for an exact label from that inventory. There is no separate hate-speech decision with its own reported evaluation.
The target labels add a second kind of distinction to the judgment about offense. The system may recognize some evidence of an insult and still have to work out whether it is directed at a person, at a group, or at something falling under the other-target label. An untargeted offensive message has another label. The organization of the inventory creates more opportunities for disagreement with the expected answer than a decision that records only whether a post is offensive. The reported classification task requires a prediction at the finer level.
The not-Tamil category adds a language decision to the same output space. Non-offensive and not-Tamil answer different questions about a post. The first is a judgment about its content under the shared task’s taxonomy, while the second records whether it belongs to the relevant language category. Both appear as alternatives alongside the offensive labels. Accordingly, the system is evaluated on a combination of language identification, offense recognition, and distinctions among kinds of target through a single predicted label.
Why mixed-language writing matters
The authors emphasize vocabulary, grammar, and colloquial usage as reasons that Tamil–English social media text is challenging. The training material has to represent the language actually used in posts, including expressions whose spelling or usage can differ from what a system would expect in more regular prose. A method that recognizes some familiar English words still has to account for the Tamil material around them. Similarly, being able to assign a representation to a particular Tamil expression leaves the question of how it functions in that message.
This motivates two different interventions in the paper. The preprocessing procedure tries to make some of the written forms easier to handle. The contextual encoder then tries to use relationships inside the resulting sequence. These address different stages of the problem. A mapping or cleaning rule operates on what is supplied to the classifier. Contextual processing concerns how the classifier interprets that input. If the same expression supports a different reading depending on its surroundings, a more uniform spelling alone leaves that ambiguity in place.
The paper discusses code-mixing alongside the related notion of borrowing. A word may come from another language without its presence settling how a bilingual message should be described. The authors cite an earlier approach that ranked words in Hindi–English tweets by how likely they were to be borrowings, using a relevance measure. That work concerns how to characterize the words in mixed-language material. The shared-task entry seeks an offense label for the whole message. It does not use the cited borrowing ranking as an offense detector.
Language coverage also shapes the authors’ account of the problem. They describe prior work on hate speech in languages such as English and German and characterize work on Tamil as comparatively limited. They cite corpus-building efforts relevant to Tamil–English text, including work on sentiment, and discuss related work on Kannada. Such resources matter because a supervised classifier needs examples connected to the judgments it is expected to make. A corpus that records sentiment can help establish what mixed-language material looks like, while the offense task needs annotations that distinguish the categories in its own inventory. Corpus Creation for Sentiment Analysis in Code-Mixed Tamil-English Text
The Tamil experiment belongs to a shared task concerned with offensive language in Tamil, Malayalam, and Kannada. The event supplies a common framework for papers that might otherwise study different examples or use different categories. The DLRG entry discussed here focuses on the released Tamil–English material. Its linguistic motivation concerns mixed-language writing more broadly, but its measurements come from the Tamil portion of that effort. Shared Task Findings on Offensive Language Identification
From word features to sequence context
The related work describes several ways of extracting information from short pieces of text. For sentiment, the authors cite a study combining convolutional and bidirectional recurrent processing to identify explicit opinions in movie reviews. They also cite a survey of implicit opinion extraction. The distinction illustrates a problem that carries over to offense classification. A conspicuous expression may give the system a direct clue, while an implicit judgment depends more heavily on how expressions work together. The cited movie-review study deals with opinions in its own setting, so it provides methodological context for the DLRG study.
The hate-speech research reviewed in the paper includes a multilingual comparison of machine-learning and deep-learning approaches on English, German, and Italian. It also includes a study of Hindi–English mixed-language tweets in which a convolutional approach performed better than linear classifiers such as a support vector machine. The authors mention their own earlier use of an ensemble for offensive or hateful content in Hindi and German. An ensemble combines decisions from multiple components. That earlier work is part of the motivation for experimenting with several ways to classify text, rather than a quantitative baseline on the Tamil split.
Another cited approach to Tanglish combines a bidirectional recurrent system with language tags. A language tag supplies information about the language associated with a piece of the input. The cited work connects treatment of the sequence to explicit information about language identity. DLRG also treats the order and context of an expression as important. Its main experiment instead emphasizes a pretrained Transformer and describes a separate attempt to map Tamil words to English terms during preprocessing. There is no reported comparison between language tags and that mapping on the DLRG test data.
The authors view hand-designed features as limited in the semantic relationships they can capture from multilingual tweets. A feature based on the presence of a term can be informative even when the input supplies little else. Its reach is narrower when the decision depends on what precedes or follows the term and how those parts of the message relate to one another. The paper’s turn to sequence processing is motivated by the possibility of representing such dependencies directly from the text.
BERT supplies the form of sequence processing the authors choose for their final submission. The paper emphasizes bidirectionality, meaning that the representation of part of an input can reflect context to its left and right. This is relevant to any label that requires reading an expression together with a target or with surrounding words that clarify its use. It also fits the paper’s treatment of a tweet as the unit of classification, even when the tweet contains more than one sentence. The encoder is intended to provide a representation of the written context from which the classification layer can make the final choice.
The method, step by step
From a labeled tweet to a prediction
The procedure starts with tweets to which the shared task has assigned labels. The training data give the classifier examples of the text associated with each category. A separate validation set gives the authors a way to choose settings based on performance beyond the examples used for fitting. The held-out test set is used to evaluate the chosen configuration. The paper describes input cleaning, word-vector experiments, and resampling as parts of the study before explaining the use of BERT for the submitted predictions.
The workflow includes choices at several levels. The preprocessing stage determines the text made available to the classifier. The representation stage determines which properties of that text its learning procedure can use. Resampling changes the representation of labels among examples considered during training. The classification layer turns an encoded tweet into a decision in the shared-task inventory. These steps interact in the final system, but each has a different immediate purpose.
From shared-task tweets to the submitted predictions
The steps in order.
Preparing the text
The authors say they use a resource they call the Tamil to English Mapping Corpus. Its role is to provide English terms for Tamil words in the mixed-language input. This is described as a word-mapping operation. The paper does not specify the extent of the resource, how a mapping was chosen when several interpretations were available, or how many of the Tamil words in the shared-task data it covered. Those details matter for establishing exactly what text reached the classifier.
The paper also describes cleaning with the Python NLTK package. Its list of operations includes removing special characters and stop words and applying lemmatization. Stop words are frequent words treated as expendable for a particular representation. Lemmatization reduces an inflected word to a base form. In a mixed-language setting, the consequences of either operation depend on which words the procedure recognizes and on the resources available for interpreting their forms. The task supplies a reason to examine those choices closely, since words removed before encoding cannot contribute to the subsequent classification.
The authors illustrate cleaning by giving a long message before and after processing. Much of the Latin-script Tamil is still visible in the resulting line, alongside English. The initial mention loses its marker and is lower-cased. Several runs of punctuation disappear, and some elongated spellings are shortened. This example establishes more about the surface of the cleaned text than it does about the Tamil-to-English substitution step. The article presents both procedures, but the displayed pair does not trace the output of every operation individually.
The example also shows a consequence of removing symbols. Around the marker associated with drowsy, adjacent material runs together in the cleaned version. Elsewhere, a hyphen and intervening punctuation disappear and the cleaned line contains vanthurukkaruneenga. This matters for tokenization, the process of turning a written string into the units processed by a classifier. A cleanup decision can alter both the spelling of a unit and where one unit ends and another begins. The example gives a visible instance of that change. The paper does not assign a performance effect to it.
The shortening of repeated letters is another visible change. It can make a spelling closer to others encountered during training, which is consistent with the general aim of normalization. In an expressive post, repeated letters may also carry emphasis. The paper shows that the surface form changes and reports the final performance of the system. It provides no comparison that would establish whether the shortening helped the system recognize offense or obscured a cue in some tweets.
For a reader following the preprocessing stages, the distinction between an intended operation and an observed transformation is important. The resource name tells us the intended direction of the mapping. The before-and-after example shows the effect of cleaning in a particular case. The list of operations names lemmatization and stop-word removal, but a reader cannot reconstruct their exact implementation from a single pair of strings. The paper does not identify the language-specific rules, stop-word inventory, or the handling of unrecognized forms.
Trying word-based representations
The baseline experiments use both TF-IDF and GloVe. TF-IDF represents a text using terms and their relative importance. A term receives weight from its occurrence in the text and from how widely it occurs across a collection. This lets a conventional classifier work with a numerical version of the vocabulary evidence in a tweet. The paper identifies TF-IDF as a baseline representation and gives no equation or weighting variant for it.
GloVe gives words numerical vectors. The authors choose it in the expectation that relationships between vectors will reflect relationships between words. Their description specifically names cosine similarity, which compares vectors by their direction, as a means of finding a neighboring word in that space. The stated purpose is to bring out relevant associations, including ones involving rare terms. The paper gives no scored list of neighboring words, so this part of the method establishes the rationale for the representation and the comparison it uses.
These approaches organize evidence differently. TF-IDF provides features tied to terms in the collection. GloVe provides coordinates in which words can be near one another even when they are distinct entries in the vocabulary. The paper discusses GloVe after cleaning and contrasts its word-like units with the smaller pieces that BERT can use. It gives no implementation account in which GloVe vectors are inputs to the BERT encoder. The results section names the representations as part of the baseline experiments and reports the submitted BERT classifier separately.
The distinction between a neighbor of a word and a neighbor of a training example also matters. The cosine comparison in the GloVe discussion concerns words and their vectors. The resampling discussion concerns the safety of retaining examples from differently represented classes. The authors identify a different measure by name for the latter operation. The two parts of the paper thus use similarity for different purposes, and the reported procedure leaves some details of how training examples were represented for resampling open.
Changing the mix of examples
The dataset has many examples of the non-offensive label and relatively few examples of individual offensive labels. The paper addresses this through SOUP, an approach that combines oversampling and undersampling based on similarity. Oversampling increases the representation of classes with fewer examples. Undersampling reduces the representation of classes with more examples. The point is to alter which examples the classifier learns from and how frequently it encounters examples associated with different labels.
The description gives particular attention to what the procedure removes. It says that examples judged most unsafe are removed until the desired class size is reached. Here safe is a resampling term concerning how a data point relates to others under the procedure. It is distinct from the judgment of whether the tweet’s content is offensive. The procedure uses the Heterogeneous Value Difference Metric, abbreviated HVDM, to calculate the safety level. The paper gives the measure’s name and its role. It presents no equation for the distance, the safety calculation, or the target class sizes.
The authors describe the resulting data as balanced and say they use balanced data for classification. They do not report the resulting count for each label. They also provide no run record showing precisely which baseline and BERT configurations used the same resampled input. The strongest account the methods support is that they applied SOUP as part of their classification procedure and intended it to correct the training distribution. The final test scores measure how the selected classifier handled the evaluation data under the reported setup.
Balancing the number of training examples changes how frequently each class can contribute to fitting. The procedure cannot by itself establish that the surviving or repeated examples cover the range of ways a writer can express offense. Removing a common-class example and presenting a rare-class example more often are changes in exposure. Learning to separate similar labels is a further question about the information in those examples and what the classifier can make of it. The paper’s category-level results provide a way to examine that second question.
The published account contains no displayed mathematical formulas to reconstruct. It identifies the cosine comparison, HVDM, and the scoring measures by name. It describes the operations those measures support, but leaves their mathematical definitions and implementation choices outside the paper’s presentation.
Encoding the whole tweet with BERT
The authors choose BERT because it can encode a word or part of a word with information from the surrounding sequence. In their account, a tweet can contain several sentences, and BERT treats the text to be classified as a single sequence. This allows the encoder to consider parts of the message together before the classifier assigns the tweet its label. The paper frames this as a way of bringing contextual evidence into a task where the relevant expressions may occur in informal, mixed-language writing.
BERT uses subword tokenization. The paper calls its smaller units word pieces. A word-oriented representation associates entries with word-like units. With word pieces, a form can be represented using segments of the string. This is the basis for the authors’ expectation that the encoder will be less constrained by previously unseen complete words. The paper gives no segmentation examples for its Tamil–English input, so it establishes the representational motivation without measuring how well those pieces cover colloquial terms in the dataset.
The authors name token, segment, and position embeddings as components of the input representation. Word embeddings are numerical representations used to express pieces of text in a form a system can process. A token embedding represents the identity of an input unit. A segment embedding conveys segment membership. A position embedding conveys where the unit occurs in the sequence. With these components, the encoder starts with information about the units and their arrangement.
The encoder then uses multi-head attention. Attention lets a representation draw on other parts of the input with different weights. Several heads allow the encoder to form multiple such patterns. This is the mechanism behind the authors’ proposal that context can help the system pick out terms relevant to the classification decision. A mention of a person, a description of a group, and the wording around an insult could all matter to the assigned category. The paper offers the mechanism as a rationale for using BERT. It reports no attention analysis showing which expressions drove particular predictions.
The paper names two tasks used to pretrain BERT. In masked language prediction, parts of the input are hidden and the encoder learns to recover them from context. In next sequence prediction, the pretraining task concerns whether one piece of text follows another. These are described as properties of the pretrained BERT the authors adopt. The DLRG task supplies a different objective, with labels for offensive and non-offensive content and for material outside Tamil. The authors start from the pretrained encoder and add a classification layer for that objective.
Adapting BERT to the labels
The added layer uses the representation produced by BERT to make a classification decision. Fine-tuning adapts the pretrained system to the examples for this task. The distinction between pretraining and fine-tuning is central to the authors’ choice. Pretraining gives the encoder a way to represent text in context. The shared-task examples connect those representations to labels such as group-directed offense or non-offensive content. The paper does not give the checkpoint name, the exact encoder output passed to the classification layer, or the loss used to train it.
The settings chosen on validation are a learning rate of 3e − 5, a batch size of 4, and 5 epochs. The learning rate sets the scale of updates during training. The batch size is the number of examples processed together for an update. An epoch is a pass through the data used for training. The authors report the combination that performed better in their validation experiments. They provide no list of the alternative settings they considered or the scores from the search.
The implementation uses Python 3, scikit-learn, and NLTK. The paper describes the workstation as having an Intel Xeon Quad Core Processor and 32 GB of RAM, with an NVIDIA Quadro P4000 and 8GB of graphics memory. These details locate the experiment in a particular computing setup. The paper supplies no run times, so its hardware description cannot establish a comparison of the cost of BERT and the alternatives.
After choosing the configuration, the authors use the selected classifier to predict labels for the released test data. This makes the validation set the basis for the training choices they report and the test set the basis for the final class-by-class assessment. The paper gives the label assigned to each possible category in its results table through aggregate scores. It does not publish a set of worked examples showing the classifier’s output and the corresponding reference label for individual test tweets.
Experiments and results
Data and evaluation
The released training set contains 35,139 labeled tweets. The validation set contains 4388 labeled tweets. The authors say the training and validation data follow the same general distribution and describe 72% of the data as non-offensive in their methodology discussion. They report 7% for group-targeted offense, 6% for individual-targeted offense, 1% for other-targeted offense, 8% for untargeted offense, and 4% for not-Tamil. Those percentages describe the distribution as presented in the methods, instead of an independently tabulated breakdown of the held-out test set.
The training counts give the skew more concrete form. The paper lists 25,425 non-offensive tweets. It gives 2557 for offensive tweets targeting a group and 2343 for those targeting an individual. There are 454 examples in the other-target offense category, and 2906 in the untargeted category. The not-Tamil category has 1454 examples. The contrast between the largest and smallest categories is already visible from the counts as printed. A classifier that learns mostly from recurring patterns in the non-offensive examples has many more opportunities to encounter such patterns.
In discussing the results, the authors characterize the dataset as having more than 75% non-offensive examples. They do not tie this wording to a specific split in that passage. The methods provide the separate 72% figure and the listed training counts. The paper gives no per-label test counts or total test-set size to settle how the later characterization relates to the test collection. The figures therefore need to stay attached to the places and conditions in which they are reported.
The baselines are described at two levels. The experiments mention conventional machine-learning methods with TF-IDF and GloVe representations. The methods also refer to LSTM and BLSTM, sequence classifiers based on long short-term memory, with the latter processing the sequence in both directions. The authors say BERT performed well on validation in relation to these sequence baselines. They give no numerical scores for any of them. There is accordingly no reported baseline margin to put alongside the final BERT results.
Accuracy records how frequently the classifier’s chosen label agrees with the reference label. It gives a direct account of success over examples, which makes it sensitive to the frequency of the labels. In this experiment, a large portion of the data belongs to one label. An accuracy score provides an overall view of agreement while leaving the distribution of errors across the offensive categories to other measurements.
Precision and recall give separate views of each label’s behavior. Precision asks how frequently an assignment to a particular label is correct among the cases where the classifier makes that assignment. Recall asks how often the classifier finds the cases that carry the label in the reference data. The two questions matter because the same class can have few erroneous predictions among the predictions it makes and still miss many true examples. F1 combines precision and recall through their harmonic mean, so a low value on either side pulls down the combined score.
The table reports macro and weighted averages. A macro average takes the categories as equally important when aggregating their scores. A weighted average gives a class influence according to its support, meaning the amount of evaluation data that belongs to that class. The paper’s label inventory includes non-offensive and not-Tamil, so both of those labels contribute to both aggregates. The weighted F1 is a score for the shared-task inventory as a whole. It does not provide an F1 score for finding offensive tweets as a single combined class.
The selected configuration
The chosen learning rate, batch size, and training duration give 65% validation accuracy. The authors report 63% accuracy when the selected classifier is run on the released test set. The figure compares the same reported configuration in its two evaluation roles. Validation is used to choose the settings. Test accuracy is the reported performance of that choice on the held-out data.
BERT accuracy on the Tamil–English validation and test splits
The selected configuration scores higher on validation than on the held-out test set.
The numbers
| System or setting | accuracy % |
|---|---|
| BERT on validation (this paper) | 65 |
| BERT on test | 63 |
The paper reports the aggregate test scores in decimals. Weighted precision is 0.65, weighted recall is 0.63, and weighted F1 is 0.64. The abstract and conclusion also express the F1 result as 64%. Macro precision is 0.36, macro recall is 0.30, and macro F1 is 0.31. Each of those macro scores describes performance when each of the task labels has equal standing in the average.
The accuracy values describe agreement on the full inventory. For an offensive tweet, a prediction of a different offensive label and a prediction of non-offensive both count as errors under this evaluation. They could have different consequences in a system whose immediate aim was to flag any suspected offense. The paper provides neither a confusion matrix nor a separate evaluation with the offensive labels merged. The reported overall figures therefore answer the shared task’s exact-label question.
The validation and test scores are point estimates from the reported runs. The authors give no variation across repeated training runs. They also give no account of whether the label mix and difficulty of examples differ between validation and test. The observed scores establish the ordering shown in the chart within this experiment. The design does not identify a cause for the difference between the splits.
Performance on each label
The non-offensive category has test precision of 0.79 and recall of 0.78. Its F1 is 0.78, the highest of the reported class scores. This is the label with the largest training count. The precision and recall are close to each other, so the score reflects both relatively successful assignments to the category and relatively successful retrieval of its reference examples.
The not-Tamil label has precision of 0.99, recall of 0.5, and F1 of 0.66. The precision shows that a prediction of not-Tamil was typically correct. The recall shows that identifying the full set of not-Tamil examples was harder. This is a case in which reading precision alone would give an incomplete impression. A classifier can make reliable predictions for the examples it is willing to label as outside Tamil and still leave a substantial part of that class under other predictions.
Group-targeted offense has precision, recall, and F1 of 0.14. The balance between precision and recall therefore occurs at a much lower level than for non-offensive tweets. The reported scores show difficulty both in assigning the group-target label correctly and in finding the reference examples of the class. They do not show which other labels accounted for most of the disagreement.
For untargeted offense, the paper gives precision of 0.21, recall of 0.38, and F1 of 0.27. Recall is higher than precision for this category. The system finds a greater share of the actual untargeted cases than the share of its untargeted predictions that are correct. The result is the strongest F1 among the offensive labels, while still substantially below the scores for the non-offensive and not-Tamil categories.
Individual-targeted offense and other-targeted offense each have precision, recall, and F1 reported as 0.00. The table contains the scores at that precision and supplies no counts of correct predictions or of how often each label was predicted. A reported zero thus establishes a failure to obtain a positive score at the displayed precision. It leaves open the exact prediction behavior behind the result.
BERT test F1 by label on the Tamil–English shared-task data
The non-offensive and not-Tamil categories score higher than every offensive category.
The numbers
| System or setting | F1 |
|---|---|
| Non-offensive (this paper) | 0.78 |
| Not Tamil | 0.66 |
| Untargeted offense | 0.27 |
| Group-targeted offense | 0.14 |
| Individual-targeted offense | 0.00 |
| Other-targeted offense | 0.00 |
The authors interpret the table as indicating that the system is better at distinguishing non-offensive and non-Tamil examples than at recognizing offense in the Tamil–English text. The positive scores for untargeted and group-targeted offense show some successful exact-label decisions. Their size, together with the scores of the individual-target and other-target categories, supports the authors’ more general conclusion that dependable recognition of the offensive categories remains unresolved.
The ordering by class helps explain why the two F1 aggregates look so different. Stronger results on a frequent class can contribute heavily to the weighted figure. Equal class weights make each low-scoring offensive category matter to the macro figure to the same extent as the non-offensive category. The two aggregates describe the same classifier and test split. They answer different questions about what kinds of success dominate the result.
What the ablations show
The paper reports no ablation experiments and instead offers a qualitative validation comparison with recurrent baselines, the result of choosing training settings on validation, and a class-level analysis of the selected classifier on the test set.
What the baseline comparison establishes
The authors compare BERT in general terms with LSTM and BLSTM systems and describe the BERT validation performance favorably. This supports their decision to use BERT for the test predictions. The comparison does not measure the contribution of any one part of BERT, because the paper gives no scores for the alternatives and does not document which other conditions they shared. In particular, the presence of a bidirectional recurrent baseline makes the comparison unsuitable as a direct test of the value of bidirectionality. The approaches also differ in their encoder architecture and in other choices that the study does not factor out.
TF-IDF and GloVe appear as alternative representations used in baseline work. The paper gives a reason to try each kind of feature but provides no matrix of representation, classifier, and score. It is therefore possible to establish that the authors experimented with different kinds of input representation. How those representations rank on the individual offensive labels, or on either of the aggregate F1 measures, remains unmeasured in the report.
The selected BERT settings provide a documented recipe for the reported validation result. A choice of settings is also a comparison in the ordinary sense that the authors say performance motivated it. Its evidence stops at the chosen combination. There is no outcome for a different learning rate with the batch size and number of epochs held fixed, for example. The method description can be used to identify the run that produced the reported measurement. It offers no estimate of which training setting contributed most to that result.
What the class scores reveal
The strongest diagnostic comparison evaluates the same classifier on different categories of the same test set. This keeps the trained classifier and scoring framework fixed. What varies is the class whose precision, recall, and F1 are being examined. The comparison reveals that success in the task is concentrated in categories other than the offensive ones. It also shows that the offensive labels have different outcomes, with some measurable success in assigning untargeted and group-targeted offense and no positive reported F1 for the other offensive categories.
Within an individual category, comparing precision and recall offers another diagnostic. For not-Tamil, the much higher precision makes the chief shortfall more visible as missed reference examples. For untargeted offense, the lower precision identifies a problem with the reliability of that label when assigned. The table can support these statements about the direction of the imbalance. It cannot tell whether the missed examples involved mixed scripts, particular spellings, certain kinds of target, or another property of the input.
Comparing the weighted and macro results keeps the test predictions fixed while changing how class performance contributes to the aggregate. The substantially lower macro F1 shows that the headline weighted value depends on which categories carry more weight. This is an analysis of measurement. Equal weighting exposes weakness across the label inventory without making any changes to training or predictions. It can reveal the shortfall even when the cause of that shortfall is uncertain.
The class counts and scores also show why training frequency is an incomplete account of the ordering. Among the offensive labels, the other-target category is especially sparse in training and has no positive reported F1. The individual-target category has more training examples and also has no positive reported F1. The not-Tamil category has fewer training examples than the individual-target category and a substantially higher test F1. These are differences within the reported experiment. They point to questions about how distinct the labels are in the text and which cues the classifier can recognize, but the paper does not measure those properties.
What remains unresolved about the method
The authors apply SOUP with the aim of overcoming skew. A controlled comparison would require the same classifier evaluated under matched conditions with and without the resampling procedure. The paper gives no such pair of results. The poor offensive-category scores show that the reported training procedure left a serious classification problem. They cannot establish whether resampling improved those scores, lowered them, or had little effect.
The same is true of the Tamil-to-English mapping and cleaning operations. The published example shows how a particular tweet changes. That is evidence about the output of preprocessing. It is independent of evidence that the classifier performed better because of those changes. There is no run using the same settings on raw text, no separate score for the mapping, and no breakdown by translated terms or English and Tamil portions of the input.
The paper’s rationale for attention is that it helps the encoder use the context needed to interpret words and expressions. An analysis of learned attention or a comparison in which the attention mechanism was altered could bear on that account. The authors report neither form of evidence. The final performance documents what the complete system achieved. Its distribution across classes motivates questions about contextual cues and target distinctions, while leaving the contribution of attention to those decisions unisolated.
Limitations
Limits the authors identify
The authors’ main limitation is the class distribution and the system’s weak performance on offensive tweets. Their discussion emphasizes that non-offensive examples dominate the data and that the classifier is much less successful at the other distinctions. The conclusion returns to the need for better ways to handle multiclass imbalance. This matters because the ability to recognize less frequent offense categories is central to the stated purpose of the work.
The methods describe SOUP as yielding balanced samples, while the results still show strong differences in performance across labels. These statements concern different outcomes. The resampling account concerns the distribution of data used for classification. The results concern which distinctions the classifier could make on new examples. A change in training counts can coexist with weak performance on labels whose patterns are difficult to learn from the available examples.
The authors attribute weak generalization on the other categories to the skewed dataset. Their data support the observation that skew and weak minority-class performance occur together. The paper has no intervention with scores for both the original and a resampled distribution, so it cannot determine how much of the test result comes from class frequency. Its discussion leaves better handling of imbalance as future work, with the appropriate remedy still to be established by a comparison.
Limits of the evidence and reporting
There is uncertainty about the exact relationship between the data preparation described in the methods and the final BERT run. The paper names Tamil-to-English mapping, stop-word removal, lemmatization, special-character removal, GloVe, SOUP, and BERT. It describes these choices in the same methodology, but gives limited configuration detail for each experimental branch. A reader can follow the intended workflow and reproduce some training settings. Reconstructing the input strings and distribution of examples for each reported run would require additional information.
The mapping resource is named, but its contents, coverage, and handling of unmatched words are unspecified. The example illustrates cleaning without labeling every transformation in its output. The resampling description gives neither its final class counts nor a record of which examples were kept or repeated. The treatment of the validation and test inputs is less detailed than the account of choosing and using the classifier. These gaps constrain exact replication and make it difficult to locate the stage at which particular distinctions were lost.
The published settings expose important training choices but leave others open. The paper gives a learning rate, batch size, and epoch count for the selected BERT run. The exact pretrained checkpoint and tokenization settings are unspecified, as are the optimizer and the initialization conditions of repeated runs. For mixed-language data, the particular tokenizer and checkpoint matter to any explanation involving coverage of Tamil expressions. The study does not provide examples that link segmentation quality to an offensive-category error.
The paper also gives incomplete information about what the reference labels encode. It lists the categories and reports their distribution in the training data. It provides no annotation instructions for separating another kind of target from untargeted offense, for example, and no statistics about agreement between annotators. The results can be read as agreement with the shared-task labels. They cannot establish whether a difficult boundary reflects uncertainty among annotators, ambiguity in the available text, weak evidence in training, or errors made by the classifier.
The class-level table is detailed enough to locate weak categories and too aggregated to describe most error paths. A low recall for an offensive class could arise because its examples were assigned another offensive label, because they were marked non-offensive, or because they were assigned not-Tamil. Those pathways imply different problems. One concerns distinguishing targets. Another concerns finding offense at all. A third concerns recognizing the language scope of the input. The paper does not show the cross-tabulated predictions needed to distinguish them.
The same reporting gap prevents a direct estimate of how well the classifier might work as an initial offense flag. Some errors under exact-label evaluation could still result in a flag if all offensive categories were treated alike. Others would miss offense entirely. The weighted F1 incorporates both non-offensive and not-Tamil predictions. Its value cannot furnish the missing binary result. This is a limit of using a single aggregate score to characterize a task that combines several decisions.
Nor do the results give an error analysis of what the encoder understood in context. The paper explains why bidirectional context is attractive for mixed-language text, but it does not compare explicit and implicit offenses, text with different degrees of language mixing, or different expressions of the same insult. It shows a preprocessing example and gives final class scores. Consequently, the proposed link between contextual encoding and specific successful decisions remains a motivation for the approach.
Scope of the findings
The experiments concern the released Tamil–English tweets from the particular shared task. The workshop also covers other Dravidian languages, and the paper cites multilingual research. Those connections place the problem in a broader field. They supply no evaluation of the trained DLRG classifier on Malayalam or Kannada, or on a separate collection of Tamil material. The results establish an outcome in the reported Tamil–English setup.
The data distribution is central to how the scores should be read. The weighted evaluation reflects the composition of the test set, while the macro evaluation gives its labels equal importance. The paper’s two descriptions of the prevalence of non-offensive text are not attached to a common documented split. In particular, the reported training counts cannot stand in for the missing test support. The most precise account combines the reported split-level accuracy, the test aggregates, and the test class scores without inferring an unreported distribution.
The paper presents a single set of final test numbers and no uncertainty estimates. Small changes in a reported score could depend on training variation or on the examples present in a split. The study provides no repeated runs or alternate evaluation samples with which to assess that possibility. Its main empirical observation is visible at the level of the published category results. The claim that a component or a setting reliably improves performance would require further evidence of the kind omitted from the comparisons.
What came after
Grapheme-level normalization for abusive Tamil text
A later citing study investigates grapheme-level normalization for abusive Tamil text classification. The term grapheme-level locates its input treatment at the level of written units. The topic makes a direct connection with a practical issue in the DLRG paper. There, the cleaning example shows how punctuation removal and shortening elongated forms can change the strings a classifier receives. Tamil-to-English mapping operates on another aspect of the input by trying to replace words with corresponding terms. The later study’s title puts the normalization of written forms at the center of the research question. HNK@DravidianLangTech 2026
That connection is clearest at the level of the classification pipeline. DLRG changes the written input on the way to a contextual representation, then reports the performance of the resulting classifier across the shared-task labels. Its cleaning example makes some of the changes visible, including the loss of boundaries around punctuation. It leaves their individual impact unresolved. The later paper addresses abusive Tamil classification through an investigation explicitly framed around the normalization step.
The citation and the title establish the continuity of the research problem and identify the later study’s focus. They provide no findings about whether grapheme-level normalization improves recognition of abuse, which classes it affects, or whether the later study repeats the DLRG experiment. The documented connection is that a later study of abusive Tamil text cites the earlier entry and examines normalization at a finer level of written representation than the word mapping foregrounded by DLRG.
Cite
Cite as Ratnavel Rajalakshmi, Yashwant Reddy and Lokesh Kumar. 2021. DLRG@DravidianLangTech-EACL2021: Transformer based approachfor Offensive Language Identification on Code-Mixed Tamil. Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages.
@inproceedings{rajalakshmi2021dlrg,
title = {{DLRG@DravidianLangTech-EACL2021: Transformer based approachfor Offensive Language Identification on Code-Mixed Tamil}},
author = {Ratnavel Rajalakshmi, Yashwant Reddy and Lokesh Kumar},
booktitle = {Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages},
year = {2021},
url = {https://aclanthology.org/2021.dravidianlangtech-1.53/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/rajalakshmi-2021-dlrg-dravidianlangtech-eacl2021-transformer-based/