CVCLLGApr 4, 2023

Black Box Few-Shot Adaptation for Vision-Language models

arXiv:2304.01752v349 citationsh-index: 32
Originality Highly original
AI Analysis

This addresses the computational and accessibility limitations of existing few-shot adaptation methods for vision-language models, offering a more efficient solution.

The paper tackles the problem of adapting vision-language models for few-shot learning without accessing model weights, proposing a black-box method called Linear Feature Alignment (LFA) that is faster and can outperform soft-prompt learning on 11 image and 2 video datasets.

Vision-Language (V-L) models trained with contrastive learning to align the visual and language modalities have been shown to be strong few-shot learners. Soft prompt learning is the method of choice for few-shot downstream adaptation aiming to bridge the modality gap caused by the distribution shift induced by the new domain. While parameter-efficient, prompt learning still requires access to the model weights and can be computationally infeasible for large models with billions of parameters. To address these shortcomings, in this work, we describe a black-box method for V-L few-shot adaptation that (a) operates on pre-computed image and text features and hence works without access to the model's weights, (b) it is orders of magnitude faster at training time, (c) it is amenable to both supervised and unsupervised training, and (d) it can be even used to align image and text features computed from uni-modal models. To achieve this, we propose Linear Feature Alignment (LFA), a simple linear approach for V-L re-alignment in the target domain. LFA is initialized from a closed-form solution to a least-squares problem and then it is iteratively updated by minimizing a re-ranking loss. Despite its simplicity, our approach can even surpass soft-prompt learning methods as shown by extensive experiments on 11 image and 2 video datasets.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes