Abstract
Standard transductive few-shot learning methods often fail in real-world scenarios where the query set contains "outliers"—samples from classes not present in the support set. This paper introduces OSLO (Open-Set Likelihood Optimization), a framework that treats the "inlierness" of each sample as a latent variable. By alternating between classification and outlier detection, OSLO leverages the power of transduction while remaining robust to open-set noise. Experimental results across multiple architectures and datasets demonstrate that OSLO significantly outperforms existing methods in both classification accuracy and outlier detection.
1. Introduction
Few-Shot Classification (FSC) aims to recognize new categories using only a handful of labeled examples. While transductive methods—which process the entire unlabeled query set simultaneously—have shown superior performance over inductive methods, they typically operate under a "closed-set" assumption. This assumption mandates that every query sample must belong to one of the classes represented in the support set.
In practical applications, this assumption is frequently violated. Query sets often contain outliers from unknown classes, a problem known as Few-Shot Open-Set Recognition (FSOSR). When traditional transductive algorithms encounter these outliers, they attempt to force them into known categories, which pollutes the class prototypes and degrades overall accuracy. OSLO addresses this by generalizing the maximum likelihood principle to account for potential outliers during the optimization process.
2. The OSLO Framework
OSLO introduces a principled way to handle outliers by treating the "inlierness" of a query sample as a latent variable, $\xi_i$. Instead of a binary assignment, the model optimizes for a soft likelihood that a sample belongs to the known distribution.
2.1 Optimization via Block-Coordinate Descent
The framework solves the likelihood maximization problem by alternating between three closed-form updates:
- Inlierness Update: The model identifies potential outliers based on their distance from current class centers. Samples that do not fit well into any known class are assigned a lower inlierness score ($\xi_i \to 0$).
- Assignment Update: Query samples are assigned to classes. The inlierness score acts as a "temperature" or weighting factor, preventing outliers from making high-confidence, incorrect predictions.
- Prototype Update: Class centroids (prototypes) are re-calculated. Crucially, samples with low inlierness scores are down-weighted, ensuring that outliers do not shift the prototypes away from the true class means.
2.2 Modularity and Versatility
One of OSLO's primary strengths is its modularity. It functions as a "wrapper" that can be applied to any pre-trained feature extractor. It requires no additional training or fine-tuning of the backbone, making it compatible with a wide range of architectures including ResNet-12, ResNet-50, Vision Transformers (ViT), and MLP-Mixers.
3. Experimental Evaluation
The authors evaluated OSLO across diverse benchmarks to test its robustness under standard conditions and domain shifts:
- Datasets: mini-ImageNet, tiered-ImageNet, and fine-grained/cross-domain sets such as CUB (birds), FGVC-Aircraft, and Fungi.
- Backbones: Evaluations spanned traditional CNNs and modern transformer-based architectures (e.g., ViT-B/16 pre-trained with DINO).
3.1 Key Results
OSLO consistently established a new state-of-the-art for FSOSR. On the mini-ImageNet 1-shot task, OSLO achieved 71.73% accuracy and 74.92% AUROC for outlier detection. In comparison, the leading transductive competitor (TIM) struggled with a significantly lower AUROC of 62.46%, illustrating the danger of closed-set transduction in open-set environments.
Furthermore, OSLO demonstrated impressive gains in cross-domain scenarios. Using a ViT backbone on the Fungi dataset, the method improved accuracy by approximately 6% and AUROC by 9% over a strong baseline (SimpleShot + k-NN).
4. Discussion
4.1 The Symbiotic Relationship
A core insight of this work is the symbiotic relationship between classification and outlier detection. A precise classifier helps define the boundaries of known data, making outliers more apparent. Conversely, effective outlier detection ensures that the classifier's prototypes remain "pure," leading to better decision boundaries for the known classes.
4.2 Scalability and Robustness
Unlike many transductive methods that degrade in performance as the query set grows more complex or contains more outliers, OSLO is the only method observed to improve its outlier detection (AUROC) as the number of query samples increases. While it remains competitive in "data-starved" scenarios (reverting toward inductive performance), its true strength lies in its ability to extract meaningful statistics from larger query batches without being misled by noise.
5. Conclusion
OSLO provides a robust, principled, and model-agnostic solution to the Few-Shot Open-Set Recognition problem. By integrating inlierness as a latent variable in a transductive likelihood maximization framework, it bridges the gap between high-performance transduction and real-world data unpredictability. Future work may extend this approach to more complex tasks, such as open-set semantic segmentation, where the distinction between known objects and unknown backgrounds is critical.
Summary updated