Elamur Research

OffMix-3L: A Novel Code-Mixed Test Dataset in Bangla-English-Hindi for Offensive Language Identification

Paper · 2023 · Dhiman Goswami, Md Nishat Raihan, Antara Mahmud et al.

Summary

The language of an online post can change while its subject stays the same. Someone might introduce a topic in Bangla, make a judgment in Hindi, and add an expression in English. The writing can also cross scripts through transliteration, which represents words from one language in a script associated with another. A system asked to flag offense has to interpret the message across these changes. The authors introduce OffMix-3L because much of the earlier work they discuss concerns language pairs. Their benchmark makes the whole post the unit of text classification and gives it one of two labels, Offensive or Non-Offensive.

Undergraduates fluent in all the target languages composed posts on everyday subjects and could mix languages, scripts, and informal conventions as they wrote. The authors screened the contributions for the required language combination. Two groups of fluent readers then judged the material in succession, with a post advancing only when the readers in its round agreed. The resulting linguistic annotation covers 1,001 posts, including 522 labeled Non-Offensive and 479 labeled Offensive. Because people wrote the material specifically for the study and modeled it on social media posts, the authors describe it as semi-natural.

OffMix-3L was released for testing. To supply examples for training and development, the authors sampled existing labeled English material and applied automatic code-mixing procedures to produce a synthetic collection of 100,000 examples. On OffMix-3L, the strongest system was BanglishBERT, which had prior training in Bangla and English. It scored 0.68 weighted F1, ahead of English BERT at 0.66 and the strongest multilingual entry, mBERT, at 0.63. GPT-3.5 Turbo reached 0.57 when given a definition and labeling instructions without worked examples. Weighted F1 combines class-level measures of how reliably a label is assigned and how many examples of that label are found. It gives more influence to classes with more reference examples.

The ordering changed on held-out synthetic material. XLM-R and mBERT both achieved 0.88 weighted F1 there, and BanglishBERT scored 0.86. The source of the test posts therefore mattered to the conclusion about which system performed best. The authors suggest that the prominence of Bangla, variation in spelling, and the prevalence of transliterated forms help explain performance on OffMix-3L. Their examples show the kinds of posts that caused difficulty. The experiments leave the individual effects of those features unresolved.

Deep dive: OffMix-3L: A Novel Code-Mixed Test Dataset in Bangla-English-Hindi for Offensive Language Identification

OffMix-3L tests offensive language detection on posts that mix Bangla, English, and Hindi, and compares results on human-written and synthetic text. · about 33 minutes to read

The problem and its context

When the languages of a post are part of its form

The authors use code-mixing to describe the inclusion of material from several languages within an utterance or passage. The pieces can be words or smaller meaningful units. They use code-switching for a more deliberate movement between languages and acknowledge that the two terms are frequently used interchangeably. For OffMix-3L, the collection question is whether the target languages appear in the post. The annotation question is whether the post is offensive. Neither question requires the readers to decide why the author changed languages at a particular point.

The paper discusses several reasons someone might mix languages. An expression may be readily available in one language when its equivalent in another is harder to call to mind. Language choice can also express affiliation with a group. The authors mention the use of borrowed English vocabulary as an example that can arise even in communities typically described as monolingual. A language change can therefore be as ordinary as drawing on a familiar expression. In a longer post, different parts of the message may draw on different parts of the writer's linguistic repertoire.

The relevant distinction for evaluation is between languages represented across a collection and languages used together within an item. A collection can include posts written in Bangla, posts written in Hindi, and posts written in English. Evaluating on that collection would say how well a system handles separately written samples in each language. In OffMix-3L, the input itself is mixed. A system may need to connect a description in one language with a reaction in another before it can assign the label. This is the particular case of multilingual and cross-lingual NLP that the paper seeks to make testable.

Script adds another distinction. A person who recognizes a word when it is transliterated can read it as part of the message even if the characters are more strongly associated with another language. A system's familiarity with the ordinary written form of that word offers only partial evidence about whether it can handle the transliteration. For collection, the same distinction affects how to count language material. For classification, it affects whether an expression can contribute to the decision about the whole post. The authors encouraged transliteration during composition, so the writing in the benchmark can present both challenges.

The presence requirement also leaves room for different amounts and arrangements of language mixing. A relatively short phrase can bring one language into a post that uses another for much of its length. One stretch may provide background, and a later stretch may express the opinion that readers care about when they assign a label. The paper's task encompasses those possibilities through a single judgment on the input. Its definition of the evaluation item gives each system the same text to work with, even though it may represent or use the parts of the text differently.

What a label says about the message

The label expresses a judgment about the post as a whole. A reader can conclude that a message is offensive without marking the offending phrase or deciding whether it qualifies as a more specific kind of harmful speech. Conversely, a reader can regard a message as benign even when it mentions an uncomfortable subject. OffMix-3L fixes the output at the level of that overall judgment. A prediction can be compared directly with the reference label while leaving questions about the particular words behind the decision open.

This distinction also helps put the related work in context. The authors discuss resources and methods described in terms of hate speech, aggression, abusive comments, and offensive language. Each label reflects the aim of the associated study. For instance, locating an offensive span means identifying which part of the message carries offense. Assigning a label to the post gives a decision on a larger unit. A passage can contain enough information for someone to judge the whole while leaving room for disagreement about exactly where the offense resides.

The need for an overall label makes the readers' judgments part of the experimental design. A word can be part of an insult, part of a description of an insult, or part of an expression whose tone depends on the rest of the passage. What precedes or follows it can change the reading. In a mixed-language post, that additional information may appear in a different language or script. The authors address this aspect of the task through independent judgments by readers who are fluent in the language combination and through a rule that retains agreed cases.

What earlier studies made available

The paper situates OffMix-3L among studies of Bangla with English, Hindi with English, and Bangla with Hindi. It describes linguistic research on the pairs as well as work that uses mixed texts for computational tasks. Its priority claim is specific. The authors knew of no previous offensive language study or dataset centered on posts that combine Bangla, English, and Hindi in the same item. Their review distinguishes that gap from the much broader question of whether scholars had studied mixing involving these languages.

In Bangla–English work, the authors discuss the study by Jahan and colleagues on abusive Facebook comments, which addressed both mixing and transliteration. They also describe the collection by Wadud and colleagues, which had 2,200 instances. These precedents are relevant because some of the same difficulties occur in bilingual posts. Someone assembling a test still has to consider how spelling and script represent the language actually being used, and someone assigning an offense label still needs to follow the message. OffMix-3L adds a particular language requirement to those existing problems.

The paper describes more activity on Hindi–English offensive language and related tasks. Sreelakshmi and colleagues represented 10,000 examples drawn from several sources using fastText. Other projects used Facebook or Twitter as sources of mixed writing. The related resources include the Hindi–English aggression corpus. These studies show why social media was a plausible setting for the proposed benchmark. The difficulty, in the authors' account, was finding material with the exact language combination they wanted in each item.

The review also describes how earlier Hindi–English classifiers represented their inputs. FA-Net combines information about local features with information about the sequence in which features appear, using attention to assign importance to what it processes. The approach by Gupta and colleagues begins with representations of individual characters and then processes their sequence before applying attention. The two examples illustrate why the level of representation matters for mixed writing. Characters make the spelling of a form visible, while a sequence of expressions provides context for what that form contributes to the message. OffMix-3L gives systems with different preparations a common collection on which to make the same judgment.

The cited work on Dravidian languages and other Indian-language settings broadens this context. It includes offensive language identification in code-mixed comments and posts, work on text written using Roman characters, and the identification of offensive spans. The authors use this literature to establish the range of related tasks and language settings already under study. Their own question turns on a narrower resource need. For that purpose, collecting a multilingual set with a mix of different pairs would leave the inclusion condition for each individual post unspecified.

Why the authors give testing its own dataset

The authors describe locating the desired material in existing online sources as difficult. They also raise ethical concerns about collecting publicly accessible posts. Asking fluent people to write gave the researchers direct control over the brief and a way to encourage features they wanted the test to contain. The choice also determined what the completed resource would represent. It would consist of messages composed by people working on a specific writing assignment.

The collection had to meet two requirements at once. Each item needed material from the target languages, and each reference label needed enough agreement to survive the review process. Human work goes into supplying both. The authors considered the resulting resource too small for the role they envisioned for supervised training and made it available as a test. This gives the work the form of an evaluation benchmark with a separate source of training examples.

That separation makes generalization part of the experiment. The supervised systems start with existing language preparation and learn the offense decision from material transformed by code-mixing procedures. The human-authored test then asks how they apply that decision to material that came about through a writing and reading exercise. The synthetic test addresses a related question about how well the systems perform when the examples they learn from and those they are scored on come from a common construction process.

The method, step by step

Giving contributors a writing brief

The authors recruited 10 undergraduates who could use Bangla, Hindi, and English fluently. The assignment was to create 250 to 300 posts per contributor. The posts were to resemble material that someone might write for social media. The brief offered subjects such as education, politics, sports, and rumors circulating online. Writers could decide which topics and expressions suited a particular post.

The instruction about language choice provided room for the contributors to exercise their own judgment. They could use the languages available to them and switch wherever that felt comfortable. The researchers encouraged the sorts of written features that help give the posts their informal character, including hashtags, emoji, and transliteration. The paper gives no prescribed distribution of languages within a post. A writer could make extended use of one language and rely on another for a brief addition or change the language several times in the course of an argument.

Commissioning posts organized the acquisition around people who could produce the required sort of mixture. It also gave contributors time to formulate a complete message under the brief. The authors describe the output as semi-natural because its wording and shifts were the contributors' decisions, made for an assigned collection exercise. In the experimental comparison, the paper uses natural as shorthand for this human-written material. The synthetic collection has a different origin, beginning with previously labeled texts that undergo automatic transformation.

The authors report paying the contributors and annotators. They also describe sessions with a psychologist before the work began and after it ended. This is part of their account of how people were supported during a project in which the material to be written or judged could be offensive. Those arrangements concern the collection and annotation process. The evidence about the consistency of the judgments comes from the agreement measures the authors report separately.

Checking which contributions contain the language combination

The writers' assignment created a pool of candidate posts. The inclusion rule required each post admitted to labeling to contain linguistic material from Bangla, English, and Hindi. The authors describe the required contribution from a language as a word or a portion of a word. They used langdetect, a Python language-identification tool, and report a screened pool of 1,734 samples. This figure describes the output of screening. The numbers in the assignment describe what the contributors were asked to write.

The screen asks whether each language appears somewhere in an item. Consequently, a post can satisfy the rule even if most of its text belongs to a single language. The criterion also leaves the placement of the switches open. A writer can change languages between stretches of a message or draw on a word from another language as part of a shorter expression. Once a post has entered the annotation pool, the reference judgment applies to all of it.

The paper's description of screening identifies the tool and the condition of admission. Assigning a language to every element of a post is a related operation with additional ambiguities. For instance, writing a word in an unfamiliar script changes its appearance while retaining a connection to the language from which it comes. The paper's data card includes an Other category for unassigned forms, and the authors describe transliterations as a prominent part of it. The presence of some readily identifiable material from each target language is compatible with a large amount of material that is harder to categorize.

This distinction matters when reading the resulting language statistics. The number of counted Bangla tokens tells the reader how many occurrences fell into that category. It does not exhaust the amount of Bangla a fluent reader could recognize in the text. Some occurrences counted elsewhere may be alternative written forms of familiar words. The counts serve as a description of the accepted posts under the paper's categorization. The decision about offense takes place at a different level.

Asking readers to judge each eligible post

The initial annotation panel consisted of fluent students drawn from social science, computer science, and linguistics. Each reader judged all 1,734 screened posts using the same pair of labels. The authors report 63.7% raw agreement in this round. Raw agreement expresses how often readers' judgments coincide in the material they review. The authors moved forward with 1,106 posts on which the entire panel agreed.

The second panel consisted of two researchers in natural language processing who knew all the target languages. They labeled the material forwarded by the first group. For these judgments, the authors report raw agreement of 91% and Cohen's kappa of 0.82. Kappa evaluates agreement after accounting for the amount expected from the individual readers' tendencies to use the two labels. The raw percentage and the kappa value thus describe the same round from different perspectives.

The reference dataset preserves posts on which the second readers agreed, for a final total of 1,001. The stated filter concerns agreement inside each panel, applied in succession. The paper does not give a cross-panel agreement table that would show, for instance, how often the shared label in the later round matched the shared label in the earlier one. As reported, the procedure supplies a sample with successive agreement checks and a binary reference label for every retained post.

The two agreement percentages refer to different sets of items. The student readers saw the full language-screened collection. The researchers saw material already selected for unanimous judgments in the first round. The second percentage describes how often the new readers coincided on that selected material. It is therefore sensitive both to who did the reading and to which posts remained eligible. This is important whether the reader is interested in annotation quality or in the composition of the eventual benchmark.

Producing examples for supervised learning

The authors sought a supply of labeled training material at a larger scale than the human test. They started from OLID and SOLID, both English datasets with the Offensive and Non-Offensive categories used by OffMix-3L. OLID comes from the shared task known as OffensEval. SOLID supplies another source of labeled offensive-language data. Starting with compatible labels lets the task retain the same name and output choices after the text is changed.

The paper describes a random selection of 100,000 instances constrained to give the two classes equal representation. This is a design decision about the source pool for synthetic training and development. It gives the supervised systems examples from both categories without an imbalance in the sampled labels. The human-authored test derives its class sizes from the retained judgments. Its distribution is therefore a property of the completed collection, established separately from the balancing of the synthetic samples.

Next the authors used r-CM and the Random Code-mixing Algorithm to turn the English material into synthetic material involving Bangla, English, and Hindi. The paper cites the latter procedure through work on cross-lingual classification of transliterated Hindi and Malayalam. The stated outcome is a synthetic collection for the same classification task. The paper identifies the procedures by name and leaves their configurations and individual contributions to this collection unspecified.

Under this setup, the existing label supplies supervision for the altered wording. If an English source item is Offensive, the corresponding generated training material serves as an example of that class. The premise is that automatic mixing can give the classifier experience with forms from the desired languages while keeping the label informative about the resulting text. The paper describes no additional human relabeling pass on the generated material equivalent to the one used for the test posts.

The contrast in the origin of the labels is fundamental to the experiment. On OffMix-3L, a human first composes a message and readers subsequently assign a category to that message. On the synthetic side, an existing category is already available when the language form of the text is altered. Supervised training exploits the second route, while testing on OffMix-3L evaluates the result against judgments obtained through the first.

From contributed posts and labeled sources to evaluation

The steps in order.

From contributed posts and labeled sources to evaluationStep 1: Collect informal posts from fluent undergraduate writers1. Collect informal posts from fluent undergraduate writersStep 2: Screen contributions for the required language mixture2. Screen contributions for the required language mixtureStep 3: Advance posts with unanimous initial labels3. Advance posts with unanimous initial labelsStep 4: Have researchers independently judge the shortlisted posts4. Have researchers independently judge the shortlisted postsStep 5: Release the agreed posts as OffMix-3L5. Release the agreed posts as OffMix-3LStep 6: Draw a balanced sample of labeled English material6. Draw a balanced sample of labeled English materialStep 7: Generate mixed texts for supervised training and development7. Generate mixed texts for supervised training and developmentStep 8: Score predictions against the chosen test labels8. Score predictions against the chosen test labels

Preparing classifiers with different language backgrounds

A supervised classifier uses examples with known labels to learn a decision it can apply to a new item. The systems considered here already have training histories before they encounter the synthetic examples. That earlier training supplies ways to represent their inputs. Task adaptation then uses labeled material to prepare them for the offense decision, a form of fine-tuning. The paper groups the supervised entries by the languages of their prior training and also identifies entries that had been specialized for tasks involving offensive or abusive language.

The general English entries are BERT, RoBERTa, and DistilBERT. BanglaBERT and HindiBERT provide general monolingual entries with prior training in Bangla and Hindi, respectively. HateBERT and fBERT are the English task-specialized entries. These groups give the study several forms of prior preparation to compare. The paper's categories distinguish a system's language background from whether it already had task-related specialization.

The bilingual entries are BanglishBERT and HingBERT. BanglishBERT has prior training in Bangla and English, and HingBERT has prior training in Hindi and English. The shared use of English makes the pair informative when considering the relative prominence of Bangla and Hindi in OffMix-3L. The entries also come from separate development efforts. Comparing their benchmark scores measures the performance of the complete systems, which reflects their prior data and other design choices along with the languages the paper lists for them.

The broad multilingual entries include mBERT, with prior training covering 104 languages, and XLM-R, with coverage of 100. The paper also tests systems aimed at languages of India, IndicBERT and MuRIL. It describes coverage of 12 Indian languages for IndicBERT and 17 for MuRIL, and lists the target languages as available in the multilingual group. The experiment asks how the resulting classifiers fare when input from the target languages arrives together.

The authors say they adjust hyper-parameters to help guard against overfitting. Hyper-parameters are choices made about how training is carried out. Overfitting occurs when adaptation picks up properties of the learning material that are less useful on new inputs. A development set gives the researchers separate examples on which to assess such choices. In the main supervised setup, the synthetic collection provides training and development material, and the full human-written resource supplies the test items. The paper describes the purpose of tuning and gives the comparative scores, with the individual searches and chosen settings left unspecified.

Giving GPT-3.5 Turbo a verbal task definition

The GPT-3.5 Turbo experiment uses instructions to establish the task. The paper calls the approach zero-shot because the system receives no labeled example illustrating the requested decision. The prompt assigns the role of a classifier, provides an explanation of offensive text, and asks for one of the benchmark's two labels. Its explanation centers on language that is insulting or rude and can cause someone distress or embarrassment.

The authors obtained judgments through the API and scored the returned labels against OffMix-3L. A definition can convey the intended task directly, while supervised adaptation presents many examples of how categories were used on particular texts. The common test allows both routes to be evaluated with the same metric. In interpreting the comparison, that common endpoint goes together with the different ways the systems were prepared for it. The study's reported prompting result concerns the formulation the authors tried.

Experiments and results

The composition of the human-written benchmark

The label counts for OffMix-3L are 522 Non-Offensive and 479 Offensive, out of 1,001 posts. The paper reports the corresponding shares as 52.15% and 47.85%. The classes are close in size, with a modest tilt towards Non-Offensive. These figures refer to the posts that completed both stages of annotation. They describe the evaluation distribution, while the synthetic source material was drawn with equal representation of the classes.

The paper's data card distinguishes tokens, which are counted text occurrences, from types, which are distinct forms under the same counting procedure. The corpus has 87,190 tokens and 18,787 types. Its reported mean length is 87.10 tokens per post, with a standard deviation of 20.58 tokens. The mean summarizes the length of an individual input, and the standard deviation describes how much lengths vary around it. A classification can thus require following a passage with room for multiple switches and developments of a topic.

Bangla is the largest of the explicitly named language categories. The authors connect this observation to the contributors, whose first language was Bangla. The data card assigns 31,228 tokens and 7,714 types to Bangla. Hindi accounts for 14,694 tokens and 1,413 types. English accounts for 6,690 tokens and 1,135 types. The table also reports the average and spread of each of those counts at the post level.

Token categoryMean count per postStandard deviation
Bangla31.208.60
Hindi14.685.74
English6.683.05
Other34.5410.98

The large Other category is important to the interpretation of these statistics. It contains 34,578 tokens and 8,645 types. The authors describe the share of Other tokens as nearly 39% of the dataset. Under that heading they discuss transliterated material along with emoji, hashtags, and misspellings. These forms can have different functions. A transliterated word can contribute much the same meaning as its familiar spelling, while a hashtag might identify a topic or add a comment on the message. The shared category gives a sense of the amount of such material while leaving those functions to be examined in context.

What the scores measure

The paper uses weighted F1 in both results tables. To understand the measure, consider Offensive as the category of interest. Precision asks what share of the items predicted as Offensive carry that reference label. Recall asks what share of the reference Offensive items received the prediction. High precision can coexist with missed offensive posts if a system is sparing in how often it flags them. High recall can coexist with false flags if it assigns Offensive readily. F1 combines precision and recall for a class in a way that makes a low value on either affect the result.

For weighted F1, the same calculation applies to the other class, and the class scores are averaged according to how many reference items belong to each. A class with more posts has more influence on the final number. The resulting score gives the study a common scale for comparing systems. It summarizes the two classes and the two kinds of classification performance, so the reader would need separate measures to tell whether a particular score reflected more missed offensive posts, more benign posts flagged, or some combination.

The main table evaluates the transfer from synthetic training examples to the human-written benchmark. The GPT-3.5 Turbo entry in that table comes from the separate prompting procedure. A further table evaluates supervised training and testing on synthetic material. The paper describes a 60-20-20 split for training, evaluation, and testing in its account of separate experiments. That passage mentions splitting natural material as well. The result tables give scores for synthetic training followed by testing on OffMix-3L or on synthetic examples. A result table for training and testing within partitions of the natural material is absent.

Synthetic training and human-written testing

BanglishBERT achieves 0.68 weighted F1 on OffMix-3L, the highest result reported for that test. BERT, whose prior training was in English, is the nearest entry at 0.66. The strongest multilingual entry is mBERT at 0.63. The systems at the top thus cover different ranges of languages in their prior training. The pattern becomes especially informative when compared with the standings on generated text.

Weighted F1 by classifier on the human-written OffMix-3L test

BanglishBERT leads, followed by English BERT and mBERT.

Weighted F1 by classifier on the human-written OffMix-3L testBanglishBERT (this paper): 0.68BanglishBERT (this paper)0.68BERT: 0.66BERT0.66mBERT: 0.63mBERT0.63HingBERT: 0.60HingBERT0.60MuRIL: 0.60MuRIL0.60HateBERT: 0.60HateBERT0.60XLM-R: 0.57XLM-R0.57GPT-3.5 Turbo: 0.57GPT-3.5 Turbo0.57HindiBERT: 0.43HindiBERT0.43
The numbers
System or settingWeighted F1
BanglishBERT (this paper)0.68
BERT0.66
mBERT0.63
HingBERT0.60
MuRIL0.60
HateBERT0.60
XLM-R0.57
GPT-3.5 Turbo0.57
HindiBERT0.43

Below the leaders, HingBERT, MuRIL, and HateBERT each reach 0.60 weighted F1. They represent bilingual training, multilingual training, and English task specialization, respectively. HateBERT is the stronger of the English task-specialized entries. The common score puts very different preparations at the same point on the reported metric. Whether they made similar decisions on particular test posts is a separate question.

Among the entries outside the chart, RoBERTa and fBERT each score 0.58. DistilBERT reaches 0.57, IndicBERT 0.55, and BanglaBERT 0.54. HindiBERT records 0.43. Thus there is a wide spread among the monolingual entries, even though they share the broad property of having been trained initially in one language. The result for English BERT is a particularly clear example of why pretraining coverage alone cannot determine where a system will place in this comparison.

GPT-3.5 Turbo scores 0.57 under the zero-shot instructions. XLM-R and DistilBERT have the same reported weighted F1 on OffMix-3L. This places the instruction-based baseline within the range of the supervised entries and below the table's leaders. The prompting run demonstrates how the system did with a verbal definition of the label boundary. It offers no direct measure of what would happen if that boundary were communicated with examples or if the instructions were formulated differently.

The supervised comparison puts each entry through the same broad transfer problem. The task-specific material comes from the generated collection, and the test examples come from people. The prior training differs considerably across entries, and the reported scores show which complete classifiers handled the transfer best in this experiment. For BanglishBERT, a bilingual background was sufficient to obtain the highest result on posts whose inclusion rule required a third language as well. The score gives no language-by-language account of how it arrived at those decisions.

Synthetic training and synthetic testing

The second table changes the source of test examples. Training and testing use separate portions of the synthetic material, so the test examples are held out while sharing the broad construction process used for training. XLM-R and mBERT each obtain 0.88 weighted F1. BanglishBERT follows at 0.86, with BERT at 0.83. This places the multilingual pair at the top of the synthetic comparison.

Weighted F1 by classifier on the held-out synthetic test

XLM-R and mBERT tie for the highest score, with BanglishBERT next.

Weighted F1 by classifier on the held-out synthetic testXLM-R (this paper): 0.88XLM-R (this paper)0.88mBERT: 0.88mBERT0.88BanglishBERT: 0.86BanglishBERT0.86BERT: 0.83BERT0.83HingBERT: 0.82HingBERT0.82IndicBERT: 0.82IndicBERT0.82MuRIL: 0.81MuRIL0.81BanglaBERT: 0.76BanglaBERT0.76HindiBERT: 0.73HindiBERT0.73
The numbers
System or settingWeighted F1
XLM-R (this paper)0.88
mBERT0.88
BanglishBERT0.86
BERT0.83
HingBERT0.82
IndicBERT0.82
MuRIL0.81
BanglaBERT0.76
HindiBERT0.73

Among the accompanying results, HateBERT and fBERT have weighted F1 scores of 0.81. RoBERTa reaches 0.80, and DistilBERT scores 0.79. The synthetic table lists supervised entries. The GPT-3.5 Turbo score is reported only for OffMix-3L. For the supervised systems that appear in both tables, the reported scores are higher when the evaluation examples come from the generated collection.

The rankings reveal more than the change in score levels. BanglishBERT leads on the human-written test and remains among the leaders on synthetic material. mBERT is the strongest multilingual system on OffMix-3L and shares the synthetic lead. XLM-R ties mBERT on synthetic examples and scores 0.57 on the human-written material. Its performance on held-out examples produced by the same broad method as the training data gives a substantially different account of its standing from the one obtained on OffMix-3L.

The synthetic test measures the ability to generalize to additional examples from the constructed source. The human-written benchmark measures how that preparation carries over to messages that people chose to compose, followed by judgments on those finished texts. Both sets involve the same topic of classification and the same target language combination. Their differences in origin include the production of the wording and the source of the labels. The score changes therefore describe a shift between evaluation conditions that is broader than a change in the surface spelling of the inputs.

What the ablations show

The paper reports no formal ablations, and its comparative analyses instead draw on the change in test source, the language backgrounds of the classifiers, the composition of the test text, and examples of mistakes.

The test source changes the apparent leaders

Comparing the tables is the most direct way to see the effect of evaluation conditions on the paper's conclusions. The output categories are shared, and the supervised entries learn from synthetic material in both reported comparisons. Tests on synthetic examples favor mBERT and XLM-R, while tests on the collected posts favor BanglishBERT. For an investigator deciding which system merits closer study on human-written messages, performance within the construction process would have pointed to different leaders.

The change concerns a package of conditions. A generated item starts from English offense data and is altered through the procedures the paper names. A contributed item starts with a writer's selection of a subject and of ways to express it, and readers assign the label afterwards. The package can therefore include different vocabulary, switch placement, topic treatment, or interpretation of the categories. The paper gives results for the complete settings, without separately varying those properties.

Looking within the multilingual group reinforces this point. XLM-R and mBERT both cover the target languages, and they share the highest score on the synthetic test. Their scores on OffMix-3L occupy different places in the table. For these entries, access to all the relevant languages in earlier training leaves meaningful variation in downstream performance. The same observation applies to task specialization. The English systems with earlier offense-related preparation finish below general English BERT on the human-written benchmark. The comparison involves separately developed entries, so an explanation in terms of the independent effect of specialization would require additional evidence.

Why the authors examine language counts and spelling

The authors connect BanglishBERT's lead over HingBERT to the prevalence of Bangla relative to Hindi. Both systems include English in their preparation. The data card counts much more Bangla material than Hindi among the named categories, and the researchers suggest that this favors a system prepared for Bangla and English. The counts and the reported bilingual scores establish the pattern that motivates this explanation. A direct estimate of the effect of prior Bangla exposure would require a comparison that held the rest of the systems' preparation steady.

Corpus-wide counts also leave open where the evidence for an offense judgment occurs. A long opening in one language could develop the topic while a short remark in another supplies the personal attack or dismissive evaluation. Conversely, a brief insertion might contribute little to the decision if surrounding sentences already make the writer's stance clear. A frequent language is likely to supply much of the text a system processes, but the data card gives no separate measure of which language carries which part of the communicative act. This limits what the counts can explain about the bilingual scores.

The error analysis also points to the large fraction of tokens assigned to Other. The authors suggest that systems vary in their exposure to transliteration and that unfamiliar spellings and typographical errors can create recognition problems. This is plausible at the level of a single expression. Its meaning may be available to a reader familiar with the way it sounds even if its written form is unusual. Recognizing that expression can matter when it qualifies a statement, signals sentiment, or carries the key judgment about someone.

The Other category gives a starting point for that explanation, with several phenomena counted together. It includes items such as emojis and hashtags as well as alternate spellings and transliterated words. The paper supplies neither error rates for those features individually nor scores on matched posts that differ only in how words are written. As a consequence, the count establishes the prominence of material in the category and the error analysis explains why some of it may be difficult. A feature's presence in a misclassified post does not specify its effect on the prediction.

What the misclassified posts illustrate

In one appendix example, the reference label is Non-Offensive. The writer expresses enthusiasm about joining a book club, hearing other people's views, and finding more to read. The post uses Bangla script even for some English expressions. It also contains English in its familiar written form, a passage in Hindi script, Hindi written in Roman characters, and hashtags. The authors include it among the instances that the evaluated systems all missed. For this example, a wrong binary decision amounts to flagging a benign post.

The subject and progression of that example help a reader understand the challenge. Following the post means tracking a consistent positive attitude across different written forms. A system that handles only a portion of the passage may miss information that reinforces the interpretation available from the complete message. The paper supplies the post and its label. It does not identify a word or sequence that caused the wrong decision or give predictions for versions with a more uniform script or spelling.

Another appendix example carries the Offensive label. It discusses young people making adult content on social media, raises broader concerns about messages about sexuality, and adds critical remarks about the people or behavior under discussion. It moves through several languages and written forms and finishes with hashtags. A wrong binary decision in this case amounts to missing a post that the benchmark classifies as offensive. The paper gives the judgment for the whole example and leaves the precise basis of that judgment unstated.

These cases show that difficult inputs can have very different meanings and yield errors with different consequences. The book-club post is an example of a false flag, and the post about adult content exemplifies a missed flag. Their shared features include mixing and changes in writing form. The messages themselves differ in topic, stance, and much of their wording. Calling attention to those messages makes the errors inspectable, while the small illustrative set leaves their frequency and causes unmeasured.

Limitations

The limits stated by the authors

The authors identify the collection method as a limitation. The material was written for the study in a social media style, so the benchmark reflects what contributors wrote in response to that brief. A writer on a platform may be responding to a particular person, participating in an ongoing exchange, or addressing an audience whose expectations shape the post. Those conditions could affect the language mixture and the interpretation of offense. The authors chose controlled collection because assembling posts with the required combination from existing sources posed practical difficulties.

They also identify the collection's size as a limitation and relate it to the cost of obtaining material from people fluent in the target languages. They concentrated the available examples in a test set and used generated material for supervised learning. That decision makes it possible to compare classifiers on human-authored messages while reserving the human resource for evaluation. The authors' stated future work includes expanding OffMix-3L to support training and testing and developing pretraining for the particular trilingual mixture. The results reported in the paper concern the original test and the systems compared on it.

Further limits of the collection and labels

The contributors share Bangla as a first language. The authors use this to interpret the prominence of Bangla in the data card. It also defines a limit on the sample's representativeness. People with the same language repertoire and a different first language could give different roles to Bangla, English, and Hindi in their writing. They could also choose different written forms for the same words. Strong performance under the distribution in OffMix-3L supplies evidence for that collection and leaves the results for such other groups open.

The writing brief allows contributors to choose among a variety of familiar topics. Accordingly, the test reflects topics and styles that this group chose under the assignment. The paper does not break down performance by topic, writer, or position of a language switch. Such distinctions could matter if a classifier benefits from recognizably familiar phrasing in some portions of the collection. The reported scores put the contributions together and measure performance on the resulting test as a whole.

The language screen supplies another boundary on which material becomes available for evaluation. The authors describe using langdetect and report the number of posts that satisfied the inclusion condition. They give no separate assessment of language identification on the mixed drafts. A spelling that is clear to a fluent reader could still be difficult to identify computationally. The evidence describes the result of the screen, leaving uncertainty about which mixtures or spellings might be absent because of it.

The agreement requirement shapes the test in an analogous way. It makes the reference labels more readily interpretable as shared decisions among the annotators at each stage. Posts that divided the readers were discarded at the relevant step. People could disagree because a message balances criticism and insult, draws on cultural expectations, or depends on an unclear target. The paper does not characterize the discarded items by reason for disagreement. As a result, scores apply to the posts that achieved agreement and give little information about performance on disputed cases.

The reported agreement measures also carry a limit as evidence about annotator expertise. The researchers judged the subset that the first panel had already labeled unanimously. Easier agreement on such a subset is compatible with meaningful differences between the groups, but the design did not give both groups the same full collection independently. Raw agreement of 91% and kappa of 0.82 document the second panel's consistency on the material it actually received. Those statistics cannot establish how that group would have judged the rejected items or how closely its agreed labels matched the earlier panel's agreed labels.

The post-level format leaves another question open. A pair of readers can reach the same judgment while relying on different expressions or different interpretations of the writer's stance. The benchmark needs the shared label to score a prediction. It has no reported span labels or explanations of why individual readers assigned it. As a result, a correct prediction can be counted without evidence that the system relied on the same part of the message as the readers. The same issue affects interpretation of mistakes, because the reference label gives no specific expression against which to check a presumed cause.

Further limits of the synthetic comparison

The English source label is reused after the text is mixed. This is what makes the synthetic pipeline practical at the reported scale. The paper does not report a separate validation of how reliably that label describes each transformed text. Changes in expression could preserve the overall message closely, or change a part that matters to an offense judgment. The relative prevalence of those cases is unknown. The transfer experiment therefore tests learning from the generated examples as prepared, including the relationship they retain to the original categories.

The generated training and test examples give information about performance within a family of text constructions. They offer no direct way to identify whether one of the code-mixing procedures supplies more useful training examples than the other. The authors do not report a comparison of separately generated sets or a matched test that alters the same content using each procedure. Similarly, the tables do not break the human-written scores down by transliteration or by the distribution of languages within a post. The main transfer result remains a comparison between sources of examples as a whole.

Some details that would help reproduce the scores are left open in the paper. It names the code-mixing procedures, the source datasets, and the language backgrounds of the supervised entries. It also reports tuning hyper-parameters. The main results do not give the settings chosen for each entry or an account of variation across repeated training runs. A reader can judge the score ordering reported for each condition. The stability of close standings under another fit or another sample of test posts remains unmeasured.

The paper mentions experiments using a 60-20-20 split of synthetic and natural data, but provides no table for within-natural training and testing. This matters because that setup would address another part of the resource question. A classifier could get supervision from posts composed and annotated through the same process as the natural test. Estimating that effect would take reported results for that condition. The two main tables address how synthetic preparation performs on synthetic examples and how it carries over to the commissioned posts.

Further limits of the performance measures

The weighted F1 scores give no separate precision or recall figures for Offensive in the reported comparisons. For a reader concerned with moderation, distinguishing missed offensive posts from false flags of benign ones is consequential. The former can allow undesirable material through, and the latter can penalize ordinary speech. The appendix demonstrates examples from both categories of error, while the aggregate scores cannot show which was more common or how their balance varied among the entries.

The comparison with GPT-3.5 Turbo is similarly bounded by the way the task was specified for that system. The paper shows a sample prompt and gives a score for zero-shot labeling. The instructions identify the decision in ordinary language, while the benchmark labels result from judgments on the contributed posts. A differently phrased definition or worked examples could communicate the boundary differently. The paper supplies no experiment comparing such formulations, so the score describes performance under the reported instructions.

Finally, the classifiers are evaluated on text and a binary reference decision. Actual moderation can involve surrounding exchanges, information about the target of a remark, or a policy that assigns different responses to different kinds of offense. OffMix-3L fixes a narrower test in which the written post and its label are the relevant objects. The experiments establish performance on that test. Extending the result to platform decisions would require evidence involving the additional context and outcomes that such decisions entail.

What came after

A trilingual test in a broader account of code-switching

The 2026 survey Beyond Monolingual Assumptions cites OffMix-3L as part of a literature on code-switched language processing that extends across modalities. Its scope is broader than the original experiment, which concerns written posts and a binary offense decision. OffMix-3L contributes a concrete text case to that wider subject. Each item brings several languages into one decision, and the benchmark makes it possible to ask how a system handles their joint use.

The published scope of the survey establishes the connection at the level of research context. OffMix-3L supplies an example of why the unit of evaluation matters when investigating code-switching. Testing languages separately and testing them together pose different questions, even if the nominal output category stays the same. The study also gives a case in which test construction changed the observed ranking. The survey's citation places that work within a broader treatment of code-switched processing. It supplies no reported extension of OffMix-3L's benchmark scores.

A different reason to generate training examples

The 2026 paper FLAICOL cites OffMix-3L while addressing imbalanced code-mixed offensive language detection through flip-point-led augmentation. In this setting, augmentation refers to producing additional training examples. Imbalance makes the distribution of examples among labels part of the problem the method is intended to address. OffMix-3L likewise uses generated material to obtain supervision, but its authors explicitly sample the English sources with equal representation of the two categories. Their motivation was to have a sufficiently large training collection while keeping the commissioned posts for testing.

The shared question is how to construct useful supervision for detecting offense in messages that mix languages. OffMix-3L addresses it by taking labeled English material and generating mixed inputs at scale. FLAICOL's stated focus is augmentation when the labeled examples are imbalanced. Its citation connects the earlier study to a later approach to training-data construction for the same general class of task. The citation alone leaves open whether FLAICOL used the OffMix-3L posts in an experiment or produced any score directly comparable with the original tables.

Cite

Cite as Dhiman Goswami, Md Nishat Raihan, Antara Mahmud, Antonios Anastasopoulos and Marcos Zampieri. 2023. OffMix-3L: A Novel Code-Mixed Test Dataset in Bangla-English-Hindi for Offensive Language Identification. Proceedings of the 11th International Workshop on Natural Language Processing for Social Media.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.socialnlp-1.3

@inproceedings{goswami2023offmix,
  title = {{OffMix-3L: A Novel Code-Mixed Test Dataset in Bangla-English-Hindi for Offensive Language Identification}},
  author = {Dhiman Goswami, Md Nishat Raihan, Antara Mahmud, Antonios Anastasopoulos and Marcos Zampieri},
  booktitle = {Proceedings of the 11th International Workshop on Natural Language Processing for Social Media},
  year = {2023},
  doi = {10.18653/v1/2023.socialnlp-1.3},
  url = {https://doi.org/10.18653/v1/2023.socialnlp-1.3}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/goswami-2023-offmix-3l-novel-code-mixed/