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

通过专家混合层进行超参数迁移

Hyperparameter Transfer with Mixture-of-Expert Layers

Operations Research;Financial Engineering, Princeton University, Princeton, NJ, USA;Center of Mathematical Sciences;Applications, Harvard University, Cambridge, MA, USA;John A. Paulson School of Engineering;Applied Sciences, Center for Brain Science, Kempner Institute for the Study of Natural;Artificial Intelligence, Harvard University, Cambridge, MA, USA

Tianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris Hanin

AI总结:

本文提出了一种新的参数化方法,用于在扩展模型宽度、深度、专家数量和专家(隐藏)大小时,通过专家混合层的变压器模型进行超参数迁移,该方法基于动态平均场理论分析,实验证明其在不同规模模型间可靠地迁移超参数。

摘要:

混合专家(MoE)层已成为通过在前向传递中解耦总可训练参数与激活参数来扩展现代神经网络的重要工具。然而,稀疏MoEs由于(i)新的可训练参数(路由权重),这些参数像所有其他参数组一样需要超参数(HP)调整;(ii)新的架构尺度维度(专家数量和大小)必须选择并可能取大,从而增加了训练的复杂性。为了使超参数选择变得廉价且可靠,我们提出了一种新的参数化方法,用于在扩展模型宽度、深度、专家数量和专家(隐藏)大小时的变压器模型。我们的参数化方法通过一种新的动态平均场理论(DMFT)分析得到证明。当在固定token预算下变化不同的模型维度时,我们发现我们的参数化方法在51M到超过2B总参数的模型间实现了可靠的超参数迁移。我们进一步利用在短token范围上扫掠的小模型识别出的超参数来训练更大模型在更长的范围上,并报告了性能良好的模型行为。

英文摘要:

Mixture-of-Experts (MoE) layers have emerged as an important tool in scaling up modern neural networks by decoupling total trainable parameters from activated parameters in the forward pass for each token. However, sparse MoEs add complexity to training due to (i) new trainable parameters (router weights) that, like all other parameter groups, require hyperparameter (HP) tuning; (ii) new architecture scale dimensions (number of and size of experts) that must be chosen and potentially taken large. To make HP selection cheap and reliable, we propose a new parameterization for transformer models with MoE layers when scaling model width, depth, number of experts, and expert (hidden) size. Our parameterization is justified by a novel dynamical mean-field theory (DMFT) analysis. When varying different model dimensions trained at a fixed token budget, we find empirically that our parameterization enables reliable HP transfer across models from 51M to over 2B total parameters. We further take HPs identified from sweeping small models on a short token horizon to train larger models on longer horizons and report performant model behaviors.

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

↑