TL;DR
This paper introduces a novel semi-supervised approach for hierarchical open-set classification, enabling models to leverage unlabeled data containing both known and unknown classes to improve classification accuracy within a class taxonomy. They propose "subtree pseudo-labels" and "age-gating" to address the challenges of unreliable OOD pseudo-labeling and overconfidence, achieving state-of-the-art results.
What Problem Does This Paper Address?
Traditional out-of-distribution (OOD) detection often treats OOD samples as a binary rejection problem. However, in real-world scenarios, OOD samples often semantically relate to known classes and can be organized within a class hierarchy. Hierarchical open-set classification aims to assign these OOD samples to the most appropriate internal node in a known taxonomy, providing more informative predictions than simple rejection. A significant challenge arises when trying to leverage large amounts of unlabeled data, which inherently contain a mix of both in-distribution (ID) and OOD samples. Standard semi-supervised learning techniques, like pseudo-labeling, struggle with OOD data in this hierarchical setting, as confidence scores don't reliably correlate with accuracy for internal nodes, leading to overconfident and overly specific predictions.
Methods
The authors propose SemiHOC, a semi-supervised hierarchical open-set classification framework built upon a teacher-student architecture.
- Teacher-Student Framework: A teacher model (initially ProHOC) generates predictions on unlabeled data, which are then used to train a student model.
- Subtree Pseudo-Labels (SPLs): Instead of assigning a specific class label, SPLs indicate that a sample likely belongs to a particular subtree within the hierarchy. This is more robust for OOD samples, as it acknowledges uncertainty without committing to an incorrect specific leaf node. The confidence for SPLs is calculated by summing probabilities of all nodes within the subtree.
- Age-Gating: This mechanism addresses the problem of overconfidence in SPLs. As training progresses, OOD samples can become assigned to increasingly deep and specific nodes. Age-gating identifies the initial wave of correct SPL assignments for a node and then "gates" or blocks new assignments that occur significantly later in training, preventing the model from becoming overly specific and incorrect. This is implemented by detecting a significant drop in assignment frequency for a node over epochs.
- ProHOC Integration: The framework leverages ProHOC for generating hierarchical predictions, as it's an existing method that doesn't require tuning of an ID/OOD trade-off parameter, which is difficult to set without labeled OOD data.
Datasets
The proposed method is evaluated on three large-scale image classification benchmarks with class hierarchies:
- iNaturalist19: A standard benchmark for hierarchical classification.
- iNaturalist21-Aves: A subset of iNaturalist21 focusing on bird classes.
- SimpleHierImageNet: A custom dataset constructed from ImageNet and WordNet.
For experiments, they create labeled subsets by sampling a fixed number of images per ID class (10, 20, and 50 labels per class). They also introduce out-of-hierarchy OOD data from Office31 for iNaturalist19 and iNaturalist21-Aves.
Key Insights and Ideas
- OOD data is valuable for semi-supervised learning: The core idea is that unlabeled data, even if it contains OOD samples, can be leveraged to improve hierarchical open-set classification performance.
- Confidence is not king for OOD: Standard confidence-based pseudo-labeling fails for internal nodes in a hierarchy because confidence doesn't reliably correlate with accuracy for OOD samples.
- Subtree supervision is more robust: Assigning a sample to a subtree is a more reliable signal for OOD data than assigning it to a specific leaf node, especially early in training.
- Overconfidence is a temporal problem: OOD samples tend to be assigned to increasingly specific (and often incorrect) nodes later in training. Age-gating effectively combats this by recognizing the "sweet spot" for correct assignments.
- Hierarchical structure is key: Explicitly using the class hierarchy is crucial for both understanding OOD samples and for developing effective semi-supervised strategies.
Key Results
- State-of-the-art performance: SemiHOC consistently outperforms baseline methods on the evaluated benchmarks.
- Matches full supervision with limited labels: On the iNaturalist19 benchmark, SemiHOC achieves performance comparable to a fully supervised model trained with all ID labels, using only 20 labeled samples per class.
- Subtree pseudo-labels benefit ID performance: Even when used for OOD samples, accurate subtree pseudo-labels improve the performance on ID classes.
- Age-gating is crucial: Without age-gating, performance degrades over training due to overconfident OOD predictions. Age-gating maintains purity and prevents this degradation.
- Hyperparameter sensitivity: Learning rate and dropout are identified as key hyperparameters that control the trade-off between ID and OOD performance, with a sweet spot found around a learning rate of 0.01 and dropout of 0.3.
Limitations and Future Work
- Hierarchy Assumption: The method assumes that classes can be organized into a meaningful hierarchy and that this hierarchy reflects visually observable concepts. This might not hold for all classification problems.
- OOD Data Distribution: The current evaluations use OOD classes that are present in both the unlabeled training and test sets. An extension would be to consider test sets with entirely unseen OOD classes.
- Future Directions: The authors suggest exploring alternative strategies to age-gating for addressing overconfidence and finding methods to more accurately separate uncertain ID data from OOD data in the semi-supervised setting.
Summary updated