Mr. DETR++: Instructive Multi-Route Training for Detection Transformers with Mixture-of-Experts

Chang-Bin Zhang, Yujie Zhong, Kai Han
12/13/2024
2 citations
cs.CV
transformer-attentionmoe

No official code found. Best implementation: Visual-AI/Mr.DETR (0 stars, Python, 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.

Show full abstract

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/

View on arXivView PDF

Code Implementations(1)

Visual-AI/Mr.DETRCommunity71%
MIT

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

00Python, CudaMar 13, 20251 years agoMIT
cvpr2025detectiondetr

Similar Papers

Cite this paper

@article{zhang2024detr,
  title  = {Mr. DETR++: Instructive Multi-Route Training for Detection Transformers with Mixture-of-Experts},
  author = {Chang-Bin Zhang and Yujie Zhong and Kai Han},
  year   = {2024},
  eprint = {2412.10028},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.10028v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.10028.svg)](https://codeofpaper.com/paper/2412.10028)

Discussion