paper-with-me

홈 › Papers

Reordering Examples Helps during Priming-based Few-Shot Learning

2021-06-03 · Findings (ACL) 2021 8 · Sawan Kumar, Partha Talukdar

The ability to learn from limited data, or few-shot learning, is a desirable and often critical requirement for NLP systems. While many existing methods do poorly at learning from a handful of examples, large pretrained language models have recently been shown to be efficient few-shot learners. One approach to few-shot learning, which does not require finetuning of model parameters, is to augment the language model's input with priming text which is typically constructed using task specific descriptions and examples. In this work, we further explore priming-based few-shot learning, with focus on using examples as prompts. We show that presenting examples in the right order is key for generalization. We introduce PERO (Prompting with Examples in the Right Order), where we formulate few-shot learning as search over the set of permutations of the training examples. We show that PERO can learn to generalize efficiently using as few as 10 examples, in contrast to existing approaches. While the newline token is a natural choice for separating the examples in the prompt, we show that learning a new separator token can potentially provide further gains in performance. We demonstrate the effectiveness of the proposed method on the tasks of sentiment classification, natural language inference and fact retrieval. Finally, we analyze the learned prompts to reveal novel insights, including the idea that two training examples in the right order alone can provide competitive performance for sentiment classification and natural language inference.

📄 PDF Abstract BibTeX arXiv:2106.01751

Code (1)

SawanKumar28/pero 공식 구현 pytorch

Tasks

Few-Shot LearningNatural Language InferenceRetrievalSentiment AnalysisSentiment Classification

Similar Papers 제목 키워드 기반

Semantic-Oriented Unlabeled Priming for Large-Scale Language Models

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Due to the high costs associated with finetuning large language models, various recent works propose to adapt them to specific tasks without any parameter updates through in-context learning. Unfortunately, for in-contex…

In-Context Learning

Semantic-Oriented Unlabeled Priming for Large-Scale Language Models

2022-02-12 · Yanchen Liu, Timo Schick, Hinrich Schütze

Due to the high costs associated with finetuning large language models, various recent works propose to adapt them to specific tasks without any parameter updates through in-context learning. Unfortunately, for in-contex…

In-Context Learning

Neural Priming for Sample-Efficient Adaptation

2023-06-16 · NeurIPS 2023 11 · Matthew Wallingford, Vivek Ramanujan, Alex Fang, Aditya Kusupati 외

We propose Neural Priming, a technique for adapting large pretrained models to distribution shifts and downstream tasks given few or no labeled examples. Presented with class names or unlabeled test samples, Neural Primi…

Transfer Learning

Length Generalization in Arithmetic Transformers

2023-06-27 · Samy Jelassi, Stéphane d'Ascoli, Carles Domingo-Enrich, Yuhuai Wu 외

We examine how transformers cope with two challenges: learning basic integer arithmetic, and generalizing to longer sequences than seen during training. We find that relative position embeddings enable length generalizat…

Position

Language Models as Few-Shot Learner for Task-Oriented Dialogue Systems

2020-08-14 · Andrea Madotto, Zihan Liu, Zhaojiang Lin, Pascale Fung

Task-oriented dialogue systems use four connected modules, namely, Natural Language Understanding (NLU), a Dialogue State Tracking (DST), Dialogue Policy (DP) and Natural Language Generation (NLG). A research challenge i…

Dialogue State TrackingFew-Shot LearningNatural Language UnderstandingTask-Oriented Dialogue Systems+2