Skip to content

When Does Few-Shot Prompting Help? A Systematic Empirical Study of Shot-Count Effects Across Model Scale, Architecture, and Output Parsing Robustness

Jul 2026 · arXiv.org · Vol abs/2607.22969 · 0 citations · 15 references
Computer Science

TL;DR

A controlled study of five LLMs across six shot-count configurations on the AG News four-class benchmark demonstrates that the relationship between shot count and classification performance is not monotonic, not universal, and not predictable from model scale alone.

Abstract

Few-shot prompting, the practice of prepending a small number of input-output demonstration pairs to a query before presenting it to a large language model (LLM), is among the most widely adopted inference-time techniques in NLP. Yet little systematic work investigates how shot count interacts with model scale, architecture, and output format compliance in determining classification performance. This paper presents a controlled study of five LLMs across six shot-count configurations (k in {0,1,2,3,5,8}) on the AG News four-class benchmark (n=200). Our models span proprietary and open-source families: Gemini Flash Lite, GPT-4o-mini, Llama 3.1 8B, Llama 3.3 70B, and Llama 4 Scout 17B. We report macro-averaged F1 with 95% bootstrap confidence intervals (B=10,000), permutation-test p-values, and Cohen's d effect sizes across all 30 configurations. Our findings reveal four qualitatively distinct behavioral regimes: (1) models already well-calibrated at zero-shot that show modest, statistically insignificant gains (Gemini, GPT-4o-mini); (2) models that undergo catastrophic zero-shot failure but recover dramatically with a single example (Llama 3.1 8B, d=10.98, p<0.0001); (3) models optimal at zero-shot that degrade monotonically with additional examples (Llama 4 Scout); and (4) models exhibiting a U-shaped curve (Llama 3.3 70B: 0-shot F1=0.907, 2-shot F1=0.635, 5-shot F1=0.785 with parser corrected). We additionally identify, diagnose, and correct a systematic parsing artifact that artificially deflated Llama 3.3 70B performance by up to 206%, constituting a methodological contribution to LLM evaluation practice. Our results demonstrate that the relationship between shot count and classification performance is not monotonic, not universal, and not predictable from model scale alone.

View source

Similar papers

Open access Sep 2026

Evaluating Prompt Engineering Techniques for LLaMA-3: A Study of Zero-Shot, Few-Shot, and Chain-of-Thought Prompts Across Reasoning and Classification Tasks

Prompt engineering has emerged as a practical and resource-efficient alternative to fine-tuning large language models (LLMs), particularly as these methods have a lower computation cost than fine-tuning. In this paper, three widely adopted prompting techniques—Zero-Shot, Few-Shot, and Chain-of-Thought (CoT)—were assess...

Darren Astle Travasso, Aboozar Taherkhani · 0 citations
Open access Aug 2026

Improving few-shot stance detection with MINE: meta-prompting and in-context N-shot examples

This work presents MINE (Meta-prompting and In-context N-shot Examples), a simple, light-weight, training-free framework that first creates a target-specific LLM stance agent through meta-prompting, and then augments it with a small number of semantically retrieved examples.

Uwaila Ekhator, Francesca Spezzano · 0 citations
#artificial intelligence Preprint Sep 2026

Your Model Already Knows Don't Teach It, Learn to Ask It: Soft Prompting for Few-Shot Adaptation of Vision-Language Models

Modern VLMs already encode much of what is needed for specialized domains; the challenge is learning how to ask, suggests modern VLMs already encode much of what is needed for specialized domains; the challenge is learning how to ask.

Gautam Rajendrakumar Gare, Si-Ying Li, He-Wei Wang et al. · 1 citation
#natural language process... Preprint Sep 2026

Larger Context Window, Fewer Overcorrections: Optimizing Prompts and Batching for Minimal-Edit Grammatical Error Correction

A prompt-based approach that closes the gap to fine-tuned models through three advances in GEC prompting methodology, and shows that batching multiple uncorrected sentences into a single input context acts as a targeted regularizer against overcorrection, systematically reducing the edit rate across diverse LLM familie...

Kateryna Karpo, Artem Chernodub · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.