arXiv Machine Learning By Andrey Goncharov, Nikolai Kondusov, Alexey Zaytsev

Language steering in latent space to mitigate unintended code-switching

Read the original on arXiv Machine Learning →

The paper introduces latent‑space language steering, a lightweight inference‑time technique that uses Principal Component Analysis on parallel translations to identify language directions in token embeddings. By steering embeddings along these axes, the method reduces unintended code‑switching in multilingual large language models, achieving up to 55% lower next‑token distributional divergence and a 63–99% drop in the Code‑Switching Index while maintaining semantic integrity and incurring negligible computational cost. The authors also demonstrate that a single principal component can classify language with 95–99% accuracy and provide an analysis of how language representations evolve across model layers.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv Computation and Language
Sep 2

Latent Mechanisms of Language Control in Multilingual Language Models

The paper investigates how multilingual large language models can unintentionally switch languages during generation. It compares three techniques—ValSel, FreqSel, and AnnSel—for pinpointing latent variables that control language choice in cross‑layer transcoders. Using new multilingual benchmarks and targeted interventions on Gemma‑2‑2B and Qwen3‑4B, the study finds all methods can steer output language, with FreqSel performing best and AnnSel providing interpretable selections via explicit annotations.

By Ryo Mitsuhashi, Sabri Boughorbel, Majd Hawasly
arXiv Computation and Language
Sep 28

Feeding BabyLMs Macaroni: Code-Switching Curricula Cause Cross-Lingual Convergence

The paper investigates whether training small decoder-only transformers on code‑switched text can induce cross‑lingual alignment. Using two 100‑million‑word multilingual corpora—one a mix of English, Dutch, and Chinese BabyBabelLM data, and another generated by inserting word‑ and sentence‑level code‑switching via an LLM—the authors find that code‑switched training aligns representations of parallel text, especially across different scripts, and that this alignment persists when later training on monolingual documents. A curriculum that progresses from word‑level code‑switching to sentence‑level code‑switching and finally to monolingual data yields models that outperform baselines on the BabyLM evaluation suite, demonstrating that code‑switching curriculum learning is an effective data augmentation strategy for multilingual pretraining.

By Dries Rooryck, Alex Cai, Yonatan Belinkov, David Alvarez-Melis, Kiant\'e Brantley
arXiv Computation and Language
Sep 7

Improving Language Identification for Code-Switched Utterances with Integer Linear Programming

The paper addresses the challenge of identifying code‑switched utterances in language identification systems. It revisits the MaskLID approach, highlighting its overreliance on word‑level language association scores, and reformulates its optimization as an Integer Linear Program to incorporate clear, interpretable constraints. These enhancements significantly improve performance across ten diverse languages on code‑switching benchmarks, with the authors releasing code and data for reproducibility.

By Joanna Rado{\l}a, Josep Maria Crego, Fran\c{c}ois Yvon