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

nGPT:超球面上具有表示学习的归一化Transformer

nGPT: Normalized Transformer with Representation Learning on the Hypersphere

NVIDIA

Ilya Loshchilov, Cheng-Ping Hsieh, Simeng Sun, Boris Ginsburg

AI总结:

提出nGPT架构,将所有向量归一化到超球面,通过层间位移实现快速学习,训练步数减少4至20倍。

摘要:

我们提出了一种新颖的神经网络架构,即归一化Transformer(nGPT),它在超球面上进行表示学习。在nGPT中,构成嵌入、MLP、注意力矩阵和隐藏状态的所有向量都被归一化为单位范数。输入令牌流在超球面表面移动,每一层都贡献一个朝向目标输出预测的位移。这些位移由MLP和注意力块定义,其向量分量也位于同一超球面上。实验表明,nGPT学习速度更快,将达到相同精度所需的训练步数减少了4到20倍,具体取决于序列长度。

英文摘要:

We propose a novel neural network architecture, the normalized Transformer (nGPT) with representation learning on the hypersphere. In nGPT, all vectors forming the embeddings, MLP, attention matrices and hidden states are unit norm normalized. The input stream of tokens travels on the surface of a hypersphere, with each layer contributing a displacement towards the target output predictions. These displacements are defined by the MLP and attention blocks, whose vector components also reside on the same hypersphere. Experiments show that nGPT learns much faster, reducing the number of training steps required to achieve the same accuracy by a factor of 4 to 20, depending on the sequence length.

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

↑