The ROI of Small Examples: Optimizing In-Context Learning Under Token Budgets
Paper · https://arxiv.org/abs/2611.24971
arXiv:2611.24971v1 Announce Type: new Abstract: In-context learning (ICL) improves large language model performance at inference time without updating model parameters. However, these gains are not free: in practical deployments, longer prompts directly increase inference cost and latency. Under a fixed token budget, prompt construction therefore becomes a resource-allocation problem. While prior work has often focused on how many examples to include in ICL, we study the complementary question of whether the available budget is better spent on a few long demonstrations or on a larger number of shorter ones. We study this aspect in question answering (QA), by organizing candidate demonstrations into length-based bins and constructing prompts from examples within the same length range under fixed budgets. Experiments on two QA benchmarks (\textit{Beat the AI} and \textit{Natural Questions}), using six instruction-tuned LLMs, show that shorter demonstrations are generally the most effective use of prompt space. This effect is especially strong on \textit{Beat the AI}, and remains visible on NQ, although gains are smaller and saturate earlier in the long-context setting. An additional natural language inference experiment on ANLI R3 finds that one of the two shorter bins performs best for five of six models, although longer demonstrations remain competitive. Overall, our results highlight demonstration granularity as an important factor in prompt design.
First seen by Oriel on .
AI summary
This paper finds that, under fixed token budgets, shorter in-context demonstrations generally improve question-answering performance more effectively than fewer, longer examples.
- The study frames prompt construction as resource allocation because longer prompts directly increase inference cost and latency.
- Experiments organized demonstrations into length-based bins and built prompts from examples within the same length range under fixed budgets.
- Testing covered Beat the AI and Natural Questions with six instruction-tuned LLMs; gains were strongest on Beat the AI and saturated earlier on long-context NQ.
- On ANLI R3, one of the two shorter bins performed best for five of six models, though longer demonstrations remained competitive.
#in-context learning #prompt optimization #question answering #large language models
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| arXiv AI Papers | oai:arXiv.org:2611.24971v1 | https://arxiv.org/abs/2611.24971 Read discussion |