Learn
Prompting & structured outputs

Few-Shot Prompting vs. Native thinking Reasoning

The short answer

Few-shot prompting teaches format and task framing through pattern completion; it does not install an algorithm. Reasoning models are trained with reinforcement learning to produce their own long chain of thought, so examples mostly add cost and anchor the model to a shorter, shallower trace. Use demonstrations for output shape, and let native reasoning handle the method.

On this page

Two different bets about where competence comes from

Few-shot prompting and native reasoning are answers to the same question, asked at different layers of the stack. The question is: where does the model get the procedure for solving this task?

Few-shot prompting bets on the context window. You place a handful of worked examples before the question, and the model infers the pattern: this is the input shape, this is the output shape, this is the kind of transformation being asked for. Nothing in the weights changes. The examples act as a specification expressed in the model's own language, and the model completes the pattern.

Native reasoning bets on training. The model has been optimised, usually with reinforcement learning against verifiable rewards such as a correct final answer in maths or a passing test suite in code, to generate a long internal trace before answering. It has learned strategies for decomposing problems, checking intermediate results and backtracking. The procedure lives in the weights, and the prompt only has to state the problem.

Understanding which bet you are making explains almost every surprising result in this area. If the task is mostly about format and framing, context is the cheap and effective lever. If the task is about search and verification, the weights have to carry it, and examples in the context are at best neutral.

What demonstrations actually teach

The intuition is that examples show the model how to reason. The evidence is more interesting. A well-known 2022 study by Min and colleagues, Rethinking the Role of Demonstrations, replaced the gold labels in few-shot examples with random ones and found that performance on many classification tasks barely moved. What mattered was the label space, the format of the input-output pairs, and the distribution of the inputs. The demonstrations were teaching the model what kind of answer to produce, not which answer was right.

That finding generalises. Demonstrations are most powerful as a format specification: they show the exact JSON shape, the citation style, the level of detail, the tone, the way an edge case is labelled. They are least powerful as a method specification: a worked solution to a maths problem shows one path, and the model's tendency is to imitate the path rather than derive its own.

Demonstrations also carry artefacts you did not intend. Their order matters, because models overweight recent examples and can develop a recency bias toward the last label they saw. Their label balance matters: four examples of one class and one of another shifts the prior. Their length matters: a model shown three short answers will produce short answers, even when the question needs a long one. Their surface details matter: a demo that mentions a person named Priya will make the model more likely to name someone Priya.

None of this makes demonstrations useless. It makes them a precision tool for the parts of a task that are conventions rather than computations.

Where examples earn their tokens

There are tasks where a demonstration communicates something that prose struggles to. Output formatting is the clearest case: showing one valid object is faster and more reliable than describing twenty field rules. Domain-specific labelling conventions are another: if your support tickets are classified into categories whose boundaries only make sense with examples, two or three well-chosen cases define the boundary better than a paragraph of definitions.

Extraction tasks with irregular inputs benefit too. Invoices from five vendors have five layouts, and an example per layout tells the model what to ignore. Style matching is a legitimate use: if the output must sound like an existing help centre, a real article is a better specification than adjectives.

Smaller models benefit disproportionately, because they have less latent knowledge to fall back on and rely more heavily on in-context structure. A 3B model with three good examples can outperform the same model with a long instruction, while a frontier model may show no difference at all.

The common thread is that the example is supplying a convention that cannot be derived from first principles. When the task is a computation, an example is supplying one instance of an algorithm, which is a much weaker signal.

Demonstrations also interact with prompt caching. A fixed block of examples at the start of the prompt is a cacheable prefix, so the token cost is paid once per unique prefix rather than once per request. That makes few-shot cheaper than a naive token count suggests on high-volume, low-variation workloads, and more expensive when every request carries a different example set.

Where examples make reasoning worse

On a reasoning model, a worked example can actively hurt. The mechanism is imitation. The model sees a trace of a particular length, in a particular style, using a particular method, and it treats that as the expected shape of its own reasoning. If your example solves the problem in four lines, the model will tend to solve the real problem in four lines, even when it needs forty. If your example uses a shortcut that happens to work for its numbers, the model will try the same shortcut on numbers where it fails.

There is a second mechanism: anchoring on the answer. Few-shot examples for reasoning tasks usually include the final answer, and models are good at pattern-matching a plausible answer from the example's neighbourhood. On a benchmark this can look like improvement when the examples are drawn from the same distribution. On real inputs it produces confident answers derived from the example rather than the question.

A third mechanism is format conflict. Reasoning models are trained with a specific channel structure, and inserting demonstrations that mimic that structure by hand can produce a malformed trace: an opening marker that the template already emitted, a closing marker in the wrong place, a reasoning block that starts with Example 1. The model then spends its budget recovering from a format it never expected.

This is why several reasoning model cards explicitly recommend against few-shot prompting and, in some cases, against a system prompt altogether, asking you to put all instructions in the user turn. That guidance is not a universal law, but it is a strong signal about the training distribution. When the vendor says the model was evaluated zero-shot with the instruction in the user message, your few-shot prompt is off-distribution by default.

What native reasoning training buys you

A reasoning model is trained to spend tokens thinking before it answers, and to use those tokens for search rather than narration. During reinforcement learning it discovers behaviours that raise the reward: breaking a problem into subgoals, computing an intermediate value and checking it, trying one approach and abandoning it when it stalls, verifying a candidate answer against the original constraints.

Two consequences follow. First, the model can scale test-time compute: give it a harder problem and it produces a longer trace, which is a lever that few-shot prompting does not provide. Second, the model's failure modes change. It can overthink a trivial question, loop in a trace, or produce a correct intermediate result and then lose it in a wrong final step. Those are different problems from the ones demonstrations solve.

The practical implication is that the prompt's job shifts. With a base or non-reasoning instruct model, you often have to supply the method. With a reasoning model, you supply the problem, the constraints, the output contract and the definition of done. Over-specifying the method is not just wasted tokens; it can override a better strategy the model would have found.

Temperature also behaves differently. Reasoning models often ship with recommended settings in the middle of the range, and greedy decoding can push a long trace into a loop. Follow the model card before applying your house defaults.

Spending compute: longer traces or more samples

Once the model can reason, there are two ways to spend more compute on a hard question. You can let it think longer in a single trace, or you can sample several independent traces and aggregate them. They are not equivalent, and the right choice depends on the shape of the error.

Longer traces help when the model's failure is a matter of depth: the problem needs more subgoals than the model attempted, or an early mistake needs to be detected and undone. Self-correction inside a trace is the mechanism, and it needs room to happen.

Multiple samples help when the failure is variance: the model succeeds on some attempts and fails on others, with no reliable signal about which is which. Majority voting over final answers, the self-consistency method introduced by Wang and colleagues in 2022, turns that variance into accuracy. It is expensive in tokens and only works when the answer space is discrete enough to vote over.

The two compose. A reasoning model sampled five times at a moderate temperature, with majority voting over the extracted final answer, is a strong configuration for maths and structured extraction. It is a poor configuration for open-ended writing, where there is nothing to vote on, and for agentic tasks where each sample would execute a different sequence of tool calls.

Few-shot prompting does not offer either lever. Adding more examples does not make the model think longer, and it does not create useful diversity across samples, because every sample sees the same demonstrations. That asymmetry is the clearest practical argument for native reasoning on hard tasks.

The hybrid that usually wins

In practice the best configuration is rarely pure few-shot or pure zero-shot. It separates the two things a prompt has to communicate: what the output must look like, and how the problem should be solved.

Output shape is a convention, and conventions are cheap to demonstrate. Put the schema or a single valid example in the system message, or better, enforce it with constrained decoding. That removes the need for five demonstrations whose only job was to show a JSON object.

Method is a computation, and computations belong to the model. State the constraints, the definitions and the acceptance criteria in plain language, then let the reasoning trace do its work. If the model has a documented weakness, such as skipping a unit conversion, add a checklist item rather than a worked example that performs the conversion for it.

Examples still have a place for edge cases. If your task has a rare input shape that the model mishandles, one example of that shape, clearly labelled as an edge case, is worth more than ten generic examples. Put it after the instruction, mark it as an illustration of the format, and keep its reasoning short so the model does not imitate its length.

Measuring it on your task

The argument is settled empirically, and the experiment is cheap. Build a set of fifty to a hundred real inputs with known correct outputs or a rubric. Run four configurations: zero-shot with a clear spec, zero-shot with a schema constraint, few-shot with three to five examples, and few-shot with the examples plus the constraint. Score all four the same way.

Hold the sampler fixed across arms, or the comparison measures temperature. Run each arm more than once if the task is generative, because a single sample at a non-zero temperature is noise. Report cost per correct answer, not just accuracy: a few-shot prompt with five long examples can triple input tokens, and on a high-volume task that is the difference between viable and not.

Watch for the failure that hides in aggregate scores. Break the results down by input type. Few-shot often helps on the common case and hurts on the rare one, because the examples bias the model toward the distribution they represent. A task that is ninety per cent routine and ten per cent edge cases can show a net gain while getting materially worse on the part that generates support tickets.

Finally, check variance. If the zero-shot arm is sometimes much better and sometimes much worse, the prompt is underspecified and the model is guessing. Fix the specification before adding examples; examples paper over ambiguity rather than removing it.

Recipes that hold up

These are the defaults worth trying first, in order.

  • Reasoning model, well-specified task: zero-shot, constraints and output contract in the prompt, no worked examples. Add a checklist of failure modes if the model has a known blind spot.
  • Reasoning model, unusual output format: zero-shot plus a schema constraint, or one format-only example that contains no reasoning.
  • Non-reasoning instruct model, classification or extraction: three to five examples, balanced across labels, shuffled order, plus an explicit instruction.
  • Non-reasoning model, multi-step task: few-shot chain-of-thought can help, but check whether a reasoning model is simply the better tool.
  • Any model, rare edge case: one labelled edge-case example, placed after the main instruction.
  • Any model, high volume: measure tokens per request. Demonstrations are a fixed cost on every call and a candidate for distillation into a fine-tune.

Pitfalls

The mistakes below account for most of the disappointing results in this area.

  • Showing a reasoning trace and expecting the model to generalise the method. It will imitate the trace's shape, not its logic.
  • Leaving the answer in the example when the task is to produce that answer. Models copy.
  • Using examples drawn from the same template as the test set, then reporting a gain that is really leakage.
  • Stacking ten examples to fix an instruction that was ambiguous. Rewrite the instruction.
  • Putting examples before the instruction, so the last thing the model reads is an example rather than the task.
  • Assuming a reasoning model needs a think-tag demonstration. The template already opens the channel.
  • Forcing step-by-step phrasing on a model trained to reason. It is redundant at best and can conflict with the trained format.
  • Comparing arms at different temperatures or token limits, then attributing the difference to the prompting method.
Page feedback

Was this helpful?

A quick signal helps improve these notes.

Report a mistake Straight to the lab inbox

Put it to work

See the models, datasets and gateway this lab runs.