Mr. DETR: Instructive Multi-Route Training for Detection Transformers

Chang-Bin Zhang, Yujie Zhong, Kai Han
2/10/2026

No official code found. Best implementation: Visual-AI/Mr.DETR (174 stars, MIT, last commit 2025-09-06).

Abstract

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 feedforward 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 enhance the training mechanism with a novel instructive self-attention that dynamically and flexibly guides object queries for one-to-many prediction. The auxiliary routes are removed during inference, ensuring no impact on model architecture or inference cost. We conduct extensive experiments on various baselines, achieving consistent improvements as shown in Fig. 1. Project page: https://visual-ai.github.io/mrdetr

DOISemantic Scholar

Code Implementations(1)

Visual-AI/Mr.DETRCommunity71%
MIT

[CVPR 2025] Mr. DETR: Instructive Multi-Route Training for Detection Transformers

17412C++, CudaMar 13, 20251 years agoMIT
cvpr2025detectiondetr

Cite this paper

@article{zhang2026detr,
  title  = {Mr. DETR: Instructive Multi-Route Training for Detection Transformers},
  author = {Chang-Bin Zhang and Yujie Zhong and Kai Han},
  year   = {2026},
  doi    = {10.1109/CVPR52734.2025.00928},
  url    = {https://doi.org/10.1109/CVPR52734.2025.00928},
  journal = {CVPR 2025 2025}
}

Discussion