TensorX
返回文献探索

Paper · arXiv 2506.12450

Language Surgery in Multilingual Large Language Models

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

16 upvotesJune 14, 2025arXiv 预印本
AI 摘要

Research confirms natural representation alignment in large language models and introduces Inference-Time Language Control to enhance cross-lingual performance.

Large Language Modelsrepresentation alignmentmiddle layerslanguage-specific informationlanguage-agnostic informationexplicitly designed alignment modelslatent injectioncross-lingual language controlsemantic integritylanguage confusion

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 cross-lingual performance.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Language Surgery in Multilingual Large Language Models | TensorX