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

BatchFormerV2:探索密集表示学习的样本关系

BatchFormerV2: Exploring Sample Relationships for Dense Representation Learning

The University of Sydney(悉尼大学);JD Explore Academy(京东探索研究院)

Zhi Hou, Baosheng Yu, Chaoyue Wang, Yibing Zhan, Dacheng Tao

摘要:

注意力机制在深度神经网络中非常流行,其中Transformer架构不仅在自然语言处理方面取得了巨大成功,而且在视觉识别应用方面也取得了巨大成功。最近,一个新的Transformer模块,应用于批量维度而不是空间/通道维度,即,BatchFormer [18]被引入来探索样本关系,以克服数据稀缺的挑战。但是,它只适用于图像级表示进行分类。在本文中,我们设计了一个更通用的批处理Transformer模块,BatchFormerV 2,它进一步使探索密集表示学习的样本关系。具体地,当应用所提出的模块时,它在训练期间采用双流流水线,即,有或没有BatchFormerV 2模块,其中可以移除batchformer流以进行测试。因此,所提出的方法是一个即插即用的模块,可以很容易地集成到不同的视觉Transformer没有任何额外的推理成本。没有花里胡哨的,我们显示了所提出的方法的有效性,各种流行的视觉识别任务,包括图像分类和两个重要的密集预测任务:目标检测和全景分割。特别地,BatchFormerV 2一致地改进了当前基于DETR的检测方法(例如,DETR,可变形DETR,条件性DETR和SMCA)超过1.3%。代码将公开提供。

英文摘要:

Attention mechanisms have been very popular in deep neural networks, where the Transformer architecture has achieved great success in not only natural language processing but also visual recognition applications. Recently, a new Transformer module, applying on batch dimension rather than spatial/channel dimension, i.e., BatchFormer [18], has been introduced to explore sample relationships for overcoming data scarcity challenges. However, it only works with image-level representations for classification. In this paper, we devise a more general batch Transformer module, BatchFormerV2, which further enables exploring sample relationships for dense representation learning. Specifically, when applying the proposed module, it employs a two-stream pipeline during training, i.e., either with or without a BatchFormerV2 module, where the batchformer stream can be removed for testing. Therefore, the proposed method is a plug-and-play module and can be easily integrated into different vision Transformers without any extra inference cost. Without bells and whistles, we show the effectiveness of the proposed method for a variety of popular visual recognition tasks, including image classification and two important dense prediction tasks: object detection and panoptic segmentation. Particularly, BatchFormerV2 consistently improves current DETR-based detection methods (e.g., DETR, Deformable-DETR, Conditional DETR, and SMCA) by over 1.3%. Code will be made publicly available.

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

↑