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

小初始化语言模型的推理偏差分析

An Analysis for Reasoning Bias of Language Models with Small Initialization

Shanghai Jiao Tong University(上海交通大学)

Junjie Yao, Zhongwang Zhang, Zhi-Qin John Xu

AI总结:

该研究探究参数初始化规模对大语言模型训练行为与任务偏好的影响,发现小初始化使模型偏好推理任务、大初始化使其偏好记忆任务,通过实验与理论框架解释了成因并提供训练指导。

摘要:

基于Transformer的大语言模型(LLM)在各类任务中展现出卓越性能,彻底变革了自然语言处理领域。本研究探究了参数初始化规模对LLM训练行为与任务偏好的影响。我们发现,更小的初始化规模会促使模型更偏好推理任务,而更大的初始化规模则会让模型倾向于记忆任务。我们通过真实数据集与精心设计的锚定函数验证了这一推理偏差。对初始训练动态的进一步分析表明,特定模型组件,尤其是嵌入空间与自注意力机制,在形成这类学习偏差中起到关键作用。我们从模型训练动态的视角提出了一个理论框架来解释这些现象。此外,在真实语言任务上的实验也证实了我们的理论见解。这项工作深化了我们对初始化策略如何影响LLM在推理任务上表现的理解,并为模型训练提供了有价值的指导。

英文摘要:

Transformer-based Large Language Models (LLMs) have revolutionized Natural Language Processing by demonstrating exceptional performance across diverse tasks. This study investigates the impact of the parameter initialization scale on the training behavior and task preferences of LLMs. We discover that smaller initialization scales encourage models to favor reasoning tasks, whereas larger initialization scales lead to a preference for memorization tasks. We validate this reasoning bias via real datasets and meticulously designed anchor functions. Further analysis of initial training dynamics suggests that specific model components, particularly the embedding space and self-attention mechanisms, play pivotal roles in shaping these learning biases. We provide a theoretical framework from the perspective of model training dynamics to explain these phenomena. Additionally, experiments on real-world language tasks corroborate our theoretical insights. This work enhances our understanding of how initialization strategies influence LLM performance on reasoning tasks and offers valuable guidelines for training models.

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

↑