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

双语语言模型如何变得双语:使用稀疏自编码器追踪内部表示

How a Bilingual LM Becomes Bilingual: Tracing Internal Representations with Sparse Autoencoders

MBZUAI(穆萨大学人工智能研究所);SOKENDAI(神户大学);NINJAL(日本国家研究所);Tohoku University(东北大学);RIKEN(日本研究机构);NII LLMC(日本信息处理学会大语言模型中心);University of Tokyo(东京大学);Nagoya Institute of Technology(名古屋技术大学)

Tatsuro Inaba, Go Kamoda, Kentaro Inui, Masaru Isonuma, Yusuke Miyao, Yohei Oseki, Benjamin Heinzerling, Yu Takagi

AI总结:

本研究使用稀疏自编码器分析双语语言模型的内部表示,发现模型先分别学习语言再形成双语对齐,且该倾向在中间层和更大模型中更显著,并验证了双语表示对模型性能的关键作用。

摘要:

本研究探讨双语语言模型如何发展复杂的内部表示。我们采用稀疏自编码器分析双语语言模型的内部表示,重点关注训练步数、层和模型规模的影响。分析表明,语言模型首先分别学习语言,然后逐渐形成双语对齐,尤其是在中间层。我们还发现,这种双语倾向在更大的模型中更强。基于这些发现,我们通过采用一种新方法,将来自完全训练模型的分解表示整合到训练中期的模型中,证明了双语表示在模型性能中的关键作用。我们的结果为语言模型如何获得双语能力提供了见解。

英文摘要:

This study explores how bilingual language models develop complex internal representations. We employ sparse autoencoders to analyze internal representations of bilingual language models with a focus on the effects of training steps, layers, and model sizes. Our analysis shows that language models first learn languages separately, and then gradually form bilingual alignments, particularly in the mid layers. We also found that this bilingual tendency is stronger in larger models. Building on these findings, we demonstrate the critical role of bilingual representations in model performance by employing a novel method that integrates decomposed representations from a fully trained model into a mid-training model. Our results provide insights into how language models acquire bilingual capabilities.

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

↑