CLLGOct 11, 2025

Language steering in latent space to mitigate unintended code-switching

arXiv:2510.13849v1h-index: 1
Originality Incremental advance
AI Analysis

This addresses a reliability issue for users of multilingual LLMs, but it is incremental as it builds on existing latent-space methods with a novel application to language steering.

The paper tackles the problem of unintended code-switching in multilingual LLMs, which reduces reliability in downstream tasks, by proposing a lightweight inference-time method that achieves 95-99% language classification accuracy and reduces next-token distributional divergence by up to 42% across multiple language pairs.

Multilingual Large Language Models (LLMs) often exhibit unintended code-switching, reducing reliability in downstream tasks. We propose latent-space language steering, a lightweight inference-time method that identifies language directions via PCA on parallel translations and steers token embeddings along these axes to control language identity. Our approach mitigates code-switching while preserving semantics with negligible computational overhead and requires only minimal parallel data for calibration. Empirically, we achieve 95-99\% language classification accuracy using a single principal component and reduce next-token distributional divergence by up to 42% across multiple language pairs on Qwen2.5 and Llama-3.2 models. We further analyze the layer-wise evolution of language representations, revealing that language identity concentrates in final layers with near-perfect linear separability.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes