Elamur Research

Cross-lingual Offensive Language Identification for Low Resource Languages: The Case of Marathi

Paper · 2021 · Saurabh Sampatrao Gaikwad, Tharindu Ranasinghe, Marcos Zampieri et al.

Summary

A language can have a large online community and still lack the examples needed to study how people write in it. Relatively little data was available to train or evaluate systems for detecting offensive posts in Marathi, an Indo-Aryan language with more than 80 million speakers. Gaikwad and colleagues assembled MOLD, the Marathi Offensive Language Dataset, which they identify as the first Marathi collection for this task. Native speakers assigned offensive or non-offensive labels to the tweets, and the final collection contains 2,499 posts. The distinction follows the broadest category in an existing English annotation scheme. It makes Marathi evaluation possible while giving researchers a way to reuse task data from other languages.

The authors first compared ways of learning the task directly from Marathi examples. Some classifiers used word counts, while others processed text as a sequence or began with representations learned from large collections of text. The strongest Marathi-only result came from XLM-R, a multilingual transformer, with a macro F1 of 0.9103 on the held-out Marathi tweets. Macro F1 scores each class separately and gives both classes the same influence. That matters because non-offensive posts are more numerous in the test set.

The next experiments changed what XLM-R learned before it encountered Marathi task labels. The authors trained it on Hindi, Bengali, or one of two English datasets, then adapted each resulting classifier to Marathi. Every source improved on the Marathi-only XLM-R result. Hindi led with a Marathi test macro F1 of 0.9401, and Bengali followed at 0.9345. Hindi also led when there was no task training on Marathi at all and when adaptation used small samples of Marathi examples. These regimes test different uses of multilingual and cross-lingual NLP, from making predictions directly in a new language to giving a classifier a better starting point for learning there.

The larger English source yielded only a small improvement over the smaller English source after Marathi adaptation. The best results came from smaller resources in languages related to Marathi. The authors suggest that linguistic relatedness, contact between languages, and cultural background may help explain Hindi’s performance. The comparison changes the source collection along with the language, so its outcome also reflects possible differences in platform, examples, and labeling. The authors released MOLD and the experimental code. The HASOC 2021 shared task adopted MOLD as its official dataset for Marathi.

Deep dive: Cross-lingual Offensive Language Identification for Low Resource Languages: The Case of Marathi

The Marathi Offensive Language Dataset shows how training on Hindi, Bengali, or English affects the detection of offensive Marathi tweets. · about 32 minutes to read

The problem and its context

The missing resource was a set of judgments

The work starts from a disparity between the languages used in online communities and the languages represented in research on offensive content. The paper describes hate speech, cyberbullying, and other forms of offensive expression as problems that arise across languages. Yet much of the earlier computational work concentrated on English. English offered both collections of labeled posts and systems that had already learned general patterns from text. A researcher working in Marathi had fewer resources on which to base an equivalent study, even though Marathi had a substantial speaker population, mostly in India. The resource gap concerned the task a researcher wanted to study. Low-resource languages

For a system that assigns a category to a post, a labeled example has a different role from an ordinary example of written Marathi. It pairs an utterance with a decision about that utterance. The decision defines what the learner will be asked to reproduce. A collection of such examples can support training and can also furnish an independent test, provided some posts are kept out of training. Without the latter, even a system capable of reading Marathi has no agreed set of task judgments against which its offensive-language predictions can be scored. This is the role MOLD fills as a resource for text classification.

The breadth of the category is part of that resource. The paper places offensive language alongside more specific subjects such as hate speech and cyberbullying. A study of abuse directed at a group asks a different question from a study of whether a tweet contains offense in any form. An insult directed at a person and a profane expression with no specific addressee can both be relevant to the broader decision. The status of the target, and sometimes whether there is a target at all, belongs to a more detailed description of the post.

An earlier English dataset gave the authors a way to organize these decisions. The Offensive Language Identification Dataset, or OLID, puts the general offensive versus non-offensive decision at level A. Level B applies to offensive posts and distinguishes targeted insults or threats from untargeted profanity. Level C identifies the kind of target when there is one, with categories for an individual, a group, and another type of target. Gaikwad and colleagues use only level A. A Marathi post therefore receives a decision about the presence of offense without being sorted further by form or addressee. OLID’s offensive-language taxonomy

That choice also determines how earlier resources can enter the study. A dataset created to investigate aggression may distinguish overt and covert aggression because the distinction matters for its original task. Both categories can contribute examples to the broader Marathi task once they are mapped to a common positive label. The mapping is a practical agreement about the categories a classifier will predict. The definitions used when the posts were originally judged remain part of what the source teaches.

From features designed for a task to representations that can travel

The paper describes earlier detection systems that relied on feature engineering. A researcher chose which properties of a post to represent and supplied those properties to a statistical classifier. Support vector machines were common in this line of work. A support vector machine uses the input features to learn a boundary between categories. With word features, its decisions depend on distinctions available in the words or combinations the representation has retained.

In the subsequent work discussed by the authors, neural networks increasingly worked with word embeddings, numerical representations that let the network operate on words as vectors. This creates another route from a post to a decision. A word feature can register the appearance of a particular expression, while a vector representation can give a learner information about relationships between words. The paper places its Marathi recurrent networks in this line of research and its pretrained transformers in a later development.

With pretraining, a researcher can start from parameters that already encode patterns in text and adjust them using labeled examples for a particular task. The paper names BERT and XLNet as examples from this development. It also describes two ways earlier authors brought pretraining to offensive-language detection. One adapted a general pretrained system to the task, as in NULI’s OffensEval study. Another exposed the system to a corpus of abusive text during further pretraining, as in HateBERT. These precedents concern different stages at which prior text can influence a detector.

The paper also traces an expansion in the languages covered by dedicated resources. It discusses Arabic, French, and Turkish among the examples of work beyond English. The Greek and Turkish collections are particularly relevant to MOLD because their designers also adopted the OLID scheme. Other work pursued categories tailored to a particular problem, including hate speech aimed at immigrants and women and hate speech in text that mixes Hindi and English. Together these efforts give the Marathi study both a precedent for carrying a label scheme across languages and a reason to inspect the distinctions made by each source. Greek offensive-language identification · Turkish offensive-language corpus · HatEval · Hindi-English code-mixed hate speech

Shared tasks made it possible to compare systems against common data. The paper discusses OffensEval, HASOC, and TRAC in this connection. Such efforts increased the supply of multilingual resources and supported experiments with translated or augmented data, multilingual embeddings, and contextual representations shared across languages. They also explain the origin of the datasets selected for the Marathi comparisons. One source came from a TRAC aggression task, while another came from a HASOC hate and offense task. TRAC aggression benchmark

The immediate methodological precedent used a multilingual transformer to bring task training from English to languages with fewer labeled resources. The same classifier could receive text in different languages, and its class decision depended on numerical representations the languages shared. The attraction was practical. If a target language lacked enough examples of the required kind, an existing source could contribute task supervision. Cross-lingual embeddings for offensive-language identification

Gaikwad and colleagues distinguish between having plenty of source data and having data that lends itself to the target. They compare separate English collections to investigate how much a larger source might help. They also introduce Hindi and Bengali, which, like Marathi, are Indo-Aryan languages. This second comparison asks whether choosing a closely related source is worthwhile even when the English resources contain more examples.

The two questions become especially clear when task training is distinguished from pretraining. XLM-R already supports Marathi before the study teaches it any offense labels. The authors can therefore start teaching the task immediately with Marathi posts, teach it first in another language and then continue with Marathi, or teach it in another language and evaluate directly in Marathi. In each case the general starting point supports multiple languages. What changes is the sequence of labeled examples from which the classifier learns the specific decision.

The method, step by step

Find candidate tweets and have Marathi speakers judge them

The authors collected the Marathi posts through the Twitter API. They wanted both classes represented in proportions roughly like those in OLID. The English dataset contained around 33% offensive tweets and 67% non-offensive tweets. Those figures were a reference for constructing a benchmark with enough examples of either judgment. The search had to bring potentially offensive posts to the annotators while also gathering posts through queries that were independent of profanity.

For one part of the collection, the authors searched for 22 Marathi curse words in common use. For the other, they used phrases concerning sport, entertainment, and politics, along with the hashtag #Marathi. A result returned by a search was a candidate for annotation. A tweet retrieved through a topic query could still be offensive, and a curse-word match alone was insufficient to establish what the post was doing with that language. The final categories came from the human judgments.

The initial collection comprised 2,547 tweets. The paper describes the 6 volunteers as native Marathi speakers with bachelor’s degrees, ranging in age from 20 to 25. The instructions asked them for an offensive or non-offensive judgment, abbreviated OFF and NOT. They could also mark a post invalid under a rule for language mixing. A tweet with four or more words outside Marathi could receive this flag. The flag concerns eligibility for the dataset, whereas OFF and NOT apply to posts judged for the task. Linguistic annotation

The resulting MOLD release contains 2,499 annotated posts. The authors set up a random 75%/25% allocation to a training split and a test split. The former supplies the Marathi task examples wherever the training procedure calls for them. The latter supplies the evaluation judgments even in the runs in which Marathi is absent from task training. Keeping that role fixed lets the reader interpret differences between runs against the same collection of posts.

Check how consistently the labels are used

For an agreement check, three annotator pairs worked on a common set of 100 items. The authors report Cohen’s kappa for each pair. Kappa relates observed agreement to the agreement expected from the annotators’ category frequencies. If two people both assign NOT frequently, some matching judgments are expected from that tendency alone. Accounting for those frequencies makes the statistic more informative than a simple tally of shared labels. Kappa for classification agreement

The agreement figures were 0.91 for A1 with A2, 0.79 for A3 with A4, and 0.77 for A5 with A6. Each value belongs to a human pair and describes its decisions on the common material. This is a separate measurement from the F1 scores later used to evaluate classifiers. Kappa addresses whether annotators apply the categories similarly. Test F1 addresses how well a classifier reproduces the recorded categories on held-out tweets.

The pairwise figures give a reader some evidence about the annotation procedure while preserving the variation between pairs. They are particularly relevant here because a positive label has to accommodate multiple forms of offense. The same two output categories can be straightforward to apply to some posts and require much more interpretation for others. The reported agreement summarizes the decisions across the common material without specifying which kinds of posts generated disagreements.

Express the source labels in the Marathi task’s categories

A classifier trained in one language can be reused for this experiment because its outputs have the same form in each run. A source post provides a training example for OFF or NOT, and the corresponding Marathi task uses those labels at test time. The English datasets already provide the broad OLID distinction. The authors take level A from EN-OLID and use the corresponding broad labels from EN-SOLID.

EN-SOLID differs from EN-OLID in how the labels were obtained. The full resource contains over nine million tweets labeled through weak supervision. In this case that means labels were generated using predictions from an ensemble of four classifiers. The resource also records an average confidence and a standard deviation of the confidence scores. The average summarizes the confidence across the contributors, while the standard deviation describes how dispersed the contributing scores are.

The English transfer run uses a selected portion of EN-SOLID. The criterion was an average confidence greater than 0.85. This left 120,758 training examples. The threshold is part of the definition of the source used in the study. For purposes of comparing source sizes, the relevant amount is the number retained under that rule. The criterion also determines which examples remain, since inclusion depends on the confidence of the systems supplying the labels.

The Hindi source is the HASOC 2019 dataset, abbreviated HI. Its labels divide posts into hateful or offensive content and content outside that category. These labels are mapped to the Marathi task’s broad decision. HI consists of Twitter posts, as do the two English sources and MOLD. The shared platform is one point of correspondence a reader can keep in view when comparing otherwise separate collections.

The Bengali source, abbreviated BE, is from TRAC and contains Facebook posts. Its original labels distinguish overtly aggressive, covertly aggressive, and non-aggressive material. Overt and covert aggression both become OFF, while non-aggression supplies the other class. The Bengali classifier thus learns a broader positive category than the original TRAC experiment asked participants to distinguish. It can still benefit from having both forms of aggression in its examples.

This harmonization leaves each dataset with its own text, original annotation decisions, and method of gathering posts. It makes the last stage of each classifier compatible with the Marathi decision. For example, an overtly aggressive Bengali post and a Marathi tweet labeled offensive contribute to the same output category during their respective stages of training. Their membership in that category is determined by the procedures of their respective datasets.

Establish what direct training on Marathi can do

Before testing transfer, the authors compared several ways to train the task using labels from MOLD. Their classical classifiers used features based on the words in a tweet. The steps described for preparing the text for feature extraction included removing stop words, special characters, numbers, and excess spaces. Stop words are items drawn from a list for exclusion. In a word-based comparison, this cleaning helps define what evidence a classifier receives.

A bag of words represents a text through its words without preserving their order across the post. The study also describes word unigrams and combinations of unigrams and bigrams. A unigram represents one word, while a bigram can retain a pair of adjacent words. A pair can give the classifier evidence about a short expression as a unit. The weighting discussed by the authors, TF-IDF, gives a feature weight based on its frequency in a text and how widely it occurs across texts. Common features that appear throughout the collection therefore have a different role from features that concentrate in a smaller set of posts.

The classical comparison used Scikit-learn implementations of a decision tree, naïve Bayes, random forest, and support vector machine. These classifiers take the available features and turn them into class evidence in different ways. A decision tree follows a succession of feature-based conditions. A random forest combines decisions from several trees. Naïve Bayes uses a simplifying assumption about the relationship between features when estimating class evidence. The support vector machine learns a separation in the space formed by the features. The results table describes these entries as bag-of-words systems, while the methods discuss the broader range of feature configurations explored.

Another branch used neural networks. The authors tried a multilayer perceptron, a long short-term memory network or LSTM, and a bidirectional LSTM with attention. A multilayer perceptron makes a prediction through successive transformations of its inputs. An LSTM works through the input sequence, retaining information in an internal state as it moves along the text. The bidirectional version can draw on information from each direction. An attention mechanism allows different positions to contribute different amounts to the decision. Where these experiments used word vectors, the paper identifies pretrained Marathi word2vec embeddings as the resource.

The authors also evaluated multilingual BERT, labeled BERT-m, and the large version of XLM-R. Both can take Marathi text as input. XLM-R also supplies cross-lingual representations, which make it a candidate for carrying the same learned classification procedure from a source language into Marathi. That is the architecture the authors keep for the source-language comparisons.

“Marathi-only” in this experiment specifies the language of task training. The multilingual transformers come with prior training, and the recurrent systems can use existing Marathi embeddings. A Marathi-only score is therefore evidence about training an offensive-language classifier with Marathi task judgments from MOLD. The term does not specify the languages used to create every component available at initialization.

Use a common classification head and select settings through validation

The transformer design follows the architecture in the earlier cross-lingual study. It uses the representation at the special classification position, written [CLS] in the paper, for a decision about the whole post. The representation is a vector calculated from the input. It supplies information to a classification head, the part that takes the representation and produces scores for the task’s categories.

The head uses a softmax to obtain class probabilities. Softmax exponentiates each class score and divides that value by the sum of the exponentiated scores for all classes. Here the scores belong to OFF and NOT. The resulting probabilities use a common scale, and raising a class score relative to the other gives that class a greater share. The paper describes this calculation as part of the architecture and specifies the classification position from which the head receives its input.

Updating a pretrained system using task examples is fine-tuning. The weights are the numerical parameters adjusted through training. The hyper-parameters are choices about how to run training or configure the classifier. The authors describe selecting hyper-parameters manually using a validation set formed by a 0.8:0.2 division of the training data. The validation examples give the authors a basis for comparing settings before using the test split to report the results.

For the neural experiments, validation was checked every 100 training batches. A batch is a group of examples processed together in training. The paper describes early stopping after 10 evaluation steps without an improvement in validation loss. Loss is the criterion used to measure prediction error during training or validation. As fitting continues, a classifier can get better at the examples it is being trained on while becoming less useful on examples outside that group. Early stopping uses the validation behavior to decide when further fitting has ceased to help under the reported rule. The neural experiments ran on an Nvidia Tesla K80 GPU.

Reuse source weights with different amounts of Marathi training

For each source experiment the authors first trained a separate copy of XLM-R on the selected source task. This produces a classifier that has already used a version of the OFF versus NOT decision. They then saved the transformer weights and the softmax head weights. Saving both preserves the representation and the source-trained decision component together.

In the full transfer setting, both sets of weights initialize the classifier that continues training with MOLD. Marathi examples can now change how the encoder represents a post for the task and how the head interprets that representation. This setup tests whether a starting point shaped by earlier task training is more effective than beginning the task with MOLD alone.

In the zero-shot setting, the authors omit Marathi task training and use the source classifier to predict on the Marathi test split. The source data determined the adjustments made for the task. The multilingual pretraining supplies the general ability to process Marathi text. The two contributions are enough to produce a label for a Marathi tweet, and the held-out judgments show how well those decisions carry over without Marathi examples to guide adaptation.

The intermediate setting starts from the same source-trained classifiers and uses small Marathi samples for additional training. The paper names sample sizes of 100, 200, and 300 Marathi instances and evaluates additional sizes in its figure. This is few-shot learning in the sense of the study: the classifier is adapted with a limited quantity of target-language task data. It provides evidence about source choice when some Marathi annotations can be collected but the amount available is below the full training condition.

Training and testing source-based classifiers for Marathi

The steps in order.

Training and testing source-based classifiers for MarathiStep 1: Convert each source’s labels to the shared categories1. Convert each source’s labels to the shared categoriesStep 2: Fit a separate XLM-R classifier to each source2. Fit a separate XLM-R classifier to each sourceStep 3: Retain the transformer and classification head weights3. Retain the transformer and classification head weightsStep 4: Apply the chosen amount of Marathi task training4. Apply the chosen amount of Marathi task trainingStep 5: Classify the held-out Marathi tweets5. Classify the held-out Marathi tweetsStep 6: Compare predictions with the recorded judgments6. Compare predictions with the recorded judgments

The workflow changes the sources one at a time. Hindi and Bengali, for example, produce distinct starting weights for Marathi. The resulting scores refer to those individual routes into the target task. A joint source obtained by pooling languages would be a different training condition. The Marathi-only XLM-R comparison sits alongside the source routes and begins directly with MOLD task judgments. The authors made MOLD, the code, and the trained classifiers available.

Experiments and results

Keep the destination fixed while changing the route

MOLD’s training split contains 1,874 posts, including 669 offensive and 1,205 non-offensive tweets. The test split contains 625 tweets, of which 207 are offensive and 418 non-offensive. Across the collection, the class totals are 876 offensive and 1,623 non-offensive. The split counts describe the distribution the classifiers encounter during training and evaluation. Especially for evaluation, that distribution affects the interpretation of a single aggregate performance measure.

The source datasets have different sizes. The paper lists 8,000 Hindi HASOC instances and 4,000 Bengali TRAC instances. EN-OLID is listed with 14,100 posts. The English source drawn from EN-SOLID has 120,758 training examples after filtering. These figures describe the resources brought to the task before Marathi evaluation. A score attributed to the Hindi source in the transfer results, for example, measures prediction on Marathi tweets, with the Hindi data determining the earlier task training.

The authors use macro F1 and weighted F1 to summarize evaluation. Both are built from an F1 for each class. To compute the offensive class’s precision, consider the tweets predicted to be offensive and ask what share have that label in the annotations. To compute its recall, consider the tweets annotated as offensive and ask what share the classifier finds. The measure is sensitive to different mistakes in these two views. Classifying a non-offensive tweet as offensive uses up precision, while overlooking an offensive tweet uses up recall.

A class’s F1 is the harmonic mean of its precision and recall, so strong performance on one of the two contributes less when the other is weak. The same calculation can be made for NOT by treating it as the class of interest. Macro F1 averages the class scores equally. Weighted F1 scales each class’s share of the average according to its frequency in the test set. In MOLD, the latter score consequently depends more on performance for NOT. Reporting both makes it possible to see whether a ranking changes under the two class weightings.

XLM-R sets the strongest Marathi-only baseline

When the task was taught directly from Marathi examples, XLM-R large led the comparison with a macro F1 of 0.9103 on the MOLD test set. Multilingual BERT was next at 0.8852. The LSTM at 0.8400 and the bidirectional LSTM with attention at 0.8238 came ahead of the best classical baseline, a random forest with 0.7686. The multilayer perceptron fell between the random forest and the support vector machine.

Macro F1 for Marathi-only training on the MOLD test set

The pretrained transformers lead the direct Marathi comparison, with the recurrent classifiers next.

Macro F1 for Marathi-only training on the MOLD test setXLM-R large (this paper): 0.9103XLM-R large (this paper)0.9103Multilingual BERT: 0.8852Multilingual BERT0.8852LSTM: 0.8400LSTM0.8400Bidirectional LSTM with attention: 0.8238Bidirectional LSTM with attention0.8238Random forest: 0.7686Random forest0.7686Multilayer perceptron: 0.7541Multilayer perceptron0.7541Support vector machine: 0.7489Support vector machine0.7489Naïve Bayes: 0.7223Naïve Bayes0.7223Decision tree: 0.7028Decision tree0.7028
The numbers
System or settingMacro F1
XLM-R large (this paper)0.9103
Multilingual BERT0.8852
LSTM0.8400
Bidirectional LSTM with attention0.8238
Random forest0.7686
Multilayer perceptron0.7541
Support vector machine0.7489
Naïve Bayes0.7223
Decision tree0.7028

Weighted F1 also puts the two transformers in the lead. On the same test set, XLM-R records 0.9210 and multilingual BERT 0.8994. The bidirectional LSTM’s weighted F1 is 0.8251. The weighted F1 entry for the LSTM contains an extra decimal point in the paper, so its exact intended value is unclear.

Changing the class weights changes the order of some of the simpler classifiers. The support vector machine has a Marathi test weighted F1 of 0.7813, ahead of the random forest’s 0.7796 even though the macro ranking runs the other way. The perceptron records 0.7830, while naïve Bayes and the decision tree have 0.7597 and 0.7395. For these classifiers, the choice of aggregate affects how a reader interprets their relative standing. It still leaves the leading architecture for the transfer experiments clear.

The authors found the strength of the neural approaches notable given MOLD’s size. The multilayer perceptron is the exception to the pattern, since the random forest beats it by macro F1. The more consequential comparison for the transfer question is between different routes into the same XLM-R architecture. The Marathi-only result gives a baseline against which source training can be assessed while retaining the same form of classifier and the same evaluation task.

Source training improves results after Marathi adaptation

All four source datasets raised the Marathi test macro F1 above the Marathi-only XLM-R result once the source-trained classifier had been adapted to Marathi. Hindi achieves 0.9401 and Bengali 0.9345. The filtered English SOLID source reaches 0.9321, followed by English OLID at 0.9298. The chart includes the direct Marathi run so the source comparisons can be read against the architecture-matched baseline.

MOLD test macro F1 for XLM-R with and without source training

Every source improves on the Marathi-only baseline, and Hindi gives the highest score.

MOLD test macro F1 for XLM-R with and without source trainingHindi HASOC followed by Marathi (this paper): 0.9401Hindi HASOC followed by Marathi (thispaper)0.9401Bengali TRAC followed by Marathi: 0.9345Bengali TRAC followed by Marathi0.9345English SOLID followed by Marathi: 0.9321English SOLID followed by Marathi0.9321English OLID followed by Marathi: 0.9298English OLID followed by Marathi0.9298Marathi task training only: 0.9103Marathi task training only0.9103
The numbers
System or settingMacro F1
Hindi HASOC followed by Marathi (this paper)0.9401
Bengali TRAC followed by Marathi0.9345
English SOLID followed by Marathi0.9321
English OLID followed by Marathi0.9298
Marathi task training only0.9103

The weighted results on the MOLD test set have the same ordering. Marathi adaptation after Hindi gives 0.9492, and adaptation after Bengali gives 0.9422. Adaptation after EN-SOLID reaches 0.9399, and after EN-OLID it reaches 0.9385. All of these are above the 0.9210 weighted F1 of direct Marathi task training. Thus the gain from the source stage appears under either way of combining the class scores.

These comparisons answer the source-choice question for the adapted classifiers. English training proved beneficial even though both English collections ranked below both related-language collections. Bengali proved beneficial even though its posts came from Facebook and its positive label was created by combining aggression categories. Hindi gave the strongest starting point out of the sources evaluated. Those are observations about the complete routes from a source dataset through Marathi adaptation to the test set.

The English pair gives the comparison most directly connected to source size. The filtered SOLID resource is much larger than OLID, and its adapted score is higher. The results of the two routes nevertheless sit close together. The difference in the number of available examples is much more conspicuous than the difference in the resulting scores. Since each source is a separately constructed dataset, this comparison concerns the value of the two available resources at their reported sizes.

Direct transfer favors the same source

The ordering persists when the authors take a source-trained classifier straight to the Marathi test set. Zero-shot macro F1 is 0.8396 from Hindi, 0.8115 from Bengali, 0.7954 from EN-SOLID, and 0.7854 from EN-OLID. The corresponding weighted F1 values on those same Marathi tweets are 0.8461, 0.8176, 0.8004, and 0.7901.

Zero-shot macro F1 by source on the MOLD test set

Hindi transfers best without Marathi task training, followed by Bengali and the English sources.

Zero-shot macro F1 by source on the MOLD test setHindi HASOC (this paper): 0.8396Hindi HASOC (this paper)0.8396Bengali TRAC: 0.8115Bengali TRAC0.8115English SOLID: 0.7954English SOLID0.7954English OLID: 0.7854English OLID0.7854
The numbers
System or settingMacro F1
Hindi HASOC (this paper)0.8396
Bengali TRAC0.8115
English SOLID0.7954
English OLID0.7854

The zero-shot results measure what carries over before target adaptation can alter the source-trained decision. For Hindi, the classifier has learned the task from Hindi judgments, and at evaluation it has to apply the resulting decision to tweets written in Marathi. For Bengali, both the language and the original platform change at this point. The zero-shot scores show that the transferred distinctions have some predictive value under these changes.

Every zero-shot macro F1 score is below the result from directly training XLM-R on MOLD. Every source also scores higher after target adaptation than it does in its own zero-shot run. The benefit of source training seen in the full transfer comparison therefore coexists with a substantial role for Marathi training. Hindi performs best as a sole source for the task, and the highest overall score comes when that source training is followed by direct exposure to Marathi labels.

Small amounts of Marathi supervision preserve Hindi’s lead

The few-shot series addresses a setting between those end conditions. The authors take classifiers already trained on the source datasets and retrain them using small Marathi samples. Among the sample sizes reported in the prose are 100, 200, and 300 Marathi training instances. The outcome plotted in the paper is macro F1 on the Marathi task as the amount of adaptation data changes.

Hindi is the leading source at every sample size the authors discuss. Its lead is therefore observed when Marathi judgments enter in small quantities as well as in the zero-shot and full-transfer comparisons. The few-shot figure concerns the relative behavior of sources across the tested amounts. The tables give exact macro and weighted F1 for the end conditions, while the paper describes the intermediate results through the plotted series and its ordering.

Each regime answers a distinct evaluation question. Direct transfer asks how well the task decision survives a switch to Marathi without target labels. Few-shot adaptation asks which source helps most when the classifier can learn from a small target sample. Full adaptation asks whether earlier source training still helps when the available Marathi training data can guide the task. Hindi’s leading position is common to these conditions. The whole pattern is stronger evidence for its usefulness within MOLD than a lead confined to a single setting.

What the ablations show

The paper reports no component ablations of XLM-R. Its comparative analyses vary the source dataset, the availability of Marathi labels, and the choice of classifier in the Marathi-only experiments.

What the extra training stage contributes

The direct Marathi run and the full transfer runs make the closest comparison for determining whether source task training adds value. The classifier architecture and the destination test set have the same roles. In the source runs, XLM-R is first fitted to labels from another dataset and brings the resulting weights to Marathi. All those routes improve over directly learning the task in Marathi. The finding therefore applies to the presence of a source stage across the available sources, as well as to Hindi’s lead among them.

The source stage updates both parts used for classification. The transformer can learn representations useful for how its source examples are labeled. The head can learn how to turn those representations into an OFF or NOT decision. The reported transfer preserves the state of both. The comparison can therefore support the claim that the source-trained initialization helps as a package. It leaves open whether the same effect would arise from keeping the transformer weights and learning a fresh classification head, or whether reuse of the head is important to the gains.

The amount of task training also changes when a source stage is added. The classifier has encountered the source examples before learning from Marathi. A gain over the Marathi-only run reflects the effects of that exposure under the given procedure. It does not independently measure the value of the additional number of updates, the source label information, or the representation learned from the source text. For a reader interpreting the method, the experimental operation is the full move from pretrained XLM-R to source-trained XLM-R, then to Marathi.

The Marathi-only results address a different comparison. They show a ranking among complete implementations, which vary in representation and architecture. The recurrent classifier with attention differs from the ordinary LSTM in direction of processing as well as in its attention mechanism. Their scores therefore describe the two complete systems without isolating the contribution of attention. Likewise, XLM-R’s lead over a word-count classifier reflects several simultaneous choices, including pretraining and the form in which the input is represented.

What the source swaps reveal about data size and language

Comparing the English sources keeps English as the training language and Twitter as the platform. The broad labels also come from the same classification scheme. SOLID’s larger selected collection gives a higher score in both tabulated transfer regimes, and the adapted outcomes remain close. This gives practical evidence about what the researchers obtained by choosing the much larger English source in this particular setup.

The sources differ in more than volume. The selection rule applied to SOLID favors examples assigned labels with sufficient average confidence by its ensemble. The examples available after that filter have their own distribution and their own possible labeling errors. A comparison designed to estimate the effect of volume alone would vary the amount drawn from a common source with the labeling procedure held fixed. The English swap instead measures the net outcome of replacing one available corpus with the other.

The related-language comparisons restrict other possible explanations. The Hindi and English sources all use Twitter posts. That shared property cannot on its own explain why Hindi ranks above both English sources. Conversely, Bengali comes from Facebook and still ranks above English in the tabulated regimes. Its result shows that a source can be useful without sharing the target platform, even when it also starts from a different label taxonomy.

Hindi and Bengali together give evidence compatible with the authors’ language-similarity hypothesis. They give stronger results than larger English sources under the same Marathi test and XLM-R approach. The comparison does not establish which aspect of relatedness helps, because the selection of a related language also selects a particular dataset. Hindi had more source instances than Bengali and matched MOLD’s platform. Bengali brought examples assembled for aggression detection. Differences in the speech sampled or in the categories applied could matter alongside linguistic relationships.

The authors point to Hindi and Marathi being typologically related, in contact, and sharing cultural background. These are plausible routes by which a source could become useful. Typological similarity concerns structural properties of the languages. Contact and shared background can affect which expressions and references people use. The reported comparison does not measure any of these pathways separately. Hindi’s lead gives a reason to investigate them, with the observed ranking itself grounded in the selected resources.

What changes as Marathi labels enter training

For a given source, the zero-shot and full-transfer rows compare evaluating the source-trained classifier directly with evaluating it after Marathi adaptation. The source is held fixed within that comparison. All the source classifiers improve after learning from Marathi examples, which shows that source training leaves task information for the target data to supply. This can include evidence about how offense is expressed in Marathi, as well as examples of how the MOLD annotation scheme applies to those expressions.

The few-shot comparisons establish that the Hindi advantage is observable before the full Marathi training condition is reached. Its rank at small sample sizes also agrees with its zero-shot rank. This helps rule out an explanation of the lead that depends on having the full training split available for adaptation. It is evidence about the observed outcomes across the sampled conditions. It does not identify when individual sources learn particular features or which Marathi examples matter most.

An evaluation of sample efficiency would additionally need to distinguish a source’s score from its response to each new set of Marathi posts. A consistently leading source might begin with an advantage and hold it, or its lead might change as it learns from the examples. The authors use the few-shot figure to show Hindi’s rank at the tested sizes. The paper supplies no estimate of how that pattern varies with other draws of examples at the same size. The evidence for Hindi is consistency across supervision conditions within the experiment.

Limitations

Limits the authors identify

The authors describe MOLD as a relatively small resource. Their transfer study is motivated by that constraint, and the English comparison leads them to suggest that more source examples may reach a point of diminishing usefulness. Their evidence is a comparison of the two English resources they used. It gives neither a threshold in the amount of data nor an estimate of what would happen if more examples were added to a particular collection under matching conditions. It supports a narrower observation about performance from these sources on this target.

A further limit is the annotation level. The paper evaluates the broad presence of offense, and the authors describe expansion to OLID levels B and C as work in progress. Those levels would let an experiment distinguish targeted abuse from untargeted profanity and identify the kind of target. The current scores apply to deciding whether a tweet falls into the broad OFF class. The labels used for evaluation supply no direct test of whether a classifier can describe the offense in more detail.

The authors also describe a future comparison intended to clarify the possible roles of language relationship and culture. They propose testing transfer from Dravidian languages in India, naming Tamil and Telugu. Their reasoning is that comparisons of this kind could help study the interplay of linguistic similarity and cultural overlap. The reported Marathi experiments examine Hindi, Bengali, and English. The paper’s explanation involving contact, linguistic structure, and cultural background remains an interpretation of those results.

Limits visible in the collection and annotation

The way the authors gathered tweets determines the kind of generalization the test can measure. They deliberately sought a collection with both classes well represented, used curse-word searches to find some of the material, and used selected topic searches to find other material. The class proportions describe the resulting benchmark. They provide no population estimate of the prevalence of offensive tweets in Marathi. A prevalence estimate would require a sampling procedure suited to that question.

Querying for common curse words may give the benchmark good coverage of material that contains those expressions. It gives less direct evidence about offense expressed indirectly or without those terms. Some examples of such offense could enter through topic searches. The paper gives no separate counts or test scores for those forms of expression. The evaluation consequently concerns the mixture of examples found by the collection procedure, with the balance among different kinds of offense unspecified.

The allocation between training and test was random within MOLD. It supports an estimate of performance on held-out posts in the assembled collection. The paper reports no evaluation that withholds a later period, an author group, or a topic as a distinct test condition. Each would ask an additional question about whether the decision generalizes when the setting changes. A single random split also leaves open how much the results might depend on the particular items allocated to the test set.

There is a similar distinction between platform transfer at training time and at evaluation time. The Bengali source shows that training on data from Facebook can help classify Marathi tweets. The destination in that experiment remains Twitter. Performance on Marathi Facebook content, or on material from some other platform, would require evaluation judgments from that setting.

The invalid-post rule matters when reading the benchmark as a study of Marathi use online. Posts with four or more non-Marathi words could be flagged during annotation. The resulting scores are most directly applicable to the language mix represented by the accepted tweets. The study reports no breakdown of results by the amount of code-mixing. Earlier work on mixed Hindi and English provides context for why mixed-language content can be a task in its own right, while MOLD’s eligibility rule defines which material enters this particular evaluation.

The kappa results are evidence about the people who annotated the common set. Those participants were native speakers within the reported age range and educational group. Readers interested in the judgments of broader Marathi-speaking communities would need agreement evidence from other groups of annotators. The paper also gives no breakdown of disagreements by subject or expression. A pairwise agreement score can describe the overall consistency of a pair without revealing whether its disagreements were concentrated at a particular category boundary.

Limits visible in the comparisons and reporting

Every source has a combination of language, collection procedure, platform, category definitions, and data volume. Some characteristics match across selected pairs. The English comparison shares the language, while Hindi and the English sources share the platform. No comparison keeps all of those properties fixed while changing only language relatedness. The magnitude of an independent relatedness effect therefore remains unmeasured. The reported evidence is that the related-language resources, as assembled and used in this experiment, outperform the English resources on the Marathi benchmark.

Label mapping compounds this issue. A Bengali label for covert aggression is treated as OFF for training purposes. That decision furnishes useful examples while preserving the source annotators’ prior judgments about aggression. A Hindi label also comes from a task that groups hateful and offensive content. Shared output names make the transfer possible, but the paper offers no cross-dataset study showing that annotators would label comparable posts identically under all the schemes.

Macro and weighted F1 are useful summaries of the imbalanced test data, and both largely agree on source ordering. They do not reveal which errors produce the difference between sources. A better aggregate can result from fewer mistakes of one kind while mistakes elsewhere persist. The results do not provide error breakdowns for different kinds of offense or for speaker groups. Questions of uneven performance across such cases are distinct from the aggregate comparisons. Bias, fairness, and safety

The paper also reports point scores without uncertainty intervals or repeat-run estimates. The exact decimals are enough to state the observed rankings in its tables. Their stability across new train-test splits or repeated training is undetermined, particularly for nearby scores. The score differences among the better adapted classifiers should be interpreted in that light. The same reporting limit applies to reading the few-shot curves as evidence about how reliably a particular quantity of Marathi supervision would suffice.

Finally, the task is a benchmark decision on the text of a post. The experiments measure agreement with the binary labels, without evaluating how predictions would be used for moderation or how a user’s broader history might affect a judgment. The paper’s motivating examples include social problems that can depend on targets and context. Those examples explain why an offensive-language benchmark matters. The empirical claims concern the scope of the labels and the tweets on which the classifiers were tested.

What came after

MOLD became a common evaluation resource

The documented direct reuse is at HASOC 2021. Gaikwad and colleagues identify MOLD as the official Marathi dataset for the shared task. The follow-on changes the role of the resource. In the paper, the authors use it to compare their Marathi and cross-lingual training procedures. At HASOC, it serves as the Marathi dataset in a wider evaluation concerned with offensive content and hate speech in English and Indo-Aryan languages. That connection follows from adoption of the dataset itself. Participants can study the Marathi task with a shared set of recorded judgments. HASOC at FIRE 2021 overview

This is a different kind of continuation from reproducing the Hindi transfer experiment. The reusable element clearly documented is the annotated Marathi material. A shared task can build on that resource while allowing different choices about classifiers and training. Its adoption therefore gives the creation of MOLD a follow-on independent of whether participants use the original source initialization.

The study by Banerjee and colleagues cites the Marathi paper and investigates transformer-based detection of hate speech and offensive content for English and Indo-Aryan languages. It continues the methodological line of applying pretrained transformers to this family of classification tasks. The citation and scope establish that relationship. Specific reuse of MOLD, the choice of a source for Marathi, and any comparison with Gaikwad and colleagues’ transfer scores are unspecified. Banerjee and colleagues’ transformer study

Later work used Marathi in another evaluation setting

Shejole and colleagues cite the paper in a study of punctuation robustness in English-Marathi machine translation. Their subject is the behavior of translation under changes to punctuation. That puts Marathi in another empirical setting, with translation performance as the subject of evaluation. The citation connects the study to earlier computational research on Marathi. The documented connection establishes no particular reuse of the offensive-language labels or the source-training procedure. English-Marathi punctuation robustness study

Cite

Cite as Saurabh Sampatrao Gaikwad, Tharindu Ranasinghe, Marcos Zampieri and Christopher M. Homan. 2021. Cross-lingual Offensive Language Identification for Low Resource Languages: The Case of Marathi. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2021).

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

@inproceedings{gaikwad2021cross,
  title = {{Cross-lingual Offensive Language Identification for Low Resource Languages: The Case of Marathi}},
  author = {Saurabh Sampatrao Gaikwad, Tharindu Ranasinghe, Marcos Zampieri and Christopher M. Homan},
  booktitle = {Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2021)},
  year = {2021},
  url = {https://aclanthology.org/2021.ranlp-1.50/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/gaikwad-2021-cross-lingual-offensive-language-identification/