cs.CVNov 23, 2026

TAED: Trajectory-Aligned Encoder--Decoder Distillation for Detection Transformers

Authors: Zilong He, Zhangchi Hu, Hebei Li, Yijun Pan, Yifan Zhao, Xiangyu Yu, Yansong Peng, Xinghao Wang, 

Organizations: University of Science and Technology of China · Huawei Technologies Ltd

Abstract

Distilling localization knowledge into compact detection transformers (DETRs) requires consistent teacher-student query correspondence across decoder layers. However, in DETRs with encoder-based query selection, the teacher and student select top-K proposals independently. Same-rank queries can originate from different spatial locations and correspond to different objects, making rank-based layer-wise supervision unreliable. To address this problem, we propose Trajectory-Aligned Encoder-Decoder Distillation (TAED), a framework for knowledge transfer between DETRs of different capacities. Encoder feature distillation matches normalized multi-scale features to strengthen student representations and increase the number of teacher-student query pairs from the same encoder locations. Source-indexed query alignment pairs native queries from the same encoder locations and retains pairs associated with the same object for which the teacher provides reliable and more accurate final localization than the student. Trajectory-aligned localization distillation maintains these correspondences and uses teacher proposals and corresponding decoder-layer box predictions to guide student refinement, without introducing additional queries. On COCO, TAED improves DINO-R18 and two-stage Deformable DETR-R18 by 2.5 and 1.7 AP, respectively. Further gains on D-FINE and ECDet demonstrate applicability to recent real-time DETRs at no additional inference cost.

Figures & tables

Explore similar work

CardsList
  1. Enhanced Knowledge Distillation for Detection Transformer via Teacher Prediction Refinement

    Sep 17, 2026Yitong Xing, Yuhao Cheng, Yanping Li +1Detection TransformerObject Detection

  2. PaQ-DETR: Learning Pattern and Quality-Aware Dynamic Queries for Object Detection

    Mar 6, 2026Zhengjian Kang, Jun Zhuang, Kangtong Mo +3Object DetectionDetection Transformer