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 1.64x 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%的顶级和一级精确性效果模型。在图像网基准基准中,将更快地将我们作为未来最强的硬的硬的硬件模型。