Image-Caption Encoding for Improving Zero-Shot Generalization

Eric Yang Yu, Christopher Liao, Sathvik Ravi, Theodoros Tsiligkaridis, Brian Kulis
2/5/2024
cs.CVcs.CLcs.LG

Official code: Chris210634/ice (7 stars, last commit 2024-02-01).

Abstract

Recent advances in vision-language models have combined contrastive approaches with generative methods to achieve state-of-the-art (SOTA) on downstream inference tasks like zero-shot image classification. However, a persistent issue of these models for image classification is their out-of-distribution (OOD) generalization capabilities. We first show that when an OOD data point is misclassified, the correct class can be typically found in the Top-K predicted classes. In order to steer the model prediction toward the correct class within the top predicted classes, we propose the Image-Caption Encoding (ICE) method, a straightforward approach that directly enforces consistency between the image-conditioned and caption-conditioned predictions at evaluation time only. Intuitively, we take advantage of unique properties of the generated captions to guide our local search for the correct class label within the Top-K predicted classes. We show that our method can be easily combined with other SOTA methods to enhance Top-1 OOD accuracies by 0.5% on average and up to 3% on challenging datasets. Our code: https://github.com/Chris210634/ice

View on arXivView PDF

Code Implementations(1)

Chris210634/iceOfficial100%
70Shell, PythonJan 30, 20242 years ago

Similar Papers

Cite this paper

@article{yu2024imagecaption,
  title  = {Image-Caption Encoding for Improving Zero-Shot Generalization},
  author = {Eric Yang Yu and Christopher Liao and Sathvik Ravi and Theodoros Tsiligkaridis and Brian Kulis},
  year   = {2024},
  eprint = {2402.02662},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.02662v1}
}

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/2402.02662.svg)](https://codeofpaper.com/paper/2402.02662)

Discussion