[论文解读] How do Large Language Models Handle Multilingualism?
本文提出一种三阶段框架,其中大型语言模型(LLMs)通过首先将非英文查询转换为英文进行推理,利用自注意力和前馈层中的多语言知识,然后以原始输入语言生成响应,来处理多语言输入。其主要贡献是开发了并行语言特异性神经元检测(PLND)方法,可识别语言特异性神经元;仅关闭0.13%的此类神经元即可使摘要性能下降99%,证明其在多语言能力中的关键作用。
Large language models (LLMs) have demonstrated impressive capabilities across diverse languages. This study explores how LLMs handle multilingualism. Based on observed language ratio shifts among layers and the relationships between network structures and certain capabilities, we hypothesize the LLM's multilingual workflow ($ exttt{MWork}$): LLMs initially understand the query, converting multilingual inputs into English for task-solving. In the intermediate layers, they employ English for thinking and incorporate multilingual knowledge with self-attention and feed-forward structures, respectively. In the final layers, LLMs generate responses aligned with the original language of the query. To verify $ exttt{MWork}$, we introduce Parallel Language-specific Neuron Detection ($ exttt{PLND}$) to identify activated neurons for inputs in different languages without any labeled data. Using $ exttt{PLND}$, we validate $ exttt{MWork}$ through extensive experiments involving the deactivation of language-specific neurons across various layers and structures. Moreover, $ exttt{MWork}$ allows fine-tuning of language-specific neurons with a small dataset, enhancing multilingual abilities in a specific language without compromising others. This approach results in an average improvement of $3.6\%$ for high-resource languages and $2.3\%$ for low-resource languages across all tasks with just $400$ documents.
研究动机与目标
- 理解大型语言模型(LLMs)处理多语言输入的内部机制。
- 研究 LLM 是否使用语言特异性神经元来处理不同语言。
- 开发一种无需依赖任务标签即可检测语言特异性神经元的方法。
- 通过在神经元组上进行消融研究,验证所提出的多语言处理框架。
- 通过在识别出的语言特异性神经元上进行针对性微调,提升 LLM 的多语言性能。
提出的方法
- 提出一种三阶段多语言处理框架:(1) 输入理解与翻译为英文,(2) 通过自注意力和前馈层使用多语言知识在英文中进行推理,(3) 以原始输入语言生成响应。
- 提出并行语言特异性神经元检测(PLND)方法,一种新颖的检测技术,利用自由文本语料库和激活分析识别由特定语言激活的神经元,无需任务标签。
- 通过选择性地关闭不同层和结构中的神经元组,开展全面的消融研究,评估其对多语言性能的影响。
- 仅使用每种语言200个上下文进行10分钟微调,以增强多语言理解与生成能力,重点聚焦于语言特异性神经元。
- 在每层之后使用解码嵌入,追踪从多语言表示到以英文为中心的表示,再返回原始语言的转变过程。
- 分析自注意力层和前馈层中不同语言之间的神经元重叠情况,以评估表示的语义独立性。

实验结果
研究问题
- RQ1LLM 在其各层中如何内部处理多语言输入?
- RQ2LLM 中是否存在语言特异性神经元?若存在,如何在无需任务标签的情况下检测它们?
- RQ3语言特异性神经元在多语言推理与生成中的功能角色是什么?
- RQ4关闭语言特异性神经元在多大程度上会损害多语言性能?
- RQ5在语言特异性神经元上进行微调,是否能以极少的训练时间显著提升多语言能力?
主要发现
- LLM 在早期层中将非英文输入转换为英文表示,使用多语言知识在英文中进行推理,并在后期层中恢复为原始语言。
- 语言特异性神经元确实存在且具有高度影响力:仅关闭0.13%的此类神经元即可导致摘要性能下降99%。
- PLND 方法成功在无任务标签条件下检测出语言特异性神经元,实现了精确的消融与分析。
- 仅用10分钟在200个上下文上对语言特异性神经元进行微调,即可使XQuAD性能提升7.4%,XLSum性能提升8.9%。
- BLOOMZ在不同语言间表现出低神经元重叠,表明其具有高度的语言独立性;而中文Llama因缺乏语言特异性神经元,表现出明显的中文中心化特征。
- 该多语言处理框架在多种LLM上得到验证,包括超多语言模型(BLOOMZ)和双语模型(中文Llama)。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。