arXiv:2610.06161cs.CLOct 2026

Manuscript Offprint

arXiv:2610.06161

Introducing Code-Switched Contexts to Cognitively-Inspired Bilingual Model Training

Zhuojing Huang, Luise Pohlmann, Lisa Beinborn

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

During language acquisition, bilingual children are regularly exposed to code-switched input and use it as a cognitive scaffold to accelerate vocabulary growth and cross-linguistic syntactic mapping. In contrast, computational bilingual models are conventionally pretrained on interleaved monolingual corpora. While introducing synthetic code-switching during pretraining has become a promising strategy to enhance cross-lingual alignment and downstream performance, the structural and developmental parameters governing the success remain poorly understood. In this work, we investigate the efficiency of training with synthetic code-switched data across two typologically distinct language pairs by controlling two key variables: the structural location of code-switches and the dynamic switching rate across training stages. Our results show that training with code-switched data improves cross-lingual alignment for typologically close languages. 1^{1}

1 Introduction

In many bilingual families, children are regularly exposed to code-switched input during language acquisition (Byers-Heinlein, 2013; Bail et al., 2015). Psycholinguistic findings suggest that child code-switching is not a result of confusion or failure (Meisel, 2019). Instead, it is seen as an attempt to communicate given limited linguistic resources (Paradis et al., 2000; Werker and Byers-Heinlein, 2008). By using code-switching as a scaffold for currently weaker language (Yow et al., 2018; Schneider et al., 2026), bilingual children actively draw on their linguistic resources from both languages to support lexical growth (Deuchar and Quay, 1994; Meisel, 2019; Gaskins et al., 2022) with the effect that they need fewer repetitions for novel word acquisition (Kaushanskaya et al., 2023). The frequency of language switches varies among bilingual children and over time, as it correlates with language proficiency (Kapantzoglou et al., 2021). With more stable proficiency in both languages, code-switching loses its role as a scaffold, and the switch rate decreases (Smolak et al., 2020; Kapantzoglou et al., 2021).

In contrast to random lexical substitution, the position in an utterance at which code-switching can occur is strongly constrained by structural principles. The switch point can be dictated by the structural frame of one of the languages (Myers-Scotton, 1993) or restricted to positions at which the word order of both languages aligns (Poplack, 1980). Bilingual children are sensitive to the code-switching patterns in the mostly spoken input they receive from their interlocutors (Comeau et al., 2003), and they may implicitly infer the syntactic constraints of both linguistic systems from these patterns of switching (Chouinard and Clark, 2003).

Although code-switched input seems beneficial for bilingual proficiency, the training data for bilingual language models usually consists of parallel corpora (e.g. Kim et al., 2019; Lin et al., 2025) or interleaved monolingual datasets (e.g. Conneau et al., 2020; Zheng et al., 2021). While this strategy is effective, it also provides an implicit signal about the language identity of each training example, resulting in cleaner language boundaries than those encountered by bilingual children. To enforce cross-lingual alignment, existing approaches typically include an explicit alignment signal by using a contrastive learning objective (Shen et al., 2025) or synthetic word-level alignments (Kautsar and Koto, 2025). These approaches primarily operate at the lexical level, failing to capture how children implicitly acquire bilingual lexicons and syntactic structure during code-switching.

Recent results indicate that code-switched data can make bilingual learning more efficient, improving cross-lingual representation alignment beyond standard parallel corpora (Wang et al., 2025),

1^{1}Code available at ❤️ GitLab repository while also benefiting downstream instruction tuning (Asano et al., 2026) and reducing the need for massive monolingual pretraining corpora (Zeng et al., 2026). Importantly, code-switched data should not simply be a consequence of mixing languages: the direction and proportion of token insertions can substantially affect performance (Wang et al., 2025), while progressively reducing code-switched content toward monolingual input has also been shown to improve cross-language accuracy and alignment (Yoo et al., 2025).

Despite the promising results, existing work has only examined different factors of code-switched training separately, but not yet how the switch point and the switch rate jointly shape bilingual representation learning. Therefore, we hypothesize that structurally and developmentally valid code-switched input can facilitate the emergence of shared, syntax-aware bilingual representations without the need for explicit alignment. To test this hypothesis, we train four different code-switching variants across two language pairs with distinct typological distances: English–Dutch (eng-nld) and English–Chinese (eng-zho), carefully controlling both the switch rate and the switch point.

To evaluate our models under developmentally plausible constraints, we use the BabyLM training data for the multilingual track (Jumelet et al., 2026a) and the 2026 evaluation pipeline (Choshen et al., 2026), assessing the models' performance on linguistic knowledge and downstream tasks. We show that training on code-switched data generally improves cross-lingual alignment and downstream performance for eng-nld models. For eng-zho models, however, code-switched contexts negatively influence performance in Chinese. To further understand how training with code-switched data affects the learned representation, we examine the geometry of the embedding space and find that code-switching models lead to better cross-lingual alignments for eng-nld models.

References (23)