Do Llamas Work in English? On the Latent Language of Multilingual Transformers

Chris Wendler, Veniamin Veselovsky, Giovanni Monea, Robert West

arXiv:2402.10588 · 2026-07-27 공개 · arXiv · PDF

transformer embedding-space llama-2 language-bias concept-space multilingual-models token-continuation input-space

Abstract

We ask whether multilingual language models trained on unbalanced, English-dominated corpora use English as an internal pivot language -- a question of key importance for understanding how language models function and the origins of linguistic bias. Focusing on the Llama-2 family of transformer models, our study uses carefully constructed non-English prompts with a unique correct single-token continuation. From layer to layer, transformers gradually map an input embedding of the final prompt token to an output embedding from which next-token probabilities are computed. Tracking intermediate embeddings through their high-dimensional space reveals three distinct phases, whereby intermediate embeddings (1) start far away from output token embeddings; (2) already allow for decoding a semantically correct next token in the middle layers, but give higher probability to its version in English than in the input language; (3) finally move into an input-language-specific region of the embedding space. We cast these results into a conceptual model where the three phases operate in"input space","concept space", and"output space", respectively. Crucially, our evidence suggests that the abstract"concept space"lies closer to English than to other languages, which may have important consequences regarding the biases held by multilingual language models.

한국어 요약

한 줄 요약

Llama-2 모델이 비영어 입력을 처리할 때 내부적으로 영어를 피벗 언어로 사용하는지, 이를 잠재 임베딩 공간을 분석하여 실증적으로 조사한 연구이다.

핵심 기여도

핵심 아이디어

연구는 다국어 언어 모델이 영어 지배적인 데이터로 훈련받았을 때, 내부적으로 영어를 피벗 언어로 사용하는지 탐구한다. Llama-2 모델을 대상으로, 비영어 입력 프롬프트를 설계하고, 각 레이어에서의 잠재 임베딩을 추적함으로써 내부 처리 과정을 분석한다. 핵심 아이디어는 "logit lens" 기법을 활용해 중간층에서 토큰을 해독하고, 잠재 공간의 변화를 관찰하는 것이다. 연구는 잠재 공간이 "input space", "concept space", "output space"의 세 단계를 거치며, 특히 "concept space"가 영어에 더 가까운 편향을 보인다는 점을 밝힌다. 이는 LLM이 내부적으로 영어에 기반한 의미 표현을 사용함을 시사한다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용