Lune

EMNLP Findings2022

EntityCS: Improving Zero-Shot Cross-lingual Transfer with Entity-Centric Code Switching

Chenxi Whitehouse, Fenia Christopoulou, Ignacio Iacobacci

Abstract

Accurate alignment between languages is fundamental for improving cross-lingual pretrained language models (XLMs).Motivated by the natural phenomenon of code-switching (CS) in multilingual speakers, CS has been used as an effective data augmentation method that offers language alignment at word-or phraselevel, in contrast to sentence-level via parallel instances.Existing approaches either use dictionaries or parallel sentences with wordalignment to generate CS data by randomly switching words in a sentence.However, such methods can be suboptimal as dictionaries disregard semantics, and syntax might become invalid after random word switching.In this work, we propose ENTITYCS, a method that focuses on ENTITY-level Code-Switching to capture fine-grained cross-lingual semantics without corrupting syntax.We use Wikidata and the English Wikipedia to construct an entitycentric CS corpus by switching entities to their counterparts in other languages.We further propose entity-oriented masking strategies during intermediate model training on the ENTI-TYCS corpus for improving entity prediction.Evaluation of the trained models on four entitycentric downstream tasks shows consistent improvements over the baseline with a notable increase of 10% in Fact Retrieval.We release the corpus and models to assist research on codeswitching and enriching XLMs with external knowledge 1 .STATISTIC COUNT Languages 93 English Sentences 54,469,214 English Entities 104,593,076 Average Sentence Length 23.37 Average Entities per Sentence 2 CS Sentences per EN Sentence ≤ 5 CS Sentences 231,124,422 CS Entities 420,907,878A 3.5 8.2 4.7 4.4 6.5 5.3 4.6 2.5 3.1 5.1 8.5 6.3 2.7 2.3 0.9 0.1 1.4 1.2 2.8 3.7 0.2 1.9 0.1 S 9.4 15.2 11.3 11.0 13.4 14.4 11.9 12.3 4.0 16.7 14.2 27.3 19.5 9.2 2.2 0.0 1.7 1.3 5.1 5.6 5.8 3.7 0.4 M 2.1 3.3 2.3 2.6 3.3 3.8 4.5 2.2 2.5 2.6 5.1 2.9 1.1 2.1 0.2 0.1 1.0 1.1 1.4 1.9 0.0 1.6 0.0 CONF A 3.3 4.4 2.9 2.7 4.3 5.5 5.3 3.0 3.0 5.6 9.5 7.3 3.4 4.4 0.9 0.1 1.2 1.1 2.3 2.9 0.6 1.8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IND A 2.6 16.8 5.0 5.2 4.9 1.5 0.2 0.6 0.2 0.6 6.3 3.0 0.4 0.6 1.0 0.0 1.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 3 top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers3

  1. LLM-powered Data Augmentation for Enhanced Cross-lingual PerformanceChenxi Whitehouse, Monojit Choudhury, Alham Fikri AjiEMNLP 2023 · 53 citations
  2. Beyond Monolingual Assumptions: A Survey on Code-Switched NLP in the Era of Large Language Models across ModalitiesRajvee Sheth, Samridhi Raj Sinha, Mahavir Patil, Himanshu Beniwal et al.ACL 2026 · 2 citations
  3. Discourse-Driven Code-Switching: Analyzing the Role of Content and Communicative Function in Spanish-English Bilingual SpeechDebasmita Bhattacharya, Juan Junco, Divya Tadimeti, Julia HirschbergEMNLP 2025

Builds on21

  1. Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary et al.ACL 2020 · 539 citations
  2. K-Adapter: Infusing Knowledge into Pre-Trained Models with AdaptersRuize Wang, Duyu Tang, Nan Duan, Zhongyu Wei et al.ACL Findings 2021 · 473 citations
  3. Emerging Cross-lingual Structure in Pretrained Language ModelsAlexis Conneau, Shijie Wu, Haoran Li, Luke Zettlemoyer et al.ACL 2020 · 210 citations
  4. End-to-End Slot Alignment and Recognition for Cross-Lingual NLUWeijia Xu, Batool Haider, Saab MansourEMNLP 2020 · 109 citations
  5. Alternating Language Modeling for Cross-Lingual Pre-TrainingJian Yang, Shuming Ma, Dongdong Zhang, Shuangzhi Wu et al.AAAI 2020 · 94 citations

Related papers

  1. Switch Point biased Self-Training: Re-purposing Pretrained Models for Code-SwitchingParul Chopra, Sai Krishna Rallabandi, Alan W. Black, Khyathi Raghavi ChanduEMNLP Findings 2021 · 2 citations
  2. Investigating and Scaling up Code-Switching for Multilingual Language Model Pre-TrainingZhijun Wang, Jiahuan Li, Hao Zhou, Rongxiang Weng et al.ACL Findings 2025 · 3 citations
  3. CSP: Code-Switching Pre-training for Neural Machine TranslationZhen Yang, Bojie Hu, Ambyera Han, Shen Huang et al.EMNLP 2020 · 62 citations
  4. mLUKE: The Power of Entity Representations in Multilingual Pretrained Language ModelsRyokan Ri, Ikuya Yamada, Yoshimasa TsuruokaACL 2022 · 34 citations
  5. Isotropic Representation Can Improve Zero-Shot Cross-Lingual Transfer on Multilingual Language ModelsYixin Ji, Jikai Wang, Juntao Li, Hai Ye et al.EMNLP Findings 2023
Dusk over the sea between two cliffs drawn in fine vertical lines