Elamur Research

IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages

Paper · 2022 · Muhammad Farid Adilazuarda, Samuel Cahyawijaya, Genta Indra Winata et al.

Summary

The words that tell a reader how someone feels can come from a different language than the rest of the sentence. That presents a practical problem for an Indonesian classifier. It may read the surrounding words successfully and still miss the expression that distinguishes, for example, anger from sadness. IndoRobusta studies this problem by taking labeled Indonesian sentences and inserting translations drawn from English, Javanese, Malay or Sundanese. The authors ask which substitutions make classification harder and whether the same kind of example can prepare a classifier to handle them.

IndoRobusta-Blend constructs the test cases. It temporarily hides words and measures how the classifier’s scores respond. The most influential positions become candidates for translation into the chosen language. A similarity check screens the modified sentence, which keeps the original sentiment or emotion label. At a selection ratio of 0.4, the paper reports a loss of more than 10% in accuracy on the EmoT emotion test and about 3% on the SmSA sentiment test. The average loss was smaller for English than for Javanese on both tests. On EmoT, the Indonesian-specific IndoBERT variants also showed smaller average declines than the multilingual classifiers. The authors suggest that online pretraining material may contain more Indonesian–English mixing than mixtures with regional languages. They did not measure exposure to those mixtures directly.

IndoRobusta-Shot turns the generated sentences into training material. Training exclusively on the generated collection could sharply reduce accuracy on the original Indonesian test. Training on Indonesian first and then adapting to mixtures retained much more of that performance. By exposing the classifier to both sentence types in a single run, joint training achieved the best overall results on the original data and preserved improvements on mixed inputs. The paper describes the gains for its best strategy as roughly 5% on the generated mixed test and roughly 2% on the original test.

The experiment makes an otherwise difficult comparison possible by starting each mixture from a sentence with a known label. How well that label carries over depends on the replacement. A word translated in isolation may acquire the wrong sense in its new context. Human readers found the sampled mixtures generally understandable, with differences in naturalness across the assessed language pairs. The results therefore show what happens under a controlled form of mixing, with a separate question about how well those substitutions represent the sentences people compose for themselves.

Deep dive: IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages

IndoRobusta tests how mixing other languages into Indonesian affects sentiment and emotion classification and whether training on mixtures helps. · about 34 minutes to read

The problem and its context

Where the switch occurs

The authors use code-mixing to mean a change of language within a sentence. The surrounding sentence can follow Indonesian wording while a particular expression comes from another language. In the terminology adopted by the paper, Indonesian is the matrix language, which provides the frame, and the language supplying inserted material is the embedded language. The distinction gives the experiment a clear direction. An Indonesian sentence containing a Javanese replacement belongs to the study. Starting with a Javanese sentence and adding Indonesian material would pose a different question.

The paper describes a setting in which people use Indonesian alongside regional languages in everyday interactions and may bring regional forms into their speech or writing. It also cites work on the use of English alongside Indonesian online. Those are different settings for the use of mixed language. Sundanese and Javanese enter the experiment as regional languages. The authors include Malay because of its relationship to several languages used in Indonesia, while distinguishing it from the directly local languages in the comparison. English gives the study a pairing already prominent in the online usage discussed by the paper.

The location of a switch matters for a classifier. In a sentence about a restaurant, most of the wording could describe the food and service while a brief expression supplies the evaluation. Transferring a word that names a dish and transferring the word that evaluates it present different tests. A failure on the latter can arise even when much of the sentence remains familiar. IndoRobusta was designed to put pressure specifically on the places where a classifier appears to obtain evidence for its answer.

Two judgments that can depend on different words

The tasks ask the classifier to make different judgments about a sentence. Sentiment classification assigns an overall evaluation such as positive, negative or neutral. Emotion classification gives a more specific account of the feeling expressed. A sentence can contain evidence of a negative evaluation while leaving open which of several emotions it conveys. Conversely, an explicit word for a feeling can settle an emotion judgment even when other words tell the reader little about it. Both tasks fall under Sentiment & emotion.

A word replacement can affect these judgments through several routes. It can remove a familiar surface cue while supplying another expression of the same meaning. It can preserve the broad topic while weakening the feeling that the sentence expresses. It can also introduce a different sense by accident. The first case is the one the authors want to expose. The other cases explain why generating test sentences involves more than locating a multilingual dictionary entry. The classifier’s answer and the quality of the test item have to be understood together.

This distinction also matters when a classifier has encountered both languages before. The presence of individual languages in pretraining provides evidence about the material available during that stage. A classification task tests what the resulting system can do with a particular use of those languages. Inputs that place a familiar expression in an unfamiliar linguistic frame pose a different test from inputs that keep each language in its original context. The paper treats successful classification of a mixture as a behavior to measure, even for systems with broad pretraining coverage.

Binding the comparison to existing tasks makes that behavior observable. The authors have a reference category for the starting sentence and can ask whether a translation of selected words leaves that category recoverable. That gives the study a stable target. In a collection of naturally occurring mixtures, the researchers would first need a suitable set of labeled sentences and would have less direct control over where the switches occurred or how much of the wording they affected.

Earlier work on Indonesian and on mixed text

The authors describe Indonesian language technology as having acquired standardized evaluations, pretrained systems and resources for more languages used in Indonesia. Benchmarks made it possible to compare systems on shared tasks, while language-specific pretraining supplied a starting point for those tasks. The paper points to work on Indonesian understanding and to separate benchmark work on generation. Those efforts form part of the setting in which a more specific robustness question became possible. IndoNLU · IndoLEM and IndoBERT · IndoNLG

Research on switching between languages already covered a range of pairs. Among the examples the authors cite are Hindi–English, Spanish–English and varieties of Chinese paired with English. The tasks and data sources differed across studies. Some work organized existing tasks into benchmarks. Other papers addressed speech recognition, dialogue or the representation of individual words. The benchmarks cited by IndoRobusta show the broader effort to make mixed-language performance a subject of evaluation in its own right. GLUECoS · LinCE

For Indonesian–English specifically, the authors cite work on normalizing mixed social-media text and work that used synthetic mixtures to examine word representations. The existence of these studies matters because IndoRobusta’s contribution is a more particular comparison. It sets several possible embedded languages against the same Indonesian classification material. Results for an individual pair can be read alongside other pairings formed from the same source task, with the language of the replacement varied by design.

The related work also describes several ways of learning from mixed text. Multitask methods draw on more than one learning objective. Data augmentation expands the examples available during training. Other approaches use meta-learning or adapt systems that were pretrained on multiple languages. IndoRobusta takes the augmentation route. Once a method can make a plausible new expression of an already labeled example, the altered sentence becomes a possible source of supervised practice.

A parallel literature studies robustness by changing the input deliberately. Prior systems had used textual perturbations to probe weaknesses, and the paper cites work on word substitution as part of that tradition. It also mentions training on difficult augmented examples, adjusting the training loss and removing training instances considered harmful. IndoRobusta brings input perturbation and augmentation together. The operation used to reveal sensitivity at test time is also used to produce material for training. BERT robustness study · NL-Augmenter

That choice ties the empirical question to a particular method of generating difficulty. A naturally mixed sentence shows how its writer chose to alternate between languages. A Blend item shows what follows when a procedure substitutes targeted material in an existing sentence. The latter lets the researchers repeat the operation across tasks and languages with known starting points. The resulting evidence belongs to that intervention, a useful distinction when reading a study of Evaluation & benchmarks.

The method, step by step

Finding the words that hold up an answer

IndoRobusta-Blend starts from a sentence in a labeled Indonesian dataset. The label is the dataset’s answer to the classification question. The classifier reads the sentence, assigns scores to possible categories and picks an answer. If its answer already disagrees with the label, Blend sends the original sentence forward unchanged. The procedure is designed to see which correct judgments can be disrupted by a language switch, so it reserves the costly generation step for examples the classifier can handle in their original form.

For an initially correct example, Blend measures the effect of hiding each token, a unit occupying a position in the sentence. It hides positions independently. After measuring the effect of covering one word, it restores that word before considering the next position. The classifier therefore gives a fresh response to each masked sentence, and every response can be compared with its response to the same full sentence. The method describes replacement at the level of words. Its notation uses indexed tokens to specify what gets masked.

Suppose the original answer is positive. Covering the name of a dish might leave the answer and its score nearly intact. Covering an expression of approval could cause a much larger shift. A change in the score is informative even if positive still wins, because the procedure is trying to rank potential edits before making them. It can detect dependence on a word that weakens the answer when hidden and distinguish that dependence from the stronger event of changing the answer altogether.

The masking stage and the translation stage serve different purposes. Masking estimates how much the expression contributes in Indonesian. Translation supplies a candidate that can express something similar using the embedded language. An effect measured under masking gives a reason to try the substitution. The subsequent classification of the mixed sentence shows whether that substitution actually disrupted the answer. The experimental result depends on the latter, with the masking scores used to decide where to look.

How IndoRobusta-Blend builds a comparison sentence

The steps in order.

How IndoRobusta-Blend builds a comparison sentenceStep 1: Read the original sentence and reference label1. Read the original sentence and reference labelStep 2: Return the original if classification already fails2. Return the original if classification already failsStep 3: Mask each position and measure score changes3. Mask each position and measure score changesStep 4: Rank words and select the leading candidates4. Rank words and select the leading candidatesStep 5: Translate selected words into the embedded language5. Translate selected words into the embedded languageStep 6: Insert replacements and compare sentence similarity6. Insert replacements and compare sentence similarityStep 7: Resample substitutions if similarity falls short7. Resample substitutions if similarity falls shortStep 8: Keep the original label for evaluation8. Keep the original label for evaluation

The notation and the importance rule

The paper represents the input sentence as a sequence whose entries can be individually addressed.

X = {w₁, w₂, …, wₘ}

X is the original Indonesian sentence. Each w with a subscript stands for the token at that position. The subscript ₘ represents M, the length of the sequence in tokens. The ellipsis indicates the intervening positions. The braces enclose the entries, and their displayed order is the sentence order that the procedure uses.

The data add a reference category to every sentence.

D = {(X₁, Y₁), (X₂, Y₂), …, (Xₙ, Yₙ)}

D is the original collection of labeled sentences. Each Xᵢ is an input sentence and the corresponding Yᵢ is its reference category. The subscript i indexes an example in the collection. N, shown by the final subscript ₙ, is the number of labeled examples. Parentheses keep the sentence and its category together as one item. The ellipsis stands for the intervening pairs.

For a given sentence, the importance calculation reads a version with a placeholder at the position being probed.

X ∖ wᵢ = {w₁, w₂, …, wᵢ₋₁, wₘₐₛₖ, wᵢ₊₁, …, wₘ}

X ∖ wᵢ denotes the masked form of X. The backslash here marks a replacement operation. wᵢ is the original token at position i, and wₘₐₛₖ is the mask token that takes its place. wᵢ₋₁ and wᵢ₊₁ are the original neighbors before and after that position when they exist. The ellipses cover the other original tokens, and the subscript ₘ indicates the final position in the sequence. At an endpoint, the mask occupies the corresponding first or last slot.

The authors use the predicted answer to decide which part of the importance rule applies. Scores for the reference class determine the first part. The second part also uses scores for another class.

I(wᵢ) = ⎧ fθ(Y ∣ X) − fθ(Y ∣ X ∖ wᵢ)                                            if fθ(X) = fθ(X ∖ wᵢ) = Y
        ⎩ [fθ(Y ∣ X) − fθ(Y ∣ X ∖ wᵢ)] + [fθ(Ȳ ∣ X) − fθ(Ȳ ∣ X ∖ wᵢ)]           otherwise

I(wᵢ) is the importance score for the token at position i. θ denotes the classifier’s parameters. fθ(X) gives the predicted label on the original input, and fθ(X ∖ wᵢ) gives its prediction with the position masked. The vertical bar in a score reads as “given,” so fθ(Y ∣ X) is the score of reference label Y on sentence X. The expression with the masked input gives the score for that same label after hiding the word. Ȳ denotes a class other than the reference. The minus signs subtract the masked-input score from the original-input score for the indicated class. The square brackets group those changes and the plus sign adds them in the second branch. The brace shows that the rule has two cases. The chained equality means that both predictions agree with the reference label.

The first branch makes a useful distinction between confidence and the final answer. Some words provide support that can be lost without overturning the decision. For those positions, the reference score alone tells the procedure how much support changed. Blend considers the second branch, for an input it has elected to perturb, when masking moves the prediction away from the reference class. The formula adds the score change for another label in the direction printed above. The wording of the rule identifies that label only as a class other than Y, leaving its selection among several alternatives underspecified.

A score of this kind is specific to a sentence and to the classifier that read it. A word can receive a large score in a short expression of feeling and a smaller score where several nearby words convey the same sentiment. The result can also reflect cues that people would regard as incidental. The procedure benefits from this specificity because its aim is to locate a fragile part of an actual classification decision. Interpreting the scores as linguistic explanations would require evidence about what those words contribute for readers and about how their effects change in context.

Masking words independently also sets a boundary on the ranking. It estimates the effects of local interventions one at a time. Once several words have been replaced, their effects can interact. A clue that could be lost harmlessly while another clue was present may become important once both are translated. The paper evaluates the whole generated sentence after making its changes, so the ranking guides the construction of the test input and the final classification captures its combined effect.

Choosing a language and making the replacement

The algorithm takes a perturbation ratio, R, that governs the share of words selected from the top of the ranking. Its experimental settings are 0.2, 0.4, 0.6 and 0.8. Each input is also processed with a specified embedded language. The procedure therefore has two distinct controls. The ratio sets how far down the ranking it reaches. The language determines which translations it requests for the selected words.

Google Translate provides the word translations, the stage of the method that uses Machine translation. The experiment then places those translations in the original sentence at the selected positions. In a Malay condition, the surrounding words still come from the Indonesian source, with Malay equivalents inserted where the procedure makes a replacement. The generated text inherits the original input’s topic, phrasing and structure to the extent that word substitution preserves them.

A request for a translation can yield the same spelling as the source word. Some entries in the paper’s translation lists behave that way, and some entries yield more than one word. It follows that R is best read as a selection parameter. It identifies the fraction of source positions the procedure intends to address. The finished sentence can show a different amount of visible change, even before accounting for the similarity check.

The paper illustrates the results with several kinds of sentence. In a passage about a campaign, the word effort appears in an Indonesian discussion of electability. In a food-related example, part of the wording draws on Sundanese while the sentence continues to describe a meal. A Javanese example inserts mudhun into an utterance about thinking of someone. The examples make the size of the operation concrete. An individual insertion can stand out against a sentence that retains most of its original phrasing, and a gloss of the whole sentence can still leave questions about whether every inserted word fits.

Screening a candidate and preserving its label

Blend uses the similarity between the original and modified sentence to screen the result. The authors refer to a cosine-based comparison. The algorithm gives the inequality that triggers another attempt.

Sim(X, Xₐ𝒹ᵥ) < α

Sim is the sentence similarity function. X denotes the starting sentence, and Xₐ𝒹ᵥ denotes the candidate with embedded-language substitutions. The subscript identifies the candidate as the perturbed example. α is the minimum similarity required for acceptance. The less-than sign means that the candidate scores below that minimum. In this case, the procedure resamples the substitutions using the importance information and evaluates the resulting candidate. A score at or above the threshold lets the loop end.

The paper’s prose also describes the comparison as a distance. The algorithm specifies the actual control flow in terms of similarity, with a score below the threshold causing resampling. That distinction matters because a distance rule would usually be expressed with a different direction. The intended outcome is to retain a version sufficiently close to the source, an application of Semantic similarity.

A whole-sentence check makes sense as a way to reject substantial changes. In the applications studied here, however, the reference label can depend on a small part of the sentence. The topic, speaker and named entities could all be retained after a substitution that changes an evaluation. A high overall score can therefore coexist with a local change consequential for the task. Blend uses similarity as a screen. The reference category is then transferred by construction, which is the assumption the human examples and the paper’s translation analysis help readers inspect.

The authors summarize generation with a function that returns the processed sentence.

g(X, Y, θ) = Xₐ𝒹ᵥ

g is the procedure that runs the prediction check, ranks positions, translates words and checks the resulting candidate as appropriate. X is its original input, Y is the label supplied with that input, and θ supplies the classifier used for prediction and ranking. Xₐ𝒹ᵥ is the sentence it returns. If the initial prediction was wrong, that output is X itself. The similarity threshold, perturbation ratio and chosen language are additional settings to the algorithm even though the compact function notation leaves them implicit.

Applying the same procedure item by item creates a derived collection.

D′ = {(X′₁, Y₁), (X′₂, Y₂), …, (X′ₙ, Yₙ)}

D′ is the generated dataset. A prime on X′ᵢ identifies the processed sentence corresponding to original input Xᵢ. The unchanged Yᵢ is that input’s reference label. N, represented by the endpoint subscript ₙ, is again the size of the collection, since every source pair produces an output pair. The parentheses indicate each linked sentence and label, and the ellipsis represents the intervening examples.

This pairing is what allows the researchers to evaluate accuracy under both conditions. It also clarifies the status of the term mixed test. The name describes the collection produced by the mixing procedure. Some outputs can be unchanged because the classifier missed the original item. Others might show limited visible alteration because a selected word has an identical form in the target language. The full-split score incorporates those cases along with the successful substitutions.

Learning from the generated cases

IndoRobusta-Shot uses Blend’s generation procedure to create labeled training inputs. In the paper’s terminology, this is adversarial training because the substitutions target words a classifier has reason to rely on. The task categories carry over from the original collection. The learner receives another version of the evidence for an existing category, a supervised use of Fine-tuning.

In the mixed-only strategy, training draws its examples from the generated collection. That makes the learner practice the kinds of sentences used for the mixed evaluation, including those returned unchanged by the generator. When a source sentence is successfully altered, it is the altered version that this strategy presents. An expression in the original wording may consequently occur less often in the material used to learn the classification task.

The two-step strategy first trains with original Indonesian inputs. It then takes the resulting classifier as the starting point for a further phase using generated inputs. The second phase can reward sensitivity to clues in the embedded language. The original task training has already established which distinctions the classifier needs to make and given it practice with Indonesian examples of those distinctions. Evaluating the result on both test conditions shows how well that earlier performance survives the later phase.

Joint training brings the original sentences and the generated versions into the same pool. The learner gets practice recognizing evidence in its original form and after substitution during the same training process. Because pairs share a category, the cases can reinforce the same mapping through different words. That is the training design. Demonstrating which internal cues the learner acquired would call for a separate analysis of its decisions after tuning.

The comparison between these schedules is about access to examples as well as timing. Mixed-only training draws from a particular generated set. Two-step training sees both sources in successive phases. Joint training can revisit original and generated cases during the same run. Holding the classification categories fixed makes the outcomes comparable. The different schedules still expose the learners to different pools and sequences of training examples. The paper announced a release of the implementation.

Experiments and results

The datasets, baselines and training conditions

SmSA is the paper’s sentiment dataset. It includes 12,760 labeled sentences, with 11,000 examples in training, 1,260 in validation and 500 in the original test split. Its reference categories are positive, negative and neutral. EmoT provides 4,403 emotion examples, with 3,521 for training, 440 for validation and 442 for testing. The possible emotion labels are anger, fear, happiness, love and sadness. Both tasks ask for a category for the whole input, the form of prediction covered by Text classification.

The original test split is the reference condition for each task. Blend supplies the generated comparison from those source items, using their existing labels. Different embedded languages can therefore be evaluated on inputs that began with the same distribution of reference answers. Across the two tasks, both the text and the answer categories differ. The experiment yields a separate robustness result for each benchmark.

IndoBERT BASE and IndoBERT LARGE are the Indonesian-specific baselines. The multilingual comparison includes XLM-R in its BASE and LARGE variants, along with mBERT BASE. The authors say that the multilingual systems were pretrained on corpora covering Indonesian and the embedded languages in the study. That establishes coverage for purposes of the comparison. The amount, quality and form of exposure to mixing within those corpora remain separate questions. The mBERT baseline belongs to the family introduced in BERT.

The original-data runs use a learning rate of 3e-6 and batches of 32 examples. Sentiment training lasts 5 epochs and emotion training lasts 10 epochs. An epoch is a pass through the training data. The authors run each experiment with three distinct random seeds and report mean scores over those runs. For training with generated data, they keep the learning rate and batch size, permit up to 15 epochs and use early stopping with patience of 5. Early stopping allows training to end before the maximum when improvement stalls. Both setups use Adam.

How to read accuracy and its decline

The paper reports accuracy on original inputs and on generated inputs. Each is the share of predictions matching the reference category in the relevant split. It also gives delta accuracy, which expresses the decline from the original accuracy to the generated-condition accuracy. Smaller deltas indicate greater stability under the intervention. A delta belongs to a pair of evaluations, so the original score and the delta answer different questions about the same classifier.

Original accuracy tells how well the classifier performed before the change in wording. Delta tells how much performance the generation procedure removed. A classifier starting from strong performance can show a larger loss than one starting from a weaker position. The initial prediction gate reinforces the distinction. A classifier with more initially correct examples has more cases on which the procedure can introduce a new error. The reported deltas combine that opportunity with the effects of the changes that Blend makes.

The letter codes in the results distinguish the language of the replacement. Several conditions share an original-test score because they start from the same original input for the same classifier. The ranking among embedded languages is about the impact of the generated substitutions. It takes into account both which expressions were translated and the actual words supplied by the translator.

The baseline results under mixing

The paper gives its central before-training comparison at a perturbation ratio of 0.4. Its account describes the overall loss as greater than 10% for the EmoT emotion test and about 3% for the SmSA sentiment test. The results across languages show that the emotion benchmark experienced the larger decline under this procedure. They also show a consistent ordering in the language averages for the two tasks.

Average EmoT test accuracy loss by embedded language at R = 0.4

English has the smallest average decline and Javanese has the largest.

Average EmoT test accuracy loss by embedded language at R = 0.4English (this paper): 10.91English (this paper)10.91Sundanese: 11.09Sundanese11.09Malay: 11.61Malay11.61Javanese: 13.09Javanese13.09
The numbers
System or settingdelta accuracy
English (this paper)10.91
Sundanese11.09
Malay11.61
Javanese13.09

On the SmSA test, the table reports average deltas of 2.31 for English, 2.81 for Sundanese, 3.40 for Malay and 3.84 for Javanese. The English and Javanese averages therefore occupy the same ends of the ordering as on EmoT. An individual classifier can depart from that pattern. For instance, on SmSA, XLM-R BASE has a delta of 3.40 with English substitutions and 3.80 with Javanese substitutions, while the Sundanese and Malay deltas for that classifier are both 4.27. A language average answers how a pairing behaved across the baselines, leaving room for system-specific outcomes.

One sentence in the results discussion reverses the direction of the English comparison. The deltas in the table are lower for English than for Javanese and Malay when averaged across classifiers, and the paper defines lower deltas as better. That direction agrees with the authors’ abstract and conclusion. Their proposed explanation concerns online usage. Earlier work cited in the paper describes Indonesian–English mixing in settings such as social media, and the authors suggest that data from online sources could expose pretrained systems to that pairing frequently. The benchmark measures the performance pattern that prompted this explanation.

The Indonesian-specific baselines showed smaller average declines on EmoT than the multilingual baselines. Their original accuracies were 72.42 for IndoBERT BASE and 75.53 for IndoBERT LARGE. On the same original test, XLM-R LARGE achieved 78.26, XLM-R BASE achieved 72.88 and mBERT BASE achieved 61.14. XLM-R LARGE led on the starting material. The ranking by delta describes a different aspect of the experiment.

EmoT test accuracy loss by classifier at R = 0.4, averaged across embedded languages

Both IndoBERT variants show smaller average declines than the multilingual baselines.

EmoT test accuracy loss by classifier at R = 0.4, averaged across embedded languagesIndoBERT BASE (this paper): 10.19IndoBERT BASE (this paper)10.19IndoBERT LARGE: 10.23IndoBERT LARGE10.23XLM-R LARGE: 12.37XLM-R LARGE12.37XLM-R BASE: 12.65XLM-R BASE12.65mBERT BASE: 12.96mBERT BASE12.96
The numbers
System or settingdelta accuracy
IndoBERT BASE (this paper)10.19
IndoBERT LARGE10.23
XLM-R LARGE12.37
XLM-R BASE12.65
mBERT BASE12.96

SmSA produces a different ordering across systems. Its average test deltas are 2.65 for mBERT BASE and 2.67 for XLM-R LARGE. IndoBERT BASE records 3.00 and IndoBERT LARGE records 3.20. XLM-R BASE records 3.94. The smaller deltas of the leading multilingual entries on this task concern stability relative to their own original accuracies. On original SmSA, for instance, mBERT BASE starts at 83.00 and IndoBERT LARGE at 94.20. A reader interested in the practical quality of the sentiment predictions needs the accuracy level as well as the change under mixing.

The results after training with generated sentences

The comparison of training strategies reports absolute accuracy on both original and mixed test sets. Under mixed-only tuning, IndoBERT BASE reaches 45.13 on original EmoT and 45.10 on original SmSA. The corresponding scores after original-data training are 72.42 and 91.00. This is a substantial cost on the original inputs, even though the generated collection uses the same reference categories. The training distribution changes which wording the learner repeatedly sees when it is acquiring evidence for a class.

The authors describe mixed-only and two-step tuning as yielding stronger improvements on mixed inputs than joint training in their comparison. Two-step tuning also retains much more performance on original data than the mixed-only schedule. These findings give the sequence of training a practical role. A classifier that has already learned on original Indonesian can respond differently to a phase of adaptation from one trained on the generated collection from the start.

Joint training offers the strongest overall original-test outcomes in the authors’ account. IndoBERT BASE reaches 74.68 on the original EmoT test with joint training, compared with 72.42 after original-only training. XLM-R LARGE reaches 78.31 under joint training, with 78.26 as its original-only result. These examples give a sense of how much the original-test outcomes vary across starting systems. The paper’s headline describes its best strategy as gaining roughly 5% in accuracy on the mixed test and approximately 2% on the original test. Those headline gains characterize the strategy-level result, while individual original-test scores show a range of responses.

The original and mixed evaluations jointly explain the authors’ preference for a schedule that includes both kinds of material. A benchmark restricted to generated inputs would reward adaptation to those inputs without showing the cost on Indonesian sentences that remain as written. An original-only benchmark would miss the benefit of exposure to substitutions. Reporting both reveals how differences in the schedule alter the balance between the uses the paper investigates.

What the ablations show

Increasing the scope of substitution

The ratio experiment is a controlled comparison within Blend. The authors vary R through 0.2, 0.4, 0.6 and 0.8 and show the resulting accuracy on the EmoT test. Accuracy declines as the ratio increases. The paper locates the steepest part of the decline at 0.4, with smaller additional decreases at the higher settings. The curve indicates that much of the loss can occur before the procedure reaches the largest share of selected words.

The ranking gives one interpretation of the curve. At the lower settings, the candidate list concentrates on positions whose removal produced the strongest score changes. Expanding the list eventually brings in words that the classification depended on less strongly when each was masked. Once several influential expressions have been translated, the added positions may contribute less to a change in the answer. The sentence filter and the translator also affect which edits reach the accepted output, so the curve belongs to the entire process operating at those settings.

This comparison holds the basic choice of a targeted ranking in place. It therefore establishes the effect of extending that procedure. The incremental value of targeting would be a different comparison, one in which equally many words were selected by another rule under comparable translation and screening conditions. The paper interprets the steep drop as evidence that high-importance words can effectively disrupt predictions. The word analysis provides a way to inspect what was given that importance.

Looking at the selection across a dataset

The authors count how often each word is chosen over the perturbation settings considered. They call the selection count informative frequency. To allow comparison between words with different opportunities to occur, they use document frequency as a denominator.

Normalized informative frequency = IF / DF

IF is the count of times the word is selected as informative under the evaluated settings. DF is the word’s document frequency as used in the paper’s calculation. The slash indicates division. The expression on the left is the word’s normalized selection frequency. The calculation summarizes behavior across examples, in contrast to the importance rule’s score for a particular position in a particular sentence.

The paper presents the top 20 entries from each task’s test-data analysis. In SmSA, words expressing satisfaction or dissatisfaction figure prominently. The normalized selection frequency for nyaman, glossed in English as comfortable, is 0.769. For mengecewakan, glossed as disappointing, it is 0.737. The ranking also includes terms rendered as regret and nice. These words give plausible examples of the kind of evidence a sentiment classifier would use, and their recurrence makes sense of why a targeted replacement can challenge the classification.

On EmoT, the English word love has a reported IF/DF value of 0.856, and cinta also appears among the leading entries. The source list thus includes lexical material already associated with a label as well as forms whose role depends heavily on context. Abbreviations, pronouns and words describing ordinary actions occur in the list alongside direct expressions of feeling. For a word in that second group, a high frequency of selection indicates that the classifier’s score often responds to its presence. The appendix gives possible translations and spellings that help a reader inspect those selections in the context of Lexical semantics.

The lists also show that a switch can entail different textual operations across languages. Some replacements preserve a familiar form. Others express a similar idea using visibly different words, and others choose a sense that may fit poorly in a particular sentence. For example, the listed English rendering of mantap is steady, even though the source word appears in the sentiment list. In an evaluative context, a literal gloss of stability can carry a different implication from an expression of approval. The paper identifies ambiguous terms as a source of such errors.

The authors observe that predictions sometimes shift even when the translations convey similar meanings. Those cases are central to the robustness interpretation. They show that translation mistakes are only one route to an observed change, alongside difficulty handling the mixture itself. The lexical inspection substantiates the existence of plausible challenging replacements. It gives no breakdown of the full test loss by whether an edit was accurate, ambiguous or visibly different from the original.

What the tuning comparison isolates

The schedules test a different part of the framework. They vary which training examples are available and when the learner encounters them, then use both kinds of test input to inspect the outcome. The mixed-only run shows the effect of drawing training solely from Blend’s outputs. The two-step run adds a prior phase of exposure to the original wording. Its stronger retention of original-test accuracy suggests the earlier phase matters for later performance.

Joint training provides a different kind of ongoing exposure. During the same learning process the classifier can encounter Indonesian constructions in their original forms and mixed versions of other examples. The observed original-test performance is consistent with a benefit from retaining that source of evidence during training. Individual results vary, and the study compares complete schedules whose training pools and order differ. The effects of example count, update count and continuity of original-language exposure remain intertwined.

This comparison makes the choice of a training strategy depend on the test condition being valued. Stronger performance on the generated mixture can accompany a steep decline on the original material, as the mixed-only results illustrate. Two-step training improves the retention of original performance, and the paper’s joint runs give the strongest overall balance for a goal that includes the original benchmark. These outcomes are empirical properties of the schedules used here, with the generated training and test inputs coming from the same perturbation family.

How human readers judged the mixtures

The authors included a manual assessment of sentence naturalness. For Javanese–Indonesian and Sundanese–Indonesian, they recruited 3 native annotators for each language. For English–Indonesian, they used 3 Indonesian annotators with professional English proficiency. Each annotator rated 40 randomly sampled generated sentences. The researchers averaged the ratings for the reported result, a use of Linguistic annotation.

The scale runs from 1 to 5. A rating of 1 marks a sentence the reader cannot make sense of. At 5, the wording is understandable and appropriate. The intermediate grades distinguish comprehensible but strange wording, wording with problems in its use, and sentences that are easy to understand despite some inaccurate choices. Asking for a graded judgment lets an annotator register that a sentence is readable while still finding a word unnatural in its setting.

Human naturalness ratings for sampled IndoRobusta mixtures by embedded language

Readers rate the English mixtures highest and the Javanese mixtures lowest among the assessed pairs.

Human naturalness ratings for sampled IndoRobusta mixtures by embedded languageEnglish–Indonesian (this paper): 3.94English–Indonesian (this paper)3.94Sundanese–Indonesian: 3.71Sundanese–Indonesian3.71Javanese–Indonesian: 3.39Javanese–Indonesian3.39
The numbers
System or settingmean naturalness rating
English–Indonesian (this paper)3.94
Sundanese–Indonesian3.71
Javanese–Indonesian3.39

The paper interprets these scores as evidence that the generated sentences are adequately natural overall. The ordering also matters for the robustness comparison. English yields the highest mean rating and the smallest average classification loss, while Javanese yields the lowest mean rating and the largest average loss. Naturalness and classifier accuracy concern different outcomes. Their alignment makes the quality of the substitutions a relevant alternative influence on the language ranking.

A fluency judgment captures problems that score-based sentence similarity can miss, such as a word that is intelligible but sounds out of place where inserted. The emotion or sentiment carried by the sentence is a more specific target. An awkward expression may retain the original category, and a fluent change may shift it. The human study checks how the sentences read. Direct evidence about whether a particular label remained correct would come from a judgment of that label for the generated input.

Limitations

Limits identified by the authors

The authors single out word-level translation as the main limitation. Google Translate produces the substitutions from selected source words, whereas someone composing a mixed sentence can choose a switch using the sense, register and context of the whole expression. When a selected word has multiple senses, the automatic translation can choose one that changes what the sentence says. Since the method is designed to affect positions important to a classification, an erroneous change at one of those positions can directly affect the reference category.

The implication for the accuracy measurement is concrete. Imagine a phrase whose original wording makes an evaluation positive. A replacement can preserve the subject and much of the surrounding sentence while making that approval much weaker. The inherited label still demands a positive prediction. If a reader would choose a different category after the edit, disagreement with the inherited label ceases to be a clean measure of the classifier’s handling of an equivalent expression. The authors’ analysis acknowledges that ambiguity can produce this kind of meaning change.

The paper points to higher-quality mixed sentences for future evaluation. Its procedure gives the study a repeatable choice of embedded language and perturbation ratio. Manually composed examples would supply evidence about the switches speakers and writers elect to make, including contextual decisions the current generator approximates with isolated translations and a sentence-level similarity check. This distinction matters for both evaluation and training, since the same synthetic procedure supplies the inputs in both stages.

Limits that follow from the benchmark design

The classifier plays a role in constructing the test it faces. Predictions determine whether an input is eligible for editing, and score differences determine the candidate locations. Thus, classifiers working from a shared split can receive different substitutions under the same language and ratio settings. A difference in their deltas includes differences in sensitivity to mixed wording and differences in the challenge that the ranking procedure constructs for each. This remains a meaningful measure of each classifier under the benchmark protocol.

The eligibility rule further restricts what an aggregate delta represents. The denominator includes all examples from the starting split. Some of those examples were already misclassified and retain their original wording. Other examples may be processed successfully while keeping a selected word’s written form. The delta therefore gives the loss over the entire run of the procedure. The probability of a changed answer among initially correct examples with visibly altered, label-preserving wording would require counts for that subset.

The choice of a word as the unit of intervention bounds the language phenomenon being tested. The generated examples simulate insertion into an Indonesian frame. Natural mixtures can involve a longer passage, a different word order or more than one embedded language in a single utterance. A switch can also acquire significance from an earlier turn in a conversation. IndoRobusta’s starting texts and substitution procedure provide evidence at the sentence level for the listed pairings. The broader patterns of mixing remain open.

The comparison of tasks has a related boundary. EmoT is more sensitive to Blend’s perturbations than SmSA under the reported settings. Each dataset, however, comes with its own texts, class inventory, baseline accuracies and recurring cues. Greater sensitivity on EmoT could reflect the specificity of its categories, the kinds of words selected for substitution or other differences in the examples. The experiment compares these particular task-and-dataset combinations. A general explanation of why emotion and sentiment differ would need a design that varies those components more independently.

The multilingual baselines’ coverage of the languages establishes that those languages occurred in the reported pretraining inventories. The paper’s explanation of the English advantage concerns a finer property, the amount of mixing in those corpora. The study offers neither counts of those patterns nor a comparison in which exposure to mixtures is changed for the same classifier. The alignment between the English accuracy pattern and the prior research on online usage is compatible with the authors’ conjecture. Differences in naturalness, shared written forms and the appropriateness of the translations are also consistent with the observed pattern.

Limits of the quality check and training claims

The manual assessment reports results for English, Sundanese and Javanese pairings. The quality of Malay substitutions is therefore less directly documented by the human evidence, even though Malay appears in the robustness comparison. The naturalness averages also compress the variation between individual outputs. A mixture of highly natural and barely understandable cases could produce a similar mean to a sample that readers largely found moderately awkward. The reported means describe the aggregate perception of the sampled wording.

The ratings are also tied to the question readers were asked. They concern intelligibility and appropriateness. The key assumption in the accuracy calculation is the continued validity of the original class, a more narrowly defined judgment. The translation examples explain why naturalness and preservation of a label can diverge. A separate set of class assignments for the generated inputs would allow the observed errors to be divided more clearly between classifier failures and edits that changed the appropriate answer.

The training gains principally concern the kind of mixture IndoRobusta produces. Shot sees generated material at training time, and Blend supplies the corresponding form of test perturbation. That relationship is appropriate for showing whether targeted augmentation can help with a specified source of fragility. Transfer to naturally authored mixtures, to an unseen embedded language or to categories from a different task remains an empirical question. The improvement on the original test supplies evidence of transfer back to the unmodified task material under joint training.

The schedules also differ in more than the order of presentation. A joint pool includes original inputs and their generated counterparts, while the mixed-only pool has a different composition. Two-step tuning has distinct phases. The observed differences support claims about the complete training strategies. Attributing the improvements specifically to continued exposure, training duration or the number of examples would require tighter controls on those factors.

Exact replication also depends on settings that the methodological description leaves underspecified. The algorithm requires a similarity threshold and a sentence comparison, but gives limited detail on the numerical threshold, sentence representation and retry behavior used for the reported data. Those decisions can determine which words survive resampling and how much variation the reader sees. The importance formula’s treatment of an alternative class is another point where an implementation choice matters for these multiclass tasks.

Finally, the use of different seeds and averaged scores gives a central estimate for each reported run configuration. The numerical averages alone leave the uncertainty of close rankings unresolved. The EmoT deltas for the two IndoBERT variants, for example, are very close in the table. The broader pattern that both have smaller reported average declines than the multilingual comparators is the more direct finding from that comparison.

What came after

Testing whether multilingual capability extends to switching

The later paper on multilingual systems as code-switchers takes up a question that IndoRobusta makes visible through classification. A system can have broad language coverage and still struggle when a sentence moves between languages. IndoRobusta put that distinction into a specific experiment with original Indonesian inputs, selected insertions and inherited categories. The later work places the capacity to code-switch at the center of its stated question, broadening the capability under discussion beyond the loss seen on either Indonesian benchmark. Its connection to IndoRobusta is the need to measure what happens when languages are used together. Multilingual Large Language Models Are Not (Yet) Code-Switchers

The form of the earlier test makes that connection precise. IndoRobusta knows the answer before making the switch and can look for a resulting loss. Calling a multilingual system a code-switcher raises a broader question about what successful behavior under switching looks like. The citing work’s stated focus takes up that broader question, while IndoRobusta supplies a concrete case in which language coverage had to be considered alongside measured behavior.

Asking for a mixture as the output

The later work on prompting for South East Asian language mixtures makes code-mixed text the requested output. In IndoRobusta, sentence generation is an intermediate step. A translation creates an input that will then be classified or used in training. The later work frames production of the mixed sentence itself as the task and uses prompting as the means of eliciting it. The papers are connected by the need to produce usable mixtures, with the later study putting the choice and realization of the wording directly at issue. Prompting for Code-Mixed Text in South East Asian Languages

For IndoRobusta, adequacy is relative to the original sentence. Readers need to be able to understand the mixture, and the inherited category needs to remain defensible. A generation task makes the quality of the output a primary concern. IndoRobusta’s human ratings help explain the connection because they evaluate an aspect of the generated sentence that classification accuracy leaves open. That same distinction is relevant when the mixture itself is what a system is asked to produce. Text generation

Adapting across languages with different resources

InstructAlign addresses alignment between languages with different resource levels through continual crosslingual instruction tuning. Its connection to IndoRobusta is through adaptation. Shot asks whether a classifier trained on Indonesian can retain its prior ability while learning from examples in which evidence appears in another language. InstructAlign places the adaptation problem at the level of instructions across languages. That extends the setting in which continued training can change what a system is able to carry from one linguistic setting into another. InstructAlign · Multilingual & cross-lingual NLP · Low-resource languages

The link is particularly clear in the two-step schedule. IndoRobusta first establishes performance on original Indonesian and then tests what happens after further exposure to mixed material, measuring both adaptation and retention. Continual crosslingual tuning frames a related issue around aligning languages through instructions. The shared question is how new linguistic exposure changes a previously acquired capability. IndoRobusta anchors that question in separate accuracy measurements for original and transformed classification inputs.

Cite

Cite as Muhammad Farid Adilazuarda, Samuel Cahyawijaya, Genta Indra Winata, Pascale Fung and Ayu Purwarianti. 2022. IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages. Proceedings of the First Workshop on Scaling Up Multilingual Evaluation.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.sumeval-1.5

@inproceedings{adilazuarda2022indorobusta,
  title = {{IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages}},
  author = {Muhammad Farid Adilazuarda, Samuel Cahyawijaya, Genta Indra Winata, Pascale Fung and Ayu Purwarianti},
  booktitle = {Proceedings of the First Workshop on Scaling Up Multilingual Evaluation},
  year = {2022},
  doi = {10.18653/v1/2022.sumeval-1.5},
  url = {https://doi.org/10.18653/v1/2022.sumeval-1.5}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/adilazuarda-2022-indorobusta-robustness-against-diverse-code/