Abstract
For open world applications, deep neural networks (DNNs) need to be aware of previously unseen data and adaptable to evolving environments. Furthermore, it is desirable to detect and learn novel classes which are not included in the DNNs underlying set of semantic classes in an unsupervised fashion. The method proposed in this article builds upon anomaly detection to retrieve out-of-distribution (OoD) data as candidates for new classes. We thereafter extend the DNN by $k$ empty classes and fine-tune it on the OoD data samples. To this end, we introduce two loss functions, which 1) entice the DNN to assign OoD samples to the empty classes and 2) to minimize the inner-class feature distances between them. Thus, instead of ground truth which contains labels for the different novel classes, the DNN obtains a single OoD label together with a distance matrix, which is computed in advance. We perform several experiments for image classification and semantic segmentation, which demonstrate that a DNN can extend its own semantic space by multiple classes without having access to ground truth.
Introduction: The Challenge of Open World Recognition
Standard deep learning typically operates in a "closed world" assumption, where a model trained on a fixed set of categories is forced to map every input to one of those known labels. In dynamic real-world environments—such as those encountered by autonomous vehicles or robotic assistants—this limitation is a significant hurdle. True intelligence requires Open World Recognition: the ability to identify novel, out-of-distribution (OoD) data and autonomously incorporate these new concepts into a growing knowledge base.
While incremental learning exists, it usually relies on human-provided labels for new data. Unsupervised alternatives, such as using k-means for pseudo-labeling, are often brittle. This research introduces a framework for unsupervised class-incremental learning, allowing a model to expand its own semantic space without human intervention.
Methodology: Empty Classes and Relationship-Based Supervision
The proposed framework operates in three distinct stages:
- OoD Detection via Entropy Maximization: During initial training, the model is regularized to produce high entropy (maximum uncertainty) when presented with unknown data. This creates a clear signal for flagging novel objects during inference.
- The "Empty Class" Extension: Upon detecting a significant cluster of unknown objects, the network’s final layer is expanded with $k$ "empty classes"—placeholder neurons for potential new categories.
- Fine-tuning with Clustering Loss: The model is fine-tuned using a novel loss strategy that avoids the need for ground truth labels. While a standard Cross-Entropy loss prevents forgetting known classes, an Extension Loss encourages OoD samples into the new empty slots. The core innovation is a Clustering Loss based on a pre-computed distance matrix (using Euclidean distance or UMAP projections). This loss rewards the model for grouping similar-looking objects into the same empty class while separating dissimilar ones.
This "soft" assignment approach allows the network to gradually refine its internal representations of new classes, carving out distinct semantic territory based on feature relationships rather than explicit names.
Experimental Results
The "Empty Classes" method was evaluated across image classification tasks (MNIST, CIFAR10, Animals10) and complex semantic segmentation (Cityscapes).
Image Classification
The approach significantly outperformed traditional clustering baselines. For instance, on the Animals10 dataset, the method achieved 96.68% accuracy on novel classes, compared to 72.59% for the baseline. On CIFAR10, performance more than doubled, reaching 70.00% compared to the baseline's 33.40%.
Semantic Segmentation
In the Cityscapes environment, identifying novel objects is challenging because scenes contain a mix of known and unknown pixels. The authors utilized a meta-regressor to aggregate uncertainty scores into contiguous "blobs," treating them as single novel objects.
As shown in the qualitative results, the model successfully identified and categorized previously unseen human and car classes. Notably, it increased recall for pedestrians by 26.89 percentage points over the baseline, demonstrating a much higher sensitivity to novel semantic entities in complex urban scenes.
Discussion and Future Work
The "aha moment" of this research is that structural information—knowing that "A is like B but unlike C"—is sufficient for a model to expand its vocabulary. By replaying a subset of original data, the model also avoids catastrophic forgetting.
However, several challenges remain. The current system requires a pre-defined number of empty classes ($k$), whereas a truly autonomous system should determine this number dynamically. Additionally, the method's success is tied to the quality of the underlying feature embeddings. Future research may explore incorporating depth information to better separate objects in 3D space and automating the selection of $k$ for truly open-ended learning.
Summary updated