位置认知专精:大型语言模型如何学习理解和说出你的语言?
Positional Cognitive Specialization: Where Do LLMs Learn To Comprehend and Speak Your Language?
AI总结:
研究通过实验揭示语言模型在不同区域发展语言感知与产出专精机制,提出CogSym方法实现高效适应,提升多语言任务性能。
摘要:
适应大型语言模型(LLMs)到新语言是一个昂贵且不透明的过程。理解语言模型如何获取新语言和多语言能力是实现高效适应的关键。先前多语言可解释性研究主要关注训练模型处理多语言指令的方式,未探索模型在训练过程中如何获取新语言的机制。我们通过解码器-only transformers研究这些训练动态,从两种功能认知专精角度:语言感知(输入理解)和产出(输出生成)。通过低资源语言实验,我们展示了如何在语言模型的不同区域产生感知和产出专精,通过从模型输入和输出方向运行层消融扫描。基于观察到的专精模式,我们提出CogSym,一种逐层启发式方法,通过仅微调少数早期和晚期层实现有效适应。我们显示仅微调25%最外层可以达到与完整微调基线相差2-3%的下游任务性能。CogSym在适配器方法如LoRA上表现出一致性能,展示了超越完整微调的泛化能力。这些发现为更好地理解LLMs如何学习新语言提供了见解,并推动了可访问和包容的语言建模。
英文摘要:
Adapting large language models (LLMs) to new languages is an expensive and opaque process. Understanding how language models acquire new languages and multilingual abilities is key to achieve efficient adaptation. Prior work on multilingual interpretability research focuses primarily on how trained models process multilingual instructions, leaving unexplored the mechanisms through which they acquire new languages during training. We investigate these training dynamics on decoder-only transformers through the lens of two functional cognitive specializations: language perception (input comprehension) and production (output generation). Through experiments on low-resource languages, we demonstrate how perceptual and productive specialization emerges in different regions of a language model by running layer ablation sweeps from the model's input and output directions. Based on the observed specialization patterns, we propose CogSym, a layer-wise heuristic that enables effective adaptation by exclusively fine-tuning a few early and late layers. We show that tuning only the 25% outermost layers achieves downstream task performance within 2-3% deviation from the full fine-tuning baseline. CogSym yields consistent performance with adapter methods such as LoRA, showcasing generalization beyond full fine-tuning. These findings provide insights to better understand how LLMs learn new languages and push toward accessible and inclusive language modeling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。