Multi-scale Positive Sample Refinement for Few-Shot Object Detection

Jiaxi Wu, Songtao Liu, Di Huang, Yunhong Wang

Abstract

Few-shot object detection (FSOD) aims to detect novel object categories using only a handful of training examples. A significant yet often overlooked challenge in this field is "scale sparsity"—the limited variety of object sizes in small datasets. This paper introduces Multi-scale Positive Sample Refinement (MPSR), a method that addresses scale sparsity by generating multi-scale object pyramids and manually assigning them as positive samples in an auxiliary training branch. This approach mitigates the "improper negative" problem where standard anchor-matching rules mislabel object parts as background in data-starved scenarios. MPSR achieves state-of-the-art results on PASCAL VOC and MS COCO benchmarks without adding computational overhead during inference.

The Challenge: Scale Sparsity and Improper Negatives

In standard large-scale object detection, models encounter objects at a vast array of scales. However, in a 10-shot FSOD scenario, a model might only see a specific class, such as a "bus," at a single distance and size. This lack of geometric diversity prevents the detector from generalizing to different scales.

Scale distribution of object instances in original vs. few-shot datasets for Bus and Cow classes, illustrating the scale sparsity problem.

Furthermore, standard training techniques like image pyramids or aggressive data augmentation can be counterproductive in FSOD. Standard anchor-matching heuristics often label parts of an object (e.g., a wheel or a head) as "negative" or background. In data-rich environments, the model learns to filter this noise. In FSOD, these "improper negatives" overwhelm the few available positive signals, confusing the model and degrading performance.

Methodology: Multi-scale Positive Sample Refinement (MPSR)

The authors propose MPSR, integrated into a Faster R-CNN framework with a Feature Pyramid Network (FPN) backbone, to solve these issues through three key components:

  1. Object Pyramids: Instead of resizing entire images, MPSR crops ground-truth objects and resizes them into a pyramid of scales (ranging from $32^2$ to $800^2$ pixels). This ensures the model sees the object at various sizes without introducing excessive background noise.
  2. Auxiliary Refinement Branch: During training, these multi-scale crops are processed by an auxiliary branch that shares weights with the main detector. This branch is used solely to refine the shared weights and is discarded during inference.
  3. Positive Sample Refinement: To bypass the "improper negative" trap, MPSR abandons standard anchor matching for the auxiliary branch. Instead, it manually assigns object pyramids to specific FPN levels and spatial locations as guaranteed positive samples.
Illustration of ground truth (GT), positive samples (PS), and negative samples (NS) highlighting how standard matching can lead to improper negatives.

Key Results and Insights

MPSR demonstrated significant performance gains, particularly in extremely low-data regimes. On the PASCAL VOC 1-shot task, MPSR achieved 41.7% mAP, nearly doubling the performance of the YOLO-FS baseline (14.8%) and outperforming Meta R-CNN (19.9%). On MS COCO, MPSR reached 14.1% mAP in the 30-shot scenario.

Ablation studies confirmed that manual positive assignment is superior to standard scale augmentation in FSOD. By forcing the network to treat specific multi-scale crops as positives at designated FPN layers, the authors successfully bypassed the limitations of the Region Proposal Network (RPN) when learning from novel classes.

Limitations and Future Work

While MPSR effectively addresses scale sparsity, it remains sensitive to large domain shifts (e.g., moving from COCO to PASCAL VOC). Additionally, the current implementation is specific to two-stage detectors like Faster R-CNN. Future research could explore adapting this positive refinement logic to one-stage detectors (YOLO, SSD) or transformer-based architectures (DETR), as well as investigating how the loss of environmental context during object cropping affects detection accuracy.

Summary updated

BibTeX
@inproceedings{wu2020multi,
  author = {Jiaxi Wu and Songtao Liu and Di Huang and Yunhong Wang},
  title = {{Multi-scale Positive Sample Refinement for Few-Shot Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58517-4\_27},
}
Figure