Snapshot Prompt: A Reliable Prompt Learning for Domain Adaptive Few-Shot Learning
Abstract
Prompt learning has emerged as a powerful technique for adapting vision-language models like CLIP to new domains with limited data. However, existing approaches typically rely on a single learned prompt during inference, which may struggle to generalize across diverse data domains. Moreover, most methods prioritize classification accuracy while overlooking the capability of rejecting unreliable predictions. To address these limitations, we propose a prompt ensembling framework that dynamically captures and stores multiple diverse prompts during training. At inference, scores corresponding to these prompts are combined through ensemble-averaged softmax probabilities, improving the reliability of confidence-based rejection. This ensembling mechanism enhances the model’s ability to reject incorrect predictions by leveraging complementary information across different prompt variations. Across domain-adaptive few-shot learning benchmarks, our method consistently improves the reliability of confidence-based rejection, achieving the lowest AURC and EAURC in all settings, with relative reductions of up to 33.63% and 30.35% over the strongest baseline. It also maintains competitive classification accuracy, with gains of up to 1.65 percentage points.