Automatically Discovering and Learning New Visual Categories with Ranking Statistics

Kai Han, Sylvestre-Alvise Rebuffi, Sébastien Ehrhardt, Andrea Vedaldi, Andrew Zisserman

Introduction

This paper introduces a novel framework for Novel Category Discovery (NCD): the task of identifying and clustering completely new types of objects in unlabeled data by leveraging knowledge from a set of previously labeled, different categories. By combining self-supervised pre-training with a unique "ranking statistics" approach to generate pseudo-labels, the authors achieve state-of-the-art performance on major image benchmarks, significantly outperforming previous clustering and transfer learning methods.

The Challenge of Novel Category Discovery

In traditional supervised learning, models assume we have labels for everything we want to recognize. In semi-supervised learning (SSL), we assume we have at least a few labels for every class. But what happens when a model encounters entirely new categories it has never seen before?

Consider a supermarket robot: it knows what a "cereal box" and "milk carton" look like because they were in its training set. Suddenly, a new "protein bar" is stocked. The robot has zero labels for this new item, but it should be able to realize that these new objects look similar to each other and different from the milk. This is the essence of Novel Category Discovery. The primary challenge is transferring the "concept of what makes a category" from known classes to unknown ones without introducing a bias that forces the new objects into old, incorrect categories.

Methodology

To tackle this, the authors propose a robust three-step pipeline:

The proposed three-step pipeline for Novel Category Discovery.
  1. Self-Supervised Pre-training: Instead of starting with supervised learning (which heavily biases the model toward known classes), the pipeline begins with a self-supervised task like RotNet. The model learns to predict the rotation of an image (0°, 90°, 180°, 270°) using the entire dataset—both labeled and unlabeled. This builds a general-purpose feature extractor that understands basic shapes and textures without knowing about specific class labels yet.
  2. Supervised Fine-tuning: Next, the top layers of the network are fine-tuned using the labeled portion of the data. This injects high-level semantic knowledge into the model.
  3. Joint Optimization with Ranking Statistics: This is the framework's "secret sauce." To cluster the unlabeled data, the model needs to know which images belong together.
  4. Ranking Statistics: Instead of comparing feature vectors using simple distance metrics (which can be noisy in high dimensions), the authors look at the indices of the top-$k$ most activated features. If two images share the same "top-5 loudest features," they are highly likely to belong to the same class.
  5. Pseudo-labeling: These ranking matches act as "noisy" labels ($s_{ij}=1$ for a match, $0$ otherwise).
  6. The Loss Function: The model is trained using a joint objective: standard Cross-Entropy for labeled data, Binary Cross-Entropy (BCE) for the pseudo-labeled pairs, and a Consistency Regularization term that ensures an image and its transformed version (e.g., a crop or flip) result in the same prediction.

Key Insights

  • Bias is the Enemy: Starting directly with supervised labels makes the model "blind" to features that define novel classes. Self-supervision provides a "neutral" starting point that captures more diverse visual information.
  • Ranking > Raw Values: In high-dimensional feature spaces, the absolute value of a feature can fluctuate wildly. However, the relative importance (the rank) of features is much more robust. This allows the model to transfer the "logic" of classification from known to unknown categories more effectively.
  • Incremental Learning: The authors demonstrate that the model can be extended to recognize both old and new classes simultaneously in a single unified head, avoiding the "catastrophic forgetting" typically seen when models are updated with new data.

Key Results

The model was evaluated on five standard computer vision benchmarks (CIFAR-10, CIFAR-100, SVHN, OmniGlot, and ImageNet), split into "known" and "novel" subsets. The proposed method outperformed existing state-of-the-art methods (like KCL, MCL, and DTC) by massive margins:

  • CIFAR-10: Achieved 90.4% clustering accuracy on novel classes, compared to the previous best of 87.5%.
  • SVHN: Reached 95.0% accuracy, a huge jump from the previous 60.9%.
  • CIFAR-100: Hit 73.2%, significantly higher than the 56.7% achieved by prior methods.
t-SNE visualization of the clustering progression from initialization to epoch 90.

An ablation study proved that the Binary Cross-Entropy (BCE) loss based on ranking statistics was the most critical component. Removing it caused accuracy on CIFAR-10 to plummet from 90.4% to just 26.2%.

Limitations and Future Work

While highly effective, the framework does have limitations:

  • Known Number of Classes: The primary experiments assume the model knows how many new categories exist ($C^u$) beforehand. While the authors provide a supplemental experiment using an estimation technique to guess the number of classes, the performance is slightly lower.
  • Similarity Assumption: The method relies on the assumption that novel classes share some degree of visual similarity or "feature logic" with known classes. If the novel classes were fundamentally different in nature (e.g., training on natural photos and testing on X-rays), the transfer might be less effective.

Future directions include integrating the estimation of the number of novel categories directly into the end-to-end training process, making the discovery pipeline fully autonomous.

Summary updated

BibTeX
@inproceedings{han2020automatically,
  author = {Kai Han and Sylvestre-Alvise Rebuffi and Sébastien Ehrhardt and Andrea Vedaldi and Andrew Zisserman},
  title = {{Automatically Discovering and Learning New Visual Categories with Ranking Statistics}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure