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

ScalableViT:对视觉Transformer面向上下文的泛化的再思考

ScalableViT: Rethinking the Context-oriented Generalization of Vision Transformer

Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院,清华大学);ByteDance Inc.(字节跳动公司)

Rui Yang, Hailong Ma, Jie Wu, Yansong Tang, Xuefeng Xiao, Min Zheng, Xiu Li

摘要:

香草自我注意力机制内在地依赖于预定义的和稳定的计算维度。这种不灵活性限制了它具有面向上下文的概括能力,而这种概括能力可以带来更多的上下文线索和全局表示。为了缓解这个问题,我们提出了一个可扩展的自我注意力(SSA)机制,利用两个缩放因子来释放查询,键和值矩阵的维度,同时将它们与输入解除绑定。这种可扩展性获得了面向上下文的泛化能力,并增强了对象敏感性,从而使整个网络在准确性和成本之间处于更有效的权衡状态。此外,我们提出了一个交互式的基于窗口的自我注意力(IWSA),它建立了非重叠区域之间的相互作用,重新合并独立的价值令牌和聚合空间信息从相邻的窗口。通过交替堆叠SSA和IWSA,可扩展视觉Transformer(ScalableViT)在通用视觉任务中实现了最先进的性能。例如,ScalableViT-S在ImageNet-1 K分类上比Twins-SVT-S高1.4%,比Swin-T高1.8%。

英文摘要:

The vanilla self-attention mechanism inherently relies on pre-defined and steadfast computational dimensions. Such inflexibility restricts it from possessing context-oriented generalization that can bring more contextual cues and global representations. To mitigate this issue, we propose a Scalable Self-Attention (SSA) mechanism that leverages two scaling factors to release dimensions of query, key, and value matrices while unbinding them with the input. This scalability fetches context-oriented generalization and enhances object sensitivity, which pushes the whole network into a more effective trade-off state between accuracy and cost. Furthermore, we propose an Interactive Window-based Self-Attention (IWSA), which establishes interaction between non-overlapping regions by re-merging independent value tokens and aggregating spatial information from adjacent windows. By stacking the SSA and IWSA alternately, the Scalable Vision Transformer (ScalableViT) achieves state-of-the-art performance in general-purpose vision tasks. For example, ScalableViT-S outperforms Twins-SVT-S by 1.4% and Swin-T by 1.8% on ImageNet-1K classification.

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

↑