Onpode
Cover art for From language to reasoning: scaling chain-of-thought for math, code, and planning

From language to reasoning: scaling chain-of-thought for math, code, and planning

November 22, 2026 · 9 min

Miles Ashworth & Megan Skiendel

Chain-of-thought prompting raised a frozen language model's GSM8K math score from 18% to 57% simply by having it write intermediate steps before answering. OpenAI's o1 (September 2024) trained this in via reinforcement learning — but hidden thinking tokens are billed at premium rates, and wrong intermediate steps can compound undetected.

Chain-of-thought (CoT) reasoning is a training and inference methodology in which AI language models are prompted or trained to generate intermediate reasoning steps before producing a final answer.

0:008:54
Get the next episode on Artificial Intelligence →

Follow it free — new episodes land in your feed.

Or make your own — any topic, in minutes

More Onpode episodes on Artificial Intelligence →

About this episode

In 2022, a Google Research team discovered something quietly strange: a model failing grade-school math at 18% accuracy could be pushed to 57% without any retraining — just by asking it to write out its steps before answering. That single result reshaped how the field thinks about what large language models can do. This episode traces what happened next: how OpenAI's o1 family baked chain-of-thought into the model itself via reinforcement learning, why that made reasoning something you can buy more of at inference time rather than training time, and what it means that the working is often hidden from the person paying for it. The episode also sits with harder questions. A 2026 paper called TRACE argues that the formal machinery of reasoning — causation, structured inference — is simply absent from these systems, and that chain-of-thought inherits the associative limits of autoregressive decoding. Yet benchmarks keep climbing. The episode doesn't pretend to resolve that tension. It does explore where the cracks show up in practice: off-distribution problems, a fintech engineer's Saturday invoice, and the finding that many tokens in a long reasoning chain are padding rather than genuine load-bearing steps. If you work with these models, build on them, or sign off on the bills, this is a useful 9 minutes.

Frequently asked

What is chain-of-thought prompting and does it actually work?

Chain-of-thought prompting has a language model write intermediate reasoning steps before giving a final answer. Google Research's Jason Wei and Denny Zhou showed in 2022 that this single prompt change raised a frozen model's GSM8K math score from 18% to 57%, with no retraining — the model used its own output as a scratchpad.

How does OpenAI o1 differ from standard chain-of-thought prompting?

OpenAI o1, released September 2024, trains chain-of-thought in via large-scale reinforcement learning, so the model reasons step-by-step without any special prompt. It also scales with test-time compute: a larger thinking budget at inference time improves accuracy, independent of model size.

Are chain-of-thought reasoning tokens hidden from users, and do they still cost money?

In models like o1, raw thinking tokens are typically hidden — users see only a summary. Those tokens are still billed at standard output-token rates. A single malformed prompt can trigger tens of thousands of expensive thinking tokens, creating a potential denial-of-service cost vector for providers.

Is chain-of-thought reasoning the same as genuine logical reasoning?

A 2026 paper called TRACE argues chain-of-thought and reinforcement learning inherit the associative limits of autoregressive decoding and lack formal machinery like Pearl's ladder of causation. The practical risk: a wrong intermediate step gets built upon confidently, with no error flag — especially on problems outside the training distribution.

What is token value non-uniformity in chain-of-thought models?

Token value non-uniformity refers to the finding that in long chain-of-thought outputs, only a subset of tokens are load-bearing — the steps a conclusion actually depends on. The rest is effectively padding. Token-level log-probability signals can distinguish the two, and this gap drives current efficiency research into reasoning budget optimization.

Grounded in 8 sources
DiffCoT: Diffusion-styled Chain-of-Thought Reasoning in LLMs ↗ · arxiv.org
Hierarchical Chain-of-Thought Prompting: Enhancing LLM Reasoning Performance and Efficiency ↗ · arxiv.org
Focused Chain-of-Thought: Efficient LLM Reasoning via Structured Input Information ↗ · arxiv.org
Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models ↗ · arxiv.org
Understanding Reasoning in Chain-of-Thought from the Hopfieldian View ↗ · arxiv.org
Towards Thinking-Optimal Scaling of Test-Time Compute for LLM Reasoning ↗ · arxiv.org
Consolidating Reasoning with Test-Time Training ↗ · arxiv.org
End-to-End Test-Time Training for Long Context ↗ · arxiv.org
Read transcript

Miles Ashworth: Megan, hello again, you're looking suspiciously cheerful for someone about to be told her industry's favourite word is mostly stagecraft.

Megan Skiendel: Ha, I'll take the bait. Hold the verdict, though. Start with the scene: Google Research, 2022, Jason Wei and Denny Zhou, and a model that's just failing grade-school maths.

Megan Skiendel: On GSM8K it scores 18%. Nobody retrains it. They only change the prompt, and it jumps to 57%.

Miles Ashworth: I'm sorry, what did they change?

Megan Skiendel: They had it write its working before the answer. Intermediate steps, then the result. Chain-of-thought.

Miles Ashworth: Well, there you are. It didn't get smarter. It got a scratchpad.

Megan Skiendel: Honestly, that's the click for me. You can't do 4,872 divided by 12 in your head without dropping something. Give yourself paper and it's easy.

Miles Ashworth: And the model's paper is its own writing. It reads back what it just wrote, one step at a time.

Megan Skiendel: So same head, new paper.

Miles Ashworth: Which leaves the awkward bit. If paper did that much in 2022, how much of the modern word reasoning is the model, and how much is format?

Megan Skiendel: So if paper did that in 2022, the obvious next question is who decided to stop leaving it to the prompt. What happened after the Google paper?

Miles Ashworth: Well, OpenAI happened. September 2024, the o1 family. Wei and Zhou published the trick, and OpenAI decided to train it in. Nobody types "think step by step" any more. The model was trained with large-scale reinforcement learning to do it unprompted.

Megan Skiendel: Trained how, though? Who's marking the working?

Miles Ashworth: Rewards, mostly for right answers. The model tries chains, the ones that land get reinforced, and it learns which scribbling pays. Imitating human worked examples is out. It discovers what's useful.

Megan Skiendel: And those chains, I can't read them. Right?

Miles Ashworth: Mostly not. They're called thinking tokens, and the raw ones are often hidden from you. You see a summary. The thinking happens off stage.

Megan Skiendel: Honestly, that was a product call. Someone chose to ship something slower and costlier per query, and sell the slowness as a feature.

Miles Ashworth: Quite. And here's the new axis. o1 improves with training compute, and also with how long it's allowed to think at answer time. Test-time compute scaling. Well, you can buy accuracy without a bigger model.

Megan Skiendel: That's just bill more hours.

Miles Ashworth: Bill more hours, call it rigour. The oldest trick in the consultancy book. Though, look, I'll concede the effort isn't flat. A simple query gets a short chain, a few explicit steps. A hard one gets long CoT: backtracking, checking itself, verification loops.

Megan Skiendel: Okay, but is that only OpenAI's secret sauce? Because if so, it's a moat, not a paradigm.

Miles Ashworth: DeepSeek-R1 says no. Chain-of-thought via reinforcement learning, done by someone else, in the open. And by 2026 reasoning-tuned models have saturated GSM8K, that 57% benchmark, so the contest moved to AIME and Putnam-style problems.

Megan Skiendel: Saturated GSM8K, fine. But a benchmark going green doesn't tell me what's underneath. So is it reasoning, or is it association with good posture?

Miles Ashworth: Well, I know which I'd bet on. Very expensive autocomplete arranged in bullet points. The trouble with the defence that it works is that it works until it doesn't, and nobody can tell you in advance where the edge is.

Megan Skiendel: Let me argue the other side, then. o1's accuracy climbs with thinking budget. Competitive AIME scores, Putnam-style problems. Honestly, if that isn't multi-step reasoning, what would be?

Miles Ashworth: There's a 2026 paper called TRACE that says it isn't. Socratic procedure, Pearl's ladder of causation, the formal machinery of reasoning, absent. And it argues chain-of-thought and reinforcement learning simply inherit the associative limits of autoregressive decoding.

Megan Skiendel: Hold on. Absent as machinery. That's a claim about the engine, not the results.

Miles Ashworth: Quite. Which is why the benchmarks climbing anyway is the annoying bit. Good lord, you can't even call it a clean refutation.

Megan Skiendel: So what does the association claim actually predict? Look, in the room, nobody's arguing seminar philosophy. They ask whether it's reliable enough to ship. If it's association, where does it break? Because that's the only version I can put in a planning doc.

Miles Ashworth: Off-distribution. Problems unlike anything it was rewarded on. Well, I mean, that's the prediction: fluent, confident, and wrong, with no flag on the page. And a wrong step three gets a lovely cathedral built on it.

Megan Skiendel: Here's what muddies your tidy edge, though. Thinking Leakage. The gains from NoThink post-training may come from Think-mode behaviour already sitting in the base model.

Miles Ashworth: Meaning the fast and slow modes aren't separate at all.

Megan Skiendel: Right, so the clean fast-versus-slow story on the pricing page is a marketing line. And TRACE's answer is a typed schema, so a trace can actually be audited. Nobody can audit one today.

Miles Ashworth: So no winner, just a trust question: when can you believe it off-distribution? And wait until you hear what one engineer's invoice does to that question.

Megan Skiendel: So if nobody can audit the chain, the first place anyone notices is the invoice. Saturday evening, a platform engineer at a mid-size fintech opens the bill. Her code-review agent got switched to a reasoning model on Thursday.

Miles Ashworth: Saturday evening. Poor woman. That's a dedicated sort of dread.

Megan Skiendel: Most pull requests cost pennies. But one malformed diff sent the model off into a very long chain. She opens the logs and finds a visible summary. Not the full trace.

Miles Ashworth: And the answer?

Megan Skiendel: Wrong anyway.

Miles Ashworth: Splendid. Well, here's what gets me. Thinking tokens are often hidden, yet they're billed as output tokens. You pay the premium rate for writing you're not permitted to read.

Megan Skiendel: Honestly, that's my surprise. And it's worse than a bad month. Providers allow big reasoning budgets so legitimate reasoning isn't truncated. So a short, cheap prompt can force tens of thousands of expensive output tokens.

Miles Ashworth: Good lord. The cheapest way ever devised to make someone else's server work overtime. Denial of service, by one sentence and a shrug.

Megan Skiendel: Hold on, though. Are all those tokens earning their keep? Because twenty thousand sounds like a lot of paper.

Miles Ashworth: Mostly not. Token value non-uniformity, it's called. Some tokens are load-bearing, the step the conclusion actually hangs on. Others are padding, the model clearing its throat. Token-level log-probability signals can tell them apart, and that's what efficiency research feeds on.

Megan Skiendel: So long CoT is partly just rambling. And I mean, that's what teams tell me they do: rate limits, budget caps. Mostly unannounced, because overthinking is real.

Miles Ashworth: Now the cathedral. Autoregressive decoding means step three is wrong, step four builds on it, and the model can't unwrite step three. DiffCoT, 2026, recasts the chain as iterative denoising, so earlier steps can be revised. Experimental, mind. Nobody's shipping it.

Megan Skiendel: So her bill might be twenty thousand tokens of confident cathedral.

Miles Ashworth: Quite. Though I'll grant it: for complex code, legal work, science, the cost often justifies itself. It's the Tuesday test-fix that stings.

Megan Skiendel: Back to the page, though. If the chain is just what the model finds plausible to write, what is anyone auditing when they read it?

Miles Ashworth: Theatre criticism. Well, quite. You sit in the stalls, you read the performance, and you say the third act was coherent. You haven't been backstage. If the visible chain isn't a faithful record of what the model actually did, reading it may not audit the real computation at all.

Megan Skiendel: Mm. Except I've sat through plenty of post-hoc justifications in meetings, and they were still useful. You could see which assumptions someone reached for.

Miles Ashworth: Fair. A bad record is still a record of something. I'd say the scratchpad is a durable gain, o1 and DeepSeek-R1 both lean on it, and it just isn't a window.

Megan Skiendel: Which is why TRACE's typed traces matter to me. Not proof, honestly. One attempt at making the page something you could check.

Miles Ashworth: Yes. A schema is at least a promise about what the writing has to contain. Whether it holds once training pushes harder, I don't know. Nobody does, frankly.

Megan Skiendel: Right, because reward only cares about the answer. Nothing in it says the working has to stay readable.

Miles Ashworth: No. So for now we've got a page we can read, and I'd like to know how long it stays that way.