SimPLR: A Simple and Plain Transformer for Efficient Object Detection and Segmentation

Duy-Kien Nguyen, Martin R. Oswald, Cees G. M. Snoek

TL;DR

SimPLR is a streamlined object detector that ditches complex multi-scale feature pyramids in favor of a "plain" architecture using a single-scale feature map. By moving scale-handling into a novel adaptive-scale attention mechanism, it achieves state-of-the-art performance while being up to 40% faster and more efficient to scale than hierarchical counterparts.

What Problem Does This Paper Address?

Detecting objects of vastly different sizes—from a tiny bird in the distance to a large car in the foreground—is a fundamental challenge in computer vision. Traditionally, researchers have solved this using "feature pyramids," where the network processes the image at multiple resolutions. Even as the field shifted from CNNs to Transformers, this multi-scale inductive bias remained a staple, often requiring complex hierarchical backbones (like Swin) or heavy "necks" to reconstruct pyramids from plain backbones.

However, these hierarchical designs come with a cost: they are harder to scale with massive self-supervised pre-training and increase computational overhead. The authors of SimPLR ask: Can we build an effective detector that is "plain" from start to finish, using only a single-scale feature map?

Methods

SimPLR (Simple and Plain Transformer) achieves this by shifting the responsibility of scale-awareness from the architecture to the attention mechanism.

  1. Plain Backbone & Single-Scale Neck: Unlike standard detectors that use multiple layers of convolutions to create a pyramid, SimPLR uses a standard, non-hierarchical Vision Transformer (ViT) backbone. It then uses a single deconvolution layer to produce one high-resolution feature map (at 1/8 scale).

    Comparison of feature creation: SimPLR uses a single layer vs. the complex stacks in SimpleFPN.
  2. Adaptive-Scale Attention: This is the core innovation. Instead of having different layers look at different scales, each attention head in the encoder samples from multiple "anchor" scales simultaneously. The model learns to predict offsets for these anchors and, crucially, learns a set of weights to aggregate them. This allows the network to dynamically "choose" the best scale for a specific region based on the image content.

    Figure 2: Illustration of the proposed adaptive-scale attention. In the i-th attention head, given a query vector and anchors of three scales, the adaptive-scale attention learns to attend to a region of interest w.r.t. each scale. It then generates attention weights on these scales adaptively based on the query vector to produce headi. As this mechanism allows each vector in our plain feature map to learn suitable scale information during the training process, we no longer need an hierarchical backbone along with feature pyramids.
  3. Masked Instance-Attention: For segmentation tasks, the decoder uses a sparse attention mechanism that incorporates mask predictions from previous layers to better capture objects of irregular shapes.

Datasets

The authors evaluated SimPLR across three major tasks:

  • COCO: Used for object detection, instance segmentation, and panoptic segmentation.
  • Cityscapes: Used for panoptic segmentation in urban environments.
  • Pre-training: The backbones were pre-trained on ImageNet-1K and ImageNet-21K using various strategies like MAE, BEiTv2, and DEiT.

Key Insights and Ideas

  • Scale as a Learnable Distribution: The paper demonstrates that multi-scale feature maps aren't strictly necessary if the attention mechanism is flexible enough. By treating scale as a learnable weight within the attention head, the model can handle varying object sizes without architectural complexity.
  • Efficiency through Sequence Length: Because SimPLR operates on a single-scale feature map, the sequence length fed into the Transformer head is much shorter than in pyramid-based models. This leads to significant speedups during inference.
  • Scaling Efficiency: Plain architectures like SimPLR benefit more from increasing model capacity and data. As shown in Figure 5, SimPLR scales its performance (AP) more effectively against runtime than hierarchical models like Swin or MViT.

    Scaling comparison showing SimPLR's superior accuracy-to-runtime tradeoff.

Key Results

  • Speed: SimPLR is consistently faster than its peers. For example, it achieves 17 FPS on an A100 GPU, making it roughly 40% faster than the multi-scale BoxeR baseline while maintaining higher accuracy.
  • Accuracy: On COCO instance segmentation, SimPLR-Huge reaches 51.9 AP, outperforming the state-of-the-art Mask2Former (50.1 AP) while being significantly faster.
  • Small Object Performance: Surprisingly, despite relying on a single-scale feature map, SimPLR provides excellent predictions for small objects, proving that the adaptive-scale attention effectively recovers fine-grained details.

Limitations and Future Work

The authors note that while SimPLR excels at small and medium objects, it can still struggle with very large objects that span a huge portion of the image. This is likely because the sparse attention mechanism is inherently local.

Future work could involve designing attention mechanisms that better combine this local adaptive scaling with global context to handle extreme scale variations even more robustly. Additionally, the authors hope this "plain" philosophy encourages further simplification of dense vision task architectures.

Summary updated

BibTeX
@misc{nguyen2023simplr,
  author = {Duy-Kien Nguyen and Martin R. Oswald and Cees G. M. Snoek},
  title = {{SimPLR: A Simple and Plain Transformer for Efficient Object Detection and Segmentation}},
  year = {2023},
  eprint = {2310.05920},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.05920},
}
Figure