Nestor G Pestelos Jr · Reference · Print this page
Reasoning in Language Models
Published September 3, 2026 · Cognitive Science & Artificial Intelligence
Reasoning in large language models is the capability of neural networks to execute multi-step symbolic deduction, mathematical problem-solving, and algorithmic planning across intermediate thought representations. Rather than predicting answers through single-step associative intuition, reasoning architectures allocate variable inference-time compute to search, verify, and revise intermediate reasoning paths before emitting final output.
1. Theoretical Foundations: Dual-Process Cognitive Framing
In cognitive psychology, Kahneman's dual-process theory categorizes human thought into two modes [1]:
- System 1 (Intuitive): Fast, automatic, associative, and low-compute (e.g. recognizing a face, completing common idioms).
- System 2 (Deliberative): Slow, sequential, rule-governed, and computationally intensive (e.g. calculating \(17 \times 43\), playing chess, compiling code).
Standard autoregressive generation operates analogously to System 1: every token receives an identical, fixed computational budget across Transformer layers. When faced with complex multi-step reasoning problems, standard models hallucinate because intermediate calculations cannot be completed within a single forward pass without intermediate scratchpad states.
2. Prompt-Level Scaffolding (CoT & Tree of Thoughts)
Early breakthroughs demonstrated that reasoning capabilities could be unlocked without parameter modification by structuring the input context:
- Chain-of-Thought (CoT): Wei et al. showed that prompting a model to "think step-by-step" causes it to emit intermediate rationales before producing an answer [2]. Each generated step acts as conditional context for subsequent steps, transforming non-linear deduction into linear sequential token generation.
- Self-Consistency: Wang et al. improved task reliability by sampling multiple independent CoT reasoning paths at temperature \(\tau > 0\) and selecting the final answer via marginal majority voting, marginalizing out reasoning errors [3].
- Tree of Thoughts (ToT): Yao et al. generalized linear CoT into deliberate tree exploration, allowing models to branch out alternative intermediate hypotheses, evaluate their promise with self-evaluation prompts, and backtrack when dead ends are reached [4].
3. Test-Time Compute Scaling Laws
Historically, language model performance scaled with pre-training compute (model parameters \(N\) and training tokens \(D\)). In 2024, frontier research established a parallel scaling law: test-time compute scaling [5]. Performance on complex mathematics, competitive programming, and formal logic improves as a power law of the inference compute allocated to generating and verifying intermediate thinking tokens:
$$\text{Accuracy} \propto (\text{Inference Compute})^{\gamma}$$Reasoning models (such as OpenAI o1/o3 and DeepSeek-R1) leverage this principle by generating long, internal "chains of thought" (often thousands of tokens) prior to delivering the final user-facing response [6]. During this internal generation, models evaluate sub-problems, test counterexamples, catch early errors, and rewrite failed proofs.
4. Verification Architectures: Process Supervision & Search
Process Reward Models (PRMs)
Traditional reinforcement learning trains an Outcome Reward Model (ORM) that rewards only the final correctness of the answer: \(r(x, y) \in \{0, 1\}\). In multi-step proofs, ORMs encourage reward hacking, where a model arrives at the correct answer through flawed, accidental logic.
Lightman et al. introduced Process Supervision, training a Process Reward Model (PRM) to score the mathematical validity of every individual step \(t\) in a reasoning chain [7]:
$$\text{Score}(z) = \prod_{t=1}^T P(\text{step } t \text{ is correct} \mid x, z_1, \dots, z_t)$$Process supervision guides beam search and rejection sampling directly toward logically rigorous derivations.
Search & Self-Correction (MCTS & Pure RL)
Production reasoning models integrate reinforcement learning with algorithmic verification:
- Reinforcement Learning with Rule-Based Verifiers: DeepSeek-R1-Zero demonstrated that large language models trained purely with reinforcement learning (using deterministic unit tests and mathematical equivalence verifiers as the reward function) spontaneously develop self-verification, self-correction, and extensive multi-step deliberation strategies without human demonstration data [6].
- Monte Carlo Tree Search (MCTS): Pairing value networks with rollout simulations enables models to plan moves ahead in formal theorem provers (Lean, Isabelle) and competitive programming environments.
5. Evaluation Benchmarks & Frontier Challenges
Reasoning evaluation has shifted away from multiple-choice benchmarks (MMLU) toward verifiable formal tasks:
- GSM8K & MATH: Grade-school and high-school competitive Olympiad mathematics requiring multi-step symbolic derivation.
- SWE-bench: Resolving real-world software engineering issues from GitHub repositories, evaluating multi-file code navigation and patch verification.
- ARC-AGI: François Chollet's Abstraction and Reasoning Corpus, measuring out-of-distribution visual inductive logic and few-shot program synthesis.
Open frontier challenges include overthinking simple queries, degradation on creative tasks, and the computational latency cost of emitting thousands of thinking tokens per interaction.
See also
- ELI5: Reasoning · Visual picture-book explainer of System 1 intuition vs. System 2 scratchpads.
- Prompt Engineering · Chain-of-Thought prompting and in-context task scaffolding.
- Fine-Tuning and Alignment · RLHF, DPO, and reinforcement learning training procedures.
- Context Windows · Memory boundaries that house expanded thinking traces.
- Large Language Models · Foundation architectures supporting autoregressive reasoning.
References
- [1] D. Kahneman, Thinking, Fast and Slow, Farrar, Straus and Giroux, New York, 2011.
- [2] J. Wei, X. Wang, D. Schuurmans, et al., "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models," in NeurIPS, 2022. https://arxiv.org/abs/2201.11903
- [3] X. Wang, J. Wei, D. Schuurmans, et al., "Self-Consistency Improves Chain of Thought Reasoning in Language Models," in ICLR, 2023. https://arxiv.org/abs/2203.11171
- [4] S. Yao, D. Yu, J. Zhao, et al., "Tree of Thoughts: Deliberate Problem Solving with Large Language Models," in NeurIPS, 2023. https://arxiv.org/abs/2305.10601
- [5] N. Brown, G. Zhang, S. Feng, et al., "Large Language Models at Test-Time: Scaling Compute via Search and Verification," OpenAI Technical Papers, 2024.
- [6] DeepSeek-AI, "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning," arXiv:2501.12948, 2025. https://arxiv.org/abs/2501.12948
- [7] H. Lightman, V. Kosaraju, Y. Burda, et al., "Let's Verify Step by Step," in ICLR, 2024. https://arxiv.org/abs/2305.20050