Calibrate Before Use: Improving Few-Shot Performance of Language Models

作者
Tony Z. Zhao,Eric Wallace,Shi Feng,Dan Klein,Sameer Singh
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:513
标识
DOI:10.48550/arxiv.2102.09690
摘要

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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
巴拉阿拉发布了新的文献求助30
2秒前
2秒前
qin202569发布了新的文献求助10
3秒前
3秒前
kdxjlm完成签到,获得积分10
4秒前
decimalpoint完成签到,获得积分10
4秒前
5秒前
叶95发布了新的文献求助20
5秒前
田様的应助被沉默笑蓝采纳,获得10
6秒前
大模型的应助被XPR采纳,获得10
7秒前
BUTTOND完成签到 ,获得积分10
7秒前
7秒前
RJC发布了新的文献求助20
7秒前
未来森林发布了新的文献求助10
8秒前
三十三完成签到,获得积分10
8秒前
8秒前
一投就中完成签到,获得积分10
9秒前
10秒前
yinyin发布了新的文献求助10
11秒前
hhhhhuo发布了新的文献求助10
12秒前
希望天下0贩的0的应助被初景采纳,获得10
13秒前
补药学习完成签到,获得积分10
13秒前
14秒前
14秒前
15秒前
坚定丹亦完成签到,获得积分10
16秒前
17秒前
An完成签到,获得积分10
18秒前
小川完成签到,获得积分10
19秒前
XPR发布了新的文献求助10
19秒前
19秒前
打打的应助被O基米德采纳,获得10
20秒前
20秒前
妮妮发布了新的文献求助10
20秒前
hhhhhuo完成签到,获得积分10
21秒前
ykk完成签到 ,获得积分10
21秒前
Liszt完成签到,获得积分10
21秒前
学术小白完成签到,获得积分10
22秒前
22秒前
LL完成签到,获得积分10
23秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 1700
The World Atlas of Wine 9th edition 1000
奈特基础组织学:配套组织病理学(第4版)(Netter's Essential Histology With Correlated Histopathology) 800
八旗制度の研究 600
Boundaries and Bodhisattvas 500
高分子基功能界面水蒸发材料与应用研究 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8181767
求助须知:如何正确求助?哪些是违规求助? 9571480
关于积分的说明 21818225
捐赠科研通 7778030
什么是DOI,文献DOI怎么找? 3433524
关于科研通互助平台的介绍 2557696
邀请新用户注册赠送积分活动 2479598