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

面向Transformer架构的可组合保函数扩展方法

Composable Function-preserving Expansions for Transformer Architectures

Google DeepMind(谷歌DeepMind);IRIT(图卢兹计算机研究所);University of Toulouse(图卢兹大学)

Andrea Gesmundo, Kaitlin Maile

AI总结:

本文提出六种可组合变换,在保持功能不变的条件下逐步扩展Transformer架构,并证明其在最小初始化约束下可精确保函数,从而支持按需扩容和高效训练更大模型。

摘要:

训练最先进的神经网络需要高昂的计算和时间成本。模型规模被公认为达到并提升最先进水平的关键因素。增大神经网络规模通常需要从头开始重新训练,即随机初始化模型的所有参数,因为架构参数的变化使得无法直接从小规模模型迁移知识。在本工作中,我们提出了六种可组合变换,用于在保持功能不变的前提下逐步增大基于Transformer的神经网络的规模,从而能够按需扩展模型容量。我们证明了在最小初始化约束下,每种变换都能精确保持函数不变。所提出的方法可以通过在训练过程中逐步扩展架构,为更大、更强的模型建立高效的训练流程。

英文摘要:

Training state-of-the-art neural networks requires a high cost in terms of compute and time. Model scale is recognized to be a critical factor to achieve and improve the state-of-the-art. Increasing the scale of a neural network normally requires restarting from scratch by randomly initializing all the parameters of the model, as this implies a change of architecture's parameters that does not allow for a straightforward transfer of knowledge from smaller size models. In this work, we propose six composable transformations to incrementally increase the size of transformer-based neural networks while preserving functionality, allowing to expand the capacity of the model as needed. We provide proof of exact function preservation under minimal initialization constraints for each transformation. The proposed methods may enable efficient training pipelines for larger and more powerful models by progressively expanding the architecture throughout training.

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

↑