V. Artificial Intelligence · Chapter 51
Test Time Scaling, Reasoning Models, Agents
Around the mid-2020s, just as the old paradigm of “bigger models, bigger datasets” began slowing, a surprising second wind arrived: LLMs started improving not by growing larger, but by learning to think longer—developing the ability to carry out extended, computation-heavy inference, including reasoning, planning, and interaction with external tools.
Until roughly the mid-2020s, the dominant focus in LLMs was in making models ever larger by increasing their number of internal parameters and dedicating more and more computing resources at training time to feed in more and more training data (text tokens). This was an era of “training-time scaling.” By the mid-2020s, frontier labs began seeing signs of diminishing marginal returns from this strategy—doubling training compute yielded smaller and smaller performance gains; additionally the web-scale text corpora had already been mined, so new tokens were increasingly redundant or noisy.
Researchers noticed that smaller models allowed to think longer could outperform larger models that answered more instantly. This suggested an entire new axis of improvement—not more parameters and bigger training runs, but more computation per question. This concept became known as test-time scaling or inference scaling (“inference” is a model making predictions, generating output). Thus as quickly as one scaling axis slowed down, another entire scaling paradigm appeared.
Researchers studied many different strategies for scaling computation at inference time to allow models to “think harder” about their answers. For example, after generating an output, you can simply ask the model to review its own output, e.g. “Is this correct? If not, fix it,” and then revise, possibly multiple times. In “Best-of-N” sampling, we ask the model to generate N independent answers, then pick the “best” one by some scoring rule. This can get significantly more sophisticated, with different “judge” or “ranking” models reviewing outputs, or adaptive strategies that expand only on the most promising outputs. All of these methods share a simple idea: if you let the model spend a little more time thinking—generating more candidates, revising, verifying—it tends to get better. Accuracy rises not because the model knows more, but because it thinks longer.
In early 2022, the Google Brain team published a paper that opened up another new paradigm: Chain-of-Thought (CoT) reasoning. The paper, “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models,” observed that emergent reasoning abilities in large models could be elicited with the simple prompt: “Let’s think step by step.” For example, with that prompt, on a math problem, instead of attempting to respond immediately with a correct answer, the model will more verbosely list out its steps, “Let the unknown number be x; Twice the number is 2x; Three more than twice is 2x + 3; We set 2x + 3 = 17…” Simply by prompting a large language model to show its reasoning dramatically improved accuracy on arithmetic, logic, and multi-step tasks. This was a classic “emergent” behavior, as this CoT prompting only helps when the models are sufficiently large (on the order of ~100B+ parameters).
Immediately after, researchers realized that instead of trusting a single reasoning chain, you could generate multiple reasoning chains (using randomness) and take the most consistent final answer, essentially re-combining CoT with the earlier best-of-N idea; later, these ideas evolved into search-like reasoning: exploring multiple reasoning paths, verifying them, or decomposing problems into substeps. Simple “chains of thought” became “trees of thought”, echoing classical AI’s tree-search methods, but performed by an LLM.
This line of research led to the era of the reasoning model. These models—like OpenAI’s o1 series (late 2024) and DeepSeek-R1 (early 2025)—are explicitly optimized for multi-step reasoning, performing it internally rather than relying on users to prompt for it. These models internally generate a chain of intermediate “thoughts”—essentially the model talking to itself to think through how to answer—before outputting a “final answer” to the user. Models of this class are trained to spend compute on multi-step deliberation before answering, with both more train-time reinforcement learning and more test-time “thinking” tokens. Instead of optimizing only for giving responses in one shot, they’re optimized to construct and refine intermediate steps and to allocate extra inference budget when problems are hard.
A key ingredient has been a new post-training paradigm, Reinforcement Learning with Verifiable Rewards (RLVR), which replaces or augments human feedback preference rewards with objective checks (e.g., math solvers, compilers, unit tests) so the model is incentivized to produce solutions that result in correct final answers to verifiable reasoning problems, most typically in math & coding.
Early experiments in this direction relied on expensive human-labeled reasoning traces, but with frontier systems showing that more reinforcement learning and more thinking time reliably improve performance, an active area of research is in eliminating the bottleneck of human involvement in the reasoning verification process. For example in math problems, the model’s answer can be checked by a symbolic math solver; for coding, the code can be compiled & executed to see if tests pass. Rather than relying on humans to annotate step-by-step traces, specially trained judge or verifier models can be used to reward correct intermediate steps. Models can even be used to generate both questions/problems and solutions/traces, then verify them (via solver or the verifier) and select the good ones as training data, a form of “self-play” analogous to AlphaGo playing Go games against itself.
The emerging view is that reinforcement learning will command a larger share of LLM training and inference budgets going forward—potentially even rivaling pretraining, going from a small “cherry on top” to a substantial part of the compute budget. It is striking to see the independent threads of reinforcement learning and language modeling converging, braiding together so intricately, effects compounding as we have seen in the complementary technologies of prior revolutions. Even seemingly unrelated advances—such as the widespread adoption of Linux “container” technology, which allows for lightweight isolated runtime environments, originally built for scalable software deployment—have become unexpectedly essential to the AI stack, providing the secure, reproducible sandboxes in which reasoning models can execute code, run experiments, and safely interact with their environments.
As this history is written, in the mid 2020s, a large industry focus is now centered on the concept of agents, the concept of AI systems taking action in the external world, planning and executing multiple steps autonomously. The improved multi-step planning capabilities of reasoning models are a key enabler here, as is the concept of equipping LLMs with software tools—calculators, code interpreters, retrieval systems, web browsers, and APIs—that enable them to interact with the external world. These systems operate through what is often called the agentic loop: an iterative cycle of observe → plan → act → evaluate. The model perceives the current state of the world (through retrieved context or sensory inputs), reasons about possible actions, executes one or more of them—such as issuing an API call or writing code—and then interprets the result before deciding what to do next. Each loop produces new observations that feed back into the model’s context, allowing it to correct mistakes, refine strategies, and pursue longer-horizon goals.
OpenAI’s old research focus around frameworks to enable agents to interact with arbitrary GUI software at the pixel level is relevant again, but the software industry has also rapidly converged on standards for supplying LLMs with tools more directly. In late 2024, Anthropic proposed the Model Context Protocol as an industry-standard mechanism for connecting LLMs to external software; this has seen rapid and enthusiastic uptake from the software development community, with some calling MCP the “HTTP of AI.”
Agent systems can now be given tools to take a wide variety of actions: performing web searches, retrieving and summarizing documents, running code, managing files, updating spreadsheets and databases, sending messages or calendar invites, and orchestrating complex workflows across APIs. In time, they may even execute real transactions—booking travel, ordering goods, or scheduling services—automating nearly any digital task that once required a human at the keyboard.