arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.16438cs.CL
收藏

语言特定神经元:大语言模型多语言能力的关键

Language-Specific Neurons: The Key to Multilingual Capabilities in Large Language Models

Microsoft Research Asia(微软亚洲研究院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Information, Renmin University of China(中国人民大学信息学院)

Tianyi Tang, Wenyang Luo, Haoyang Huang, Dongdong Zhang, Xiaolei Wang, Xin Zhao, Furu Wei, Ji-Rong Wen

AI总结:

本文提出语言激活概率熵(LAPE)方法识别大语言模型中的语言特定神经元,发现多语言能力主要依赖顶层和底层的少量神经元,并证明可通过调控这些神经元引导输出语言。

摘要:

大语言模型(LLMs)在没有使用专门构建的多语言平行语料进行预训练的情况下,展现出卓越的多语言能力。解释LLMs处理多语言文本的底层机制仍然是一个具有挑战性的问题。在本文中,我们深入探究LLMs中Transformer架构的组成,以定位语言特定区域。特别地,我们提出了一种新颖的检测方法,即语言激活概率熵(LAPE),用于识别LLMs中的语言特定神经元。基于LAPE,我们在多个代表性LLMs上进行了全面实验,例如LLaMA-2、BLOOM和Mistral。我们的研究结果表明,LLMs处理特定语言的熟练程度主要归因于一小部分神经元,这些神经元主要位于模型的顶层和底层。此外,我们展示了通过选择性激活或停用语言特定神经元来“引导”LLMs输出语言的可行性。我们的研究为理解和探索LLMs的多语言能力提供了重要证据。

英文摘要:

Large language models (LLMs) demonstrate remarkable multilingual capabilities without being pre-trained on specially curated multilingual parallel corpora. It remains a challenging problem to explain the underlying mechanisms by which LLMs process multilingual texts. In this paper, we delve into the composition of Transformer architectures in LLMs to pinpoint language-specific regions. Specially, we propose a novel detection method, language activation probability entropy (LAPE), to identify language-specific neurons within LLMs. Based on LAPE, we conduct comprehensive experiments on several representative LLMs, such as LLaMA-2, BLOOM, and Mistral. Our findings indicate that LLMs' proficiency in processing a particular language is predominantly due to a small subset of neurons, primarily situated in the models' top and bottom layers. Furthermore, we showcase the feasibility to "steer" the output language of LLMs by selectively activating or deactivating language-specific neurons. Our research provides important evidence to the understanding and exploration of the multilingual capabilities of LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑