atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

An Empirical Study Into What Matters for Calibrating Vision-Language Models

ICML 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Adapting VLMs for zero-shot classification · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Empirical study of calibration of 35 vision-language models (mainly zero-shot CLIP variants) showing temperature scaling makes VLMs well calibrated under distribution, label-set, hierarchy, and calibration-set-size shifts, and that synthetic calibration data can work.

Problem

Uncertainty estimation and calibration of vision-language models under distribution shift, label-set changes, label hierarchy changes, and limited calibration data remain under-explored, though VLMs are deployed in risk-sensitive settings.

Approach

Systematically evaluates which factors (calibration distribution, label set, hierarchy level, calibration set size, feature-space distance, prompts, calibration method) affect post-hoc calibration of many VLMs, finding temperature scaling calibrates VLMs robustly and that synthetic images from Stable Diffusion with GPT-3 descriptions can serve as calibration data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply temperature scalingVLMs · ImageNet ID and OOD, including ImageNet-S and ImageNet-RAverage ECE: average ECE, dropping to $0.05$Helped
Apply temperature scalingImageNet-trained models · ImageNet ID and OOD, including ImageNet-S and ImageNet-RAverage ECE: ECE, rising to $0.15$Hurt
Calibrate on synthetic images generated from fine-grained class labelsVLMs · ImageNet-SMECE: 0.17 -> 0.07Helped
Calibrate on synthetic images generated from fine-grained class labelsVLMs · ImageNet-SMAE: 16.49 -> 6.35Helped
Calibrate on synthetic images generated from fine-grained class labelsVLMs · ImageNet-SSpearman's rank correlation (ρ): 0.76 -> 0.93Helped
Calibrate using one prompt with temperature scalingMaPLe · ImageNet-SECE: 0.0364 -> 0.0073Helped
Calibrate using one prompt with temperature scalingMaPLe · ImageNet-V2-AECE: 0.0159 -> 0.0165Hurt
Calibrate using one prompt with temperature scalingMaPLe · ImageNet-RECE: 0.0264 -> 0.0073Helped
Calibrate using one prompt with temperature scalingPromptSRC · ImageNet-SECE: 0.0323 -> 0.0071Helped
Calibrate using one prompt with temperature scalingPromptSRC · ImageNet-V2-AECE: 0.0175 -> 0.0173Helped
Calibrate using one prompt with temperature scalingPromptSRC · ImageNet-RECE: 0.0328 -> 0.0071Helped
Use a different calibration label set from the target label setVLMs with temperature scaling · ImageNet-R and ImageNet-SECEHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet CIFAR-10 DomainNet ImageNet-V2-A ImageNet-R ImageNet-S ObjectNet CIFAR-10.1 CIFAR-10.2 CINIC BREEDS EuroSAT

Benchmarks: ImageNet CIFAR-10 DomainNet ImageNet-V2-A ImageNet-R ImageNet-S ObjectNet CIFAR-10.1 CIFAR-10.2 CINIC EuroSAT

Metrics: expected calibration error R^2 Spearman rank correlation mean absolute error of confidence Frechet inception distance

Baselines: ImageNet-trained models (ResNet, ViT, Swin, ConvNeXt, DeiT) no calibration histogram binning vector scaling spline calibration

Builds on: CLIP temperature scaling CuPL BREEDS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy