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

PnP-DETR:使用Transformers实现高效的可视化分析

PnP-DETR: Towards Efficient Visual Analysis with Transformers

National University of Singapore(新加坡国立大学);Yitu Technology(依图科技)

Tao Wang, Li Yuan, Yunpeng Chen, Jiashi Feng, Shuicheng Yan

摘要:

最近,DETR开创了用Transformers解决视觉任务的方法,它直接将图像特征映射转化为目标检测结果。虽然有效,但由于在某些区域(如背景)上的冗余计算,翻译完整的特征图可能代价高昂。在这项工作中,我们封装的想法,减少空间冗余到一个新的轮询和池(PnP)采样模块,我们建立了一个端到端的PnP-DETR架构,自适应分配其计算空间更有效。具体地,PSNR模块将图像特征图抽象为精细的前景对象特征向量和少量的粗糙背景上下文特征向量。Transformer在粗-细特征空间内对信息交互进行建模,并将特征转换为检测结果。此外,PNP增强模型可以通过改变采样特征长度来立即实现单个模型的性能和计算之间的各种期望的权衡,而不需要像现有方法那样训练多个模型。因此,它提供了更大的灵活性部署在不同的场景与不同的计算约束。我们进一步验证了普适性模块的全景分割和最近的基于变换器的图像识别模型ViT,并显示一致的效率增益。我们相信我们的方法使一个有效的视觉分析与Transformers,其中空间冗余是常见的步骤。代码将在\url{https://github.com/twangnh/pnp-detr}上提供。

英文摘要:

Recently, DETR pioneered the solution of vision tasks with transformers, it directly translates the image feature map into the object detection result. Though effective, translating the full feature map can be costly due to redundant computation on some area like the background. In this work, we encapsulate the idea of reducing spatial redundancy into a novel poll and pool (PnP) sampling module, with which we build an end-to-end PnP-DETR architecture that adaptively allocates its computation spatially to be more efficient. Concretely, the PnP module abstracts the image feature map into fine foreground object feature vectors and a small number of coarse background contextual feature vectors. The transformer models information interaction within the fine-coarse feature space and translates the features into the detection result. Moreover, the PnP-augmented model can instantly achieve various desired trade-offs between performance and computation with a single model by varying the sampled feature length, without requiring to train multiple models as existing methods. Thus it offers greater flexibility for deployment in diverse scenarios with varying computation constraint. We further validate the generalizability of the PnP module on panoptic segmentation and the recent transformer-based image recognition model ViT and show consistent efficiency gain. We believe our method makes a step for efficient visual analysis with transformers, wherein spatial redundancy is commonly observed. Code will be available at \url{https://github.com/twangnh/pnp-detr}.

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

↑