Learning to Search Effective Example Sequences for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) demonstrate impressive few-shot learning capabilities, but their performance varies widely based on the sequence of in-context examples. Key factors influencing this include the sequence's length, composition, and arrangement, as well as its relation to the specific query. Existing methods often tackle these factors in isolation, overlooking their interdependencies. Moreover, the extensive search space for selecting optimal sequences complicates the development of a holistic approach. In this work, we introduce Beam Search-based Example Sequence Constructor (BESC), a novel method for learning to construct optimal example sequences. BESC addresses all key factors involved in sequence selection by considering them jointly during inference, while incrementally building the sequence. This design enables the use of beam search to significantly reduce the complexity of the search space. Experiments across various datasets and language models show notable improvements in performance.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 24 of its 36 references that are in the map. First posted on arXiv 11 Mar 2025.
Builds on
24 of 36 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Let's Verify Step by Stepcited by 3,598
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 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
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
12 more
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2023Larger language models do in-context learning differentlycited by 386
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 347
- 2022Active Example Selection for In-Context Learningcited by 195
- 2020MTOP: A Comprehensive Multilingual Task-Oriented Semantic Parsing Benchmarkcited by 156
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
- 2020Break It Down: A Question Understanding Benchmarkcited by 131
- 2023Skill-Based Few-Shot Selection for In-Context Learningcited by 46
- 2024Customizing Language Model Responses with Contrastive In-Context Learningcited by 19
- 2024Mitigating Hallucination in Fictional Character Role-Playcited by 17
- 2020Deep Retrieval: Learning A Retrievable Structure for Large-Scale Recommendationscited by 11
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.