Shared search · Aug 11, 2026
How do reasoning LLMs like o1 and DeepSeek-R1 actually work?
Reasoning LLMs are ordinary transformer language models trained to spend extra compute "thinking" in tokens before they commit to an answer.
The core recipe
Models like OpenAI's o-series and DeepSeek-R1 generate a long chain of thought before the final answer, and are trained with reinforcement learning that rewards verifiably correct outcomes - a math answer that checks out, code that passes tests. Strategies like decomposing problems, self-checking, backtracking, and trying alternative approaches are not hand-coded; they emerge because they raise the reward 1
2. DeepSeek-R1 demonstrated this works even without any supervised reasoning traces to start from, and that the resulting behavior can be distilled into much smaller dense models
1
4.
Test-time compute
The second ingredient is inference-time scaling: accuracy on hard problems keeps improving as the model is allowed more thinking tokens. That is why reasoning products expose effort or budget controls - Claude's extended thinking, for example, streams a visible reasoning block whose token budget the developer sets, trading latency and cost for accuracy 2
3.
How to think about the landscape
In practice there are four ways to get a reasoning model: pure inference-time scaling (prompting and sampling tricks), pure RL, RL on top of supervised fine-tuning (the strongest production recipe), and distillation from a bigger reasoner 5. The common thread is simple: the chain of thought acts as working memory, letting a fixed-size network trade sequential token generation for effectively deeper computation
2
5.
Related
Ask your own follow-ups
Komo answers with sources. Pick up this thread in your own library and keep digging.