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

GQA-μP:组查询注意力的最大参数更新

GQA-μP: The maximal parameterization update for grouped query attention

UC Davis(加州大学戴维斯分校);MBZUAI IFM(脑科学与人工智能研究院(MBZUAI IFM));USC(南加州大学);Cerebras(Cerebras公司);Carnegie Mellon University(卡内基梅隆大学)

Kyle R. Chickering, Huijuan Wang, Mengxi Wu, Alexander Moreno, Muhao Chen, Xuezhe Ma, Daria Soboleva, Joel Hestness, Zhengzhong Liu, Eric Xing

AI总结:

本文基于谱特征学习观点,提出组查询注意力的最大参数更新方法,通过数学分析实现参数转移,解决了新模型架构下的参数更新难题。

摘要:

超参数在不同模型架构间的转移显著减少了调整大型语言模型(LLMs)所需的计算量。最大更新参数化(μP)通过原则性的数学分析确保转移,但对新模型架构的推导可能具有挑战性。基于Yang等人(2023a)的谱特征学习观点,我们做出了两项进展。首先,我们将权重的谱范数条件从启发式方法提升到特征学习的定义,从而推导出Complete-P深度和权重衰减缩放,而无需依赖懒学习。其次,我们考虑了一种修改的谱范数,该范数在权重矩阵非满秩时保持网络权重的有效缩放定律。这使我们能够(到目前为止)推导出组查询注意力(GQA)的μP缩放。我们通过展示学习率在GQA重复超参数上的转移以及关于权重衰减的实验,证明了我们理论推导的有效性。

英文摘要:

Hyperparameter transfer across model architectures dramatically reduces the amount of compute necessary for tuning large language models (LLMs). The maximal update parameterization (μP) ensures transfer through principled mathematical analysis but can be challenging to derive for new model architectures. Building on the spectral feature-learning view of Yang et al. (2023a), we make two advances. First, we promote spectral norm conditions on the weights from a heuristic to the definition of feature learning, and as a consequence arrive at the Complete-P depth and weight-decay scalings without recourse to lazy-learning. Second, we consider a modified spectral norm that preserves the valid scaling law of network weights when weight matrices are not full rank. This enables (to our knowledge, the first) derivation of μP scalings for grouped-query attention (GQA). We demonstrate the efficacy of our theoretical derivations by showing learning rate transfer across the GQA repetition hyperparameter as well as experiments regarding transfer over weight decay.

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

↑