paper-with-me

홈 › Papers

What Makes Good In-Context Examples for GPT-$3$?

2021-01-17 · Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, Weizhu Chen

GPT-$3$ has attracted lots of attention due to its superior performance across a wide range of NLP tasks, especially with its powerful and versatile in-context few-shot learning ability. Despite its success, we found that the empirical results of GPT-$3$ depend heavily on the choice of in-context examples. In this work, we investigate whether there are more effective strategies for judiciously selecting in-context examples (relative to random sampling) that better leverage GPT-$3$'s few-shot capabilities. Inspired by the recent success of leveraging a retrieval module to augment large-scale neural network models, we propose to retrieve examples that are semantically-similar to a test sample to formulate its corresponding prompt. Intuitively, the in-context examples selected with such a strategy may serve as more informative inputs to unleash GPT-$3$'s extensive knowledge. We evaluate the proposed approach on several natural language understanding and generation benchmarks, where the retrieval-based prompt selection approach consistently outperforms the random baseline. Moreover, it is observed that the sentence encoders fine-tuned on task-related datasets yield even more helpful retrieval results. Notably, significant gains are observed on tasks such as table-to-text generation (41.9% on the ToTTo dataset) and open-domain question answering (45.5% on the NQ dataset). We hope our investigation could help understand the behaviors of GPT-$3$ and large-scale pre-trained LMs in general and enhance their few-shot capabilities.

📄 PDF Abstract BibTeX arXiv:2101.06804

Code (3)

jiachangliu/kategpt3 pytorch
shark-nlp/openicl pytorch
stanfordnlp/dsp pytorch

Tasks

Few-Shot LearningNatural Language UnderstandingOpen-Domain Question AnsweringQuestion AnsweringRetrievalSentenceTable-to-Text GenerationText Generation

Similar Papers 제목 키워드 기반

What Makes Good Examples for Visual In-Context Learning?

2023-01-31 · NeurIPS 2023 11 · Yuanhan Zhang, Kaiyang Zhou, Ziwei Liu

Large-scale models trained on broad data have recently become the mainstream architecture in computer vision due to their strong generalization performance. In this paper, the main focus is on an emergent ability in larg…

In-Context LearningRetrieval

What Makes Good In-Context Examples for GPT-3?

2022-05-01 · DeeLIO (ACL) 2022 5 · Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan 외

GPT-3 has attracted lots of attention due to its superior performance across a wide range of NLP tasks, especially with its in-context learning abilities. Despite its success, we found that the empirical results of GPT-3…

In-Context LearningNatural Language UnderstandingOpen-Domain Question AnsweringQuestion Answering+4

What Makes Language Models Good-enough?

2024-06-06 · Daiki Asami, Saku Sugawara

Psycholinguistic research suggests that humans may build a representation of linguistic input that is 'good-enough' for the task at hand. This study examines what architectural features make language models learn human-l…

What makes ImageNet good for transfer learning?

2016-08-30 · Minyoung Huh, Pulkit Agrawal, Alexei A. Efros

The tremendous success of ImageNet-trained deep features on a wide range of transfer tasks begs the question: what are the properties of the ImageNet dataset that are critical for learning good, general-purpose features?…

Action ClassificationGeneral ClassificationScene ClassificationTransfer Learning

Good Examples Make A Faster Learner: Simple Demonstration-based Learning for Low-resource NER

2021-10-16 · ACL 2022 5 · Dong-Ho Lee, Akshen Kadakia, Kangmin Tan, Mahak Agarwal 외

Recent advances in prompt-based learning have shown strong results on few-shot text classification by using cloze-style templates. Similar attempts have been made on named entity recognition (NER) which manually design t…

Domain AdaptationFew-Shot Text ClassificationIn-Context Learningnamed-entity-recognition+6