Getting better answers
Examples beat adjectives
Telling a chatbot to be more concise, more professional, more creative describes a result. Pasting one short example of the output you want is a specimen of it. Both vendors recommend the second, without claiming it outperforms the first. Anthropic asks for three to five relevant, diverse examples wrapped in tags, saying they improve accuracy and consistency1. OpenAI describes including a handful of input and output pairs as a way to steer a model toward a new task instead of retraining it2. The phrase in this page's title is this volume's shorthand and not wording either vendor uses.
The measurement for the handful-of-examples case is old. In the 2020 GPT-3 paper that first measured the technique, the 175-billion-parameter model scored 64.3 percent on closed-book TriviaQA with no examples and 71.2 percent with a few3. That model has been superseded and nothing newer was located for the same comparison. The 2024 measurements that do exist concern a different quantity. On Gemini 1.5 Pro, prompts built from many model-generated worked examples reached 83 percent average success on Big-Bench Hard against 72.1 percent for human-written chain-of-thought prompts4. The same study separately measured translation with 997 examples in the prompt, improving over a one-shot baseline on Bemba and Kurdish4, and pushed accuracy on a different benchmark past a reported figure for another model using a 125-example prompt4. Vendors recommend three to five examples; these separate results test hundreds to thousands.
Why examples work is the surprising part. In the most-cited controlled experiment, replacing the answers inside the examples with randomly chosen wrong ones cost only zero to five percentage points of accuracy, while removing the input-and-answer structure entirely performed close to or worse than no examples at all5. What examples mainly supply is the shape of the reply and the range of answers in play, not correct pairings for the model to copy.
The boundary is that more stops helping, and how much depends on the task and the model. In the same 2024 study, summarization quality peaked at about fifty examples and then deteriorated4, and in a separate study one vision model gained nothing from long example prompts that substantially helped two others6. Stacking examples on faith is not a reliable path to a better reply.
References
Quizzes
A controlled experiment replaced the answers inside the examples with randomly chosen wrong ones. What did that reveal about what examples supply?
- Mostly the format and the range of answers
- Mostly correct input and answer pairings
- Mostly a wider working vocabulary
Wrong answers inside the examples cost zero to five percentage points on the measured tasks, while removing the pairing structure entirely performed close to or worse than no examples at all.
In the 2024 many-example study, summarization quality rose with more examples and then ____ past about fifty of them.
- fell
- levelled off
- kept climbing
The benefit has a ceiling and can reverse. One task peaked near fifty examples and another near a hundred and twenty-five, so stacking examples is not a steady gain.
Comments
No comments yet. Start the conversation.