Feeding BabyLMs Macaroni: Code-Switching Curricula Cause Cross-Lingual Convergence
Dries Rooryck, Alex Cai, Yonatan Belinkov, David Alvarez-Melis, Kianté Brantley
Abstract
Children in multilingual communities often code-switch, using multiple languages in a single utterance. Can we induce cross-lingual alignment in language models by training on code-switched text? We pretrain small decoder-only transformers on two 100M-word multilingual corpora: a base corpus formed by mixing the English, Dutch, and Chinese BabyBabelLM datasets, and a corpus generated from it by inserting word- and sentence-level code-switching using an LLM. We find that training on code-switched data aligns the representations of parallel text, particularly across different scripts, and that this alignment persists through training on monolingual documents. Under a learning curriculum that progresses from word-level code-switching, to sentence-level code-switching, to monolingual documents, models trained on code-switched data outperform baselines trained without it on the BabyLM evaluation suite. Our work characterizes code-switching curriculum learning as an effective data augmentation method for multilingual pretraining. We release our code, data, and models at https://github.com/drooryck/multilingual-macaroni.
Create a lesson
Metadata
- Comments
- 17 pages, 8 figures. Accepted to the BabyLM Workshop at EMNLP 2026
Related papers
IRTIQA: Evolving in English, Evaluated in Urdu -- Does Agent Self-Evolution Transfer from English to Urdu and Code-Switched Input?
Shared title terminologycs.CLAbdullah Hashmat, Danish Javed, Usman Naseem et al.
MargEmbed-Akan: Bridging Twi Questions and English Knowledge through Cross-Lingual Score Distillation
Shared title terminologycs.CLPrince N. Y. Annan, Ali A. A. Aziz, Stephen E. Moore
Localizing Cross-Lingual Generalization in Parameter Space
Shared title terminologycs.CLYeoreum Lee, Jaeseong Lee, Seung-won Hwang
Language Distances are Practical for Equitable Cross-Lingual Transfer
Shared title terminologycs.CLYork Hay Ng, Razan Ahsan Rifandi, Aditya Khan et al.
VietPrism: A large-scale Vietnamese speech and deepfake corpus with diverse dialects and code-switching
Shared title terminologycs.CLMinh Hoang, Thai Le
Cross-Lingual Legal QA for Vietnamese Labour Law: Retrieval, Translation, and Verifier-Guided Correction
Shared title terminologycs.CLNguyen Minh Chi, Mo El-Haj, Nguyen Ha Thanh et al.