[Paper Review] ViDT: An Efficient and Effective Fully Transformer-based Object Detector
ViDT proposes a fully transformer-based object detector that reconfigures Swin Transformer with a Reconfigured Attention Module (RAM), uses an encoder-free neck, and introduces knowledge distillation via token matching to achieve strong AP with favorable latency on COCO.
Transformers are transforming the landscape of computer vision, especially for recognition tasks. Detection transformers are the first fully end-to-end learning systems for object detection, while vision transformers are the first fully transformer-based architecture for image classification. In this paper, we integrate Vision and Detection Transformers (ViDT) to build an effective and efficient object detector. ViDT introduces a reconfigured attention module to extend the recent Swin Transformer to be a standalone object detector, followed by a computationally efficient transformer decoder that exploits multi-scale features and auxiliary techniques essential to boost the detection performance without much increase in computational load. Extensive evaluation results on the Microsoft COCO benchmark dataset demonstrate that ViDT obtains the best AP and latency trade-off among existing fully transformer-based object detectors, and achieves 49.2AP owing to its high scalability for large models. We will release the code and trained models at https://github.com/naver-ai/vidt
Motivation & Objective
- Motivate integrating vision and detection transformers to build a fully end-to-end detector without heavy neck encoders.
- Develop RAM to allow ViT/ViT-like backbones (e.g., Swin) to function as standalone detectors with multi-scale features.
- Reduce computational overhead by using an encoder-free neck and leverage auxiliary decoding loss and iterative box refinement.
- Enhance efficiency with knowledge distillation via token matching between large and small ViDT models.
Proposed method
- Introduce Reconfigured Attention Module (RAM) that decomposes global attention into PATCH×PATCH, DET×DET, and DET×PATCH attentions while reusing Swin parameters.
- Adopt an encoder-free neck consisting of a deformable transformer decoder to fuse multi-scale features without a heavy neck encoder.
- Apply auxiliary decoding loss and iterative box refinement to improve training convergence and prediction quality.
- Implement knowledge distillation with token matching between teacher and student ViDT models to transfer representation knowledge.
- Use selective cross-attention to reduce DET×PATCH complexity by activating it only at the last Swin stage.
Experimental results
Research questions
- RQ1Can a fully transformer-based detector achieve competitive AP/latency on COCO by reconfiguring attention and removing the neck encoder?
- RQ2Does RAM enable effective integration of DETR-like decoding with Swin-like backbones while maintaining scalability and speed?
- RQ3What is the impact of auxiliary decoding loss, iterative box refinement, and token-matching distillation on detection performance?
Key findings
- ViDT with RAM and an encoder-free neck achieves the best AP–FPS trade-off among fully transformer-based detectors on COCO.
- ViDT scales well to large ViT backbones (e.g., Swin-base) and achieves high AP with relatively low latency (e.g., 49.2 AP with Swin-base at 0.1B params).
- Cross-attention DET×PATCH is most effective when activated at the last Swin stage, balancing AP and FPS.
- Auxiliary decoding loss and iterative box refinement improve DETR-style detectors, and are especially beneficial when used with a neck decoder; they are less beneficial or even detrimental for neck-free variants.
- Knowledge distillation via token matching (teacher–student ViDT) yields AP gains for smaller models, with larger teachers providing clearer benefits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.