arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11718cs.CL
收藏

向通用语收敛:多语言大语言模型中语言区域与语义对齐的演化

Converging to a Lingua Franca: Evolution of Linguistic Regions and Semantics Alignment in Multilingual Large Language Models

Shanghai Jiao Tong University(上海交通大学);Suzhou Laboratory(苏州实验室)

Hongchuan Zeng, Senyu Han, Lu Chen, Kai Yu

AI总结:

本文研究多语言大语言模型的内部机制,发现其通过将不同语言的相同语义映射到公共语义潜在空间(“通用语”)实现跨语言一致处理,且关键语言神经元随训练和规模增大集中于首尾层,为提升跨语言能力奠定基础。

摘要:

大语言模型(LLMs)展现出了卓越的性能,尤其是在多语言语境中。尽管近期研究表明LLMs能将一种语言中习得的技能迁移至其他语言,但该能力背后的内部机制仍不清晰。我们观察到,LLMs在处理同一种语言时,其神经元激活模式表现出相似性,揭示了关键语言区域的存在与位置。此外,我们发现,当处理不同语言中具有相同语义的句子时,神经元激活模式也是相似的。这表明LLMs将来自不同语言、语义相同的输入映射到一个“通用语”中,这是一个允许跨语言进行一致处理的公共语义潜在空间。这种语义对齐随着训练和模型规模的增加而变得更加显著,从而产生了一种更与语言无关的激活模式。此外,我们发现关键语言神经元集中在LLMs的第一层和最后一层,并且随着训练的进行,在第一层中变得更加密集。在BLOOM和LLaMA2上的实验支持了这些发现,突显了多语言LLMs在训练和扩大规模期间的结构演化。本文深入探讨了LLMs的内部工作机制,为未来提升其跨语言能力奠定了基础。

英文摘要:

Large language models (LLMs) have demonstrated remarkable performance, particularly in multilingual contexts. While recent studies suggest that LLMs can transfer skills learned in one language to others, the internal mechanisms behind this ability remain unclear. We observed that the neuron activation patterns of LLMs exhibit similarities when processing the same language, revealing the existence and location of key linguistic regions. Additionally, we found that neuron activation patterns are similar when processing sentences with the same semantic meaning in different languages. This indicates that LLMs map semantically identical inputs from different languages into a "Lingua Franca", a common semantic latent space that allows for consistent processing across languages. This semantic alignment becomes more pronounced with training and increased model size, resulting in a more language-agnostic activation pattern. Moreover, we found that key linguistic neurons are concentrated in the first and last layers of LLMs, becoming denser in the first layers as training progresses. Experiments on BLOOM and LLaMA2 support these findings, highlighting the structural evolution of multilingual LLMs during training and scaling up. This paper provides insights into the internal workings of LLMs, offering a foundation for future improvements in their cross-lingual capabilities.

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

↑