PANDAS: Prototype-based Novel Class Discovery and Detection

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

TL;DR

This paper introduces PANDAS, a novel method for object detectors to automatically discover and detect new object classes without manual intervention. PANDAS achieves state-of-the-art performance on challenging benchmarks while being significantly more computationally efficient than existing methods.

What Problem Does This Paper Address?

Traditional object detectors are trained on a fixed set of classes and struggle when encountering new, previously unseen object categories in real-world applications. This "closed-world" assumption is unrealistic, as new classes constantly emerge. The problem is to extend existing detectors to not only identify these novel classes but also to learn to detect them alongside the original classes, all without requiring manual annotations or prior knowledge of the number of new classes. This is particularly challenging for object detection, which requires both localization and classification, unlike simpler classification tasks.

Methods

PANDAS is a prototype-based method that operates in two phases:

  • Base Phase: A standard object detector (Faster R-CNN with FPN and ResNet-50 backbone) is trained on labeled data for a set of "base" classes. A key modification is the use of a class-agnostic regression head. After training, prototypes for each base class are computed from the features of ground truth bounding boxes.
  • Discovery Phase: The detector's weights are frozen. Using unlabeled "discovery" data, the model generates region proposals and extracts features. These features are then clustered to identify potential novel classes. The centers of these clusters serve as "novel" prototypes.
  • Inference: During inference, the model computes similarity scores between the features of detected object proposals and both the base class prototypes and the novel class prototypes. A distance-based classifier then assigns a label (either a base class or a discovered novel class) to each detected object. A background classifier is also employed to improve performance, especially on smaller datasets.

Datasets

  • PASCAL VOC 2012: Used for initial design choices and experiments. A 10-10 split was used, with 10 base classes and 10 novel classes.
  • COCO→LVIS: A more challenging benchmark combining MS COCO 2017 and LVIS v1 datasets, featuring a long-tailed distribution of over 1200 classes. This dataset was used for more realistic evaluation.

Key Insights and Ideas

  • Prototype-based classification is effective for novel class discovery: Representing both known and unknown classes with prototypes simplifies the decision-making process during inference.
  • Unsupervised discovery of novel classes is feasible: PANDAS demonstrates that novel classes can be effectively discovered and integrated into an object detector without any manual labels for these new classes.
  • Computational efficiency is a major advantage: PANDAS significantly outperforms existing methods like RNCDL in terms of speed, making it more practical for real-world deployment.
  • A background classifier is crucial for performance: The inclusion of a dedicated background classifier significantly improves detection accuracy, particularly on smaller datasets.
  • Ground truth prototypes for base classes are beneficial: Using actual ground truth labels for base class prototypes leads to better performance compared to clustering all classes.

Key Results

  • VOC 2012: PANDAS outperforms the state-of-the-art RNCDL by 12.0% mAP on novel classes while running over 36 times faster.
  • COCO→LVIS: PANDAS achieves 2.5% higher mAP on novel classes than RNCDL, running over five times faster.
  • Computational Cost: PANDAS is significantly more efficient, requiring an average of 806 minutes on COCO→LVIS compared to RNCDL's 4296 minutes.
  • Qualitative Results: PANDAS successfully detects both base and novel classes, though it sometimes struggles with semantically similar classes or distinguishing multiple instances of the same novel object. Interestingly, PANDAS sometimes discovers objects not present in the ground truth, suggesting potential for automatic annotation.

Limitations and Future Work

  • Limitations:
    • PANDAS can struggle with semantically similar classes, leading to confusion (e.g., horse vs. sheep).
  • Detecting multiple instances of the same novel object can be challenging.
  • The performance on novel classes can degrade if the number of clusters is not appropriately chosen.
  • While PANDAS is efficient, the discovery phase still requires significant computation, especially with a large number of clusters.
  • Future Work:
    • Develop methods for updating feature representations during the discovery phase to better adapt to new classes, while mitigating catastrophic forgetting.
  • Leverage stronger pre-trained base detectors to further improve performance.
  • Explore vision-language models for more robust semantic class assignment to discovered clusters, reducing reliance on manual annotation for evaluation.
  • Extend PANDAS to other detection architectures (e.g., transformer-based detectors) and tasks like semantic segmentation.

Summary updated

BibTeX
@inproceedings{hayes2024pandas,
  author = {Tyler L. Hayes and César Roberto 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