HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Chang-Bin Zhang Yujie Zhong Kai Han

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

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 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 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 Figure 1. Project page: https://visual-ai.github.io/mrdetr

Code Repositories

Visual-AI/Mr.DETR
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
object-detection-on-coco-2017-valMr. DETR (Swin-L, 1x, 4scale)
AP: 58.4
AP50: 76.3
AP75: 63.9
APL: 40.8
APM: 62.8
APS: 75.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Mr. DETR: Instructive Multi-Route Training for Detection Transformers | Papers | HyperAI