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

UniFormer:统一卷积与自注意力用于视觉识别

UniFormer: Unifying Convolution and Self-attention for Visual Recognition

Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);National University of Singapore(新加坡国立大学);SenseTime Research(商汤科技研究院);the Chinese University of Hong Kong(香港中文大学)

Kunchang Li, Yali Wang, Junhao Zhang, Peng Gao, Guanglu Song, Yu Liu, Hongsheng Li, Yu Qiao

AI总结:

提出 UniFormer,在 Transformer 架构中以浅层局部、深层全局的关系聚合统一卷积与自注意力,在图像、视频分类及检测、分割、姿态估计等任务上取得先进性能。

摘要:

从图像和视频中学习判别性表示是一项具有挑战性的任务,因为这些视觉数据中存在大量局部冗余和复杂的全局依赖。卷积神经网络(CNNs)和视觉 Transformer(ViTs)在过去几年中一直是两种主导框架。尽管 CNNs 能够通过在小邻域内进行卷积来有效降低局部冗余,但有限的感受野使其难以捕捉全局依赖。相比之下,ViTs 能够通过自注意力有效捕捉长程依赖,但在所有 token 之间进行盲目相似性比较会导致高度冗余。为解决这些问题,我们提出了一种新颖的 Unified transFormer(UniFormer),它能够以简洁的 Transformer 形式无缝整合卷积和自注意力的优点。与典型的 Transformer 块不同,我们 UniFormer 块中的关系聚合器分别在浅层和深层配备局部和全局 token 亲和性,从而能够同时处理冗余和依赖,实现高效且有效的表示学习。最后,我们灵活地堆叠 UniFormer 块,构建了一个新的强大骨干网络,并将其用于从图像到视频领域、从分类到密集预测的各种视觉任务。在没有任何额外训练数据的情况下,我们的 UniFormer 在 ImageNet-1K 分类上取得了 86.3 的 top-1 准确率。仅借助 ImageNet-1K 预训练,它即可在广泛的下游任务中轻松达到最先进性能,例如在 Kinetics-400/600 上取得 82.9/84.8 的 top-1 准确率,在 Sth-Sth V1/V2 视频分类上取得 60.9/71.2 的 top-1 准确率,在 COCO 目标检测上取得 53.8 box AP 和 46.4 mask AP,在 ADE20K 语义分割上取得 50.8 mIoU,并在 COCO 姿态估计上取得 77.4 AP。我们进一步构建了一个吞吐量提高 2-4 倍的高效 UniFormer。代码可在 https://github.com/Sense-X/UniFormer 获取。

英文摘要:

It is a challenging task to learn discriminative representation from images and videos, due to large local redundancy and complex global dependency in these visual data. Convolution neural networks (CNNs) and vision transformers (ViTs) have been two dominant frameworks in the past few years. Though CNNs can efficiently decrease local redundancy by convolution within a small neighborhood, the limited receptive field makes it hard to capture global dependency. Alternatively, ViTs can effectively capture long-range dependency via self-attention, while blind similarity comparisons among all the tokens lead to high redundancy. To resolve these problems, we propose a novel Unified transFormer (UniFormer), which can seamlessly integrate the merits of convolution and self-attention in a concise transformer format. Different from the typical transformer blocks, the relation aggregators in our UniFormer block are equipped with local and global token affinity respectively in shallow and deep layers, allowing to tackle both redundancy and dependency for efficient and effective representation learning. Finally, we flexibly stack our UniFormer blocks into a new powerful backbone, and adopt it for various vision tasks from image to video domain, from classification to dense prediction. Without any extra training data, our UniFormer achieves 86.3 top-1 accuracy on ImageNet-1K classification. With only ImageNet-1K pre-training, it can simply achieve state-of-the-art performance in a broad range of downstream tasks, e.g., it obtains 82.9/84.8 top-1 accuracy on Kinetics-400/600, 60.9/71.2 top-1 accuracy on Sth-Sth V1/V2 video classification, 53.8 box AP and 46.4 mask AP on COCO object detection, 50.8 mIoU on ADE20K semantic segmentation, and 77.4 AP on COCO pose estimation. We further build an efficient UniFormer with 2-4x higher throughput. Code is available at https://github.com/Sense-X/UniFormer.

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

↑