The DOI matches its DataCite record; 34 of the 34 references it cites were found in a registry or an index.
Calibrate Before Use: Improving Few-Shot Performance of Language Models
Open accessAbstract
GPT-3 can perform numerous tasks when provided a natural language prompt that contains a few training examples. We show that this type of few-shot learning can be unstable: the choice of prompt format, training examples, and even the order of the training examples can cause accuracy to vary from near chance to near state-of-the-art. We demonstrate that this instability arises from the bias of language models towards predicting certain answers, e.g., those that are placed near the end of the prompt or are common in the pre-training data. To mitigate this, we first estimate the model's bias towards each answer by asking for its prediction when given the training prompt and a content-free test input such as "N/A". We then fit calibration parameters that cause the prediction for this input to be uniform across answers. On a diverse set of tasks, this contextual calibration procedure substantially improves GPT-3 and GPT-2's average accuracy (up to 30.0% absolute) and reduces variance across different choices of the prompt.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source doesn’t support the claim as written.
In the citing paper
“using the demonstrations with gold labels significantly improves the performance over no demonstrations”
From Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? (2022) · cites this paper as Zhao et al., 2021
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measuredThe cited source doesn’t support the claim as written.
In the citing paper
“Despite incontext learning consistently outperforming zeroshot inference on a wide range of tasks (Zhao et al., 2021; Liu et al., 2021)”
From Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? (2022) · cites this paper as Zhao et al., 2021
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measuredThe cited source says what the claim attributes to it.
In the citing paper
“We use contextual calibration (Zhao et al., 2021) and class-balanced sampling when these techniques improve performance on a validation set.”
From Adapting Language Models to Compress Contexts (2023) · cites this paper as Zhao et al., 2021
The cited source says what the claim attributes to it.
In the citing paper
“This finding is consistent with the recency bias proposed by (Zhao et al., 2021): LMs are biased towards outputting answers that are towards the end of the prompt.”
From Understanding the Dark Side of LLMs' Intrinsic Self-Correction (2025) · cites this paper as Zhao et al., 2021
The cited source says what the claim attributes to it.
In the citing paper
“LLMs are shown to be sensitive to the prompt format (Zhao et al., 2021;Lu et al., 2021;Wei et al., 2023;Madaan & Yazdanbakhsh, 2022)”
From Large Language Models as Optimizers (2023) · cites this paper as Zhao et al., 2021
The cited source says what the claim attributes to it.
In the citing paper
“For instance, simple modifications such as calibrating output probabilities (Zhao et al., 2021; Holtzman et al., 2021) or using a noisy channel (Min et al., 2022a) have improved performance on a range of tasks.”
From Emergent Abilities of Large Language Models (2022) · cites this paper as Zhao et al., 2021
The check wasn’t confident either way, so it gives no verdict — never disputed.
In the citing paper
“Zhong et al. [152] first define a template using a discrete search method such as AutoPrompt [125]'s, initialize virtual tokens based on this discovered prompt, and then fine-tune the embeddings to increase task accuracy.”
From Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing (2023) · cites this paper as [152]
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325
Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank
Socher, R., Perelygin, A., Wu, J., Chuang, J., Manning, C. D., Ng, A., & Potts, C. (2013) · Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d13-1170 · Cited by 6,878
Probabilistic Outputs for Support vector Machines and Comparisons to Regularized Likelihood Methods
Platt, J. C. (1999) · Cited by 4,834
Character-level Convolutional Networks for Text ClassificationPreprint
Zhang, X., Zhao, J., & LeCun, Y. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1509.01626 · Cited by 4,481
On calibration of modern neural networks
Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017) · arXiv · doi:10.48550/arxiv.1706.04599 · Cited by 3,435
Human-level concept learning through probabilistic program induction
Lake, B. M., Salakhutdinov, R., & Tenenbaum, J. B. (2015) · Science · doi:10.1126/science.aab3050 · Cited by 2,817 · cited 1×
“Few-shot learning—the ability to learn tasks with limited examples—is an important aspect of intelligence (Lake et al., 2015; Yogatama et al., 2019).”
BackgroundA Diversity-Promoting Objective Function for Neural Conversation Models
Li, J., Galley, M., Brockett, C., Gao, J., & Dolan, B. (2016) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/n16-1014 · Cited by 2,459
Making Pre-trained Language Models Better Few-shot Learners
Gao, T., Fisch, A., & Chen, D. (2021) · Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · doi:10.18653/v1/2021.acl-long.295 · Cited by 1,380
Exploiting Cloze-Questions for Few-Shot Text Classification and Natural Language Inference
Schick, T., & Schütze, H. (2021) · Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume · doi:10.18653/v1/2021.eacl-main.20 · Cited by 1,305
AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
Shin, T., Razeghi, Y., Logan IV, R. L., Wallace, E., & Singh, S. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.346 · Cited by 1,279
Self-citation
Research works printed but not linked: 2
- Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M., Gray, S., Chess, B., Clark, J., Berner, C., McCandlish, S., Radford, A., Sutskever, I., and Amodei, D. Language models are few-shot learners. In NeurIPS , 2020.
- Schwartz, R., Sap, M., Konstas, I., Zilles, L., Choi, Y ., and Smith, N. A. The effect of different writing tasks on linguistic style: A case study of the ROC story cloze task. In ACL , 2017.
Cited by
Sorted by citations
Items 501–543 of 543
Prompt Architecture Can Induce Methodological Artifacts in Large Language ModelsPreprint
Brucks, M. S., & Toubia, O. (2023) · SSRN Electronic Journal · doi:10.2139/ssrn.4484416 · Cited by 1
BLiMP-NL: A corpus of Dutch minimal pairs and acceptability judgements for language model evaluationPreprint
Suijkerbuijk, M., Prins, Z., Kloots, M. D. H., Zuidema, W. H., & Frank, S. L. (2024) · PsyArXiv (OSF Preprints) · doi:10.31234/osf.io/mhjbx · Cited by 3
promptr: Format and Complete Few-Shot LLM Prompts
Ornstein, J. (2024) · doi:10.32614/cran.package.promptr · Cited by 1
Self-Contemplating In-Context Learning Enhances T Cell Receptor Generation for Novel EpitopesPreprint
Zhang, P., Bang, S., & Lee, H. (2025) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2025.01.27.634873 · Cited by 1
Compression Method Matters: Benchmark-Dependent Output Dynamics in LLM Prompt Compression
Johnson, W. (2026) · arXiv · Cited by 1
“Zhao et al. (2021) identify three sources of bias in few-shot prompting—majority label bias, recency bias, and common token bias—and propose a calibration procedure to mitigate them, underscoring that LLM outputs are governed by surface-level input statistics as much as by semantic content.”
Demonstration Attack against In-Context Learning for Code Intelligence
Ge, Y., Sun, W., Lou, Y., Fang, C., Zhang, Y., Li, Y., Zhang, X., Liu, Y., Zhao, Z., & Chen, Z. (2024) · arXiv · doi:10.48550/arxiv.2410.02841
“Moreover, studies have started addressing the inherent biases within ICL setups, such as the work by Zhao et al. [55], which proposed a calibration method to adjust the probabilities predicted by the model, thereby reducing bias in the output.”
MethodAdapting Language Models to Compress Contexts
Chevalier, A., Wettig, A., Ajith, A., & Chen, D. (2023) · arXiv · Cited by 59
“We use contextual calibration (Zhao et al., 2021) and class-balanced sampling when these techniques improve performance on a validation set.”
MethodEfficient Attribute Injection for Pretrained Language ModelsPreprint
Amplayo, R. K., Yoo, K. M., & Lee, S.-W. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.07953
Controllable Semantic Parsing via Retrieval AugmentationPreprint
Pasupat, P., Zhang, Y., & Guu, K. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2110.08458
Pathologies of Pre-trained Language Models in Few-shot Fine-tuning
Chen, H., Zheng, G., Awadallah, A. H., & Ji, Y. (2022) · Workshop on Insights from Negative Results in NLP (Insights) · doi:10.18653/v1/2022.insights-1.20 · Cited by 1
In-Context Learning for Data Generation in Aspect-Based Opinion ExtractionPreprint
Moreira, J., & Barbosa, L. (2023) · Research Square · doi:10.21203/rs.3.rs-3170766/v1
Probing Out-of-Distribution Robustness of Language Models with Parameter-Efficient Transfer Learning
Cho, H., Park, C., Kim, J., Kim, H. J., Yoo, K. M., & Lee, S. (2023) · Joint Conference on Lexical and Computational Semantics · doi:10.18653/v1/2023.starsem-1.21 · Cited by 1
Learning to Predict Task Transferability via Soft Prompt
Feng, L. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.546
DRAFT: Dense Retrieval Augmented Few-shot Topic classifier Framework
Kim, K., & Lee, Y. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.150
Mahdavi, S., Liao, R., & Thrampoulidis, C. (2024) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp48485.2024.10446522 · Cited by 1
Su, L., Chen, J., Peng, Y., & Sun, C. H. (2024) · SSRN Electronic Journal · doi:10.2139/ssrn.4812437
New Community Cold-Start Recommendation: A Novel Large Language Model-based MethodPreprint
Che, S., Mao, M., & Liu, H. (2024) · SSRN Electronic Journal · doi:10.2139/ssrn.4828316
Lin, P.-Y., Chandra, E., & Hsu, J. Y.-J. (2024) · Proceedings of the AAAI Symposium Series · doi:10.1609/aaaiss.v3i1.31195 · Cited by 1
Case-Based Deduction for Entailment Tree Generation
Shi, J., Ding, X., & Liu, T. (2024) · Mathematics · doi:10.3390/math12182893
Schema Retrieval for Korean Geographic Knowledge Base Question Answering Using Few-Shot Prompting
Lee, S. E., & Yu, K. (2024) · ISPRS International Journal of Geo-Information · doi:10.3390/ijgi13120453
Probing Robustness of In-context Learning in LLM Classification Predictions Under Label Noise
Ayachitula, S., Kundu, C. K., & Mishra, B. K. (2024) · IEEE International Conference on Trust, Privacy and Security in Intelligent Systems and Applications (TPS-ISA) · doi:10.1109/tps-isa62245.2024.00057 · Cited by 1
Multi-Modal Relation Extraction Based on Shortest Dependency Path and Large Language ModelsPreprint
Xue, H., Dai, Y., Ma, J., & Guo, X. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5131704
Efficient Long-Form Speech Recognition for General Speech In-Context Learning
Yen, H., Ling, S., & Ye, G. (2025) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp49660.2025.10890185
Foundation Models for Course Equivalency Evaluation
Kim, M., Puder, A., Hayward, C., & Yang, H. (2024) · IEEE ... International Conference on Data Mining workshops · doi:10.1109/icdmw65004.2024.00045
Data Augmentation and Instruction Fine-Tuning for ADR Detection
Fu, W., Lin, H., Xu, G., Qiu, Y., Wang, J., Diao, Y., & Zheng, P. (2025) · Communications in computer and information science · doi:10.1007/978-981-96-3752-2_1
Optimizing Prompt Refinement: Algorithmic Strategies for Llm-Driven Text Classification TasksPreprint
Singh, J., Ao, Z., & Antinome, S. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5221492
Making language models better human-like learners
Qin, C. (2025) · DR-NTU (Nanyang Technological University) · doi:10.32657/10356/183806
Prompt-Based Out-of-Distribution Intent Detection
Chow, R., & Lam, A. Y. S. (2025) · IEEE Transactions on Emerging Topics in Computational Intelligence · doi:10.1109/tetci.2024.3372440
Healthcare Event Prediction via Iterative in-Context Learning of LLM
Yu, T., & Wang, G. (2025) · International Conference on Cloud Computing and Big Data Analytics (ICCCBDA) · doi:10.1109/icccbda64898.2025.11030505
Hu, X., & Abisado, M. (2025) · Forum for Linguistic Studies · doi:10.30564/fls.v7i6.9143
Exploiting Classification of LLM with Zero-shot Prompt & Fine-tuning
Kong, W., & Lv, W. (2024) · International Conference on Health Big Data and Intelligent Healthcare (ICHIH) · doi:10.1109/ichih63459.2024.11064750
Beyond the Like Button: Deriving User Feedback with Rubrics and Metrics in Virtual Assistants
Mahato, M., Kumar, A., Singh, K., & Nabi, J. (2025) · International Conference on Recent Advances in Information Technology · doi:10.1109/rait65068.2025.11089435
Prompting encoder models for zero-shot classification: a cross-domain study in Italian
Auriemma, S., Miliani, M., Madeddu, M., Bondielli, A., Passaro, L., & Lenci, A. (2025) · Language Resources and Evaluation · doi:10.1007/s10579-025-09853-0
N2C2: Nearest Neighbor Enhanced Confidence Calibration for Cross-Lingual In-Context Learning
He, J., Yu, S., Gutiérrez-Basulto, V., & Pan, J. Z. (2025) · Procedia Computer Science · doi:10.1016/j.procs.2025.07.121
Modelos de Governação Informacional em Sistemas de IA Generativa
Sousa, N. M. T. (2025) · Brazilian Journal of Information Science research trends · doi:10.36311/1981-1640.2025.v19.e025023
PRECISION: A Structured Prompting Framework for Optimizing Large Language Model Interactions
Pham, T. V., & Thanh, H. P. (2025) · International Conference on Applying New Technology in Green Buildings (ATiGB) · doi:10.1109/atigb66719.2025.11142139
Vũ, B. D., Naik, R. G., Nguyen, B. K., Mehraeen, S., & Hemmje, M. (2025) · Eng—Advances in Engineering · doi:10.3390/eng6110283
Grach, S., Badawi, A., Ahmad, F., & Dolatabadi, E. (2026) · Journal of Biomedical Informatics · doi:10.1016/j.jbi.2026.105077
Balancing Engagement and Polarization: Multi-Objective Alignment of News Content Using LLMsPreprint
Cheng, M., Ofek, E., & Yoganarasimhan, H. (2025) · RePEc: Research Papers in Economics · doi:10.48550/arxiv.2504.13444 · Cited by 6
Balancing Engagement and Polarization: Multi-Objective Alignment of News Content Using LLMsPreprint
Cheng, M., Ofek, E., & Yoganarasimhan, H. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5226629
From Illusion to Insight: A Taxonomic Survey of Hallucination Mitigation Techniques in LLMs
Kazlaris, I., Antoniou, E., Diamantaras, K., & Bratsas, C. (2025) · doi:10.20944/preprints202508.1942.v1 · Cited by 13
Metadata
- Authors
- Zhao, T. Z., Wallace, E., Feng, S., Klein, D., & Singh, S.
- Affiliations
- University of California, Berkeley (US)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2021
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2102.09690
- OpenAlex
- W3132736064
- Cited by
- 513
- References
- 33
- Citations by year
- 2026: 5 · 2025: 69 · 2024: 114 · 2023: 206 · 2022: 86 · 2021: 33
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Keywords
- few-shot learning, GPT-3, GPT-2, prediction variance, natural language prompts
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review