PANDAS: Prototype-based Novel Class Discovery and Detection

Tyler L. Hayes, César R. de Souza, Namil Kim, Jiwon Kim, Riccardo Volpi, Diane Larlus

TL;DR

This paper introduces PANDAS, a novel method for object detection that can discover and detect new object classes not seen during training, without requiring manual annotations or knowing the number of new classes beforehand. PANDAS achieves competitive performance with state-of-the-art methods while being significantly faster and more computationally efficient.

What Problem Does This Paper Address?

Traditional object detectors are trained on a fixed set of classes, making them brittle when encountering new, unseen objects in real-world applications. This "closed-world" assumption is unrealistic, as new object categories frequently emerge. While some methods exist to handle "unknown" objects or incrementally learn new classes, they often require manual intervention (e.g., new annotations) or struggle with catastrophic forgetting of previously learned classes. This paper tackles the more challenging scenario of Novel Class Discovery (NCD) for object detection, where the goal is to automatically discover and detect new classes from unlabeled data while maintaining performance on existing classes, all without manual supervision.

Methods

PANDAS employs a two-phase approach:

  1. Base Phase: A standard object detector (Faster R-CNN with a ResNet-50 backbone and FPN) is trained on labeled data for a set of "base" classes. Crucially, a class-agnostic regression head is used instead of a per-class one. After training, prototypes (average feature vectors) are computed for each base class using the ground truth object features.
  2. Discovery Phase: The detector's weights from the base phase are frozen. Using unlabeled "discovery" data, the model extracts features for proposed object regions. These features are then clustered (using k-means) to identify potential novel classes, with each cluster center serving as a "novel prototype."
  3. Inference: During inference, for each detected object proposal, its feature vector is compared against both the base class prototypes and the novel class prototypes using a distance-based similarity metric. A background classifier is also used to distinguish novel objects from background noise. The final prediction combines scores for base classes, novel clusters, and the background.

A key aspect is the use of prototypes to represent both known and discovered classes, enabling a unified distance-based classification mechanism.

Datasets

  • Pascal VOC 2012 (VOC): Used for initial design choices and experiments. A 10-10 split (10 base, 10 novel classes) was employed.
  • COCO→LVIS: A more challenging benchmark used for validation, featuring a long-tailed distribution of over 1200 classes. This benchmark combines images from COCO and LVIS datasets.

Key Insights and Ideas

  • Prototype-based classification is powerful for NCD: Representing both base and novel classes with prototypes allows for a unified, distance-based classifier, simplifying the detection pipeline and avoiding the need for separate base and novel classifiers.
  • Simplicity leads to efficiency: PANDAS's straightforward approach, avoiding complex self-supervised learning or memory modules, results in significantly faster training and inference times compared to state-of-the-art methods.
  • Ground truth base prototypes are beneficial: Using actual ground truth features for base classes, rather than learned clusters, leads to better performance, especially when the number of novel clusters is limited.
  • Background classifier is crucial: The inclusion of a background classifier significantly improves performance, particularly on smaller datasets, by helping to distinguish novel objects from background clutter.

Key Results

  • Performance: PANDAS achieves competitive performance on both VOC and COCO→LVIS benchmarks, outperforming the state-of-the-art RNCDL method on novel classes. For example, on VOC, PANDAS achieved 12% higher mAP on novel classes.
  • Speed: PANDAS is significantly faster than RNCDL. On VOC, it runs over 36 times faster, and on LVIS, it's over five times faster. PANDAS required approximately 806 GPU minutes on LVIS, compared to RNCDL's 4296 minutes.
  • Scalability: The method is shown to be effective with varying numbers of novel clusters, with performance plateauing around 1000-5000 clusters.
  • Qualitative results: PANDAS successfully detects base classes and discovers novel classes, though it can sometimes struggle with semantically similar classes or fine-grained distinctions. Interestingly, in some cases, PANDAS discovers objects not present in the ground truth, suggesting potential for automatic annotation.

Limitations and Future Work

  • Detection of novel objects: The paper acknowledges that detecting the presence of novel objects is challenging, with class-agnostic metrics showing lower AP for novel object detection. This is identified as an important area for future research, potentially combining unsupervised object discovery with novel class discovery.
  • Semantic similarity: PANDAS can struggle with semantically similar classes (e.g., horse vs. sheep, cow vs. sheep), which is a common challenge in NCD.
  • Vision-language models for assignment: While Hungarian matching is used for evaluation, the paper explores using vision-language models like CLIP for assigning semantic labels to discovered clusters, which could eliminate the need for annotated data.
  • Updating feature representations: Future work could explore methods that update feature representations during the discovery phase, rather than using frozen features, to better tailor them to new classes, while carefully handling catastrophic forgetting.
  • Stronger base detectors: Leveraging stronger pre-trained base detectors could further improve performance.

Summary updated

BibTeX
@inproceedings{hayes2024pandas,
  author = {Tyler L. Hayes and César R. de Souza and Namil Kim and Jiwon Kim and Riccardo Volpi and Diane Larlus},
  title = {{PANDAS: Prototype-based Novel Class Discovery and Detection}},
  booktitle = {CoLLAs},
  year = {2024},
  url = {https://openreview.net/forum?id=5GlJYLleg3},
}
Figure