---
title: "IIITK@DravidianLangTech-EACL2021: Offensive Language"
description: "The IIITK team tests multilingual text classifiers for offensive language and compares captions with images for Tamil troll meme detection."
canonical: "https://research.elamur.ai/free/en/papers/ghanghor-2021-iiitk-dravidianlangtech-eacl2021-offensive-language/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ghanghor-2021-iiitk-dravidianlangtech-eacl2021-offensive-language/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / IIITK@DravidianLangTech-EACL2021: Offensive Language Identification and Meme Classification in Tamil, Malayalam and Kannada

# IIITK@DravidianLangTech-EACL2021: Offensive Language Identification and Meme Classification in Tamil, Malayalam and Kannada

Paper · 2021 · Nikhil Ghanghor, Parameswari Krishnamurthy, Sajeetha Thavareesan et al.

**Authors:** Nikhil Ghanghor, [Parameswari Krishnamurthy](https://md.research.elamur.ai/free/en/authors/parameswari-krishnamurthy/), Sajeetha Thavareesan, [Ruba Priyadharshini](https://md.research.elamur.ai/free/en/authors/ruba-priyadharshini/) and [Bharathi Raja Chakravarthi](https://md.research.elamur.ai/free/en/authors/bharathi-raja-chakravarthi/) · **Year:** 2021 · **Venue:** Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.dravidianlangtech-1.30/)
- [PDF](https://aclanthology.org/2021.dravidianlangtech-1.30.pdf)

## Summary

An offensive comment can shift between languages in the space of a sentence. A meme can use familiar words whose meaning changes when they appear over a particular picture. The IIITK team studied these problems in separate DravidianLangTech shared tasks. The first asked participants to identify offensive language in Tamil, Malayalam, and Kannada, using datasets that included native-script and mixed-language writing. In the second task, they had to determine if a meme in Tamil counted as a troll meme. For that task, the organizers supplied both the image and text extracted from it. The team adapted pretrained classifiers to the available data and compared their predictions on development and test sets.

For offensive language identification, the team tried standard multilingual checkpoints and custom classifiers that kept the pretrained encoder fixed, added a new prediction head, and used losses intended to address uneven label frequencies. A loss determines the penalty for a prediction during training. Whenever the paper compares a custom classifier with its standard counterpart, the standard configuration has the higher weighted F1. This metric combines precision and recall for each class and gives more influence to classes with more examples. The team submitted cased multilingual BERT, or mBERT-cased. On the official tests it earned weighted F1 of 0.75 for Tamil, 0.95 for Malayalam, and 0.71 for Kannada. The corresponding ranks were 3, 3, and 4.

Each meme classifier worked from a single input: the extracted caption or the image. With captions, mBERT-cased led the team's comparisons on both splits. It reached 0.94 weighted F1 on the team's development split and 0.55 on the official test, where the submission ranked 2. Inception, the strongest image classifier on that test, reached 0.53. Every caption and image configuration scored lower on the official test than on the development split. The selected classifier kept its lead, while the test gave a much lower estimate of its performance.

The authors released their implementations as open-source code. The comparisons support the choice of mBERT-cased for both submissions and leave the reasons for its advantage partly open. In the offensive-language experiments, the move to a custom classifier changed the prediction head, the loss, and which parameters could learn. For memes, the authors argue that the interaction between words and pictures matters. Their measurements establish how well the tested classifiers worked with each input separately. The effect of training on the pair remained an open question.

## Deep dive: IIITK@DravidianLangTech-EACL2021: Offensive Language Identification and Meme Classification in Tamil, Malayalam and Kannada

IIITK compares multilingual text classifiers for offensive language and tests captions and images separately for Tamil troll meme detection. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Learning from the language people use

Offensive language identification is a form of [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). A classifier receives a piece of writing and assigns it to a category defined by the task. Its examples teach it how those categories apply to the writing in the dataset. In the DravidianLangTech evaluation, the writing came from separate Tamil, Malayalam, and Kannada collections. The authors describe a setting in which an input can follow the conventions of a native script or draw on more than one language. Both properties affect the text that reaches the classifier.

The paper uses *code-mixing* for the use of multiple languages or language varieties in an utterance. Language choice and script are separate aspects of the input. The language name in a track identifies the collection on which the team trains and evaluates. It leaves room for individual examples in that collection to include material from another language. For a classifier, the practical question is whether the representation it builds from the actual string preserves the distinctions needed for the task. A representation that handles the most familiar part of a mixed expression may still struggle if the rest of the expression supplies the clue to its label.

Letter case is the authors' example of how a design choice can have different consequences across writing systems. They point to English, where capitalization can matter, and Malayalam, where the same consideration does not arise in the native script. When a dataset includes mixed-language writing, a decision about keeping capital and lower-case forms can affect some parts of its inputs more than others. A cased classifier retains such distinctions wherever they occur. The effect on prediction depends on what the checkpoint learned and how the distinction is used in the new task.

The authors place this work in the context of [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). Their concern is the availability of labeled collections and useful pretrained starting points for computational work. Earlier shared evaluations, including those they discuss from SemEval, considered offensive writing in monolingual collections and in mixed-language social media text. The paper notes that many such competitions concentrated on English and other well-resourced languages. Creating a shared evaluation for Dravidian text gave teams common labeled material on which to compare their approaches.

The availability of a labeled collection solves a different part of the problem from the availability of a pretrained checkpoint. The examples in the collection establish the classification target and show how it applies to particular inputs. Pretraining supplies parameters learned from a broader body of material before the team starts working with those labels. For [multilingual natural language processing](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/), that starting point offers a practical way to adapt the same general architecture to several tracks. The amount and nature of the language exposure during pretraining can still vary by checkpoint, a distinction that becomes important when the paper compares them.

#### Earlier approaches to offensive text

The authors identify HASOC-Dravidian-CodeMix-FIRE2020 as a precedent for evaluating offensive content in Tamil and Malayalam. They describe an entry that explored Naive Bayes, support vector machines, and random forests, alongside pretrained text encoders. A traditional classifier can learn associations between text features and the task labels from the examples available to it. A pretrained encoder comes with parameters that can support a more general representation of the input before the classifier is adapted to the labels. The shared setting allowed earlier teams to consider both routes.

The paper also describes a different use of pretraining in that competition. An entry used ULMFiT to learn from synthetically generated code-mixed writing before adapting it to downstream classification. The generated material was part of learning a starting representation of mixed-language text. This places the intervention at a different stage from the changes IIITK made in its custom classifiers. IIITK used available multilingual checkpoints and changed how the classifier above them learned from the supplied task examples.

In its methodological background, the paper moves from familiar text features to learned sequence representations. A bag of words describes which words occur and leaves their order aside. [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) adjusts the prominence of a term using information about its use in a document and in the wider collection. [N-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/) represent contiguous sequences and can retain some information about word order. These representations offer different views of the same writing, even when the learning algorithm operating on them is held fixed.

The paper also discusses neural approaches in which [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) represent words as vectors and recurrent networks process sequences. Its account of the move to transfer learning centers on [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and the [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) architecture introduced in [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/). A transformer encoder builds representations in which the surrounding input can affect how a token is represented. The authors point to BERT's performance on [GLUE](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/) as part of the case for adapting pretrained text encoders to other language tasks. Their own comparison concerns multilingual checkpoints that can be applied to the Dravidian datasets.

A further issue arises after a team has found a checkpoint that can process the inputs. The offensive-language data have uneven label frequencies. When a label occurs often, it supplies more examples from which the training procedure can learn. A scarce label offers fewer opportunities, and the objective can influence how much those opportunities matter to the fitted classifier. This gives the paper a question about training in addition to its question about language coverage. The team explores losses intended for imbalanced data and evaluates them alongside the standard classifier configurations.

#### Why the meme task has another source of evidence

The Tamil meme task uses a different target. The classifier must distinguish troll memes from non-troll memes. An example is available both as an image and as the words extracted from it. This makes the task part of [vision and language](https://md.research.elamur.ai/free/en/topics/multimodal/) research even when a particular submission uses one source alone. The point of having both views is that they can carry different information about the same item.

A caption gives a text classifier direct access to the wording selected for the meme. A picture can supply the subject of that wording, the scene it refers to, or a visual relationship that makes the phrase read differently. The extracted text also leaves behind details of placement and presentation. Conversely, the image gives a visual classifier the lettering as pixels, in whatever typography and surroundings the creator used. These are different representations of the item, with some evidence shared and some accessible more directly through one representation. The team can compare them because the troll label belongs to the paired item.

The paper relates this problem to a study of sentiment in Tumblr images and associated tags. In the study as described by the authors, text and visual features were treated independently before being used to predict sentiment. The authors also discuss the [Memotion shared task](https://md.research.elamur.ai/free/en/papers/sharma-2020-semeval-2020-task-8-memotion/). They describe an entry that explored arrangements of text and image features and obtained its strongest sentiment result with a text-only BERT classifier. The precedent makes it reasonable to ask how far captions can take a classifier by themselves, even when the underlying item includes a picture. Troll status provides a separate empirical test of that question.

The paper gives an example of a more integrated approach in its discussion of the hateful memes challenge. The winning entry it describes combined several vision-and-language systems. Among those were [VL-BERT](https://md.research.elamur.ai/free/en/papers/su-2019-vl-bert-pre-training-generic/) and [UNITER](https://md.research.elamur.ai/free/en/papers/chen-2019-uniter-universal-image-text-representation/), both cited in connection with learning from images and text. The [MultiOFF meme dataset](https://md.research.elamur.ai/free/en/papers/suryawanshi-2020-multimodal-meme-dataset-multioff-identifying/) also appears in the authors' account of offensive content that can involve both kinds of information. Across these examples, the choice of how to present a meme to a classifier is part of the research problem.

Transfer learning gives the authors a practical way to test each representation. For images, they trace the approach through progress in visual recognition associated with [AlexNet](https://md.research.elamur.ai/free/en/papers/krizhevsky-2012-imagenet-classification-deep-convolutional/) and subsequent convolutional architectures. For text, they draw from the same multilingual checkpoint families used in the offensive-language task. The common experimental idea is to start with learned representations and adapt them to the evaluation labels. The meme task adds a choice about the input to that adaptation. The offensive-language task adds a choice about which parts of the classifier can adapt and how to penalize its mistakes during training.

### The method, step by step

#### From examples to a trained classifier

The starting point is a labeled dataset and a checkpoint, a saved set of parameters learned during earlier training. In [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), the task examples provide the signal for adapting that starting point. For offensive language, the authors conduct the adaptation separately for Tamil, Malayalam, and Kannada. For the meme task, they fit separate caption and image classifiers. Each resulting classifier makes predictions in the label space of its own task.

For a text checkpoint, [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) turns the input string into the units the encoder is designed to process. Each checkpoint has its own tokenizer, a practical detail the authors return to in discussing the challenges of generating synthetic training text. The encoder turns the token sequence into numerical representations. A classification head uses those representations to produce a score for each available label. The label attached to the example then supplies the target for training.

A loss function translates the prediction and target into a penalty that guides parameter updates. The standard and custom offensive-language configurations differ in how they carry out this part of learning. In the standard path, the authors adapt the existing classification setup. In the custom path, they keep the pretrained encoder fixed and train a new head using one of the specified objectives. The image path likewise starts from pretrained parameters, with the image rather than a token sequence supplying input to the visual classifier.

Training and selecting the IIITK submissions The steps in order.

The development comparison serves a separate purpose from the training loss. The loss gives feedback while a classifier is fitting the training examples. The development score shows how the fitted classifier performs on a held-out subset used for selection. The authors report weighted F1 at that stage and on the official test. A weight in the training objective and a weight in the evaluation measure operate at different times and on different quantities.

#### Selecting multilingual starting points

The standard offensive-language experiments use mBERT-cased, XLM-RoBERTa, and IndicBERT. Much of the work relies on the Hugging Face Transformers library. The authors describe multilingual BERT checkpoints with different coverage: the cased variant covers 104 languages, and the uncased variant covers 100 languages. They follow the recommendation they attribute to BERT's authors and use the cased checkpoint in the offensive-language experiments. Retaining case preserves upper-case and lower-case as distinct forms wherever they occur in the text handled by the tokenizer.

The checkpoint the paper calls XLMR is the base version of XLM-RoBERTa, which the authors describe as covering 100 languages. It comes from work on [cross-lingual representation learning at scale](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/). IndicBERT comes from [IndicNLPSuite](https://md.research.elamur.ai/free/en/papers/kakwani-2020-indicnlpsuite-monolingual-corpora-evaluation-benchmarks/). The authors describe it as considerably smaller than the other checkpoints and point to the relative representation of Dravidian languages in its pretraining material. The choice makes it possible to compare several sources of multilingual representations on each labeled track.

For the standard branch, each checkpoint is adapted using the labeled examples for the language being evaluated. A result for the Tamil track therefore comes from a run with Tamil-track supervision. The Kannada and Malayalam tracks each get their own runs. A single multilingual checkpoint provides the initialization for those independent training procedures. This matters for what counts as transfer in the experiment. The transfer is from pretraining to a labeled task, and the paper evaluates the outcome after learning from examples in the target track.

The authors build custom configurations for mBERT-cased and XLMR. They explain their choice to use only the original IndicBERT setup by its smaller size. The experimental design consequently gives the larger checkpoints standard and custom counterparts while giving IndicBERT a place in the comparison of standard configurations. Comparisons involving IndicBERT can show how well its available setup competes with the others. The study has a narrower basis for investigating how a custom head or different loss would interact with that checkpoint.

#### What changes in the custom classifiers

The authors freeze the pretrained layers of the custom classifiers. A frozen encoder still transforms the input into a representation, and its learned parameters remain fixed while the head is trained. The head can learn which properties of the representation predict the labels. Any adjustment requiring a change in the encoder's processing is outside the learning permitted by this setup. That constraint is central to the comparison because the original configurations are described as being fine-tuned for the task.

At the interface to the head, the paper describes feature vectors of 768 dimensions from the transformer and an added fully connected layer with 512 neurons. A fully connected layer lets each of its units use the features from the preceding representation through trainable weights. The authors then describe a LogSoftmax stage with an output for each class. This stage expresses the class probabilities as logarithms, the form used by negative log likelihood. The paper gives the layer dimensions and the intended class output, while leaving details such as how it selects a representation from the encoder's sequence outputs unspecified.

One training choice is negative log likelihood, or NLL, with class weights. The training penalty rises when the probability assigned to the correct class falls. Giving different classes different weights changes how strongly mistakes on examples from those classes contribute to the training objective. With uneven class frequencies, such weighting offers a way to adjust the influence of examples beyond the influence they receive from their frequency alone. The authors identify the weighting as part of the method. They give neither the chosen weights nor a procedure for deriving them.

The alternative is Self Adjusting Dice loss, which the paper calls Sadice. The authors cite [Dice loss for imbalanced language tasks](https://md.research.elamur.ai/free/en/papers/li-2020-dice-loss-data-imbalanced-nlp/) and use the self-adjusting version to pursue the same broad aim of learning under uneven class frequencies. Each custom backbone is tried with both objectives on each offensive-language track. The paper names the objectives, but presents no equations for their implementations or for the reported weighted F1.

The training runs create a useful distinction between two kinds of comparison. The loss alternatives share the described custom architecture and freezing policy for a particular checkpoint. Comparing those alternatives gives evidence about the objective within that restricted setup. The standard and custom branches differ in the architecture of the head and in the parameters that adapt, as well as in the way the custom loss handles the labels. The results for those branches therefore compare whole configurations. The authors released their implementations for both tasks in the `OLI-and-Meme-Classification` repository.

#### Presenting the Tamil memes as text or pixels

For the caption branch, the input is the text supplied by the organizers. It is already extracted when training starts. The authors bring back mBERT-cased, XLMR, and IndicBERT in their standard forms, and they also try mBERT-uncased. Each text checkpoint is adapted to predict troll status from the supplied words. A run with one of these checkpoints tests the representation and classifier together, including the tokenizer that turns those words into input units.

The authors describe the meme dataset as free of the kind of skew they encountered in the offensive-language task. They use that assessment to explain why the caption classifiers are trained with their original setups. The custom frozen-encoder branch is specific to the offensive-language comparison. Including the uncased BERT checkpoint in the caption experiments creates an additional comparison within that branch, although the cased and uncased checkpoints differ in language coverage as well as in their treatment of case.

The image branch fine-tunes pretrained Inception and ResNet50 classifiers. The authors place these architectures in the development of convolutional image classification, which they trace from early convolutional networks through systems such as [ResNet](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/). A convolutional network builds a representation from patterns in local regions of the image and from combinations of those patterns. Starting from pretrained weights lets the visual classifier adapt an existing representation to the troll label using the supplied meme examples.

The image branch receives the meme as an image, including whatever lettering appears in it. The caption branch gets access to that wording through the organizer's extraction. This difference affects how to interpret the comparison. The presence of letters in the pixels leaves visual patterns related to text available to an image classifier. The procedure described in the paper gives it no separate transcription and reports no dedicated stage for recognizing the words. Its score is therefore the performance of a classifier trained to make the decision from the supplied pixels.

The prediction target stays the same across these branches, and the authors train each branch independently. A caption classifier cannot consult the image for the referent of a phrase. An image classifier cannot consult the extracted text when the lettering is difficult to read. A joint approach could have access to both representations when making a decision. The paper describes the separate runs as unimodal, meaning each uses a single kind of input, and reports results at that level.

#### Reserving examples for selection and testing

The organizers supply development sets for the offensive-language tracks. The team compares configurations for each language on its own development data and uses that evidence to choose its submissions. The test sets then provide the official evaluations. Because the tracks are fitted separately, using the same checkpoint family for the submissions amounts to choosing the same starting configuration for several training runs.

For memes, the organizers provide training and test data. The authors set aside 20% of the training data for validation, using that portion as their development set for comparing the caption and image runs. The official meme test comes from the organizer's separate test set. Those two evaluations answer different questions: which configuration does best on the authors' held-out portion of the training pool, and what score does the chosen approach attain under the official evaluation? The distinction turns out to matter substantially for the meme results.

### Experiments and results

#### What the datasets and the metric count

The paper traces the Tamil and Malayalam offensive-language datasets to earlier work on [Tamil–English code-mixed text](https://md.research.elamur.ai/free/en/papers/chakravarthi-2020-corpus-creation-sentiment-analysis-code/) and [Malayalam–English code-mixed text](https://md.research.elamur.ai/free/en/papers/chakravarthi-2020-sentiment-analysis-dataset-code-mixed/). It identifies KanCMD in connection with the Kannada track. The organizers give each track its own split. The sizes below count examples in those splits, irrespective of label.

| Offensive-language track | Training examples | Development examples | Test examples |
| --- | --- | --- | --- |
| Tamil | 35,139 | 4,388 | 4,392 |
| Malayalam | 16,010 | 1,999 | 2,001 |
| Kannada | 6,217 | 777 | 778 |

The Tamil meme dataset contains 2,300 training items and 667 test items. Each training item is an image with its associated extracted words. The authors' development allocation is 20% of the training pool. The paper reports that allocation as a percentage, while giving the count of 667 for the separate official test. Thus the development and test columns in the meme experiments refer to partitions established in different ways.

For both tasks, the reported measure is weighted-average F1. Precision for a class asks how frequently a prediction of that class agrees with the label. Recall asks how frequently the classifier recovers examples labeled with that class. F1 combines those quantities into a class-level score that depends on both. The weighted average gives each class influence according to how many examples of that class appear in the evaluation set. The figures describe overall performance with those frequencies taken into account. Per-class scores would be necessary to say which categories account for a high or low value.

The paper's main points of reference are the alternatives the team trained. In offensive language identification, the original configurations provide comparisons for the custom variants, while the alternative standard checkpoints give a way to assess the choice of BERT. For memes, the points of reference include other caption checkpoints and the independently trained image classifiers. Earlier work with traditional classifiers and with joint image and text representations supplies context for the design. The experimental comparisons themselves come from the configurations the team evaluates on these splits.

#### Tamil offensive language identification

On the Tamil development set, standard mBERT-cased and standard XLMR each obtain 0.76 weighted F1. IndicBERT obtains 0.74. That puts the strongest standard alternatives close together at the precision the paper displays. It also gives development evidence for considering either of the leading checkpoints for Tamil. The team ultimately chooses mBERT-cased across the language tracks.

Among the custom mBERT-cased runs on Tamil development, NLL with class weights yields 0.58 weighted F1 and Sadice yields 0.61. For custom XLMR, class-weighted NLL yields 0.64 and Sadice yields 0.61. The preferred objective within the custom branch therefore depends on the backbone. Each standard counterpart performs better than either of its customized versions on this development set.

The Tamil test yields 0.75 weighted F1 for each of the leading standard checkpoints, mBERT-cased and XLMR, and 0.73 for IndicBERT. Custom mBERT-cased reaches 0.59 with the weighted NLL objective and 0.61 with Sadice. For custom XLMR, the equivalents are 0.64 and 0.61. The test thus repeats the development ordering within each custom backbone as well as the printed tie at the top. The mBERT-cased submission takes rank 3 in the Tamil evaluation. XLMR's matching score is a result from the team's comparison, while the ranked entry is the configuration the team sent.

Tamil illustrates two scales of choice for this submission. Selecting among the standard checkpoints gives a group of competitive candidates. Moving from a standard checkpoint to a frozen version with the additional head and either custom objective gives a much weaker result in the reported aggregate. The comparison is consistent across the two Tamil splits even though several individual scores change. Within the custom group, the identity of the backbone remains relevant to which loss gives the better result.

#### Malayalam offensive language identification

On the Malayalam development set, mBERT-cased leads with 0.96 weighted F1. XLMR and IndicBERT each have 0.94. The custom BERT variant with class-weighted NLL achieves 0.82, and its Sadice counterpart achieves 0.87. For custom XLMR, both objectives yield a displayed value of 0.84. This is a track on which choosing the standard BERT setup gives a clearer development lead than the reported Tamil tie.

The Malayalam test scores for the standard configurations are 0.95 weighted F1 with mBERT-cased and 0.93 each with XLMR and IndicBERT. The custom BERT scores are 0.82 with class-weighted NLL and 0.87 with Sadice. Custom XLMR gives 0.83 with each loss at the displayed precision. The submission finishes at rank 3 for Malayalam.

Malayalam gives the team's highest weighted F1 among its offensive-language test submissions. That observation concerns the Malayalam test collection and its labels. Size, class frequencies, and the content of the examples can matter when going from scores on one track to scores on another. The clearest comparison supported here is within the Malayalam split, where each classifier is evaluated under the same conditions. There, standard mBERT-cased leads and the reported IndicBERT and XLMR scores agree. Repeated ties at the displayed precision tell a reader how close the aggregate values are in the paper's tables. The tables give no information about whether the tied classifiers got the same individual items right.

#### Kannada offensive language identification

Standard mBERT-cased has a Kannada development weighted F1 of 0.68, followed by 0.67 for XLMR and 0.63 for IndicBERT. Custom mBERT-cased reaches 0.35 with weighted NLL and 0.55 with Sadice. Custom XLMR reaches 0.10 with weighted NLL and 0.39 with Sadice. The lower results in the weighted NLL runs stand out when both backbones are compared with their Sadice counterparts on this track.

Kannada offensive-language test weighted F1 by classifier The submitted checkpoint shares the lead with standard XLMR, and the custom runs score lower.

**The numbers**

| System or setting | Weighted F1 |
| --- | --- |
| Standard mBERT-cased (this paper) | 0.71 |
| Standard XLMR | 0.71 |
| Standard IndicBERT | 0.67 |
| Custom mBERT-cased, Sadice | 0.53 |
| Custom XLMR, Sadice | 0.39 |
| Custom mBERT-cased, class-weighted NLL | 0.34 |
| Custom XLMR, class-weighted NLL | 0.09 |

The Kannada test preserves the order of the custom alternatives from development. Sadice yields the higher value within each custom backbone, and the class-weighted XLMR result is the lowest in the comparison. The original XLMR checkpoint moves into a tie with mBERT-cased at the precision shown. That leaves the selected submission among the strongest configurations the team tried on Kannada. It places 4 in the shared task.

Viewed across the offensive-language development sets, mBERT-cased has the highest printed score in Malayalam and Kannada and shares the highest printed score in Tamil. The test scores retain an outright lead for Malayalam and show ties with XLMR for Tamil and Kannada. This explains the decision to use one checkpoint family across the submissions while still fitting a classifier for each language independently. IndicBERT remains competitive in its original setup throughout the comparison. Every custom run comes in below the original version of its own backbone on the corresponding language and split.

#### Tamil meme classification

For Tamil memes, the development evaluation gives the caption classifiers the leading positions. Cased multilingual BERT obtains the highest weighted F1, with XLMR nearby. Development also shows that the comparison cannot be captured entirely by a single ordering of input types. ResNet50, the stronger visual entry on that split, scores above caption-based IndicBERT. Within the image branch, Inception has the lower development value.

Tamil troll meme development weighted F1 by classifier Cased multilingual BERT leads the development comparison using extracted captions.

**The numbers**

| System or setting | Weighted F1 |
| --- | --- |
| Caption mBERT-cased (this paper) | 0.94 |
| Caption XLMR | 0.93 |
| Caption mBERT-uncased | 0.90 |
| Image ResNet50 | 0.89 |
| Caption IndicBERT | 0.85 |
| Image Inception | 0.78 |

The team submits the caption-based mBERT-cased predictions on the strength of that development comparison. On the official test, the classifier earns 0.55 weighted F1 and retains the lead among the configurations evaluated by the team. The submission ranks 2 in the competition. XLMR remains the closest caption alternative. Among the image classifiers, Inception moves ahead of ResNet50 and ends up ahead of some of the caption systems as well.

Tamil troll meme official test weighted F1 by classifier The submitted caption classifier leads the test comparison, with Inception the strongest image run.

**The numbers**

| System or setting | Weighted F1 |
| --- | --- |
| Caption mBERT-cased (this paper) | 0.55 |
| Caption XLMR | 0.54 |
| Image Inception | 0.53 |
| Caption IndicBERT | 0.50 |
| Caption mBERT-uncased | 0.50 |
| Image ResNet50 | 0.46 |

The official test scores are lower across the entire comparison. Caption-based mBERT-cased leads on both partitions, with scores of 0.94 on development and 0.55 on test. The image comparison also changes in order: the architecture favored by the team's validation data is the weaker of the image alternatives on the official test. Inception's test score of 0.53 puts it close to the stronger caption approaches in weighted F1. The relative position of the best submission therefore carries over from development, while the magnitude of its score and the ordering of some alternatives depend on which examples are used.

The rank and the metric convey different information. Rank 2 describes where the submitted result sits among entries to the meme task. Weighted F1 of 0.55 describes its agreement with the official labels under the chosen scoring procedure. A high placement can accompany a modest absolute score, as it does here. The results of the other IIITK runs give the reader a local comparison with approaches fitted on the same task, including an image classifier that ends close to the best caption score despite its much lower standing on development.

### What the ablations show

The paper presents no formal component-by-component ablation, and instead offers comparisons between original and custom training setups, alternative losses within the custom setup, several pretrained checkpoints, and separate views of the meme input.

#### What can be learned from changing the loss

The comparison between loss functions within a custom backbone comes closest to a controlled test of a single choice. In the authors' account, the head and the policy of freezing the encoder are common to the alternatives for that backbone. The variation is the use of class-weighted NLL or Sadice. For custom mBERT-cased, Sadice has the higher weighted F1 on both splits of every offensive-language track. The consistency of that ordering makes it a practical result about how to choose between these particular custom BERT configurations.

XLMR changes the picture. In Tamil, class-weighted NLL gives the higher weighted F1 on both development and test. In Malayalam, the two objectives reach the same displayed score on a given split. In Kannada, the comparison favors Sadice on both splits. The pattern gives each part of the design a role in interpreting the result. A loss can perform differently when the contextual features come from a different frozen backbone. It can also perform differently with the same backbone when the training examples and labels come from a different track.

The strong overall result for the original classifiers adds a separate finding. For either backbone, the standard configuration leads its own custom versions in weighted F1 throughout the offensive-language comparisons. Because the custom intervention changes several parts of training, this result can be assigned to the configuration as a whole. The encoder's ability to adapt to the labeled task, the choice of head, and the loss could each influence the result. A matched comparison that froze and unfroze the same encoder with the same head and loss would help separate one of those influences. The authors' comparison of the standard and customized runs leaves those influences combined.

The evaluation measure also affects the interpretation of the loss experiment. The goal of addressing imbalance concerns what happens to classes with different representation in training. A weighted aggregate can move in either direction when class-level performance changes in opposite directions. For instance, gains for a scarce class could be accompanied by losses for a frequent class that carries more weight in the final score. The paper's aggregate results establish which complete classifier scores higher on the chosen metric. They leave open whether individual categories benefited from the changes in training.

#### What differences between checkpoints can explain

The standard IndicBERT results offer evidence about the tradeoff the authors raise between checkpoint size and pretraining material. They describe IndicBERT as having almost ten times fewer parameters than the larger alternatives. Its scores remain close to those of the leading standard configurations on the offensive-language tracks, including agreement at the printed precision with XLMR on both Malayalam splits. A smaller available checkpoint can therefore provide a competitive starting point in this particular setting.

The authors suggest that the relative prominence of Dravidian languages in IndicBERT's pretraining corpus helps account for its performance. They also discuss the size and pretraining of the stronger multilingual checkpoints and refer to their performance in the context of cross-lingual evaluation with XNLI. These are explanations the authors offer for observations about whole checkpoints. Their experiments vary the checkpoints as available packages. Size, the makeup of pretraining corpora, the training procedures, and the tokenizer can all differ across those packages. The strength of the evidence is in the observed transfer to these tasks, while the individual contribution of each property remains unresolved.

The BERT comparison for memes similarly operates at the level of the available cased and uncased checkpoints. Cased BERT obtains the higher score on both partitions, which supports the team's choice between them. The paper describes different language coverage for the checkpoints, giving a concrete reason to treat their comparison as more than a change to case handling. Holding the other parts of a checkpoint and training procedure steady while varying the treatment of case would address a narrower question. The reported result applies to the choice that a team using the existing checkpoints actually faced.

#### What separate meme inputs reveal

The caption and image runs establish that each representation can support some classification under the shared evaluation. The strongest caption run leads the strongest image run on both splits. The ordering across individual checkpoints is mixed, especially on test, where Inception exceeds some of the caption approaches. The comparison therefore depends on which system is used to process a given input as well as on whether that input is words or pixels. A high development score for a particular caption classifier supplies evidence about that trained classifier on those examples.

A controlled test of the contribution of each view would ask what happens when a classifier designed for the paired input receives less information. The IIITK classifiers use separate architectures and are learned separately. The observed comparison concerns the best predictions those distinct procedures make with their respective inputs. The published aggregate scores also cannot reveal whether, for example, Inception gets right some of the memes that the leading caption classifier misses. That question needs predictions matched by example, and an experiment combining the inputs would address how much any such complementarity helps classification.

Finally, the development-to-test pattern matters for the authors' interpretation. All the meme runs use partial views of the paired item, and all have lower scores on the official test. The authors connect this outcome to the multimodal nature of memes. Showing that the test contains more examples that require reasoning across image and caption would make that explanation more specific. The paper gives no subset analysis of that kind. The measured effect is a deterioration on the official split across the tested approaches, along with a change in which visual architecture performs better.

### Limitations

#### Limits the authors identify

The authors regard skewed label frequencies as a bottleneck for offensive language identification. The custom objectives change how the available training examples are used. The authors also discuss a possible intervention on the data itself: generating synthetic text that could help with the uneven distribution. They recognize a practical challenge in producing such inputs for checkpoints that consume text through their own tokenizers. Synthetic generation is a prospective direction in the paper, distinct from the procedures that produced the reported submission scores.

For memes, the authors argue that the nature of the material makes a single-input approach insufficient. Their explanation is that the words and pictures can matter together when deciding what a meme is doing. The official test scores give a measure of the shortfall for the standalone approaches they implemented. The paired dataset would also make a joint experiment possible, with both sources made available to a classifier for the same prediction. Since the study reports only the single-input approaches, it leaves the size and reliability of a joint approach's benefit open.

The two limitations arise at different points in the workflow. Label imbalance affects the examples that provide the training signal and the relative frequency with which the classifier encounters particular labels. The choice of a single meme input affects what information is available when any individual prediction is made. A result for a new loss addresses one way of learning from the available examples. A result for an image or caption classifier addresses one way of presenting the available evidence. The authors' explanations apply to those respective parts of the workflow.

#### Limits of the measurements

For offensive language, the paper reports split sizes without supplying a class-by-class account of evaluation performance. The metric gives more influence to labels with more examples. A high test value can accordingly summarize strong performance on frequent categories while giving little indication of recall for the scarce ones. This is a particularly consequential limit for evaluating the custom runs. Their objectives are motivated by class imbalance, but the weighted F1 values alone cannot show whether the intervention helped the classes that motivated it. A per-class outcome could distinguish a broad decline from a change in the tradeoff between classes.

Similarly, the results are aggregated by track, though the motivation emphasizes code-mixing and native-script writing. The paper gives no score broken down by these properties. An overall result therefore reflects the mix present in the corresponding test collection. It cannot establish that the observed ordering holds for code-mixed examples by themselves. Nor can it show whether some forms of language mixing are especially difficult for a particular tokenizer and encoder. Case handling is an example of a choice that could affect just part of a dataset and have an effect that is hard to see in a single track-level score.

The lack of that breakdown also limits explanations for differences between tracks. Malayalam has the strongest aggregate score in the offensive-language experiments, and Kannada has lower scores for the standard entries. The tracks differ in the sizes of their training and evaluation sets. Their label frequencies and the patterns found in the examples may differ as well. The paper gives no common analysis that assigns the score ordering to particular differences in language or data. The most direct evidence comes from comparisons of configurations evaluated against the same labels within the same track.

Close results warrant similar care. The tables give a single reported figure per setting and split, without uncertainty estimates or results from repeated runs. Tied printed values establish agreement at the precision in the table. They leave room for differences in which items are predicted correctly and for variation if the fitting is repeated. The nearby scores of the best meme approaches establish the ordering the team observed. They supply limited grounds for predicting that the same ordering would recur under another development sample or training run.

#### Limits of the meme split comparison

The Tamil meme development data come from the organizers' training pool. The official test comes from the separate pool supplied for scoring submissions. The paper gives the development fraction and the test size, with no detailed comparison of the samples' contents. The performance drop can therefore be described with confidence for the evaluations that were run. Its cause is harder to identify. The reported scores provide no direct measure of whether the partitions have different label frequencies, different kinds of images, or different uses of words within images.

The same difficulty applies to the authors' account of the relationship between image and words. A meme for which the caption alone makes the troll label apparent poses a different challenge from one in which the image changes how the caption reads. The aggregate results mix any such cases in the evaluation. Without assigning examples to categories based on the evidence required, the study cannot identify the source of the shortfall for either branch. The paper also gives no example-level disagreement analysis to show whether the visual and textual approaches fail on the same memes.

Starting from supplied caption text bounds the scope of the text-only results. In an application that begins with the image file, a separate process could be needed to recognize and extract words before a caption classifier receives them. The paper's caption results concern decisions using the text already obtained by the organizers. The reported image scores measure end-to-end prediction from pixels using the visual classifiers described, with no evaluation of a separate transcription stage. Neither branch supplies a measurement of how extraction errors would affect the caption approach.

#### Limits of replication and transfer

Some design choices are identifiable in the paper at the level of a configuration. These include the starting checkpoints, the dimensions given for the custom head, the freezing policy, the choice of losses, and the development split used for memes. Other choices that matter for reproducing an exact run receive less detail. The paper gives no class-weight values or weighting rule, no full specification of image preprocessing, and no complete account of the run schedules. It also leaves details of fitting after configuration selection unspecified. The published code is a separate implementation record. The prose and tables establish the level of detail at which a reader can reconstruct the comparison from the paper itself.

The transfer the authors demonstrate is adaptation from a pretrained checkpoint to the labeled tasks. Each offensive-language track has separately fitted classifiers trained with examples for that track. No experiment described in the paper trains on the labels for one language and then tests on another track. The results consequently establish that the same starting checkpoint can be adapted competitively in each of these settings. They do not measure transfer from one of the task-specific classifiers to a new language or collection.

The meme task is similarly bounded to the Tamil evaluation. It would take another evaluation to determine how far these results extend to images and captions in Kannada or Malayalam. Even within Tamil, the reported test score is tied to the examples and labels used by the shared task. Offensive language and troll status are also different classification targets. The fact that mBERT-cased was the selected starting checkpoint for both submissions shows its practical flexibility in the experiments. It provides no evidence that the two tasks call for the same decision rule or that one set of labels could substitute for the other.

### What came after

#### Findings from the shared evaluations

The [DravidianLangTech offensive-language findings](https://md.research.elamur.ai/free/en/papers/chakravarthi-2021-findings-shared-task-offensive-language/) address the Tamil, Malayalam, and Kannada task across submissions. The connection is direct and contemporaneous. The IIITK team describes its own configuration choices, while the shared-task findings concern the evaluation in which those choices were tested. The team paper itself points to the findings when identifying the task. This relationship places the IIITK ranks in the context of a shared benchmark and connects its language-specific runs to the wider evaluation.

There is a corresponding link to the [UVCE-IIITT Tamil troll meme entry](https://md.research.elamur.ai/free/en/papers/hegde-2021-uvce-iiitt-dravidianlangtech-eacl2021-tamil/). Its title emphasizes attention, and the IIITK authors refer to it in their discussion of the Tamil meme setting. Both entries concern the task in which the image and its extracted text are available. That shared input and prediction target establish the point of comparison. The IIITK paper gives no description of the other entry's attention mechanism or of a controlled comparison between the entries, so the relationship is clearest at the level of a common task.

The [hope speech shared-task findings](https://md.research.elamur.ai/free/en/papers/chakravarthi-2021-findings-shared-task-hope-speech/) belong to a neighboring line of multilingual classification research. The focus there is identifying speech connected to equality, diversity, and inclusion. The IIITK paper itself refers to related hope speech work on Tamil, Malayalam, and English. The citing findings connect the team paper to evaluations that use some of the same languages while targeting a different kind of expression. The connection concerns the shared research setting. It supplies no result about adapting the offensive-language classifiers to hope speech.

#### Later directions in detection and combination

The [Hate-Alert ensembling entry](https://md.research.elamur.ai/free/en/papers/das-2022-hate-alert-dravidianlangtech-acl2022-ensembling/) identifies ensembling as its direction. An ensemble combines information from multiple predictors in making a decision. This connects to a choice that arises once a team has several viable checkpoints. IIITK trained alternatives and used development performance to choose a joint starting point across its submissions, with task-specific fitting. An ensembling approach uses multiple predictors at the decision stage. The citation establishes the relationship to the earlier paper, while the particular checkpoints or feature choices reused by Hate-Alert remain unspecified.

The [CUET-Ignite detection entry](https://md.research.elamur.ai/free/en/papers/rahman-2025-cuet-ignite-dravidianlangtech-2025-detection/) is another citation from the DravidianLangTech series. Its description establishes a detection focus and the workshop setting, leaving the exact target, training design, and findings unspecified. That gives the relationship a narrower interpretation than a documented reuse of an earlier classifier. It shows that the IIITK paper was cited in subsequent workshop research on detection. The citation alone does not identify a test of the original conclusions about losses, checkpoints, or meme inputs.

[TriVector's abusive Tamil text detection study](https://md.research.elamur.ai/free/en/papers/rebayet-2026-trivector-dravidianlangtech-2026-abusive-tamil/) specifies a method more directly in its title: it augments transformers with lexical information to classify Tamil social media text. A lexicon provides information associated with particular words or expressions. Augmenting a transformer with that source places an additional form of evidence alongside the learned text representation. IIITK's Tamil offensive-language experiment also draws on pretrained transformer representations, with its comparison centered on checkpoint choice and the way the classifier is trained. TriVector pursues the related question of what a transformer can do when it has lexical information as well. The citing relationship identifies that connection without establishing shared labels, common test examples, or comparable scores.

## Cite

Cite as Nikhil Ghanghor, Parameswari Krishnamurthy, Sajeetha Thavareesan, Ruba Priyadharshini and Bharathi Raja Chakravarthi. 2021. IIITK@DravidianLangTech-EACL2021: Offensive Language Identification and Meme Classification in Tamil, Malayalam and Kannada. Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages.

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

```bibtex
@inproceedings{ghanghor2021iiitk,
  title = {{IIITK@DravidianLangTech-EACL2021: Offensive Language Identification and Meme Classification in Tamil, Malayalam and Kannada}},
  author = {Nikhil Ghanghor, Parameswari Krishnamurthy, Sajeetha Thavareesan, Ruba Priyadharshini and Bharathi Raja Chakravarthi},
  booktitle = {Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages},
  year = {2021},
  url = {https://aclanthology.org/2021.dravidianlangtech-1.30/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
