[论文解读] Do Llamas Work in English? On the Latent Language of Multilingual Transformers
本论文通过分析分层的中间潜在状态的 logit lens 来研究多语言 Llama-2 模型是否将英语作为内部枢纽语言。
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 的前向传播过程中潜在空间和语言偏见的演变。
提出的方法
- 应用 logit lens 从每一层的中间潜在表示中提取下一个标记分布。
- 设计非英语提示(翻译、重复、完形填空)以单一且明确的语言目标标记来检测语言信号。
- 分析跨层的语言概率,以识别英语或输入语言占主导的阶段。
- 在高维空间对潜在嵌入进行几何分析,以追踪前向传播中的相位转变。
- 提出一个含输入空间、概念空间和输出空间的概念模型,以解释潜在动态。
实验结果
研究问题
- RQ1在非英语提示下,Llama-2 的中间潜在是否暴露出内部枢纽语言?
- RQ2在不同任务中,语言概率(中文与英语)如何在各层中演化?
- RQ3潜在轨迹的几何结构是什么,它与语言偏见有何关系?
- RQ4是否存在倾向于英语的概念空间的证据,而不仅仅是词汇翻译过程?
主要发现
- 潜在状态显示三个阶段:初始高熵阶段、中间的英语占主导阶段,随后是最终的输入语言(中文)实现。
- logit lens 揭示在输出目标语言标记之前经过英语的迂回,贯穿翻译和完形填空任务。
- 潜在表示占据的概念空间比其他语言更接近英语,表明英语偏向的表征,而非简单的英语翻译步骤。
- 三空间概念模型(输入空间、概念空间、输出空间)解释观察到的枢纽式动态。
- 标记能量和语言概率的变化方式支持语义上的内部枢纽,而非字面上的逐步翻译管线。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。