arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.04209cs.LG
收藏

面向Transformer的等变神经函数网络

Equivariant Neural Functional Networks for Transformers

National University of Singapore(新加坡国立大学);FPT Software AI Center(FPT软件人工智能中心);VinUniversity

Viet-Hoang Tran, Thieu N. Vo, An Nguyen The, Tho Tran Huu, Minh-Khoi Nguyen-Nhat, Thanh Tran, Duy-Tung Pham, Tan Minh Nguyen

AI总结:

本文系统研究了面向Transformer的神经函数网络,通过分析多头注意力权重空间的对称群和群作用,提出等变架构Transformer-NFN,并发布超12.5万个模型检查点数据集作为基准。

摘要:

本文系统地探索了用于Transformer架构的神经函数网络(NFN)。NFN是一类专门的神经网络,它将深度神经网络(DNN)的权重、梯度或稀疏模式作为输入数据,并已在可学习优化器、隐式数据表示和权重编辑等任务中证明了其价值。虽然NFN已在多层感知机(MLP)和卷积神经网络(CNN)上得到广泛发展,但此前尚无工作针对Transformer设计NFN,尽管Transformer在现代深度学习中具有重要意义。本文旨在通过提供对Transformer的NFN的系统研究来填补这一空白。我们首先确定了多头注意力模块中权重的最大对称群,以及多头注意力模块的两组超参数定义相同函数的充分必要条件。随后,我们定义了Transformer架构的权重空间及其相关的群作用,从而得出Transformer中NFN的设计原则。基于这些原则,我们提出了Transformer-NFN,这是一种在该群作用下具有等变性的NFN。此外,我们发布了一个包含超过125,000个Transformer模型检查点的数据集,这些模型在两个数据集上针对两种不同任务进行了训练,为评估Transformer-NFN提供了基准,并鼓励对Transformer训练和性能的进一步研究。

英文摘要:

This paper systematically explores neural functional networks (NFN) for transformer architectures. NFN are specialized neural networks that treat the weights, gradients, or sparsity patterns of a deep neural network (DNN) as input data and have proven valuable for tasks such as learnable optimizers, implicit data representations, and weight editing. While NFN have been extensively developed for MLP and CNN, no prior work has addressed their design for transformers, despite the importance of transformers in modern deep learning. This paper aims to address this gap by providing a systematic study of NFN for transformers. We first determine the maximal symmetric group of the weights in a multi-head attention module as well as a necessary and sufficient condition under which two sets of hyperparameters of the multi-head attention module define the same function. We then define the weight space of transformer architectures and its associated group action, which leads to the design principles for NFN in transformers. Based on these, we introduce Transformer-NFN, an NFN that is equivariant under this group action. Additionally, we release a dataset of more than 125,000 Transformers model checkpoints trained on two datasets with two different tasks, providing a benchmark for evaluating Transformer-NFN and encouraging further research on transformer training and performance.

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

↑