mlsanityData to 14 Oct 2026

The Few-shot Dilemma: Over-prompting Large Language Models

arXiv 2509.13196 ↗First posted 16 Sep 2025cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Over-prompting, a phenomenon where excessive examples in prompts lead to diminished performance in Large Language Models (LLMs), challenges the conventional wisdom about in-context few-shot learning. To investigate this few-shot dilemma, we outline a prompting framework that leverages three standard few-shot selection methods - random sampling, semantic embedding, and TF-IDF vectors - and evaluate these methods across multiple LLMs, including GPT-4o, GPT-3.5-turbo, DeepSeek-V3, Gemma-3, LLaMA-3.1, LLaMA-3.2, and Mistral. Our experimental results reveal that incorporating excessive domain-specific examples into prompts can paradoxically degrade performance in certain LLMs, which contradicts the prior empirical conclusion that more relevant few-shot examples universally benefit LLMs. Given the trend of LLM-assisted software engineering and requirement analysis, we experiment with two real-world software requirement classification datasets. By gradually increasing the number of TF-IDF-selected and stratified few-shot examples, we identify their optimal quantity for each LLM. This combined approach achieves superior performance with fewer examples, avoiding the over-prompting problem, thus surpassing the state-of-the-art by 1% in classifying functional and non-functional requirements.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 44 of its 59 references that are in the map. First posted on arXiv 16 Sep 2025.

Builds on

44 of 59 references.

References · 44

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2024The Llama 3 Herd of Modelscited by 14,715
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  9. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  10. 2024GPT-4o System Cardcited by 4,588
  11. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  12. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
32 more
  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  4. 2023Mistral 7Bcited by 3,164
  5. 2023A Survey of Large Language Modelscited by 2,576
  6. 2022Emergent Abilities of Large Language Modelscited by 2,512
  7. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  8. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  9. 2025Gemma 3 Technical Reportcited by 1,824
  10. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  11. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  12. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  13. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  14. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  15. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
  16. 2022A Survey on In-context Learningcited by 721
  17. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  18. 2023Augmented Language Models: a Surveycited by 403
  19. 2023Larger language models do in-context learning differentlycited by 394
  20. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  21. 2023GPT-NER: Named Entity Recognition via Large Language Modelscited by 160
  22. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
  23. 2023Symbol tuning improves in-context learning in language modelscited by 75
  24. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
  25. 2024Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learningcited by 47
  26. 2024Don't Do RAG: When Cache-Augmented Generation is All You Need for Knowledge Taskscited by 38
  27. 2023In-Context Learning for Text Classification with Many Labelscited by 35
  28. 2023Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Followingcited by 33
  29. 2023SwitchPrompt: Learning Domain-Specific Gated Soft Prompts for Classification in Low-Resource Domainscited by 12
  30. 2023Which AI Technique Is Better to Classify Requirements? An Experiment with SVM, LSTM, and ChatGPTcited by 7
  31. 2024FsPONER: Few-shot Prompt Optimization for Named Entity Recognition in Domain-specific Scenarioscited by 7
  32. 2017What Works Better? A Study of Classifying Requirementscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.