---
title: "IndoRobusta — paper by Adilazuarda et al. (2022)"
description: "IndoRobusta tests how well Indonesian sentiment and emotion classifiers handle mixed-language sentences and whether training on such…"
canonical: "https://research.elamur.ai/free/en/papers/adilazuarda-2022-indorobusta-robustness-against-diverse-code/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/adilazuarda-2022-indorobusta-robustness-against-diverse-code/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages

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

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

**Authors:** [Muhammad Farid Adilazuarda](https://md.research.elamur.ai/free/en/authors/muhammad-farid-adilazuarda/), [Samuel Cahyawijaya](https://md.research.elamur.ai/free/en/authors/samuel-cahyawijaya/), [Genta Indra Winata](https://md.research.elamur.ai/free/en/authors/genta-indra-winata/), [Pascale Fung](https://md.research.elamur.ai/free/en/authors/pascale-fung/) and [Ayu Purwarianti](https://md.research.elamur.ai/free/en/authors/ayu-purwarianti/) · **Year:** 2022 · **Venue:** Proceedings of the First Workshop on Scaling Up Multilingual Evaluation · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the First Workshop on Scaling Up Multilingual Evaluation · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2022.sumeval-1.5/)
- [PDF](https://aclanthology.org/2022.sumeval-1.5.pdf)
- [DOI 10.18653/v1/2022.sumeval-1.5](https://doi.org/10.18653/v1/2022.sumeval-1.5)

## Summary

People can express the same feeling while drawing on different languages in a single sentence. An Indonesian sentence might carry its strongest expression of approval in Sundanese or use an English word to convey a feeling. A classifier trained on Indonesian may have learned to recognize the original expression and still miss its counterpart when the rest of the sentence stays familiar. IndoRobusta asks how much this kind of change affects automatic judgments of sentiment and emotion. It uses Indonesian as the language of the original sentence and introduces words from English, Sundanese, Javanese or Malay.

The framework has two parts. IndoRobusta-Blend creates test cases by finding which words a classifier relies on, translating selected words and checking that the resulting sentence is sufficiently similar to the original. The original label carries over, so the experiment can ask whether the classifier still recognizes the same sentiment or emotion after the wording changes. IndoRobusta-Shot uses sentences generated by the same procedure as additional training material. The authors compare training on mixed sentences alone, introducing them after training on original Indonesian, and pooling the two kinds of text.

With the fraction of words selected for substitution set to 0.4, the headline accuracy reduction exceeded 10% on the EmoT emotion test, compared with about 3% on the SmSA sentiment test. English substitutions produced a smaller average loss than Javanese substitutions on both tests. On EmoT, the Indonesian-focused IndoBERT variants also lost less accuracy on average than the multilingual alternatives. The authors suggest that the prevalence of Indonesian–English mixing in online material may help explain the English result. The experiment compares existing systems and generated test sentences, so the proposed explanation remains a hypothesis about what those systems encountered before task training.

Training on generated mixtures improved performance on the mixed test material. Training on mixtures alone could come at a large cost on original Indonesian. Starting with original sentences and then adapting to mixtures preserved more of the original-test performance, while joint training gave the strongest overall performance on the original material in the authors’ comparison. The paper reports gains of approximately 5% on the mixed test set and roughly 2% on the original test set for its best strategy. The generated mixtures make this tradeoff measurable under controlled conditions. Their resemblance to everyday language is a separate question, especially when an isolated word has several possible translations.

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

IndoRobusta tests how well Indonesian sentiment and emotion classifiers handle mixed-language sentences and whether training on such sentences helps. · about 32 minutes to read

**In this deep dive**

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

### The problem and its context

#### Knowing the languages and understanding a mixture

The paper uses *code-mixing* for a switch that takes place inside a sentence. A speaker can keep speaking or writing in Indonesian while drawing a particular word or expression from another language. The authors call Indonesian the *matrix language* because it supplies the sentence around the inserted material. They call the language supplying that material the *embedded language*. The distinction determines how to read the experiments. In an Indonesian–Javanese condition, for example, the task is to interpret an Indonesian sentence with Javanese material inside it. The study starts from existing Indonesian sentences so that a change of language can be examined against the wording that preceded it.

This setup responds to a gap the authors identify in Indonesian language technology. Indonesian speakers frequently use Indonesian alongside a language associated with their region, and the paper describes regional variation in speaking and writing. That creates a practical question for a classifier that has learned to work with a standardized benchmark. Its training examples may show how people express a feeling in Indonesian, but an utterance can retain much of the same structure while changing the language of the word that communicates the feeling most directly. Reading the surrounding sentence correctly may still leave the classifier with too little evidence to identify the emotion.

The distinction between sentiment and emotion helps make the issue concrete. A sentiment classifier has to decide whether an evaluation is positive, negative or neutral. An emotion classifier has to distinguish states such as anger and sadness, which can both occur in a sentence with negative sentiment. If a sentence includes several signs of dissatisfaction, a change to one of them might leave enough evidence for negative sentiment. If a particular term is especially useful for distinguishing one emotion from another, a change to that term may have a greater effect. These are ways to interpret what the tests ask of a classifier. Whether either account explains the observed difference requires looking at the tasks and the selected words together. [Sentiment & emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/)

The paper also distinguishes its treatment of Malay from the status of Sundanese and Javanese. It includes Malay because of its relationship to several languages used in Indonesia, while acknowledging that Malay itself occupies a different position from a directly local language in the comparison. English serves a different role again. The background research the authors discuss describes Indonesian–English mixing in online contexts, while the paper emphasizes the importance of regional mixtures in everyday exchanges. The comparison thus puts several kinds of language contact inside the same experimental setup without assuming that people use each pair in the same settings.

#### What earlier resources could establish

The authors place IndoRobusta after a period of growth in Indonesian benchmarks, pretrained systems and resources for regional languages. IndoNLU and IndoLEM are examples of work that supplied common evaluation resources or Indonesian pretraining. IndoNLG addressed evaluation for generation. The paper also points to efforts that built resources for languages used in Indonesia beyond Indonesian itself. These developments made it possible to compare systems on shared tasks and to ask more specific questions about their training. An evaluation on sentences in one language, however, supplies limited evidence about what happens when part of the sentence changes language. [IndoNLU](https://md.research.elamur.ai/free/en/papers/wilie-2020-indonlu-benchmark-resources-evaluating-indonesian/) · [IndoLEM and IndoBERT](https://md.research.elamur.ai/free/en/papers/koto-2020-indolem-indobert-benchmark-dataset-pre/) · [IndoNLG](https://md.research.elamur.ai/free/en/papers/cahyawijaya-2021-indonlg-benchmark-resources-evaluating-indonesian/)

Code-switching research had already established ways to collect and evaluate mixed material. The paper cites GLUECoS and LinCE as benchmark efforts, alongside work on particular language pairs and tasks. It also discusses earlier Indonesian–English studies, including work on normalizing mixed social media text and evaluating word representations with synthetic mixtures. The open issue for IndoRobusta was how to compare several embedded languages against the same Indonesian classification material. Starting with labeled Indonesian examples lets the experiment keep the original task fixed while changing the language used in parts of the input. [GLUECoS](https://md.research.elamur.ai/free/en/papers/khanuja-2020-gluecos-evaluation-benchmark-code-switched/) · [LinCE](https://md.research.elamur.ai/free/en/papers/aguilar-2020-lince-centralized-benchmark-linguistic-code/)

Earlier approaches to learning from mixed text included training on related tasks, expanding training data with additional examples, adapting multilingual systems and using meta-learning. IndoRobusta takes up data expansion. Its premise is that the examples generated to identify a weakness can also supply practice with that weakness. Since the starting point is a sentence with a label, a replacement intended to preserve meaning can produce a further example for the same task. The usefulness of that procedure depends on how frequently the intended meaning survives the change.

A second line of work concerns robustness to changes in an input. The paper describes earlier studies that alter a text and see whether a classifier changes its answer. A word substitution is particularly informative when the word strongly affects the original decision. The paper also mentions approaches that address fragility by changing the training objective or removing harmful training examples. Its own choice is to keep the classification task and alter which examples the classifier sees. That makes the comparison about exposure to original and mixed examples, including the order in which the material is introduced. [BERT robustness study](https://md.research.elamur.ai/free/en/papers/jin-2019-bert-really-robust-strong-baseline/) · [NL-Augmenter](https://md.research.elamur.ai/free/en/papers/dhole-2023-nl-augmenter-framework-task-sensitive/)

There is a difference between a perturbation study and a direct evaluation of everyday code-mixing. A collection of naturally mixed sentences shows how speakers actually combined languages in those examples. A perturbation study starts from a known sentence and controls an alteration. Its advantage is that the original and altered examples can be related directly. Its results depend on the rules for choosing the changes and on the quality of the replacements. IndoRobusta uses this design to test an expectation about classification under a fairly specific intervention. It also asks human readers to judge some of the resulting sentences, which provides a separate check on how the generated text reads. [Evaluation & benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

### The method, step by step

#### From an Indonesian sentence to a test case

IndoRobusta-Blend starts with an Indonesian sentence and its reference label, the category assigned to it in the dataset. Suppose its sentiment is positive and the classifier predicts positive. Blend asks which words helped the classifier arrive at that answer. It covers a word with a special placeholder, runs the classifier again and compares the new scores with the original scores. It repeats this procedure at different positions. A word that makes the score for the correct class fall when it is covered is a candidate for translation. This procedure uses the classifier’s own responses to choose what to change.

Now suppose a word conveying approval is among the positions selected. Blend translates that word into the chosen embedded language and inserts the translation at the corresponding position. It does the same for the other words selected under the current setting. A sentence-level similarity check then compares the candidate with the original. If it falls below the required similarity, the procedure resamples the substitutions and tries again. The resulting data item retains the original label. The expected test answer is therefore the category the sentence had before the substitutions.

There is an exception before any word ranking. If the classifier already disagrees with the reference label on the original, the algorithm returns the original unchanged. Otherwise a sentence that was already misclassified could be presented as a newly induced error. Returning the original has a consequence for the dataset as a whole. The set produced by the transformation can contain unchanged sentences, and the performance reported on it reflects the behavior of the procedure over the full starting set.

How IndoRobusta-Blend generates a test example The steps in order.

#### What the importance score measures

The paper represents a sentence as a sequence of tokens. Here a token is an indexed unit in the sentence on which the masking operation acts. The method discussion describes the units it translates as words.

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

`X` is the original sentence. Each `w` with a subscript is the token at that position. The subscript `ₘ` marks the last token, with `M` denoting the sentence length in tokens. The ellipsis stands for the intermediate tokens. The braces follow the paper’s notation for the sentence, whose order matters when covering or replacing a token.

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

`D` is the original Indonesian dataset. `Xᵢ` is the sentence of item `i`, and `Yᵢ` is its reference class. The parentheses pair each sentence with its label. `N`, represented by the final subscript `ₙ`, is the number of examples in the dataset. The ellipsis covers all pairs between the ones shown.

To test a position, the method uses a masked version of the sentence. In this operation the placeholder goes where the original token stood, with the other tokens kept in their original order.

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

`X ∖ wᵢ` means the version of `X` in which `wᵢ`, the token at position `i`, has been covered. The symbol `∖` is used for masking in this notation. `wₘₐₛₖ` is the mask token. `wᵢ₋₁` and `wᵢ₊₁` are the adjacent original tokens where those positions exist. The ellipses indicate other tokens that remain in place, and `wₘ` indicates the original sequence’s endpoint when that position survives the masking operation.

The classifier returns a predicted label and also gives scores to labels. The importance rule uses both kinds of output. Comparing the labels tells the procedure which branch to use. Comparing the scores gives a more finely graded measure of the change caused by covering the word, including when the most likely label stays the same.

```
I(wᵢ) = ⎧ fθ(Y | X) − fθ(Y | X ∖ wᵢ)                         if fθ(X) = fθ(X ∖ wᵢ) = Y
        ⎩ [fθ(Y | X) − fθ(Y | X ∖ wᵢ)] + [fθ(Ȳ | X) − fθ(Ȳ | X ∖ wᵢ)]   otherwise
```

`I(wᵢ)` is the importance assigned to token `wᵢ`. `θ` represents the parameters used by the classifier. `fθ(X)` is the predicted label for the original sentence, and `fθ(X ∖ wᵢ)` is the predicted label after masking the position. `fθ(Y | X)` is the score for reference class `Y` given `X`. The vertical bar reads as “given.” The same expression with `X ∖ wᵢ` is the score for that class with the position masked. `Ȳ` denotes a label other than `Y`, and the two terms that use it compare its score on the original and masked sentences. Each minus sign gives the change in a class score in the order shown, and the plus sign adds the two changes in the second branch. The brace separates the cases, and the chained equality in the first case requires the original and masked predictions both to match `Y`.

When the reference class stays on top, the rule asks only how much evidence the classifier lost for that class. It can therefore rank a word highly even when covering it does not immediately change the answer. When masking changes the answer in a sentence that was originally classified correctly, the second branch includes a change involving another label. The paper describes `Ȳ` as a label other than the reference. Its notation leaves open how to choose that label if several alternatives need to be considered in a multiclass task.

The scores express sensitivity within a particular sentence for a particular classifier. A term for a feeling may be highly influential if it is the clearest expression of that feeling in the sentence. The same term could have a smaller effect where surrounding words also make the class clear. Likewise, a word that a reader might consider incidental could receive a large score if the classifier’s decision depends heavily on it. The method uses these sensitivities to find demanding substitutions. The score alone gives no account of why a human reader would choose the label.

#### Turning ranked positions into mixed sentences

The perturbation ratio `R` is the share of positions selected for translation from the top of the ranking. The experiments use settings of 0.2, 0.4, 0.6 and 0.8. A lower setting concentrates the procedure on a smaller group of influential words. Increasing the setting expands the selection to positions further down the ranking. Since selection depends on importance, changing the ratio varies both the amount of material targeted and the kinds of positions that enter the candidate.

Google Translate supplies the word-level replacements. The procedure uses one embedded language at a time for a given condition. In the English condition, for example, Blend requests English translations for the selected Indonesian words and puts them back into the sentence. This preserves the original frame as far as the substitution process permits. The method does not build a new sentence from a description of what the original meant. Its basic operation is to retain the sentence and exchange selected pieces.

After replacement, the algorithm checks a cosine-based similarity. The pseudocode specifies the direction of the comparison by resampling while the candidate’s score is below the threshold.

```
Sim(X, Xₐ𝒹ᵥ) < α
```

`Sim` is the similarity function used by the algorithm. `X` is the starting sentence, and `Xₐ𝒹ᵥ` is the candidate produced by targeted substitutions. The subscript `ₐ𝒹ᵥ` identifies the perturbed example. `α` is the similarity threshold, and `<` means the candidate’s score falls below it. When that happens, the procedure resamples the perturbed words with reference to their importance scores and constructs a new candidate. A candidate can pass the check once its score reaches the threshold or exceeds it.

The paper sometimes discusses this comparison in terms of distance. Following the pseudocode’s inequality, a low `Sim` value is the condition that keeps the loop running. The intended behavior is clear at that level. The numerical value of the threshold, the details of the sentence representation used by the comparison and how retries are bounded are left unspecified in the method description. Those choices would matter when reproducing the exact set of accepted candidates.

The paper collects the operations into a generation function. It writes that function in terms of the original sentence, the original label and the classifier’s parameters. The ratio, threshold and target language are settings supplied to the algorithm.

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

`g` is the generation procedure. `X` is the original sentence, `Y` is its reference label, and `θ` is the parameter set used to score the original and masked versions. `Xₐ𝒹ᵥ` is the returned sentence, which can be the original sentence when the prediction check fails. The equality says what the function returns for the given inputs and generation settings.

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

`D′` is the dataset derived from `D`. Each `X′ᵢ` is the returned version of original sentence `Xᵢ`, and `Yᵢ` is its unchanged reference label. The prime distinguishes processed sentences and their collection from their originals. The ellipsis covers intermediate examples. `N` remains the number of starting pairs because the procedure returns a sentence for every pair.

The paper gives examples from several settings to illustrate what the replacements look like. One uses the English word *effort* in Indonesian commentary about a campaign. Another uses Sundanese material in a sentence about food. These examples show the scope of the operation more clearly than a translation of an entire sentence would. They also show why a sentence can be readily understandable while still raising a question about whether a particular replacement is what a speaker would choose.

#### Using the generated sentences in training

IndoRobusta-Shot uses the examples produced by Blend for [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). Fine-tuning here is the process of adjusting a pretrained classifier to predict the task’s categories from labeled examples. The generated material gives the learner a chance to associate mixed wording with the same categories as the original wording. The authors call this adversarial training because the generator targets words that matter for a classifier’s decision. The term describes how they create difficult examples within the classification task.

In code-mixed-only tuning, the learner trains on the generated dataset `D′`. This strategy concentrates training on the kind of input used in the mixed test condition. Since the generator can return an original sentence unchanged, the designation refers to use of the generated dataset as a whole. Some membership in that dataset follows from the original prediction check, even if a particular sentence contains no inserted material.

Two-step tuning introduces the sources in sequence. The first phase uses the original dataset `D` to teach the classification task in Indonesian. The second takes that trained classifier and continues on `D′`. Original sentences shape the starting point for adaptation, while generated cases shape the later updates. The method tests whether the first phase leaves a useful basis for reading original sentences after the second phase has adapted the classifier to mixtures.

Joint training uses material from `D` and `D′` in a common training set. The reference labels have the same meaning across the mixture of examples. The difference lies in which language supplies some of the evidence for those categories. In a joint run, original Indonesian continues to appear throughout task training together with the generated variants. The comparison with two-step tuning therefore examines the effect of presenting both sources together versus putting the generated examples in a later phase. The paper identifies IndoRobusta-Blend and IndoRobusta-Shot as its framework modules and announced a release of the implementation.

### Experiments and results

#### The original tasks and their test conditions

SmSA provides 12,760 examples for sentence-level sentiment classification. The categories are positive, negative and neutral. The paper’s split counts are 11,000 training examples, 1,260 validation examples and 500 test examples. EmoT provides 4,403 examples for emotion classification, with the categories anger, fear, happiness, love and sadness. It has 3,521 training examples, 440 validation examples and 442 test examples. The tasks use separate datasets, so a result on one task also reflects that dataset’s wording, category system and distribution of examples. [Text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/)

The original test split measures how well a task-trained classifier performs on the existing Indonesian material. The generated test condition measures how well it performs after applying Blend to those starting examples. Within the evaluation at a given perturbation ratio, the embedded language is varied while the original task and reference labels remain the same. This gives the English and Javanese conditions, for example, the same starting sentiment or emotion assignment. The comparison has variation in the translated word and in how well its translation fits the Indonesian sentence.

The baselines include Indonesian-focused IndoBERT BASE and IndoBERT LARGE. The multilingual comparison includes mBERT BASE and the BASE and LARGE variants of XLM-R. The authors state that the multilingual systems’ pretraining corpora cover Indonesian and each of the embedded languages selected for the experiment. This matters because a poor result on mixed input cannot simply be attributed to an embedded language being absent from the stated language inventory. The comparison examines whether knowledge gained from such coverage carries over to the particular kind of within-sentence mixing used by Blend. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

For robustness evaluation before mixed-data training, the authors fine-tune on the original training material with [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/). The learning rate is 3e-6 and the batch size is 32 examples. Sentiment training runs for 5 epochs, and emotion training for 10 epochs. An epoch is a pass through the training data. Each of the three runs uses a different random seed to vary the choices made at random during training, and the reported results are averaged across all three. For the adversarial-training experiments, the optimizer, learning rate and batch size stay the same. Training is allowed to run for up to 15 epochs, with early-stopping patience set to 5. Early stopping allows the run to end before the maximum when the monitored performance stops improving.

The paper reports accuracy on the original test data, accuracy on the generated test data, and delta accuracy. Accuracy measures the share of inputs assigned the reference label. Delta accuracy measures the loss associated with moving from original to generated text. It answers how much of the original-test performance survived the substitutions, so a smaller delta indicates greater robustness by that measure. A classifier with lower original accuracy may also have less room to lose accuracy, and the rule that leaves initially misclassified examples unchanged is part of this comparison. Reading the absolute accuracies alongside the delta makes clear whether a small loss accompanies a useful level of classification performance.

#### The effect of substitutions before mixed-data training

At a perturbation ratio of 0.4, the task-level pattern is a larger reduction on EmoT than on SmSA. The paper characterizes the reduction as greater than 10% on the emotion task and about 3% on the sentiment task. The particular languages still matter within each dataset. On EmoT, the average delta across classifiers is 10.91 for English and 11.09 for Sundanese. The Malay delta is 11.61, and the Javanese delta is 13.09. These values quantify the loss in accuracy relative to the original EmoT test condition.

Average delta accuracy by embedded language on the EmoT test set at R = 0.4 English substitutions produce the smallest average loss, and Javanese substitutions produce the largest.

**The numbers**

| System or setting | delta accuracy |
| --- | --- |
| English (this paper) | 10.91 |
| Sundanese | 11.09 |
| Malay | 11.61 |
| Javanese | 13.09 |

On SmSA at the same ratio, the average delta is 2.31 with English, 2.81 with Sundanese, 3.40 with Malay and 3.84 with Javanese. The ordering of the averages matches EmoT, but the sentiment changes occur in a narrower range and the differences between individual classifiers are less consistent. The English result is an average across the comparisons. It does not imply that every classifier gives its smallest loss with English on every task.

The paper’s results discussion contains a sentence that describes English robustness as lower than that of Javanese and Malay. The direction of the tabulated losses, where lower delta is better, supports the interpretation in the abstract and conclusion. English has a smaller average loss than Javanese or Malay on both datasets. The stronger claim that all individual comparisons follow that direction is also unnecessary to explain the finding. The averages establish a pattern under the benchmark’s conditions, and individual rows show how the pattern varies.

For EmoT, the average deltas across embedded languages are 10.19 for IndoBERT BASE and 10.23 for IndoBERT LARGE. The reported averages are 12.96 for mBERT BASE, 12.65 for XLM-R BASE and 12.37 for XLM-R LARGE. Original EmoT test accuracies help interpret this ordering. IndoBERT BASE starts at 72.42 and IndoBERT LARGE at 75.53. mBERT BASE starts at 61.14, XLM-R BASE at 72.88 and XLM-R LARGE at 78.26. XLM-R LARGE therefore has the strongest original EmoT result in the comparison, while the two IndoBERT variants have smaller losses across the generated language conditions. Which measurement is most informative depends on whether the immediate question is original-test performance or the size of the change after mixing.

Delta accuracy by classifier on the EmoT test set at R = 0.4, averaged across embedded languages The IndoBERT variants lose less accuracy on average than the multilingual comparators.

**The numbers**

| System or setting | delta accuracy |
| --- | --- |
| IndoBERT BASE (this paper) | 10.19 |
| IndoBERT LARGE | 10.23 |
| XLM-R LARGE | 12.37 |
| XLM-R BASE | 12.65 |
| mBERT BASE | 12.96 |

The SmSA result does not extend the EmoT ordering into a general advantage for Indonesian-focused pretraining. At a ratio of 0.4, mBERT BASE has an average SmSA delta of 2.65, while XLM-R LARGE has 2.67. IndoBERT BASE records 3.00, IndoBERT LARGE records 3.20 and XLM-R BASE records 3.94. The original sentiment accuracies also differ. For example, mBERT BASE scores 83.00 on the original SmSA test and IndoBERT LARGE scores 94.20. A small loss for mBERT BASE on SmSA describes stability relative to its own starting point. The original accuracy is needed to understand the level of performance that was preserved.

#### How exposure to mixed sentences changed performance

IndoRobusta-Shot addresses a different comparison. The baseline stage asks what classifiers trained on Indonesian do when Blend introduces mixed wording at test time. The training experiment asks whether seeing generated inputs beforehand improves the mixed-test result, and whether that benefit can coexist with good classification of original sentences. Its results are reported as separate absolute accuracies for original and generated test sets under each tuning strategy.

Training on the generated dataset alone improves handling of mixed inputs in the authors’ account, but it can substantially weaken performance on original text. For IndoBERT BASE, the reported original-test accuracy in the mixed-only condition is 45.13 on EmoT and 45.10 on SmSA. The corresponding original-test scores after training on original text are 72.42 and 91.00. These scores show how much the choice of training material can matter even when both sources inherit their task labels from the same datasets.

Two-step tuning keeps more of the original performance while adapting to mixed examples. The authors group mixed-only and two-step tuning as approaches that can yield better improvements on mixed data than joint training. Their comparison points to the importance of when a classifier sees generated material. The same later emphasis on mixture that can make a classifier more responsive to the generated test condition also leaves the original condition more exposed to changes made during adaptation.

Joint training gives the highest original-test performance in the authors’ overall account while maintaining gains on mixed text. On EmoT, for example, the original-test score for IndoBERT BASE is 74.68 under joint training, alongside 78.31 for XLM-R LARGE. The original-only comparators for those classifiers are 72.42 and 78.26, respectively. The gains therefore vary by classifier even within a single task. The paper summarizes its best strategy as improving mixed-test accuracy by roughly 5% and original-test accuracy by roughly 2%. Those headline figures describe the reported benefit of the strategy. The per-classifier original and mixed outcomes describe the choices available when performance on the two test conditions carries different weight.

The original-test improvement is pertinent because the generated labels are inherited. Joint training gives the classifier alternate versions of familiar evidence without adding a new task or a new set of classes. This can be consistent with learning a decision that is less tied to the original wording. The experiment records better test results under that training arrangement. It does not examine the internal changes that produced them, so the observed benefit is best understood as an outcome of the training comparison.

### What the ablations show

#### Changing the amount of text selected for translation

The ratio experiment varies how many positions Blend tries to replace. On EmoT the authors test ratios of 0.2, 0.4, 0.6 and 0.8. Accuracy generally falls as the ratio increases. The paper identifies the steepest part of the decline at the 0.4 condition and describes the additional decline at higher settings as smaller. The key comparison concerns the amount of deterioration as more positions enter the procedure. A sentence can already lose useful classification cues before the ratio reaches the highest setting.

Importance ranking shapes this result. With a small selection, the procedure targets the places where masking had the strongest effects. Increasing the ratio moves further down that same kind of ranking. The newly selected words can contribute less to the current decision than the ones near the top. Once translations occupy many of the influential positions, later replacements may have less effect on which label wins. This is an interpretation of the flattening that follows from the design. The similarity check and imperfect translations also change which candidate actually becomes a test item.

The ratio comparison varies the extent of a targeted transformation. It leaves the ranking method in place, so it does not isolate the advantage of ranking over choosing positions randomly. A random comparison would help establish how much of the loss follows from changing words associated with the decision and how much follows from introducing translated material at all. In the paper’s experiment, the finding is that increasing the reach of the targeted procedure reduces emotion accuracy, with the most pronounced decline occurring before the highest ratios.

#### Examining the words selected by the classifier

The authors also check the character of the positions selected across a dataset. They call the count of selections for a word its *informative frequency*. A common word has more opportunities to be selected, so the count is divided by its document frequency. This gives a normalized measure of how regularly the ranking picks the word relative to how frequently it occurs in the material under analysis.

```
Normalized informative frequency = IF / DF
```

`IF` is the informative frequency, the count of times the word is selected over the perturbation settings considered. `DF` is the word’s document frequency as used for normalization in this analysis. The slash means division. The value on the left describes selection relative to frequency of occurrence. It differs from `I(wᵢ)`, which measures the effect of covering one position in one example.

The authors report the top 20 words by this measure for the emotion test analysis and the top 20 for the sentiment test analysis. On SmSA, the list includes terms that make plausible sentiment cues. For instance, the Indonesian word *mengecewakan* appears with an English gloss conveying disappointment, and *nyaman* has an English gloss conveying comfort. Their reported IF/DF values are 0.737 and 0.769, respectively. The rankings help explain why the resulting substitutions can be demanding. The procedure frequently targets material a reader would also recognize as relevant to the assignment of sentiment.

The EmoT list is more varied. It includes *love* and *cinta*, as well as forms the authors gloss in ways that are less directly tied to an emotion category. An item such as *cinta* can be a direct cue to an emotion. Other selected items may matter because they are part of a phrase or context that the classifier has learned to associate with a class. The ranked list reports how the selection rule behaved in these examples. It does not establish that an individual word has the same role elsewhere in the dataset or in ordinary use.

The translation lists permit an additional check. They show words translatable into a similar expression across several languages, words whose returned forms coincide with the source form, and terms for which the translator selects an ill-fitting sense. The paper observes that many substitutions convey a meaning close to the original and that predictions can still change in those cases. An ambiguous source word creates a different kind of case, since a substitution can change the evidence available to a reader as well as the language in which the evidence is presented. Looking at particular translations brings both possibilities into view. The frequency analysis alone cannot determine how much each one contributes to the aggregate accuracy loss.

#### Comparing the training arrangements

The training comparison controls which source of labeled text the learner sees and when it sees it. Mixed-only tuning shows the outcome of optimizing directly on generated examples. Two-step tuning keeps that later exposure and varies the starting point by first training on original Indonesian. Joint training continues to expose the learner to the original wording during the same training process in which it sees the generated cases. The reference label space is common to all three strategies, so the results are comparable in terms of the original sentiment and emotion tasks.

Two-step tuning’s stronger preservation of original-test accuracy relative to mixed-only tuning suggests that learning the original task first has value that survives the adaptation phase. Joint training’s stronger original-test results are consistent with another benefit, continued exposure to the original wording during training. These are comparisons between whole training schedules. Their scores do not isolate how much the results depend on order, the amount of material seen or the number of updates. Joint training draws from a combined dataset, which changes the pool of examples as well as their presentation.

The paper evaluates each approach on both original and mixed inputs, making it possible to see a tradeoff that a single test set would hide. A strategy can improve the mixed condition and degrade the original condition. Another can preserve or improve performance on original text while producing a smaller gain on some mixed conditions. The reported benefit of joint training is strongest when the goal includes both uses. The authors’ description of mixed-only and two-step results also shows that the preferred training arrangement can change when the mixed test condition is given priority.

#### Asking readers how natural the generated text sounds

The authors commissioned a human assessment of generated English–Indonesian, Sundanese–Indonesian and Javanese–Indonesian sentences. For each of the latter language pairs they used 3 native annotators, and for English–Indonesian they used 3 Indonesian annotators with professional English proficiency. Each annotator assessed 40 randomly sampled sentences. The best end of the scale, 5, indicates natural and appropriate wording. The lowest score, 1, indicates that the mixture is unintelligible. Intermediate scores allow for sentences that can be understood even if their wording is unusual or inaccurate. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

The average naturalness scores are 3.94 for English–Indonesian, 3.71 for Sundanese–Indonesian and 3.39 for Javanese–Indonesian. Readers consequently found much of the sampled output understandable, and their ratings identified differences among the language pairs. The English mixture rated higher than the Javanese mixture, while the difficulty of the classifier benchmarks also differed for the two embedded languages. The measures concern different judgments, but their alignment leaves translation quality and naturalness relevant to interpreting the cross-language result.

The assessment asks whether a generated sentence works as a mixed utterance. A naturalness rating can register an unsuitable word choice and can indicate that a reader can make sense of the sentence. It gives less direct evidence about whether the generated sentence preserves the original emotion or sentiment. A fluent replacement may alter that property. Conversely, a sentence can sound awkward to a reader and still communicate the original label. This analysis supplies a check on the plausibility of the generated text beside the checks on classification performance.

### Limitations

#### Limits the authors identify

The authors identify automatic word translation as a limitation of the benchmark. They use Google Translate to insert material in the embedded language. This produces examples in sufficient quantity for the test and training procedure, but a translator asked for a word can choose the wrong sense for the sentence where it will be inserted. When that happens, the resulting sentence can say something different. The assumption that the old label remains correct is then less secure.

Ambiguity is especially consequential because the selected word frequently matters to the original classification. If a replacement takes a word that conveyed praise and gives it a sense that contributes no praise, a classifier may reasonably change its prediction. An evaluation that carries the original label forward would record the changed answer as a failure on the transformed item. The similarity threshold is intended to retain related sentences. The authors’ examples of mistranslations show why such a threshold gives a partial check on meaning preservation when applied to a full sentence after local substitutions.

The authors propose higher-quality code-mixed sentences for subsequent evaluations. This follows from the distinction between their operational procedure and the behavior they ultimately want to measure. The perturbations offer a controlled way to vary the embedded language and the amount of replacement. Natural examples would supply stronger evidence about the mixtures that users actually produce, including decisions about which parts of an utterance to switch and which word forms to use. The authors’ qualitative findings and human ratings show that the current outputs can be interpretable while leaving room for that improvement.

#### Limits that follow from the setup

Test construction depends on the classifier used to generate the text. Its original predictions decide which examples can be perturbed, and its score changes decide which positions are targeted. This matters particularly when comparing classifiers with different original accuracies. On the examples it already gets wrong, the generator creates no new challenge. Two classifiers can be evaluated from the same source split and still face different changed positions or different sets of changed sentences. Delta accuracy remains a measure of response to the reported protocol, but it combines properties of the classifier with the effects of the examples that protocol gives it.

The classifier-dependent gate also affects the interpretation of an aggregate score. By design, the generated set contains examples on which there was no opportunity for a newly induced error. Other cases may have identical word forms before and after translation. An overall delta therefore measures the effect of applying the full generation process, including cases where it leaves the sentence unchanged. It does not directly measure the chance of error given that an originally correct answer faced a visibly changed, meaning-preserving sentence. Such a conditional interpretation would need the outcomes broken down by which edits actually occurred.

The results address a narrow part of what can happen in mixed speech or writing. The generator replaces selected words in a previously Indonesian sentence. It uses a specified embedded language and preserves much of the original order and wording. The paper’s tests therefore offer evidence about bilingual substitutions in written classification inputs. Extended stretches of language alternation, mixtures drawing simultaneously on several embedded languages and conversations where a switch matters across turns lie outside the experiment as described. The use of Google Translate also ties the benchmark to the words and senses that the translation service supplies for the chosen pairs.

The human assessment limits how far the comparison can be generalized across the embedded languages. It reports ratings for English, Sundanese and Javanese, with no comparable Malay result in the assessment. Its scale concerns naturalness and intelligibility. There is no reported set of human label judgments covering the generated classification tests, which would help distinguish a classifier error from a change in the correct label. The paper reports averages over annotators, while the aggregate ratings give little detail about how the readers agreed on particular difficult examples. A single mean can cover a collection with mostly modest awkwardness and a collection with some very good and some very poor sentences.

The explanation based on pretraining material is a conjecture. The authors cite work describing Indonesian–English mixing in online writing and suggest that systems pretrained on online text may encounter it more often than regional mixtures used in daily exchanges. The experiment does not count the relevant mixtures in the different pretraining corpora or vary the frequency of exposure while holding a classifier fixed. Translation quality varies across pairs in the human assessment, and the importance and translated form of a word can vary too. The English result is compatible with the exposure hypothesis, while the design leaves room for these other influences.

The two datasets support related but distinct findings. EmoT shows a larger accuracy decline under the reported procedure than SmSA. Since each task comes with its own dataset, the comparison combines differences in labels, example wording, starting accuracy and the positions selected for translation. It establishes that the emotion benchmark in this experiment is more sensitive to the substitutions. A broader conclusion that emotion classification is inherently more vulnerable than sentiment classification would require comparisons that vary the task more independently of the texts.

There is a similar boundary around the training gains. Blend and Shot use the same general recipe to generate mixed examples for evaluation and training. Improvement on Blend-generated test inputs shows that the training strategies can address the type of perturbation supplied by that recipe. The test does not establish how much of the gain carries over to naturally authored code-mixing, to a language excluded from training, or to a classification task with different labels. The contrast between original and mixed test accuracy is informative precisely because the two settings are specified.

Some details also limit exact replication from the paper’s method description. The algorithm supplies the similarity threshold as an input and specifies what happens when a candidate falls short. It gives less detail about how the representation, threshold and retry behavior were chosen for the reported runs. Those components govern how much change a candidate can contain and which harder examples survive the filter. The results average runs with several seeds, while the reported means offer limited evidence about the uncertainty of close rankings. The difference between the two IndoBERT delta values on EmoT, for example, can be read as close performance in this experiment without assigning substantive importance to their order.

### What came after

#### Making code-switching an evaluation question

[Multilingual Large Language Models Are Not (Yet) Code-Switchers](https://md.research.elamur.ai/free/en/papers/zhang-2023-multilingual-large-language-models-are/) cites IndoRobusta and takes up the broader question of whether multilingual capability extends to code-switching. IndoRobusta gives that question a concrete classification form. It establishes the task on Indonesian sentences and then measures what happens when influential expressions come from another language. The later work’s title puts the general capability to code-switch in the foreground. That connects to IndoRobusta’s finding that coverage of each constituent language offers an incomplete basis for predicting performance on sentences that combine them.

The link between the two questions is clearest at the level of the claim being tested. Coverage is a property of the languages represented in pretraining. Successful handling of a switched sentence is a behavioral outcome. IndoRobusta compares them by examining named classification tasks and explicitly generated sentences. The later paper addresses code-switching as a capability in its own right. Its citation connects that broader inquiry to an earlier case where multilingual coverage and success under switching had to be measured separately.

#### Treating mixed text as the requested output

[Prompting for Code-Mixed Text in South East Asian Languages](https://md.research.elamur.ai/free/en/papers/yong-2023-prompting-multilingual-large-language-models/) shifts the emphasis to generation through prompts. In IndoRobusta, the generated sentence serves as a test input or training example. The outcome of interest is ultimately the class assigned to it, with generation quality checked separately. In the later work’s stated problem, producing a mixed sentence is itself the requested outcome. The connection concerns a common need for mixed text and two different roles it can play in an experiment. [Text generation](https://md.research.elamur.ai/free/en/topics/text-generation/)

The change of role also changes what must be judged. For IndoRobusta, the adequacy of a sentence depends in part on whether a substitution preserves enough meaning for its old category to remain usable. A study about prompting to generate mixtures puts the resulting text directly under evaluation. IndoRobusta’s human assessment makes the relation concrete. Its naturalness ratings answer a question about the generated wording that the classifier’s accuracy cannot answer. The later paper’s subject places questions about that wording at the center of the task.

#### Putting language mixtures in the context of alignment

[InstructAlign](https://md.research.elamur.ai/free/en/papers/cahyawijaya-2023-instructalign-high-low-resource-language/) cites IndoRobusta in work on aligning higher- and lower-resource languages through continual crosslingual instruction tuning. The connection is through training and transfer. IndoRobusta varies the training examples to see whether a classifier can carry a task learned on Indonesian into settings where the words carrying evidence may come from a different language. InstructAlign frames the adaptation problem around instruction tuning and the relationship between languages with different resource levels. [Multilingual & cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/) · [Low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/)

The stepwise language exposure in IndoRobusta makes that relationship intelligible. Its two-step schedule starts from proficiency on the original task and then adapts to generated mixtures. Its joint schedule presents both forms of evidence during task training. InstructAlign’s stated focus on continual alignment addresses a related question at the level of crosslingual instructions. The citation connects studies concerned with whether training that works in one linguistic setting will transfer under a different distribution of language evidence. It does not on its own establish that the later work reused Blend’s masking rule or reproduced its test.

## 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](https://doi.org/10.18653/v1/2022.sumeval-1.5)

```bibtex
@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}
}
```

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