Abstract
Active Learning (AL) aims to minimize data annotation costs by identifying the most informative samples for human labeling. However, traditional deep AL methods rely on softmax classifiers, which often "falsely generalize" and become overconfident in unknown regions of the feature space. We propose the Nearest Neighbor Classifier Embedded network (NCE-Net), which replaces the standard softmax head with a soft nearest neighbor classifier using learnable prototypes. By utilizing novel metrics like Rejection and Confusion Confidence, NCE-Net effectively identifies informative samples in unknown subspaces. Our experiments on CIFAR-10, CIFAR-100, and PASCAL VOC demonstrate that NCE-Net achieves state-of-the-art performance with significantly fewer labeled samples.
Introduction
In the era of deep learning, the bottleneck for many applications is the high cost of data annotation. Active learning (AL) addresses this by iteratively selecting the most valuable unlabeled samples for annotation. Most current deep AL frameworks utilize the uncertainty of a softmax classifier (e.g., entropy) as the primary selection criterion. While effective in some scenarios, this approach has a fundamental flaw: softmax classifiers are discriminative models that assume the labeled data is perfectly representative of the entire distribution. This leads to poor performance when there is a distribution bias between labeled and unlabeled sets.
The Problem with Softmax Classifiers
The authors argue that softmax classifiers are inherently problematic for AL because they tend to over-generalize. When the model encounters samples in unknown regions of the feature space—areas far from the current labeled set—the softmax function often assigns them to a class with high confidence. This "false generalization" causes the model to miss highly informative samples because it incorrectly assumes it already knows how to classify them.
As shown in the comparison above, the softmax classifier (top) might miss a sample 'q' located in an unknown region. In contrast, a nearest-neighbor-style classifier (bottom) identifies 'q' as being far from any known class prototypes, marking it as a high-priority candidate for labeling.
NCE-Net: Architecture and Methods
To overcome the limitations of softmax, the Nearest Neighbor Classifier Embedded network (NCE-Net) is introduced. Instead of a standard fully connected layer followed by softmax, NCE-Net employs a set of learnable prototype vectors for each class.
Key Components
- Soft Nearest Neighbor Classification: The model calculates the distance between an input's features and these prototypes. Classification is based on these distances using a non-linear activation function, such as a Gaussian kernel.
- NCE Loss: The network is trained using a binary cross-entropy loss based on these distances, encouraging features to cluster tightly around their respective class prototypes.
- New Selection Metrics:
- Rejection Confidence: Measures how far a sample is from all known class prototypes. High rejection indicates the sample is in an unknown area and is likely very informative.
- Confusion Confidence: A specialized version of entropy that identifies samples near the decision boundaries between different class clusters.
Experimental Results
NCE-Net was evaluated on standard image classification and object detection benchmarks, showing consistent improvements over state-of-the-art methods.
- CIFAR-10: NCE-Net achieved 91.01% accuracy with only 20% of the labels, coming within 1.8% of the performance of a model trained on the full dataset (92.81%).
- CIFAR-100: The model consistently outperformed baselines, maintaining a 4.4% lead over the next best method when using 15% of labels.
- Object Detection: On PASCAL VOC, NCE-Net with the "Rejection" metric outperformed standard softmax-based detectors by 2.36% mAP at the 10k label mark.
Conclusion
NCE-Net demonstrates that a simpler, distance-based nearest neighbor classifier generalizes more "progressively" into unknown subspaces than a complex discriminative softmax classifier. By prioritizing samples that the model either rejects (far from known data) or is confused by (near boundaries), NCE-Net provides a more robust and efficient framework for active learning across various computer vision tasks.
Summary updated