Abstract
Modern neural networks often exhibit overconfidence in erroneous predictions, posing risks in critical applications. Traditional Misclassification Detection (MisD) methods are computationally expensive and struggle with domain shifts. We present FSMisD, a few-shot learning framework for Vision-Language Models (VLMs) that identifies misclassifications without full retraining. By leveraging adaptive pseudo-sample generation and a novel negative loss, FSMisD reduces overconfidence and cuts tuning time by up to 87% compared to traditional CNN-based methods.
Introduction
The "blind confidence" of deep learning models—where incorrect predictions are made with high certainty—remains a significant hurdle for deployment in high-stakes environments like autonomous driving or medical diagnostics. Misclassification Detection (MisD) aims to flag these errors. However, current approaches typically require training from scratch on massive datasets, making them inefficient and poorly scalable to new domains.
FSMisD addresses these challenges by shifting the focus from retraining vision-only models to fine-tuning pre-trained Vision-Language Models (VLMs) like CLIP. This approach allows for robust error detection using only a handful of labeled examples (few-shot learning).
Methodology
The FSMisD framework consists of three primary innovations designed to calibrate model confidence:
Few-Shot Prompt Learning
Instead of updating the entire model's weights, FSMisD learns specific "category prompts" (textual descriptions) using a limited number of images (e.g., 1 to 16 shots). This preserves the rich, pre-trained knowledge of the VLM while adapting it to the target task.
Adaptive Pseudo Sample Generation
To teach the model to recognize uncertainty, the authors utilize random cropping. Crops with the lowest similarity to the target category are identified as "pseudo-negative" samples. These samples represent ambiguous or difficult visual features that might otherwise lead to overconfident misclassifications.
Negative Loss and Orthogonalization
A Negative Loss function is employed to push category prompts away from these pseudo-negative features, effectively training the model to lower its confidence when encountering ambiguous inputs. Additionally, an Orthogonalization Loss ensures that the learned negative prompts are diverse, covering a broad spectrum of potential error states in the feature space.
Experimental Results
FSMisD was evaluated across a wide range of datasets, including ImageNet-1k, adversarial sets (ImageNet-A), and domain-shifted sets (ImageNet-R, ImageNet-Sketch).
Efficiency and Speed
FSMisD demonstrates a massive reduction in computational overhead. It requires only 15% of the training epochs (30 vs. 200) and achieves an 87% reduction in absolute tuning time compared to traditional CNN-based MisD baselines.
Detection Performance and Robustness
On ImageNet-1k (16-shot), FSMisD significantly outperformed prompt-learning baselines like CoOp in terms of FPR95 (False Positive Rate at 95% True Positive Rate). Furthermore, the model showed superior generalization under domain shifts, maintaining high detection accuracy on sketches and artistic renditions where traditional models often fail.
Conclusion and Future Work
FSMisD proves that Vision-Language Models can be transformed into efficient, robust error detectors with minimal data. By mining uncertainty from image crops and using negative loss to calibrate confidence, the framework provides a practical solution for real-world AI safety. Future research will explore integrating this framework into larger foundation models and optimizing it for real-time applications on edge devices.
Summary updated