We present BoTNet, a conceptually simple yet powerful backbone architecture that incorporates self-attention for multiple computer vision tasks including image classification, object detection and instance segmentation. By just replacing the spatial convolutions with global self-attention in the final three bottleneck blocks of a ResNet and no other changes, our approach improves upon the baselines significantly on instance segmentation and object detection while also reducing the parameters, with minimal overhead in latency. Through the design of BoTNet, we also point out how ResNet bottleneck blocks with self-attention can be viewed as Transformer blocks. Without any bells and whistles, BoTNet achieves 44.4% Mask AP and 49.7% Box AP on the COCO Instance Segmentation benchmark using the Mask R-CNN framework; surpassing the previous best published single model and single scale results of ResNeSt evaluated on the COCO validation set. Finally, we present a simple adaptation of the BoTNet design for image classification, resulting in models that achieve a strong performance of 84.7% top-1 accuracy on the ImageNet benchmark while being up to 2.33x faster in compute time than the popular EfficientNet models on TPU-v3 hardware. We hope our simple and effective approach will serve as a strong baseline for future research in self-attention models for vision.
翻译:我们提出BotNet,这是一个概念简单而强大的主干结构,它包含对多种计算机愿景任务(包括图像分类、物体探测和实例分割)的自我关注。通过在ResNet最后三个瓶颈区块中以全球自我关注取代ResNet的最后三个瓶颈区块中的空间演进,我们的方法没有其他变化,大大改进了基准的试样分解和物体探测,同时降低了参数,同时降低了潜伏的间接费用。通过设计BotNet,我们还指出了如何将自我关注的ResNet瓶颈区块视为变异器块。如果没有任何钟声和哨音,BotNet在COCOCO例分块基准上实现了44.4%的Mack AP和49.7%的框 AP,使用Msk R-CNN框架;超过了以前在COCO校准设置上评价的ResNest的单一最佳模型和单一规模结果。最后,我们简单调整了BATNet设计图像分类,导致在图像网基准中实现84.7%的顶级-1级精确性功能模型,同时将加快到2.33x的CFI-PRO-G-G-G-G-SAL-G-SAL-SAL-SAL-SAL-SAL-SUD-SyG-S-S-SUD-SUD-SUD-SON-S-S-S-S-S-F-S-S-S-S-S-S-SAL-S-S-S-SV-S-S-SV-S-S-SV-S-S-SAL-S-C-C-C-C-S-S-S-S-C-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-C-C-C-C-C-C-C-C-C-C-S-S-S-I-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-I-S-S-S-S-S