Language Surgery in Multilingual Large Language Models MRL @ EMNLP 2025

A technique for controlling language use in multilingual LLMs without retraining.

About the project

The problem

Multilingual LLMs can drift into the wrong language or mix languages, especially when prompted in under-resourced languages.

We wanted to understand:

  • How multilingual LLMs organize languages internally
  • Whether we can steer which language the model generates without retraining

The approach

The team studied how multilingual LLMs organize languages in their latent space and how representations shift across languages.

They developed Inference-Time Language Control (ITLC), a method for nudging models toward more consistent language outputs without retraining.

Why this matters

Low-resource languages often see less stable outputs, more language switching, and lower quality.

ITLC offers a practical way to improve behavior in underrepresented languages while helping us understand how languages are arranged inside these models.

Resources

Publications

  1. Joanito Agili Lopo, Muhammad Ravi Shulthan Habibi, Tack Hwa Wong, Muhammad Ilham Ghozali, Fajri Koto, Genta Indra Winata, Peerat Limkonchotiwat, Alham Fikri Aji, Samuel Cahyawijaya
    Proceedings of the 5th Workshop on Multilingual Representation Learning (MRL 2025) • 2025
    Abstract

    Large Language Models (LLMs) have demonstrated remarkable generalization capabilities across tasks and languages, revolutionizing natural language processing. This paper investigates the naturally emerging representation alignment in LLMs, particularly in the middle layers, and its implications for disentangling language-specific and language-agnostic information. We empirically confirm the existence of this alignment, analyze its behavior in comparison to explicitly designed alignment models, and demonstrate its potential for language-specific manipulation without semantic degradation. Building on these findings, we propose Inference-Time Language Control (ITLC), a novel method that leverages latent injection to enable precise cross-lingual language control and mitigate language confusion in LLMs. Our experiments highlight ITLC’s strong cross-lingual control capabilities while preserving semantic integrity in target languages. Furthermore, we demonstrate its effectiveness in alleviating the cross-lingual language confusion problem, which persists even in current large-scale LLMs, leading to inconsistent language generation. This work advances our understanding of representation alignment in LLMs and introduces a practical solution for enhancing their monolingual and cross-lingual performance.

    DOI

Mentors

Samuel Cahyawijaya
Samuel Cahyawijaya
Cohere
Member of Technical Staff
Genta Indra Winata
Genta Indra Winata
Capital One AI Foundation
Senior Applied Scientist
Fajri Koto
Fajri Koto
MBZUAI
Assistant Professor
Peerat Limkonchotiwat
Peerat Limkonchotiwat
AI Singapore
Research Fellow
Alham Fikri Aji
Alham Fikri Aji
MBZUAI
Assistant Professor

Mentees (3)

Joanito Agili LopoMuhammad Ravi Shulthan HabibiTack Hwa Wong