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

预训练-微调范式中跨任务线性现象的出现

On the Emergence of Cross-Task Linearity in the Pretraining-Finetuning Paradigm

Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);University of California San Diego(加州大学圣迭戈分校)

Zhanpeng Zhou, Zijun Chen, Yilan Chen, Bo Zhang, Junchi Yan

AI总结:

本研究发现从同一预训练检查点微调不同任务产生的模型间存在跨任务线性现象,并推测网络近似为参数空间到特征空间的线性映射,为模型合并与编辑提供新视角,且强调预训练的关键作用。

摘要:

预训练-微调范式已成为现代深度学习的主流趋势。在本工作中,我们发现了从同一预训练检查点初始化并在不同任务上微调的模型存在一种有趣的线性现象,称为跨任务线性(Cross-Task Linearity, CTL)。具体而言,我们表明,如果对两个微调模型的权重进行线性插值,则权重插值模型中的特征通常近似等于每层中两个微调模型特征的线性插值。我们提供了全面的经验证据,支持CTL在从相同预训练检查点开始的微调模型中持续出现。我们推测,在预训练-微调范式中,神经网络近似地作为线性映射,从参数空间映射到特征空间。基于这一观点,我们的研究揭示了解释模型合并/编辑的新见解,特别是通过将操作从参数空间转换到特征空间。此外,我们更深入地探讨了CTL出现的根本原因,强调了预训练的作用。

英文摘要:

The pretraining-finetuning paradigm has become the prevailing trend in modern deep learning. In this work, we discover an intriguing linear phenomenon in models that are initialized from a common pretrained checkpoint and finetuned on different tasks, termed as Cross-Task Linearity (CTL). Specifically, we show that if we linearly interpolate the weights of two finetuned models, the features in the weight-interpolated model are often approximately equal to the linear interpolation of features in two finetuned models at each layer. We provide comprehensive empirical evidence supporting that CTL consistently occurs for finetuned models that start from the same pretrained checkpoint. We conjecture that in the pretraining-finetuning paradigm, neural networks approximately function as linear maps, mapping from the parameter space to the feature space. Based on this viewpoint, our study unveils novel insights into explaining model merging/editing, particularly by translating operations from the parameter space to the feature space. Furthermore, we delve deeper into the root cause for the emergence of CTL, highlighting the role of pretraining.

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

↑