mlsanityData to 7 Oct 2026

Se2: Sequential Example Selection for In-Context Learning

arXiv 2402.13874 ↗First posted 21 Feb 2024cs.CLcited by 8

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  8. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  9. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  10. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  11. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  12. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
25 more
  1. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  2. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  3. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  4. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  5. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  6. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  7. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  8. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
  9. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
  10. 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
  11. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  12. 2022Active Example Selection for In-Context Learningcited by 195
  13. 2022In-context Examples Selection for Machine Translationcited by 172
  14. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  15. 2023Compositional Exemplars for In-context Learningcited by 143
  16. 2023Unified Demonstration Retriever for In-Context Learningcited by 141
  17. 2023Finding Support Examples for In-Context Learningcited by 104
  18. 2023Mitigating Label Biases for In-context Learningcited by 88
  19. 2021Think you have Solved Direct-Answer Question Answering? Try ARC-DA, the Direct-Answer AI2 Reasoning Challengecited by 79
  20. 2023UPRISE: Universal Prompt Retrieval for Improving Zero-Shot Evaluationcited by 74
  21. 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 71
  22. 2022Complementary Explanations for Effective In-Context Learningcited by 71
  23. 2019Semantic Noise Matters for Neural Natural Language Generationcited by 64
  24. 2023In-context Example Selection with Influencescited by 60
  25. 2019This Email Could Save Your Life: Introducing the Task of Email Subject Line Generationcited by 58

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 4.

8 papers.