mlsanityData to 7 Oct 2026

Language steering in latent space to mitigate unintended code-switching

arXiv 2510.13849 ↗First posted 11 Oct 2025cs.CL cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Multilingual Large Language Models (LLMs) often exhibit hallucinations such as unintended code-switching, reducing reliability in downstream tasks. We propose latent-space language steering, a lightweight inference-time method that identifies language directions via Principal Component Analysis (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 55% across multiple language pairs on Qwen2.5 and Llama-3.2 models. Generation-based evaluation on Llama-3.2 further demonstrates 63--99% reduction in Code-Switching Index across four language pairs (p < 0.001). We further analyze the layer-wise evolution of language representations, revealing that language identity concentrates in final layers with near-perfect linear separability.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 13 of its 21 references that are in the map. First posted on arXiv 11 Oct 2025.

Builds on

13 of 21 references.

References · 13

  1. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
  2. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  3. 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 442
  4. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
  5. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
  6. 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
  7. 2023LEACE: Perfect linear concept erasure in closed formcited by 254
  8. 2019Emerging Cross-lingual Structure in Pretrained Language Modelscited by 180
  9. 2020Finding Universal Grammatical Relations in Multilingual BERTcited by 108
  10. 2020LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluationcited by 92
  11. 2024Unintended Impacts of LLM Alignment on Global Representationcited by 66
  12. 2024Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understandingcited by 34
1 more
  1. 2021A Simple and Effective Method To Eliminate the Self Language Bias in Multilingual Representationscited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.