arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09223cs.CLcs.AI
收藏

相同但不同:多语言语言建模中的结构相似性与差异性

The Same But Different: Structural Similarities and Differences in Multilingual Language Modeling

Brown University(布朗大学);Stanford University(斯坦福大学);University of Tübingen(蒂宾根大学)

Ruochen Zhang, Qinan Yu, Matianyu Zang, Carsten Eickhoff, Ellie Pavlick

AI总结:

本文运用机制可解释性工具探究LLMs内部回路与语言结构的对应关系,发现模型用共享回路处理相同句法过程,用语言特定组件处理差异,揭示了多语言建模中的结构权衡机制。

摘要:

我们运用来自机制可解释性的新工具,以探究大型语言模型(LLMs)的内部结构是否与它们所训练语言底层的语言结构相对应。具体而言,我们提出:(1)当两种语言采用相同的形态句法过程时,LLMs 是否使用共享的内部回路来处理它们?(2)当两种语言需要不同的形态句法过程时,LLMs 是否使用不同的内部回路来处理它们?使用英语和中文的多语言及单语模型,我们分析了涉及两项任务的内部回路。我们发现证据表明,模型采用相同的回路来处理相同的句法过程,这与该过程所出现的具体语言无关,并且即使对于完全独立训练的单语模型,情况也是如此。此外,我们表明,当需要处理仅存在于某些语言中的语言过程(例如形态标记)时,多语言模型会采用语言特定的组件(注意力头和前馈网络)。总而言之,我们的结果为 LLMs 在同时建模多种语言时,如何在利用共同结构与保留语言差异之间进行权衡提供了新见解。

英文摘要:

We employ new tools from mechanistic interpretability in order to ask whether the internal structure of large language models (LLMs) shows correspondence to the linguistic structures which underlie the languages on which they are trained. In particular, we ask (1) when two languages employ the same morphosyntactic processes, do LLMs handle them using shared internal circuitry? and (2) when two languages require different morphosyntactic processes, do LLMs handle them using different internal circuitry? Using English and Chinese multilingual and monolingual models, we analyze the internal circuitry involved in two tasks. We find evidence that models employ the same circuit to handle the same syntactic process independently of the language in which it occurs, and that this is the case even for monolingual models trained completely independently. Moreover, we show that multilingual models employ language-specific components (attention heads and feed-forward networks) when needed to handle linguistic processes (e.g., morphological marking) that only exist in some languages. Together, our results provide new insights into how LLMs trade off between exploiting common structures and preserving linguistic differences when tasked with modeling multiple languages simultaneously.

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

↑