Skip to content
AgenticAIWiki
  1. Learn
  2. Part 2
  3. 13. Chain of thought and output steering
  4. 13.4

Lesson 13.4 · 4 of 6 · 4 min read · Reviewed 24 Nov 2026

When chain of thought hurts

By the end, you can

  • Recognise when chain of thought adds cost without benefit.
  • Choose the lightest technique that works.

Chain of thoughtChain of thought: Asking or allowing the model to reason step by step before giving its final answer. isn’t free.

Costs

  • TokensToken: The unit a model reads and writes: a word, part of a word, a space or a symbol, mapped to an integer id.: reasoning can be several times longer than the answer, and output tokensOutput tokens: The tokens the model generates in its reply, including any tool calls and thinking. cost more than input.
  • LatencyLatency: The time from sending a request until you get the response, or until the first token arrives when streaming.: users wait while it’s written.
  • Parsing: you must separate reasoning from the answer.

When to skip it

  • Simple extraction: a date, a name, an amount.
  • Classification with clear rules and good examples.
  • High-volume tasks where accuracy is already high.

When it can hurt

Occasionally reasoning talks the model out of a correct gut answer, or adds made-up “facts” along the way. You’ll only see that if you measure.

Decide with data

Run your evalEval: A repeatable test that measures how well an AI system performs on a set of cases with defined success criteria. set with and without CoT. Keep it where it clearly helps, and drop it where it doesn’t. That’s the eval-first habit from Part 3.

Key points

  • Reasoning costs output tokens and time.
  • Simple lookups, extraction and classification by clear rules rarely need it.
  • Measure it: keep chain of thought only where an eval shows it helps.
Hands-on labRuns in the Playground

Decide where chain of thought pays

Use eval results to decide, task by task, whether chain of thought is worth its extra tokens.

You will have: A decision table with accuracy gain, cost ratio and a keep or drop verdict for each of four tasks.

Steps

  1. Read the illustrative eval results: accuracy and output tokens with and without chain of thought for four tasks.
  2. Complete cost so it returns credits per call, with output tokens costing five times input tokens.
  3. Complete decide: keep chain of thought only if accuracy rises by at least 3 points.
  4. Print the table and check which tasks keep it.

Done when

  • The table shows a cost ratio for every task.
  • Date extraction and sentiment tagging are DROP; the refund decision is KEEP.
  • The script prints 'keep CoT for: refund decision, ledger check'.

Open in the Playground No API key needed.

Starter code (Python)
# Illustrative eval results on 100 cases per task. Tokens are per call.
TASKS = [
    # name, input tokens, (accuracy, output tokens) without, (accuracy, output tokens) with
    ("date extraction", 400, (0.99, 20), (0.99, 300)),
    ("sentiment tagging", 300, (0.96, 5), (0.95, 250)),
    ("refund decision", 900, (0.74, 60), (0.89, 700)),
    ("ledger check", 1500, (0.61, 80), (0.83, 1200)),
]

def cost(input_tokens, output_tokens):
    # TODO: credits per call = (input + 5 * output) / 1000
    return 1.0

def decide(acc_without, acc_with):
    # TODO: "KEEP" if accuracy rises by at least 0.03, else "DROP"
    return "KEEP"

kept = []
print(f"{'task':20} {'gain':>6} {'cost x':>7}  verdict")
for name, inp, (a0, o0), (a1, o1) in TASKS:
    ratio = cost(inp, o1) / cost(inp, o0)
    v = decide(a0, a1)
    if v == "KEEP":
        kept.append(name)
    print(f"{name:20} {(a1 - a0) * 100:+5.0f}pt {ratio:6.1f}x  {v}")
print("keep CoT for:", ", ".join(kept))
Show a solution
# Illustrative eval results on 100 cases per task. Tokens are per call.
TASKS = [
    # name, input tokens, (accuracy, output tokens) without, (accuracy, output tokens) with
    ("date extraction", 400, (0.99, 20), (0.99, 300)),
    ("sentiment tagging", 300, (0.96, 5), (0.95, 250)),
    ("refund decision", 900, (0.74, 60), (0.89, 700)),
    ("ledger check", 1500, (0.61, 80), (0.83, 1200)),
]

def cost(input_tokens, output_tokens):
    return (input_tokens + 5 * output_tokens) / 1000

def decide(acc_without, acc_with):
    return "KEEP" if acc_with - acc_without >= 0.03 - 1e-9 else "DROP"

kept = []
print(f"{'task':20} {'gain':>6} {'cost x':>7}  verdict")
for name, inp, (a0, o0), (a1, o1) in TASKS:
    ratio = cost(inp, o1) / cost(inp, o0)
    v = decide(a0, a1)
    if v == "KEEP":
        kept.append(name)
    print(f"{name:20} {(a1 - a0) * 100:+5.0f}pt {ratio:6.1f}x  {v}")
print("keep CoT for:", ", ".join(kept))
Quick checkA high-volume task extracts a date from short emails. Accuracy is already 99%. Should you add chain of thought?
How sure are you?
Pick an answer and how sure you are