Meta R-CNN : Towards General Solver for Instance-level Low-shot Learning

Xiaopeng Yan, Ziliang Chen, Anni Xu, Xiaoxi Wang, Xiaodan Liang, Liang Lin

Abstract

Meta R-CNN is a meta-learning framework designed to solve instance-level low-shot learning tasks, such as object detection and instance segmentation. By integrating a Predictor-head Remodeling Network (PRN) with the standard Faster/Mask R-CNN architecture, the model learns to adapt its detection heads using class-specific attentive vectors derived from a few support examples. This approach effectively disentangles novel objects from complex backgrounds by performing meta-learning on Regions of Interest (RoIs). Experimental results on PASCAL VOC and MS-COCO demonstrate that Meta R-CNN achieves state-of-the-art performance in few-shot detection and segmentation while maintaining inference efficiency.

Introduction

Most deep learning models are "data-hungry," requiring thousands of labeled examples to recognize a new category. Humans, by contrast, can see a single picture of a "quokka" and find another one in a crowded forest immediately. While "few-shot learning" has made strides in image classification (identifying a single object in a cropped image), instance-level tasks like object detection and segmentation are significantly more challenging. In these tasks, the model must not only identify the object but also precisely locate it (bounding boxes) or outline it (masks) amidst complex backgrounds and multiple other objects. Previous meta-learning attempts often struggled to "disentangle" rare novel objects from noisy backgrounds when analyzing entire images.

Methods: Meta R-CNN and the PRN

The authors propose Meta R-CNN, which builds upon the classic Faster/Mask R-CNN architecture. The core innovation is the Predictor-head Remodeling Network (PRN).

The Meta R-CNN architecture integrates a Predictor-head Remodeling Network (PRN) to generate class-attentive vectors that remodel the detection heads.

RoI-Based Meta-Learning

Instead of performing meta-learning on the full image, Meta R-CNN performs it on Regions of Interest (RoIs). Since RoIs are already filtered proposals of potential objects generated by the Region Proposal Network (RPN), they provide a "cleaner" signal for the model to learn from, effectively stripping away background noise.

Class-Attentive Vectors and Head Remodeling

The PRN takes a few support images (the "few shots") and their corresponding masks to generate a unique "attentive vector" for that class. This vector is then applied as a channel-wise soft-attention mask to the RoI features of the query image. Essentially, the PRN "remodels" the detection head on the fly, instructing it to focus on features that match the specific class vector.

Meta-Loss

To ensure the model distinguishes between similar-looking classes, a specialized meta-loss is introduced. This loss encourages the attentive vectors for different classes to be as distinct as possible in the feature space.

Experimental Evaluation

The model was evaluated on several rigorous benchmarks, including PASCAL VOC (2007 & 2012) and MS-COCO. It was also tested in a cross-dataset "COCO-to-PASCAL" transfer setup to evaluate generalization capabilities.

Key Results

Meta R-CNN significantly outperformed previous baselines in detection tasks. For instance, in a 10-shot scenario on PASCAL VOC, it achieved 51.5 mAP, a substantial improvement over the YOLO-based "Few-Shot YOLO" baseline.

Performance comparison on PASCAL VOC novel and base classes across different shot counts.

Beyond detection, Meta R-CNN is one of the first works to show strong results in few-shot instance segmentation, providing a 1.7% to 2.7% improvement over standard Mask R-CNN fine-tuning on the MS-COCO dataset. Importantly, the model maintains competitive performance on "base" classes (objects seen during initial training) while rapidly adapting to "novel" classes, avoiding the "catastrophic forgetting" common in other approaches.

Discussion

A key advantage of Meta R-CNN is its efficiency. Because class-attentive vectors can be pre-computed for the support set, inference speed is nearly identical to a standard Faster R-CNN, adding only 1-2 milliseconds of latency. Furthermore, T-SNE visualizations reveal that the model naturally groups similar concepts (e.g., "car," "bus," and "train") together in the feature space, even with minimal examples.

Despite its success, challenges remain. Performance at the 1-shot level is volatile, as the quality of the single support sample heavily influences the outcome. Future work may involve adapting this remodeling logic to one-stage detectors or extending the framework to few-shot relationship detection.

Summary updated

BibTeX
@inproceedings{yan2019meta,
  author = {Xiaopeng Yan and Ziliang Chen and Anni Xu and Xiaoxi Wang and Xiaodan Liang and Liang Lin},
  title = {{Meta R-CNN : Towards General Solver for Instance-level Low-shot Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00967},
}
Figure