Reordering Examples Helps during Priming-based Few-Shot Learning
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 50 papers in the map (data through 7 Oct 2026). Builds on 11 of its 34 references that are in the map. First posted on arXiv 3 Jun 2021.
Builds on
11 of 34 references.
References · 11
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2019How Can We Know What Language Models Know?cited by 953
- 2020Meta-Learning in Neural Networks: A Surveycited by 944
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
Built on by
Citing papers per year: 2021: 6; 2022: 14; 2023: 14; 2024: 5; 2025: 7; 2026: 4.
50 papers.
Sort:
By area:
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2023Augmented Language Models: a Surveycited by 398
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
- 2023Foundation Models for Decision Making: Problems, Methods, and Opportunitiescited by 160
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 144
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
- 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
- 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedbackcited by 67
- 2021Few-Shot Bot: Prompt-Based Learning for Dialogue Systemscited by 64
38 more
- 2023Exploring Diverse In-Context Configurations for Image Captioningcited by 63
- 2023In-context Example Selection with Influencescited by 60
- 2021Good Examples Make A Faster Learner: Simple Demonstration-based Learning for Low-resource NERcited by 38
- 2021True Few-Shot Learning with Prompts -- A Real-World Perspectivecited by 38
- 2022Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learningcited by 36
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2024Smoothie: Label Free Language Model Routingcited by 31
- 2022GPT-3-driven pedagogical agents for training children's curious question-asking skillscited by 29
- 2022Co-training Improves Prompt-based Learning for Large Language Modelscited by 24
- 2022Multi-Stage Prompting for Knowledgeable Dialogue Generationcited by 22
- 2024Order Matters: Exploring Order Sensitivity in Multimodal Large Language Modelscited by 19
- 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomnesscited by 14
- 2023Improving Probability-based Prompt Selection Through Unified Evaluation and Analysiscited by 13
- 2022Semantic-Oriented Unlabeled Priming for Large-Scale Language Modelscited by 12
- 2025Mimic In-Context Learning for Multimodal Taskscited by 12
- 2023Ambiguity-Aware In-Context Learning with Large Language Modelscited by 11
- 2025Is Relevance Propagated from Retriever to Generator in RAG?cited by 11
- 2023Plum: Prompt Learning using Metaheuristiccited by 8
- 2024Unlocking the Power of LLM Uncertainty for Active In-Context Example Selectioncited by 8
- 2023Lever LM: Configuring In-Context Sequence to Lever Large Vision Language Modelscited by 6
- 2022Zero-Label Prompt Selectioncited by 4
- 2024One size doesn't fit all: Predicting the Number of Examples for In-Context Learningcited by 4
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Modelcited by 4
- 2023OverPrompt: Enhancing ChatGPT through Efficient In-Context Learningcited by 3
- 2022Bootstrapping Multilingual Semantic Parsers using Large Language Modelscited by 2
- 2025Training LLMs Beyond Next Token Prediction -- Filling the Mutual Information Gapcited by 2
- 2026Order Matters: Improving Domain Adaptation by Reordering Datacited by 2
- 2023Prompt Ensemble Self-training for Open-Vocabulary Domain Adaptationcited by 1
- 2023Demonstration-based learning for few-shot biomedical named entity recognition under machine reading comprehensioncited by 1
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Modelscited by 1
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identificationcited by 1
- 2026Are LLMs Positionally Consistent Ordinal Classifiers? A Systematic Evaluationcited by 1
- 2022Zero-shot Entity and Tweet Characterization with Designed Conditional Prompts and Contextscited by 0
- 2022Few-Shot Natural Language Inference Generation with PDD: Prompt and Dynamic Demonstrationcited by 0
- 2023Characterizing Latent Perspectives of Media Houses Towards Public Figurescited by 0
- 2025RLAP: A Reinforcement Learning Enhanced Adaptive Planning Framework for Multi-step NLP Task Solvingcited by 0
- 2025Reasoning Distillation and Structural Alignment for Improved Code Generationcited by 0
- 2026GRaSp: Automatic Example Optimization for In-Context Learning in Low-Data Taskscited by 0
- 2026Are LLMs Positionally Consistent Ordinal Classifiers? A Systematic Evaluation9 Aug 2026
- 2026GRaSp: Automatic Example Optimization for In-Context Learning in Low-Data Tasks8 May 2026
- 2026Order Matters: Improving Domain Adaptation by Reordering Data6 May 2026
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification5 May 2026
- 2025Training LLMs Beyond Next Token Prediction -- Filling the Mutual Information Gap31 Oct 2025
- 2025Reasoning Distillation and Structural Alignment for Improved Code Generation20 Oct 2025
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models19 May 2025
- 2025RLAP: A Reinforcement Learning Enhanced Adaptive Planning Framework for Multi-step NLP Task Solving17 May 2025
- 2025Mimic In-Context Learning for Multimodal Tasks11 Apr 2025
- 2025Is Relevance Propagated from Retriever to Generator in RAG?20 Feb 2025
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model19 Jan 2025
- 2024Smoothie: Label Free Language Model Routing6 Dec 2024
38 more
- 2024Order Matters: Exploring Order Sensitivity in Multimodal Large Language Models22 Oct 2024
- 2024Unlocking the Power of LLM Uncertainty for Active In-Context Example Selection17 Aug 2024
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar 2024
- 2024One size doesn't fit all: Predicting the Number of Examples for In-Context Learning11 Mar 2024
- 2023Lever LM: Configuring In-Context Sequence to Lever Large Vision Language Models15 Dec 2023
- 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomness2 Dec 2023
- 2023Plum: Prompt Learning using Metaheuristic14 Nov 2023
- 2023Ambiguity-Aware In-Context Learning with Large Language Models14 Sep 2023
- 2023Characterizing Latent Perspectives of Media Houses Towards Public Figures12 Sep 2023
- 2023Demonstration-based learning for few-shot biomedical named entity recognition under machine reading comprehension12 Aug 2023
- 2023Prompt Ensemble Self-training for Open-Vocabulary Domain Adaptation29 Jun 2023
- 2023OverPrompt: Enhancing ChatGPT through Efficient In-Context Learning24 May 2023
- 2023Improving Probability-based Prompt Selection Through Unified Evaluation and Analysis24 May 2023
- 2023Exploring Diverse In-Context Configurations for Image Captioning24 May 2023
- 2023Dr.ICL: Demonstration-Retrieved In-context Learning23 May 2023
- 2023Foundation Models for Decision Making: Problems, Methods, and Opportunities7 Mar 2023
- 2023In-context Example Selection with Influences21 Feb 2023
- 2023Augmented Language Models: a Survey15 Feb 2023
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Ordering20 Dec 2022
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Labor19 Dec 2022
- 2022GPT-3-driven pedagogical agents for training children's curious question-asking skills25 Nov 2022
- 2022Prompting PaLM for Translation: Assessing Strategies and Performance16 Nov 2022
- 2022Zero-Label Prompt Selection9 Nov 2022
- 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedback22 Oct 2022
- 2022Bootstrapping Multilingual Semantic Parsers using Large Language Models13 Oct 2022
- 2022Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning29 May 2022
- 2022Few-Shot Natural Language Inference Generation with PDD: Prompt and Dynamic Demonstration21 May 2022
- 2022Zero-shot Entity and Tweet Characterization with Designed Conditional Prompts and Contexts18 Apr 2022
- 2022Multi-Stage Prompting for Knowledgeable Dialogue Generation16 Mar 2022
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Models14 Mar 2022
- 2022Semantic-Oriented Unlabeled Priming for Large-Scale Language Models12 Feb 2022
- 2022Co-training Improves Prompt-based Learning for Large Language Models2 Feb 2022
- 2021True Few-Shot Learning with Prompts -- A Real-World Perspective26 Nov 2021
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Survey1 Nov 2021
- 2021Good Examples Make A Faster Learner: Simple Demonstration-based Learning for Low-resource NER16 Oct 2021
- 2021Few-Shot Bot: Prompt-Based Learning for Dialogue Systems15 Oct 2021
- 2021Reframing Instructional Prompts to GPTk's Language16 Sep 2021
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing28 Jul 2021
- 2023Augmented Language Models: a Surveycited by 398
- 2025Reasoning Distillation and Structural Alignment for Improved Code Generationcited by 0
- 2025Reasoning Distillation and Structural Alignment for Improved Code Generation20 Oct 2025
- 2023Augmented Language Models: a Survey15 Feb 2023
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
- 2023Foundation Models for Decision Making: Problems, Methods, and Opportunitiescited by 160
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 144
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
- 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
- 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedbackcited by 67
- 2021Few-Shot Bot: Prompt-Based Learning for Dialogue Systemscited by 64
- 2023Exploring Diverse In-Context Configurations for Image Captioningcited by 63
12 most cited of 40 All 40 (JSON)
- 2026Are LLMs Positionally Consistent Ordinal Classifiers? A Systematic Evaluation9 Aug 2026
- 2026GRaSp: Automatic Example Optimization for In-Context Learning in Low-Data Tasks8 May 2026
- 2026Order Matters: Improving Domain Adaptation by Reordering Data6 May 2026
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification5 May 2026
- 2025Training LLMs Beyond Next Token Prediction -- Filling the Mutual Information Gap31 Oct 2025
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models19 May 2025
- 2025RLAP: A Reinforcement Learning Enhanced Adaptive Planning Framework for Multi-step NLP Task Solving17 May 2025
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model19 Jan 2025
- 2024Smoothie: Label Free Language Model Routing6 Dec 2024
- 2024Unlocking the Power of LLM Uncertainty for Active In-Context Example Selection17 Aug 2024
- 2024One size doesn't fit all: Predicting the Number of Examples for In-Context Learning11 Mar 2024
- 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomness2 Dec 2023
12 newest of 40 All 40 (JSON)