atlas

Research map / Large language models / Language, safety and interpretability

Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineering

ICLR 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 8 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.

Proposes Batch Calibration (BC), a zero-shot inference-only method that removes contextual bias by subtracting the batch-marginal LLM output, plus a single-parameter labeled extension (BCL), evaluated on PaLM 2 and CLIP.

Problem

LLM prompting and in-context learning are sensitive to contextual bias from templates, verbalizers, and demonstrations; existing calibration methods (CC, DC, PC) have failure cases, especially on multi-sentence tasks.

Approach

Estimate the contextual bias term as the mean of LLM output scores over the unlabeled test batch and subtract it from each prediction (linear decision boundary shift), with an optional learned strength gamma for a few-shot variant (BCL).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply Batch Calibration to 1-shot ICLPaLM 2-S · 13 NLP tasks (Avg.)accuracy (%): 66.20 -> 74.41Helped
apply Batch Calibration to 1-shot ICLPaLM 2-L · 13 NLP tasks (Avg.)accuracy (%): 75.16 -> 81.09Helped
learn the calibration strength using labeled data (BCL) instead of fixed-strength BCPaLM 2-S · 13 NLP tasks (Avg.)accuracy (%): 74.3 -> 75.3Helped
apply Batch Calibration to zero-shot CLIPCLIP ViT-B/16 · Image tasks (Avg.)accuracy (%): 36.7 -> 41.5Helped
apply Batch Calibration to zero-shot CLIPCLIP ViT-B/16 · UCF101accuracy (%): 66.7 -> 66.0Hurt
vary prompt template while using BCPaLM 2-S with BC · RTEaccuracy (%): 84.1, 80.9, 82.3, 85.6, 84.1, 81.2, 88.1, 82.3, 83.0, 86.6Mixed
vary verbalizer design while using BCPaLM 2-S with BC · RTEaccuracy (%): 84.1, 83.4, 83.4, 80.1, 78.0, 70.0, 82.7, 82.7, 83.8, 83.8Mixed

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 MNLI QNLI MRPC QQP BoolQ CB COPA RTE WiC ANLI-R1 ANLI-R2

Benchmarks: SST-2 MNLI QNLI MRPC QQP BoolQ CB COPA RTE WiC ANLI-R1 ANLI-R2

Metrics: accuracy

Baselines: ICL Contextual Calibration Domain-Context Calibration Prototypical Calibration zero-shot CLIP

Builds on: contextual calibration domain-context calibration prototypical calibration

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