mlsanityData to 7 Oct 2026

ParaICL: Towards Parallel In-Context Learning

arXiv 2404.00570 ↗First posted 31 Mar 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have become the norm in natural language processing (NLP), excelling in few-shot in-context learning (ICL) with their remarkable abilities. Nonetheless, the success of ICL largely hinges on the choice of few-shot demonstration examples, making the selection process increasingly crucial. Existing methods have delved into optimizing the quantity and semantic similarity of these examples to improve ICL performances. However, our preliminary experiments indicate that the effectiveness of ICL is limited by the length of the input context. Moreover, varying combinations of few-shot demonstration examples can significantly boost accuracy across different test samples. To address this, we propose a novel method named parallel in-context learning (ParaICL) that effectively utilizes all demonstration examples without exceeding the manageable input context length. ParaICL employs parallel batching to distribute demonstration examples into different batches according to the semantic similarities of the questions in the demonstrations to the test question. It then computes normalized batch semantic scores for each batch. A weighted average semantic objective, constrained by adaptive plausibility, is applied to select the most appropriate tokens. Through extensive experiments, we validate the effectiveness of ParaICL and conduct ablation studies to underscore its design rationale. We further demonstrate that ParaICL can seamlessly integrate with existing methods.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 23 of its 29 references that are in the map. First posted on arXiv 31 Mar 2024.

Builds on

23 of 29 references.

References · 23

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2021Program Synthesis with Large Language Modelscited by 3,509
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  10. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  11. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  12. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
11 more
  1. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
  2. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
  3. 2023Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sourcescited by 121
  4. 2023Finding Support Examples for In-Context Learningcited by 104
  5. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  6. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  7. 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
  8. 2023Is GPT-4 a Good Data Analyst?cited by 69
  9. 2023Coverage-based Example Selection for In-Context Learningcited by 58
  10. 2023How Many Demonstrations Do You Need for In-context Learning?cited by 52
  11. 2023ChatGPT's One-year Anniversary: Are Open-Source Large Language Models Catching up?cited by 15

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.