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

Refiner:为视觉Transformer提炼自我注意力

Refiner: Refining Self-attention for Vision Transformers

National University of Singapore(新加坡国立大学)

Daquan Zhou, Yujun Shi, Bingyi Kang, Weihao Yu, Zihang Jiang, Yuan Li, Xiaojie Jin, Qibin Hou, Jiashi Feng

摘要:

与CNN相比,视觉Transformer(ViTs)在图像分类任务中表现出具有竞争力的准确性。然而,它们通常需要更多的数据来进行模型预训练。因此,最近的大部分工作都致力于设计更复杂的架构或训练方法,以解决ViT的数据效率问题。然而,他们中很少有人探索改善自我注意力机制,这是ViTs与CNN区别开来的关键因素。与现有的工作不同,我们引入了一个概念上简单的计划,称为细化,直接细化ViTs的自我注意力地图。具体而言,提炼器探索注意扩展,项目的多头注意力地图到一个更高的维度空间,以促进其多样性。此外,细化应用卷积来增强注意力地图的局部模式,我们证明这相当于分布式局部注意力特征与可学习的内核局部聚合,然后与自注意力全局聚合。大量的实验表明,细化效果令人惊讶地好。值得注意的是,它使ViTs能够在ImageNet上实现86%的top-1分类准确率,仅需81 M参数。

英文摘要:

Vision Transformers (ViTs) have shown competitive accuracy in image classification tasks compared with CNNs. Yet, they generally require much more data for model pre-training. Most of recent works thus are dedicated to designing more complex architectures or training methods to address the data-efficiency issue of ViTs. However, few of them explore improving the self-attention mechanism, a key factor distinguishing ViTs from CNNs. Different from existing works, we introduce a conceptually simple scheme, called refiner, to directly refine the self-attention maps of ViTs. Specifically, refiner explores attention expansion that projects the multi-head attention maps to a higher-dimensional space to promote their diversity. Further, refiner applies convolutions to augment local patterns of the attention maps, which we show is equivalent to a distributed local attention features are aggregated locally with learnable kernels and then globally aggregated with self-attention. Extensive experiments demonstrate that refiner works surprisingly well. Significantly, it enables ViTs to achieve 86% top-1 classification accuracy on ImageNet with only 81M parameters.

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

↑