PictSure: Pretraining Embeddings Matters for In-Context Learning Image Classifiers
Schiesser, Lukas, Wolff, Cornelius, Haas, Sophie, Pukrop, Simon
–arXiv.org Artificial Intelligence
Building image classification models remains cumbersome in data-scarce domains, where collecting large labeled datasets is impractical. In-context learning (ICL) has emerged as a promising paradigm for few-shot image classification (FSIC), enabling models to generalize across domains without gradient-based adaptation. However, prior work has largely overlooked a critical component of ICL-based FSIC pipelines: the role of image embeddings. In this work, we present PictSure, an ICL framework that places the embedding model -- its architecture, pretraining, and training dynamics -- at the center of analysis. We systematically examine the effects of different visual encoder types, pretraining objectives, and fine-tuning strategies on downstream FSIC performance. Our experiments show that the training success and the out-of-domain performance are highly dependent on how the embedding models are pretrained. Consequently, PictSure manages to outperform existing ICL-based FSIC models on out-of-domain benchmarks that differ significantly from the training distribution, while maintaining comparable results on in-domain tasks. Code can be found at https://github.com/PictSure/pictsure-library.
arXiv.org Artificial Intelligence
Jun-19-2025
- Country:
- North America > United States (0.46)
- Asia (0.46)
- Genre:
- Research Report > New Finding (0.46)
- Industry:
- Health & Medicine (0.68)
- Technology: