mlsanityData to 7 Oct 2026

Auto-Demo Prompting: Leveraging Generated Outputs as Demonstrations for Enhanced Batch Prompting

arXiv 2410.01724 ↗First posted 2 Oct 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Batch prompting is a common technique in large language models (LLMs) used to process multiple inputs simultaneously, aiming to improve computational efficiency. However, as batch sizes increase, performance degradation often occurs due to the model's difficulty in handling lengthy context inputs. Existing methods that attempt to mitigate these issues rely solely on batch data arrangement and majority voting rather than improving the design of the batch prompt itself. In this paper, we address these limitations by proposing "Auto-Demo Prompting," a novel approach that leverages the question-output pairs from earlier questions within a batch as demonstrations for subsequent answer inference. We provide a formal theoretical analysis of how Auto-Demo Prompting functions within the autoregressive generation process of LLMs, illustrating how it utilizes prior outputs to optimize the model's internal representations. Our method effectively bridges the gap between batch prompting and few-shot prompting, enhancing performance with only a slight compromise in token usage. Experimental results across five NLP tasks demonstrate its effectiveness in mitigating performance degradation and occasionally outperforming single prompts. Furthermore, it opens new avenues for applying few-shot learning techniques, such as demonstration selection, within batch prompting, making it a robust solution for real-world applications.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 32 of its 35 references that are in the map. First posted on arXiv 2 Oct 2024.

Builds on

32 of 35 references.

References · 32

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  10. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
  11. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  12. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
20 more
  1. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
  2. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  3. 2023Large Language Modelscited by 774
  4. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  5. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  6. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
  7. 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 387
  8. 2024Many-Shot In-Context Learningcited by 203
  9. 2022Active Example Selection for In-Context Learningcited by 195
  10. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  11. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  12. 2017Bilateral Multi-Perspective Matching for Natural Language Sentencescited by 120
  13. 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 84
  14. 2024Many-Shot In-Context Learning in Multimodal Foundation Modelscited by 64
  15. 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
  16. 2023BatchPrompt: Accomplish more with lesscited by 16
  17. 2023Cost-Effective In-Context Learning for Entity Resolution: A Design Space Explorationcited by 15
  18. 2024Demonstration Augmentation for Zero-shot In-context Learningcited by 11
  19. 2024Many-Shot In-Context Learning for Molecular Inverse Designcited by 6
  20. 2023A Communication Theory Perspective on Prompting Engineering Methods for Large Language Modelscited by 3

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.