Code-Mixing on Sesame Street: Dawn of the Adversarial Polyglots
Not on the map. Why?
Abstract (arXiv)
Multilingual models have demonstrated impressive cross-lingual transfer performance. However, test sets like XNLI are monolingual at the example level. In multilingual communities, it is common for polyglots to code-mix when conversing with each other. Inspired by this phenomenon, we present two strong black-box adversarial attacks (one word-level, one phrase-level) for multilingual models that push their ability to handle code-mixed sentences to the limit. The former uses bilingual dictionaries to propose perturbations and translations of the clean example for sense disambiguation. The latter directly aligns the clean example with its translations before extracting phrases as perturbations. Our phrase-level attack has a success rate of 89.75% against XLM-R-large, bringing its average accuracy of 79.85 down to 8.18 on XNLI. Finally, we propose an efficient adversarial training scheme that trains in the same number of steps as the original model and show that it improves model accuracy.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 48 of its 96 references that are in the map. First posted on arXiv 17 Mar 2021.
Builds on
48 of 96 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2013Intriguing properties of neural networkscited by 5,114
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2018Robustness May Be at Odds with Accuracycited by 873
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
36 more
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2019How multilingual is Multilingual BERT?cited by 642
- 2019On the Cross-lingual Transferability of Monolingual Representationscited by 575
- 2017Word Translation Without Parallel Datacited by 480
- 2018Massively Multilingual Sentence Embeddings for Zero-Shot Cross-Lingual Transfer and Beyondcited by 434
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2019MASS: Masked Sequence to Sequence Pre-training for Language Generationcited by 345
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2019Beto, Bentz, Becas: The Surprising Cross-Lingual Effectiveness of BERTcited by 301
- 2020XGLUE: A New Benchmark Dataset for Cross-lingual Pre-training, Understanding and Generationcited by 221
- 2019Cross-Lingual Ability of Multilingual BERT: An Empirical Studycited by 182
- 2019Emerging Cross-lingual Structure in Pretrained Language Modelscited by 180
- 2020SimAlign: High Quality Word Alignments without Parallel Training Data using Static and Contextualized Embeddingscited by 155
- 2020GLUECoS : An Evaluation Benchmark for Code-Switched NLPcited by 101
- 2019Unicoder: A Universal Language Encoder by Pre-training with Multiple Cross-lingual Taskscited by 96
- 2017Efficient Algorithms for t-distributed Stochastic Neighborhood Embeddingcited by 75
- 2019A Survey of Code-switched Speech and Language Processingcited by 73
- 2020It's Morphin' Time! Combating Linguistic Discrimination with Inflectional Perturbationscited by 64
- 2020SemEval-2020 Task 9: Overview of Sentiment Analysis of Code-Mixed Tweetscited by 62
- 2019On Evaluation of Adversarial Perturbations for Sequence-to-Sequence Modelscited by 56
- 2019Code-Switched Language Models Using Neural Based Synthetic Data from Parallel Sentencescited by 55
- 2020Generating Fluent Adversarial Examples for Natural Languagescited by 49
- 2016Adversarial Deep Averaging Networks for Cross-Lingual Sentiment Classificationcited by 48
- 2020Code-switching pre-training for neural machine translationcited by 43
- 2020LAReQA: Language-agnostic answer retrieval from a multilingual poolcited by 41
- 2019Word-level Textual Adversarial Attacking as Combinatorial Optimizationcited by 37
- 2020Processing South Asian Languages Written in the Latin Script: the Dakshina Datasetcited by 35
- 2020Mind Your Inflections! Improving NLP for Non-Standard Englishes with Base-Inflection Encodingcited by 22
- 2020Adversarial Attack and Defense of Structured Prediction Modelscited by 20
- 2018Comparing Attention-based Convolutional and Recurrent Neural Networks: Success and Limitations in Machine Reading Comprehensioncited by 19
- 2019From English to Code-Switching: Transfer Learning with Strong Morphological Cluescited by 18
- 2019Should All Cross-Lingual Embeddings Speak English?cited by 14
- 2020Can Multilingual Language Models Transfer to an Unseen Dialect? A Case Study on North African Arabizicited by 13
- 2017Cross-language Learning with Adversarial Neural Networks: Application to Community Question Answeringcited by 6
- 2019Leveraging Pretrained Word Embeddings for Part-of-Speech Tagging of Code Switching Datacited by 3
Built on by
Citing papers per year: 2021: 8; 2022: 3; 2023: 6; 2024: 3; 2025: 3.
23 papers.
Sort:
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
- 2024LLaMA Beyond English: An Empirical Study on Language Capability Transfercited by 94
- 2021NL-Augmenter: A Framework for Task-Sensitive Natural Language Augmentationcited by 72
- 2022One Country, 700+ Languages: NLP Challenges for Underrepresented Languages and Dialects in Indonesiacited by 65
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switcherscited by 65
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 50
- 2022Adversarial Attacks on Image Generation With Made-Up Wordscited by 29
- 2021Reliability Testing for Natural Language Processing Systemscited by 25
- 2021Interpreting the Robustness of Neural NLP Models to Textual Perturbationscited by 17
- 2021Code-switched inspired losses for generic spoken dialog representationscited by 10
- 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Textcited by 9
- 2021On the Language-specificity of Multilingual BERT and the Impact of Fine-tuningcited by 8
11 more
- 2022The Risks of Machine Learning Systemscited by 5
- 2023IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languagescited by 5
- 2023Boosting Zero-shot Cross-lingual Retrieval by Training on Artificially Code-Switched Datacited by 4
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustnesscited by 4
- 2024Code-mixed Sentiment and Hate-speech Predictioncited by 4
- 2021AdvCodeMix: Adversarial Attack on Code-Mixed Datacited by 3
- 2023Persona-aware Generative Model for Code-mixed Languagecited by 3
- 2021Call Larisa Ivanovna: Code-Switching Fools Multilingual NLU Modelscited by 2
- 2025Pay Attention to Real World Perturbations! Natural Robustness Evaluation in Machine Reading Comprehensioncited by 2
- 2025Adapting Multilingual Models to Code-Mixed Tasks via Model Mergingcited by 1
- 2023SenTest: Evaluating Robustness of Sentence Encoderscited by 0
- 2025Adapting Multilingual Models to Code-Mixed Tasks via Model Merging22 Oct 2025
- 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text16 Jun 2025
- 2025Pay Attention to Real World Perturbations! Natural Robustness Evaluation in Machine Reading Comprehension23 Feb 2025
- 2024Code-mixed Sentiment and Hate-speech Prediction21 May 2024
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustness27 Feb 2024
- 2024LLaMA Beyond English: An Empirical Study on Language Capability Transfer2 Jan 2024
- 2023SenTest: Evaluating Robustness of Sentence Encoders29 Nov 2023
- 2023IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages21 Nov 2023
- 2023Persona-aware Generative Model for Code-mixed Language6 Sep 2023
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switchers23 May 2023
- 2023Boosting Zero-shot Cross-lingual Retrieval by Training on Artificially Code-Switched Data9 May 2023
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languages23 Mar 2023
11 more
- 2022Adversarial Attacks on Image Generation With Made-Up Words4 Aug 2022
- 2022The Risks of Machine Learning Systems21 Apr 2022
- 2022One Country, 700+ Languages: NLP Challenges for Underrepresented Languages and Dialects in Indonesia24 Mar 2022
- 2021Measure and Improve Robustness in NLP Models: A Survey15 Dec 2021
- 2021NL-Augmenter: A Framework for Task-Sensitive Natural Language Augmentation6 Dec 2021
- 2021AdvCodeMix: Adversarial Attack on Code-Mixed Data30 Oct 2021
- 2021Interpreting the Robustness of Neural NLP Models to Textual Perturbations14 Oct 2021
- 2021Call Larisa Ivanovna: Code-Switching Fools Multilingual NLU Models29 Sep 2021
- 2021On the Language-specificity of Multilingual BERT and the Impact of Fine-tuning14 Sep 2021
- 2021Code-switched inspired losses for generic spoken dialog representations27 Aug 2021
- 2021Reliability Testing for Natural Language Processing Systems6 May 2021
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
- 2024LLaMA Beyond English: An Empirical Study on Language Capability Transfercited by 94
- 2021NL-Augmenter: A Framework for Task-Sensitive Natural Language Augmentationcited by 72
- 2022One Country, 700+ Languages: NLP Challenges for Underrepresented Languages and Dialects in Indonesiacited by 65
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switcherscited by 65
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 50
- 2022Adversarial Attacks on Image Generation With Made-Up Wordscited by 29
- 2021Reliability Testing for Natural Language Processing Systemscited by 25
- 2021Interpreting the Robustness of Neural NLP Models to Textual Perturbationscited by 17
- 2021Code-switched inspired losses for generic spoken dialog representationscited by 10
- 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Textcited by 9
- 2021On the Language-specificity of Multilingual BERT and the Impact of Fine-tuningcited by 8
12 most cited of 23 All 23 (JSON)
- 2025Adapting Multilingual Models to Code-Mixed Tasks via Model Merging22 Oct 2025
- 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text16 Jun 2025
- 2025Pay Attention to Real World Perturbations! Natural Robustness Evaluation in Machine Reading Comprehension23 Feb 2025
- 2024Code-mixed Sentiment and Hate-speech Prediction21 May 2024
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustness27 Feb 2024
- 2024LLaMA Beyond English: An Empirical Study on Language Capability Transfer2 Jan 2024
- 2023SenTest: Evaluating Robustness of Sentence Encoders29 Nov 2023
- 2023IndoRobusta: Towards Robustness Against Diverse Code-Mixed Indonesian Local Languages21 Nov 2023
- 2023Persona-aware Generative Model for Code-mixed Language6 Sep 2023
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switchers23 May 2023
- 2023Boosting Zero-shot Cross-lingual Retrieval by Training on Artificially Code-Switched Data9 May 2023
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languages23 Mar 2023
12 newest of 23 All 23 (JSON)