Se2: Sequential Example Selection for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
The remarkable capability of large language models (LLMs) for in-context learning (ICL) needs to be activated by demonstration examples. Prior work has extensively explored the selection of examples for ICL, predominantly following the "select then organize" paradigm, such approaches often neglect the internal relationships between examples and exist an inconsistency between the training and inference. In this paper, we formulate the problem as a Sequential Selection problem and introduce Se2, a sequential-aware method that leverages the LLM's feedback on varying context, aiding in capturing inter-relationships and sequential information among examples, significantly enriching the contextuality and relevance of ICL prompts. Meanwhile, we utilize beam search to seek and construct example sequences, enhancing both quality and diversity. Extensive experiments across 23 NLP tasks from 8 distinct categories illustrate that Se2 markedly surpasses competitive baselines and achieves 42% relative improvement over random selection. Further in-depth analysis shows the effectiveness of proposed strategies, highlighting Se2's exceptional stability and adaptability across various scenarios. Code available at https://github.com/microsoft/LMOps.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 37 of its 56 references that are in the map. First posted on arXiv 21 Feb 2024.
Builds on
37 of 56 references.
References · 37
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
25 more
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2022Active Example Selection for In-Context Learningcited by 195
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2023Unified Demonstration Retriever for In-Context Learningcited by 141
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2023Mitigating Label Biases for In-context Learningcited by 88
- 2021Think you have Solved Direct-Answer Question Answering? Try ARC-DA, the Direct-Answer AI2 Reasoning Challengecited by 79
- 2023UPRISE: Universal Prompt Retrieval for Improving Zero-Shot Evaluationcited by 74
- 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 71
- 2022Complementary Explanations for Effective In-Context Learningcited by 71
- 2019Semantic Noise Matters for Neural Natural Language Generationcited by 64
- 2023In-context Example Selection with Influencescited by 60
- 2019This Email Could Save Your Life: Introducing the Task of Email Subject Line Generationcited by 58
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 4.
8 papers.
- 2024VideoICL: Confidence-based Iterative In-context Learning for Out-of-Distribution Video Understandingcited by 17
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learningcited by 6
- 2025RIDE: Enhancing Large Language Model Alignment through Restyled In-Context Learning Demonstration Exemplarscited by 2
- 2025Towards Predicting Any Human Trajectory In Contextcited by 2
- 2026Easier to Judge than to Find: Predicting In-Context Learning Success for Demonstration Selectioncited by 1
- 2026GRaSp: Automatic Example Optimization for In-Context Learning in Low-Data Taskscited by 0
- 2026Self-Improving In-Context Learningcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026Self-Improving In-Context Learning22 May 2026
- 2026Easier to Judge than to Find: Predicting In-Context Learning Success for Demonstration Selection18 May 2026
- 2026GRaSp: Automatic Example Optimization for In-Context Learning in Low-Data Tasks8 May 2026
- 2025Towards Predicting Any Human Trajectory In Context1 Jun 2025
- 2025RIDE: Enhancing Large Language Model Alignment through Restyled In-Context Learning Demonstration Exemplars17 Feb 2025
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learning25 Jan 2025
- 2024VideoICL: Confidence-based Iterative In-context Learning for Out-of-Distribution Video Understanding3 Dec 2024