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

分层递归Transformer

Sliced Recursive Transformer

Carnegie Mellon University(卡内基梅隆大学);Hong Kong University of Science and Technology(香港科技大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Reality Labs, Meta Inc.(Meta公司Reality Labs)

Zhiqiang Shen, Zechun Liu, Eric Xing

摘要:

我们提出了一个整洁而有效的递归操作的视觉Transformer,可以提高参数利用率,而不涉及额外的参数。这是通过在Transformer网络的深度上共享权重来实现的。所提出的方法可以获得一个很大的增益(~2%),简单地使用朴素的递归操作,不需要特殊的或复杂的网络设计原理的知识,并引入最小的计算开销的训练过程。为了在保持较高精度的同时减少递归运算带来的额外计算量,提出了一种跨递归层的多个分片群自注意的近似方法,该方法在保证性能损失最小的情况下,可以减少10~30%的开销.我们称我们的模型为切片递归Transformer(SReT),这是一种新颖的、参数高效的视觉Transformer设计,可与各种其他设计兼容,以实现高效的ViT架构。我们的最佳模型在ImageNet-1 K上比最先进的方法有了显着的改进,同时包含更少的参数。本文提出的基于切片递归结构的权值共享机制使得我们能够轻松构建一个共享层超过100甚至1000层的Transformer,同时保持紧凑的规模(13~ 15 M),避免了模型过大时的优化困难。灵活的可扩展性已经显示出巨大的潜力,用于扩展模型和构建极深的视觉Transformer。代码可在https://github.com/szq0214/SReT上获得。

英文摘要:

We present a neat yet effective recursive operation on vision transformers that can improve parameter utilization without involving additional parameters. This is achieved by sharing weights across the depth of transformer networks. The proposed method can obtain a substantial gain (~2%) simply using naive recursive operation, requires no special or sophisticated knowledge for designing principles of networks, and introduces minimal computational overhead to the training procedure. To reduce the additional computation caused by recursive operation while maintaining the superior accuracy, we propose an approximating method through multiple sliced group self-attentions across recursive layers which can reduce the cost consumption by 10~30% with minimal performance loss. We call our model Sliced Recursive Transformer (SReT), a novel and parameter-efficient vision transformer design that is compatible with a broad range of other designs for efficient ViT architectures. Our best model establishes significant improvement on ImageNet-1K over state-of-the-art methods while containing fewer parameters. The proposed weight sharing mechanism by sliced recursion structure allows us to build a transformer with more than 100 or even 1000 shared layers with ease while keeping a compact size (13~15M), to avoid optimization difficulties when the model is too large. The flexible scalability has shown great potential for scaling up models and constructing extremely deep vision transformers. Code is available at https://github.com/szq0214/SReT.

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

↑