Skip to main content
QUICK REVIEW

[Paper Review] An Extendable, Efficient and Effective Transformer-based Object Detector

Hwanjun Song, Deqing Sun|arXiv (Cornell University)|Apr 17, 2022
Advanced Neural Network ApplicationsComputer Science11 citations
TL;DR

This paper proposes ViDT, a fully transformer-based object detector that integrates Vision Transformers (ViT) and Detection Transformers (DETR) via a Reconfigured Attention Module (RAM), enabling linear complexity and high efficiency. It achieves state-of-the-art AP-latency trade-off among end-to-end transformer detectors, with ViDT+ reaching 53.2 AP on COCO using a large backbone and only 14M parameters for the smallest variant.

ABSTRACT

Transformers have been widely used in numerous vision problems especially for visual recognition and detection. 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 construct 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. In addition, we extend it to ViDT+ to support joint-task learning for object detection and instance segmentation. Specifically, we attach an efficient multi-scale feature fusion layer and utilize two more auxiliary training losses, IoU-aware loss and token labeling loss. 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 its extended ViDT+ achieves 53.2AP owing to its high scalability for large models. The source code and trained models are available at https://github.com/naver-ai/vidt.

Motivation & Objective

  • To address the inefficiency and scalability limitations of naive integrations between Vision Transformers and Detection Transformers.
  • To enable end-to-end training of object detectors without anchor generation or non-maximum suppression.
  • To design a lightweight, efficient neck architecture that supports multi-scale feature fusion and auxiliary training techniques.
  • To extend the detector to joint object detection and instance segmentation with minimal computational overhead.
  • To achieve high accuracy and inference speed trade-offs using only 14M parameters for the smallest model variant.

Proposed method

  • Introduces the Reconfigured Attention Module (RAM) to allow ViT variants like Swin Transformer to process both patch and detection tokens in a single attention mechanism, enabling linear complexity w.r.t. image size.
  • Employs a lightweight, encoder-free neck decoder that directly processes detection tokens and leverages multi-scale features for improved representation learning.
  • Applies auxiliary training losses—IoU-aware loss and token labeling loss—to provide fine-grained supervision per detection head token.
  • Introduces an efficient multi-scale feature fusion module (EPFF) to enhance feature representation across different scales.
  • Extends ViDT to ViDT+ by adding a feature pyramid and joint training objectives for end-to-end instance segmentation.
  • Employs a decoding layer dropping scheme during inference to accelerate speed with minimal accuracy drop.

Experimental results

Research questions

  • RQ1Can a fully transformer-based object detector achieve both high accuracy and low latency by synergizing ViT and DETR architectures?
  • RQ2How can the computational complexity of attention mechanisms be reduced to enable scalable object detection with linear complexity?
  • RQ3What auxiliary training techniques can effectively improve detection performance without increasing inference cost?
  • RQ4Can a unified architecture support both object detection and instance segmentation with minimal parameter and compute overhead?
  • RQ5What hyperparameter choices (e.g., number of detection tokens, training epochs, decoder layers) yield the best accuracy-speed trade-off?

Key findings

  • ViDT achieves the best average precision (AP) and latency trade-off among existing fully transformer-based object detectors on the COCO benchmark.
  • With a Swin-nano backbone, ViDT achieves 47.0 AP box using only 14 million parameters and maintains high inference speed.
  • ViDT+ reaches 53.2 AP box on COCO using a large Swin-base backbone, demonstrating strong scalability for large models.
  • Increasing detection tokens from 100 to 300 improves AP box by 1.7–1.9 points with minimal latency increase.
  • Training for 150 epochs (3× longer) improves AP box by 2.2–2.4 points without reducing FPS.
  • Dropping two decoding layers during inference increases FPS by over 10% with only a minor drop in AP box.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.