ECO: Ensembling Context Optimization for Vision-Language Models

Lorenzo Agnolucci, Alberto Baldrati, Francesco Todino, Federico Becattini, Marco Bertini +1 more
7/26/2023
cs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Image recognition has recently witnessed a paradigm shift, where vision-language models are now used to perform few-shot classification based on textual prompts. Among these, the CLIP model has shown remarkable capabilities for zero-shot transfer by matching an image and a custom textual prompt in its latent space. This has paved the way for several works that focus on engineering or learning textual contexts for maximizing CLIP's classification capabilities. In this paper, we follow this trend by learning an ensemble of prompts for image classification. We show that learning diverse and possibly shorter contexts improves considerably and consistently the results rather than relying on a single trainable prompt. In particular, we report better few-shot capabilities with no additional cost at inference time. We demonstrate the capabilities of our approach on 11 different benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{agnolucci2023eco,
  title  = {ECO: Ensembling Context Optimization for Vision-Language Models},
  author = {Lorenzo Agnolucci and Alberto Baldrati and Francesco Todino and Federico Becattini and Marco Bertini and Alberto Del Bimbo},
  year   = {2023},
  eprint = {2307.14063},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.14063v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.14063.svg)](https://codeofpaper.com/paper/2307.14063)

Discussion