NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Detect Everything with Few Examples

Xinyu Zhang, Yuhan Liu, Yuting Wang, Abdeslam Boularias

TL;DR

This paper introduces DE-ViT, a novel few-shot object detection system that achieves state-of-the-art results without requiring any fine-tuning. By employing a unique region-propagation mechanism and a feature subspace projection technique, DE-ViT effectively learns to detect new object categories from just a few examples, making it highly practical for real-world robotic applications.

What Problem Does This Paper Address?

Autonomous robots operating in dynamic, unstructured environments need to identify and locate objects they haven't seen before. This is known as few-shot object detection (FSOD). Traditional approaches often rely on fine-tuning existing models on new data, which is computationally expensive, time-consuming, and can lead to overfitting on the original "base" classes, hurting performance on the "novel" classes. Furthermore, leveraging powerful pre-trained models like Vision Transformers (ViTs) for object detection is challenging because they lack explicit spatial coordinate information needed for bounding box regression. Simply applying standard regression techniques to ViT features results in poor localization, and unfreezing ViT backbones leads to severe overfitting on base classes. This paper aims to bridge this gap by developing an FSOD method that is efficient, accurate, and robust to overfitting, directly utilizing pre-trained ViT features without fine-tuning.

Methods

DE-ViT introduces several key innovations:

  • Region Propagation Network (RPN): Instead of traditional bounding box regression, DE-ViT uses a novel region propagation mechanism. It starts with an initial object proposal, expands it, and then iteratively refines a mask within this expanded region through a series of "Propagation Layers" (PLs). This allows for more accurate localization by focusing on mask prediction rather than direct coordinate regression.
  • Learnable Spatial Integral Layer: To convert the refined region masks into precise bounding boxes, a learnable spatial integral layer is proposed. This layer is differentiable and more robust than traditional mask-to-box conversion methods, which often rely on finding specific foreground pixels and can be sensitive to outliers.
  • Feature Subspace Projection: To combat overfitting on base classes and improve generalization to novel classes, DE-ViT projects ViT features into a learned subspace. This is achieved by taking the dot product of query image features with learned "prototypes" (class representatives derived from support images). This projection creates a more robust representation that is less susceptible to the biases of the base classes. The method also incorporates prototypes from background classes to further enhance feature representation.
  • No Fine-tuning: A crucial aspect of DE-ViT is that it does not require any fine-tuning of the ViT backbone or other network components on novel classes. This significantly reduces training complexity and computational cost, making it more practical for real-world deployment.

Datasets

The paper evaluates DE-ViT on several standard few-shot object detection benchmarks:

  • Pascal VOC: A widely used dataset for object detection.
  • COCO: A large-scale object detection dataset.
  • LVIS: A challenging dataset known for its large vocabulary and long-tailed distribution of object categories.

The authors also mention using YCB objects for a real-world robot experiment, which is a standard set of objects used in robotics manipulation research.

Key Insights and Ideas

  • Mask Prediction is Key for Localization: The paper demonstrates that directly predicting object masks and then converting them to bounding boxes (via the spatial integral layer) is more effective for localization in few-shot settings than traditional bounding box regression, especially when using powerful ViT features.
  • Subspace Projection for Robustness: Projecting ViT features into a learned subspace using prototypes is a powerful technique to mitigate overfitting on base classes. This allows the model to generalize better to unseen novel classes.
  • No Fine-tuning is Achievable and Beneficial: The success of DE-ViT without fine-tuning highlights that it's possible to achieve state-of-the-art performance by designing a more effective architecture and feature representation strategy, rather than relying on computationally intensive fine-tuning.
  • Prototypes are More Than Just Classifiers: The paper shows that prototypes can be effectively used to guide feature representation into a subspace, rather than solely serving as weights for a classifier.

Key Results

DE-ViT achieves state-of-the-art (SoTA) results across multiple benchmarks:

  • COCO: Surpasses previous SoTA by 15 mAP on 10-shot and 7.2 mAP on 30-shot. It also achieves 2.8 AP50 on one-shot detection.
  • LVIS: Outperforms few-shot SoTA by 17 box APr.
  • Pascal VOC: Achieves a significant improvement over previous SoTA methods.
  • Efficiency: DE-ViT achieves a faster inference time compared to other methods while maintaining higher accuracy.
  • Real Robot Experiment: A pick-and-place system for sorting novel objects built using DE-ViT achieved a 97% success rate, demonstrating its practical applicability in robotics.

Limitations and Future Work

  • RPN Dependency: The current DE-ViT architecture still relies on a standard Region Proposal Network (RPN) trained on base classes. This dependency might limit the detection performance on novel objects.
  • Future Directions: The authors suggest two main avenues for future work:
  • End-to-End Transformer Architecture: Adopting a full transformer architecture (like DETR) to eliminate the object proposal stage entirely.
  • Adaptive RPN: Developing an RPN that can be conditioned on novel object prototypes, allowing it to generate more relevant proposals for unseen classes.
  • Prototype Bias: The paper notes that class representative prototypes might carry stronger biases from pre-trained ViTs, potentially affecting performance on long-tailed domains where feature extractors might underperform. Future work could focus on designing more adaptive and bias-aware architectures to balance prototype-feature interactions and spatial feature interactions.

Summary updated

BibTeX
@inproceedings{zhang2024detect,
  author = {Xinyu Zhang and Yuhan Liu and Yuting Wang and Abdeslam Boularias},
  title = {{Detect Everything with Few Examples}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=HlxRd529nG},
}
Figure