Skip to main navigation Skip to search Skip to main content

Transductive Zero-Shot and Few-Shot CLIP

  • Ségolène Martin
  • , Yunshi Huang
  • , Fereshteh Shakeri
  • , Jean Christophe Pesquet
  • , Ismail Ben Ayed
  • Université Paris-Saclay
  • École de technologie supérieure

Research output: Contribution to Book/Report types › Contribution to conference proceedings › peer-review

41 Citations (Scopus)

Abstract

Transductive inference has been widely investigated in few-shot image classification, but completely overlooked in the recent, fast growing literature on adapting vision-langage models like CLIP. This paper addresses the transductive zero-shot and few-shot CLIP classification challenge, in which inference is performed jointly across a mini-batch of unlabeled query samples, rather than treating each instance independently. We initially construct informative vision-text probability features, leading to a classification problem on the unit simplex set. Inspired by Expectation-Maximization (EM), our optimization-based classification objective models the data probability distribution for each class using a Dirichlet law. The minimization problem is then tackled with a novel block Majorization-Minimization algorithm, which simultaneously estimates the distribution parameters and class assignments. Extensive numerical experiments on 11 datasets underscore the benefits and efficacy of our batch inference approach. On zero-shot tasks with test batches of 75 samples, our approach yields near 20% improvement in ImageNet accuracy over CLIP's zero-shot performance. Additionally, we outperform state-of-the-art methods in the few-shot setting. The code is available at: https://github.com/SegoleneMartin/transductive-CLIP.

Original languageEnglish
Title of host publicationProceedings - 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024
PublisherIEEE Computer Society
Pages28816-28826
Number of pages11
ISBN (Electronic)9798350353006
DOIs
Publication statusPublished - 2024
Event2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024 - Seattle, United States
Duration: 16 Jun 2024 → 22 Jun 2024

Publication series

NameProceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition
ISSN (Print)1063-6919

Conference

Conference2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024
Country/TerritoryUnited States
CitySeattle
Period16/06/24 → 22/06/24

!!!Keywords

  • expectation-maximization
  • few-shot
  • text-vision models
  • transductive learning
  • zero-shot

Fingerprint

Dive into the research topics of 'Transductive Zero-Shot and Few-Shot CLIP'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this