GalLoP: Learning Global and Local Prompts for Vision-Language Models - Institut national de l’information géographique et forestière - Ecole nationale des sciences géographiques
Communication Dans Un Congrès Année : 2024

GalLoP: Learning Global and Local Prompts for Vision-Language Models

Résumé

Prompt learning has been widely adopted to efficiently adapt vision-language models (VLMs), e.g. CLIP, for few-shot image classification. Despite their success, most prompt learning methods trade-off between classification accuracy and robustness, e.g. in domain generalization or out-of-distribution (OOD) detection. In this work, we introduce Global-Local Prompts (GalLoP), a new prompt learning method that learns multiple diverse prompts leveraging both global and local visual features. The training of the local prompts relies on local features with an enhanced vision-text alignment. To focus only on pertinent features, this local alignment is coupled with a sparsity strategy in the selection of the local features. We enforce diversity on the set of prompts using a new ``prompt dropout'' technique and a multiscale strategy on the local prompts. GalLoP outperforms previous prompt learning methods on accuracy on eleven datasets in different few shots settings and with various backbones. Furthermore, GalLoP shows strong robustness performances in both domain generalization and OOD detection, even outperforming dedicated OOD detection methods. Code and instructions to reproduce our results will be open-sourced.
Fichier principal
Vignette du fichier
2407.01400v1.pdf (13.84 Mo) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04635800 , version 1 (04-07-2024)

Identifiants

Citer

Marc Lafon, Elias Ramzi, Clément Rambour, Nicolas Audebert, Nicolas Thome. GalLoP: Learning Global and Local Prompts for Vision-Language Models. The 18th European Conference on Computer Vision ECCV 2024, Sep 2024, Milan, Italy. ⟨10.48550/arXiv.2407.01400⟩. ⟨hal-04635800⟩
196 Consultations
52 Téléchargements

Altmetric

Partager

More