Decoupling Classifier for Boosting Few-shot Object Detection and Instance Segmentation

Bin-Bin Gao, Xiaochen Chen, Zhongyi Huang, Congchong Nie, Jun Liu, Jinxiang Lai, Guannan Jiang, Xi Wang, Chengjie Wang

TL;DR

Researchers have identified a "missing label" flaw inherent in how we benchmark few-shot object detection, where unlabeled objects are incorrectly used as negative training samples. By simply decoupling the classification head into two parallel paths—one for clear positives and one for constrained negatives—the authors achieved state-of-the-art results on PASCAL VOC and MS-COCO without adding any extra parameters or computational overhead.

What Problem Does This Paper Address?

In Few-Shot Object Detection (FSOD) and Instance Segmentation (FSIS), the goal is to train a model to recognize new objects using only a handful of examples (e.g., 1 to 30 "shots"). However, there is a hidden trap in the way these benchmarks are constructed.

When we create a "3-shot" training set, we label exactly three instances of a novel class. But images are messy; a single photo might contain five dogs even if we only label three of them.

Example of the missing label issue in few-shot object detection.

In standard training, the unlabeled instances are treated as "background." This creates a biased classification problem: the model is simultaneously told that a dog is a "dog" (positive sample) and that an unlabeled dog is "background" (noisy negative sample). This "missing label issue" confuses the model, severely limiting its ability to generalize to novel classes.

Methods

The authors propose an "embarrassingly simple" but effective solution called the Decoupling Classifier (DC).

Standard classifiers use a single softmax layer to predict a probability distribution across all classes (including background). The DC approach splits this into two parallel heads:

  1. Positive (Foreground) Head: This head handles the labeled instances. It uses standard cross-entropy loss to ensure the model correctly identifies the objects we know are there.
  2. Negative (Background) Head: This is the clever part. Instead of letting the background class compete with every possible object category, the authors use a constrained logit. They create an image-level mask based on which classes are actually labeled in that specific image. The negative head only learns to distinguish the background from the classes present in the labels.

By ignoring the categories that might be present but aren't labeled in a specific image, the model avoids the penalty of "correctly" detecting an unlabeled object. This allows the model to learn novel classes effectively while mitigating the interference from noisy negative samples.

Datasets

The researchers evaluated their method on the two "gold standards" of the field:

  • PASCAL VOC: 20 categories, split into 15 base classes and 5 novel classes.
  • MS-COCO: 80 categories, split into 60 base classes and 20 novel classes.

They tested across multiple "shot" counts (1, 2, 3, 5, 10, 30) and evaluated both standard few-shot settings and "generalized" settings (gFSOD/gFSIS), where the model must recognize new classes without forgetting the original base classes.

Key Insights and Ideas

  • The Benchmark is the Problem: The "missing label issue" isn't just a data quality problem; it's a structural byproduct of how the computer vision community defines "shots" in benchmarks.
  • The "Aha!" Moment: You don't need complex "pseudo-labeling" (guessing where the missing labels are) to fix the bias. You just need to stop the model from learning the wrong things about the background.
  • Zero-Cost Improvement: Unlike many SOTA methods that add complex attention modules or extra branches, the Decoupling Classifier adds zero parameters and zero extra FLOPs (floating-point operations) during inference. It is a pure algorithmic refinement of the loss function.

Key Results

The Decoupling Classifier consistently outperformed the previous state-of-the-art (DeFRCN) across almost all benchmarks:

  • MS-COCO (FSIS): In the ultra-low 1-shot setting, the model achieved 7.18 AP, significantly outperforming the baseline Mask-DeFRCN (6.69 AP).
  • PASCAL VOC (gFSOD): The model showed a massive jump in performance for novel classes. For example, in the 1-shot "Novel Set 1," it reached 45.8 AP, compared to the baseline's 40.2 AP.
  • Robustness: The authors found that their method is particularly potent in low-shot scenarios (1-3 shots) where the missing label rate is highest.
Missing label rates across different shot settings, often exceeding 80% in low-shot scenarios.

As shown above, missing label rates can sometimes exceed 80% in generalized few-shot settings, making the Decoupling Classifier's noise-mitigation strategy essential for stable training.

Limitations and Future Work

The authors acknowledge one primary limitation: the method is designed specifically to handle the "missing label" noise. If a dataset is perfectly labeled (i.e., every single instance of every class is annotated), the decoupling mechanism provides less benefit. However, their experiments show that even in cases with low missing-label rates, the model remains robust and comparable to standard classifiers.

Future work could involve exploring how this decoupling strategy might be applied to other areas of computer vision, such as open-vocabulary detection, where the "background" is even more ambiguous.

Summary updated

BibTeX
@inproceedings{gao2022decoupling,
  author = {Bin-Bin Gao and Xiaochen Chen and Zhongyi Huang and Congchong Nie and Jun Liu and Jinxiang Lai and GUANNAN JIANG and Xi Wang and Chengjie Wang},
  title = {{Decoupling Classifier for Boosting Few-shot Object Detection and Instance Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=dVXO3Orjmxk},
}
Figure