Mr. DETR++:面向 Detection Transformers 的指导性多路由训练与 Mixture-of-Experts
Mr. DETR++: Instructive Multi-Route Training for Detection Transformers with Mixture-of-Experts
AI总结:
本文提出 Mr. DETR++ 多路由训练框架,通过指导性自注意力和路由感知 MoE 优化 Detection Transformers 的一对一与一对多预测,在目标检测及分割任务上取得一致提升。
摘要:
现有方法通过引入辅助的一对多分配来增强 Detection Transformers 的训练。在本研究中,我们将模型视为一个多任务框架,同时执行一对一和一对多预测。我们研究了 Transformer 解码器中各个组件在这两个训练目标中的作用,包括自注意力、交叉注意力和前馈网络。我们的实证结果表明,解码器中的任何独立组件都能同时有效地学习这两个目标,即使其他组件是共享的。这一发现促使我们提出了一种多路由训练机制,包含用于一对一预测的主路由和用于一对多预测的两个辅助训练路由。我们提出了一种新颖的指导性自注意力机制,并将其集成到第一个辅助路由中,该机制动态且灵活地指导对象查询进行一对多预测。对于第二个辅助路由,我们引入了路由感知的 Mixture-of-Experts (MoE),以促进知识共享,同时缓解路由之间的潜在冲突。此外,我们在编码器中对低尺度特征应用了 MoE,以优化效率与有效性之间的平衡。辅助路由在推理期间被丢弃。我们在各种目标检测基线上进行了广泛实验,如图 1 所示,取得了一致的改进。我们的方法高度灵活,可以轻松适应其他任务。为了展示其多功能性,我们在实例分割和全景分割上进行了实验,进一步验证了其有效性。项目页面:https://visual-ai.github.io/mrdetr/
英文摘要:
Existing methods enhance the training of detection transformers by incorporating an auxiliary one-to-many assignment. In this work, we treat the model as a multi-task framework, simultaneously performing one-to-one and one-to-many predictions. We investigate the roles of each component in the transformer decoder across these two training targets, including self-attention, cross-attention, and feed-forward network. Our empirical results demonstrate that any independent component in the decoder can effectively learn both targets simultaneously, even when other components are shared. This finding leads us to propose a multi-route training mechanism, featuring a primary route for one-to-one prediction and two auxiliary training routes for one-to-many prediction. We propose a novel instructive self-attention mechanism, integrated into the first auxiliary route, which dynamically and flexibly guides object queries for one-to-many prediction. For the second auxiliary route, we introduce a route-aware Mixture-of-Experts (MoE) to facilitate knowledge sharing while mitigating potential conflicts between routes. Additionally, we apply an MoE to low-scale features in the encoder, optimizing the balance between efficiency and effectiveness. The auxiliary routes are discarded during inference. We conduct extensive experiments across various object detection baselines, achieving consistent improvements as demonstrated in Fig. 1. Our method is highly flexible and can be readily adapted to other tasks. To demonstrate its versatility, we conduct experiments on both instance segmentation and panoptic segmentation, further validating its effectiveness. Project page: https://visual-ai.github.io/mrdetr/
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。