Reproduce “Enabling Calibration In The Zero-Shot Inference of Large Vision-Language Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Will LeVine, Benjamin Pikus, Pranav Raja, Fernando Amat Gil

This work from Scale AI systematically investigates calibration in large vision-language models (VLMs) like CLIP during zero-shot inference, revealing inherent miscalibration. It introduces Zero-Shot-Enabled Temperature Scaling (ZSETS), a method that, by learning a single temperature on an auxiliary dataset, consistently reduces Expected Calibration Error (ECE) across diverse downstream tasks, for instance, reducing ECE from 6.34% to 2.22% for a ViT-B-16 model.

Key insights

  • Out-of-the-box CLIP models are consistently and significantly miscalibrated in zero-shot inference, typically exhibiting overconfidence.
  • A single temperature parameter, learned on an auxiliary dataset, proves robust and generalizable across different downstream inference datasets and natural language prompts for a given CLIP model.
  • This generalization indicates that the optimal temperature for calibration is an intrinsic property of the pre-trained CLIP model configuration rather than being task-specific.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.