Where step-by-step prompting helps and where it costs

L1ScreenConcept7 minScreenML breadth

RolesLLM Product EngineeringAgent Systems EngineeringDeveloper Experience and Education

The question

Your team adds "think step by step" to every prompt in the product, including a high-volume classifier and the calls to a reasoning model. Where does that help, where does it hurt, and why?

Answer it first, aloud or on paper. Then open the answer.

The answer

Show short answer

It helps on multi-step problems, where each reasoning token becomes context for the next one and the model computes its way to the answer. It hurts on simple recall and single-step classification, where it adds 50 to 200 tokens of reasoning per query for no gain, and on reasoning models, which already run a chain of thought internally and can get worse with the extra instruction. Pick the technique per task from the accuracy requirement, the latency budget and the cost.

Show full answer

Why it works

A transformer without a visible chain has to compress all the reasoning into the hidden state of one forward pass. With the chain, the intermediate steps are tokens, and every token extends the context for the next. On the grade-school math benchmark the lesson shows one model moving from 78 percent zero-shot to 91 percent with the phrase alone and to 95 percent with worked examples.

Where it does not pay

  • Simple factual recall and single-step classification. There is nothing to reason through, and the chain is pure overhead.
  • High-throughput, low-complexity tasks. The 50 to 200 extra tokens on every call are cost and latency.
  • Reasoning models. They run the chain internally before they answer; the instruction is redundant and sometimes counterproductive.
  • Wide search problems. On the lesson's arithmetic puzzle, standard prompting solved 7.3 percent of cases, a single chain solved 4.0 percent, and a tree search over branches solved 74 percent.

Choose per task

TechniqueCallsToken overheadFits
Zero-shot1nonesimple tasks
Few-shot1200 to 500 tokensformat matching
Zero-shot chain150 to 200 tokensa quick reasoning lift
Few-shot chain1300 to 600 tokensthe best single call
Self-consistency with 5 samples5five times the tokenshigh-stakes reasoning

Follow-ups

  1. L1ScreenWhy does writing the steps out raise accuracy?

    Show expected answer

    each reasoning token becomes context for the next token, so the model computes the answer in steps instead of in one pass.

  2. L2WorkingWhat does the classifier pay for the extra phrase?

    Show expected answer

    50 to 200 tokens of reasoning per query, which at volume is cost and latency for no accuracy gain.

  3. L2WorkingWhy leave the phrase out for a reasoning model?

    Show expected answer

    it already runs its chain internally before the answer, so the instruction is redundant and sometimes counterproductive.

  4. L3SeniorIs there a task where a single chain is worse than a plain answer?

    Show expected answer

    yes, the lesson's search puzzle, where the chain solved fewer cases than standard prompting and a tree search solved most.

Wrong answers

Show the wrong answers that interviewers hear
  • “It never hurts, worst case it is neutral.”

    It costs tokens on every call, and it lowered accuracy on the wide search puzzle and on reasoning models.

  • “Few-shot and chain of thought are the same thing.”

    Few-shot shows examples; chain of thought shows reasoning; the two combine into few-shot chain of thought.

  • “Always run it at temperature zero.”

    A single chain at zero is fine, but sampling several chains for a vote needs temperature above zero, or every sample is identical.

Taught in

The lesson few-shot and chain-of-thought gives the mechanism, the benchmark table, the cases where the chain hurts and the technique comparison.