arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.08681cs.LGcs.NAmath.NAmath.PR
收藏

一种用于零样本权重迁移的平均场假设

A Mean Field Ansatz for Zero-Shot Weight Transfer

Huawei Technologies Co., Ltd.(华为技术有限公司);University of Edinburgh(爱丁堡大学)

Xingyuan Chen, Wenwei Kuang, Lei Deng, Wei Han, Bo Bai, Goncalo dos Reis

AI总结:

针对大语言模型预训练成本高及零样本权重迁移缺乏理论解释的问题,本文提出平均场视角下的行列假设,证明不同规模神经网络权重有共同分布,为权重迁移提供理论支持,并通过MLP及GPT-3、Llama-3.1验证了假设。

摘要:

大语言模型(LLM)的预训练成本高得令人望而却步。降低该成本的一种前沿方法是零样本权重迁移,在部分场景中也称为模型增长,它能将小模型中训练得到的权重神奇地迁移到大模型中。然而,权重迁移背后仍存在一些理论谜团。本文受平均场理论此前在神经网络动力学中应用的启发,引入一种平均场假设来为权重迁移提供理论解释。具体而言,我们从平均场视角提出了行列(RC)假设,该假设描述了神经网络(NN)权重的测度结构,并容许闭合的测度动力学。因此,在适当假设下,不同规模神经网络的权重具有共同分布,权重迁移方法可被视为采样方法。我们通过探究简单的MLP示例以及GPT-3、Llama-3.1等大语言模型,对RC假设进行了实证验证。我们表明,在合适的假设下,平均场视角是充分的,能够为零样本权重迁移提供理论支撑。

英文摘要:

The pre-training cost of large language models (LLMs) is prohibitive. One cutting-edge approach to reduce the cost is zero-shot weight transfer, also known as model growth for some cases, which magically transfers the weights trained in a small model to a large model. However, there are still some theoretical mysteries behind the weight transfer. In this paper, inspired by prior applications of mean field theory to neural network dynamics, we introduce a mean field ansatz to provide a theoretical explanation for weight transfer. Specifically, we propose the row-column (RC) ansatz under the mean field point of view, which describes the measure structure of the weights in the neural network (NN) and admits a close measure dynamic. Thus, the weights of different sizes NN admit a common distribution under proper assumptions, and weight transfer methods can be viewed as sampling methods. We empirically validate the RC ansatz by exploring simple MLP examples and LLMs such as GPT-3 and Llama-3.1. We show the mean-field point of view is adequate under suitable assumptions which can provide theoretical support for zero-shot weight transfer.

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

↑