Dual-R-DETR: 通过Transformer解码器中的成对路由解决查询竞争
Dual-R-DETR: Resolving Query Competition with Pairwise Routing in Transformer Decoders
AI总结:
Dual-R-DETR通过在Transformer解码器中引入成对路由机制,解决DETR中查询之间的竞争问题,提升检测效率和性能。
摘要:
Detection Transformers (DETR)将目标检测视为集合预测问题,并通过对称自注意力机制实现端到端训练。然而,DETR中的对象查询通过对称自注意力相互作用,强制所有查询对之间竞争,导致查询动态低效。我们提出Dual-R-DETR,一种竞争感知的DETR框架,通过Transformer解码器中的成对路由显式调节查询交互。Dual-R-DETR根据外观相似性、预测置信度和空间几何区分查询之间的竞争或合作关系。它引入两种互补的路由行为:抑制路由用于减弱针对同一对象的查询相互作用,以及委托路由用于鼓励在不同区域的多样化探索。这些行为通过轻量级、可学习的低秩偏差注入到解码器自注意力中实现,从而在保持标准注意力公式的同时实现不对称的查询交互。为确保推理效率,路由偏差仅在训练期间使用双分支策略应用,推理时恢复为标准自注意力,无额外计算成本。在COCO和Cityscapes上的广泛实验表明,Dual-R-DETR在多个DETR变体中持续提升性能,以ResNet-50后端优于DINO 1.7% mAP,以Swin-L在同等设置下达到57.6% mAP。代码可在https://github.com/YZk67/Dual-R-DETR上获取。
英文摘要:
Detection Transformers (DETR) formulate object detection as a set prediction problem and enable end-to-end training without post-processing. However, object queries in DETR interact through symmetric self-attention, which enforces uniform competition among all query pairs. This often leads to inefficient query dynamics, where multiple queries converge to the same object while others fail to explore alternative regions. We propose Dual-R-DETR, a competition-aware DETR framework that explicitly regulates query interactions via pairwise routing in transformer decoders. Dual-R-DETR distinguishes query-to-query relations as either competitive or cooperative based on appearance similarity, prediction confidence, and spatial geometry. It introduces two complementary routing behaviors: suppressor routing to attenuate interactions among queries targeting the same object, and delegator routing to encourage diversification across distinct regions. These behaviors are realized through lightweight, learnable low-rank biases injected into decoder self-attention, enabling asymmetric query interactions while preserving the standard attention formulation. To ensure inference efficiency, routing biases are applied only during training using a dual-branch strategy, and inference reverts to vanilla self-attention with no additional computational cost. Extensive experiments on COCO and Cityscapes demonstrate that Dual-R-DETR consistently improves multiple DETR variants, outperforming DINO by 1.7% mAP with a ResNet-50 backbone and achieving 57.6% mAP with Swin-L under comparable settings. Code is available at https://github.com/YZk67/Dual-R-DETR.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。