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

理解 FFNs 在驱动 LLMs 多语言行为中的作用

Understanding the role of FFNs in driving multilingual behaviour in LLMs

Institute of Formal and Applied Linguistics(形式与应用语言学研究所);Faculty of Mathematics and Physics(数学与物理学院);Charles University(查理大学)

Sunit Bhattacharya, Ondřej Bojar

AI总结:

本文深入分析了LLMs的多语言能力,引入新指标探测不同层行为,发现FFNs子层存在不同处理模式及“过度分层”现象,揭示了架构、层深度与多语言能力的相互作用。

摘要:

大型语言模型(LLMs)的多语言特性仍是一个尚未充分探索的领域。本文对某大型语言模型家族的多语言能力进行了深入分析,考察了其架构、激活模式及跨语言处理机制。我们引入了新颖的指标来探测模型在不同层的多语言行为,并阐明了架构选择对多语言处理的影响。研究发现在模型的 FFNs 子层中存在不同的多语言处理模式。此外,我们在某些配置中发现了“过度分层”现象,即在不相应调整其他参数的情况下增加层深度会降低模型性能。通过语言内外的比较,我们揭示了架构、层深度与多语言能力间的相互作用。

英文摘要:

Multilingualism in Large Language Models (LLMs) is an yet under-explored area. In this paper, we conduct an in-depth analysis of the multilingual capabilities of a family of a Large Language Model, examining its architecture, activation patterns, and processing mechanisms across languages. We introduce novel metrics to probe the model's multilingual behaviour at different layers and shed light on the impact of architectural choices on multilingual processing. Our findings reveal different patterns of multilinugal processing in the sublayers of Feed-Forward Networks of the models. Furthermore, we uncover the phenomenon of "over-layerization" in certain model configurations, where increasing layer depth without corresponding adjustments to other parameters may degrade model performance. Through comparisons within and across languages, we demonstrate the interplay between model architecture, layer depth, and multilingual processing capabilities of LLMs trained on multiple languages.

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

↑