Between June 2020 and 2026, Large Language Models (LLMs) underwent two distinct phase transitions. The first phase (2020–2023) scaled dense autoregressive Transformers across internet corpora and aligned them for conversational instruction-following via Reinforcement Learning from Human Feedback (RLHF). The second phase—the 2024–2026 takeoff point—shifted the scaling frontier from raw pre-training parameter counts to sparse Mixture-of-Experts (MoE) with Multi-Head Latent Attention (MLA), Reinforcement Learning with Verifiable Rewards (RLVR), inference-time compute scaling (extended thinking), and interleaved multi-step tool execution over protocols like the Model Context Protocol (MCP).
For broader foundations, see the Generative AI Hub, Agentic AI Hub, and Machine Learning.
The trajectory of frontier models since 2020 is governed by how engineering labs allocate floating-point operations (FLOPs) across three orthogonal scaling axes:
flowchart LR
subgraph Regime1["Regime 1: Pre-Training Scaling (2020–2023)"]
PT1["Dense Autoregressive Next-Token Prediction"] --> PT2["Chinchilla Compute-Optimal Frontier (N ∝ C^0.5, D ∝ C^0.5)"]
end
subgraph Regime2["Regime 2: Post-Training & RLVR Takeoff (2024–2025)"]
RL1["SFT + RLHF / Constitutional AI"] --> RL2["RL with Verifiable Rewards (GRPO on Code, Math & Logic)"]
end
subgraph Regime3["Regime 3: Test-Time & Agentic Scaling (2025–2026)"]
TT1["Variable-Budget Chain-of-Thought Tokens"] --> TT2["Interleaved Tool Calls, Verification Loops & Multi-Agent Graphs"]
end
Regime1 --> Regime2 --> Regime3
| Scaling Regime | Dominant Era | Governing Compute Budget | Primary Failure Mode Addressed | Representative Milestone Models |
|---|---|---|---|---|
| 1. Pre-Training Compute (C_{\text{train}}) | 2020–2023 | C_{\text{train}} \approx 6 N D FLOPs across N active parameters and D tokens | World knowledge coverage, syntax, and zero/few-shot representation | GPT-3 (175B), Chinchilla (70B), LLaMA-1/2, GPT-4 (Base) |
| 2. Post-Training Alignment (RLHF / DPO) | 2022–2024 | 10^{-3} \times to 10^{-2} \times C_{\text{train}} on preference pairs | Instruction-following, tone, refusal boundaries, and format compliance | InstructGPT, ChatGPT (GPT-3.5), Claude 2 / 3, Llama 3 Instruct |
| 3. RL with Verifiable Rewards (RLVR) | 2024–2026 | 10^{-1} \times to 0.3 \times C_{\text{train}} rolling out long reasoning trajectories against deterministic verifiers | Multi-hop mathematical deduction, backtracking, self-correction, and algorithmic synthesis | OpenAI o1 / o3 / o4-mini, DeepSeek-R1, Qwen3, Claude 3.7 / 4+ |
| 4. Test-Time & Agentic Compute (C_{\text{test}}) | 2025–2026 | C_{\text{test}} \approx 2 N_{\text{active}} (T_{\text{think}} + T_{\text{out}}) plus external compiler/test execution | Repository-scale software engineering, hypothesis testing, and long-horizon state management | Claude 4 / 4.5 / 4.6 (Sonnet & Opus), Gemini 2.5 / 3 Pro, GPT-5 Series |
OpenAI's GPT-3 (175B dense parameters trained on 300B tokens) demonstrated that scaling an autoregressive decoder-only Transformer produced in-context learning: without gradient updates, conditioning on k input-output demonstrations in the prompt steered the model across translation, arithmetic, and code synthesis.
Earlier in January 2020, Kaplan et al. formulated empirical power-law scaling relations for cross-entropy test loss L(N, D), suggesting that model size N should scale faster than dataset token count D (N \propto C^{0.73}, D \propto C^{0.27}). That bias drove first-generation megamodels such as Gopher (280B), Jurassic-1 (178B), and MT-NLG (530B), all trained on roughly 300B tokens.
In March 2022, Hoffmann et al. (DeepMind) proved that first-generation megamodels were severely under-trained. They modeled pre-training cross-entropy loss L(N, D) as the sum of irreducible data entropy E, parameter approximation error, and finite-sample estimation error:
Minimizing L(N, D) subject to the dense Transformer training FLOP constraint C \approx 6 N D yields compute-optimal allocations where parameters and training tokens scale at nearly equal rates (\alpha \approx 0.34, \beta \approx 0.28):
Chinchilla (70B parameters trained on 1.4\text{T} tokens—20\text{ tokens per parameter}) outperformed the 4\times larger Gopher (280B) under an identical compute budget.
Because Chinchilla optimized solely for training FLOPs (C_{\text{train}}) while ignoring production inference cost over billions of user queries, Meta's LLaMA (Feb 2023) and Llama 3 (Apr 2024) pushed far past the 20\text{ tokens/parameter} ratio. Llama 3 8B was trained on 15\text{ trillion} tokens (\sim 1,875\text{ tokens per parameter},nearly 100\times the Chinchilla ratio), proving that log-linear quality gains continue at extreme over-training budgets while keeping inference memory footprints small enough for consumer GPUs (RunningLocalLlms).
Scaling dense models beyond 70B–405B parameters hits two physical bottlenecks on GPU clusters: inter-node memory bandwidth during autoregressive decoding and Key-Value (KV) cache capacity across long context windows (InferenceServing). Three structural innovations solved these bottlenecks between 2023 and 2026.
Early models like GPT-3 used learned absolute positional embeddings capped at 2,048 tokens. Modern LLMs universally adopt Rotary Position Embeddings (RoPE) (Su et al.), which encode relative token distance m - n by rotating query and key representations in complex 2D subspaces:
By combining NTK-aware base-frequency scaling (increasing base b from 10,000 to 500,000–10,000,000 via YaRN), FlashAttention-2/3 (IO-aware SRAM tiling eliminating O(T^2) HBM materialization), and Ring Attention across NVLink/InfiniBand hosts, frontier context windows expanded from 4K tokens (2022) to 128K–200K tokens (GPT-4o, Claude 3/4), 1M–2M tokens (Gemini 1.5 / 2.5 / 3 Pro), and 10M tokens (Llama 4 Scout).
During autoregressive generation, storing keys and values for all L layers and n_h attention heads consumes massive HBM capacity. Grouped-Query Attention (GQA) (used in Llama 2 70B, Llama 3, and Mistral) shares n_{kv} \ll n_h key/value heads across query groups.
In May–December 2024, DeepSeek-V2 and DeepSeek-V3 introduced Multi-Head Latent Attention (MLA), which projects keys and values jointly into a compressed low-rank latent vector c_t^{KV} \in \mathbb{R}^{d_c} (d_c \ll d_h n_h) before caching:
Because W^{UK} can be absorbed into the query projection W^Q during inference, only the compressed latent vector c_t^{KV} (plus a tiny decoupled RoPE key k_t^R \in \mathbb{R}^{d_h^R}) is stored in the KV cache.
flowchart TD
subgraph MHA["Standard Multi-Head Attention (MHA)"]
H1["Hidden State h_t"] --> K1["Cache Full Keys & Values: 2 * n_h * d_h per layer"]
end
subgraph GQA["Grouped-Query Attention (GQA)"]
H2["Hidden State h_t"] --> K2["Cache Shared KV Groups: 2 * n_kv * d_h per layer (n_kv = 8)"]
end
subgraph MLA["Multi-Head Latent Attention (MLA)"]
H3["Hidden State h_t"] --> C3["Cache Low-Rank Latent Vector c_t^KV + Decoupled RoPE Key: d_c + d_h^R per layer"]
end
For a 60-layer model (L=60, n_h=128, d_h=128) serving a single T = 131,072 token sequence in BF16 (2\text{ bytes} per element):
| Attention Mechanism | Cached Elements per Token per Layer | Per-Token KV Footprint (L=60) | Total KV Cache for T=128\text{K} |
|---|---|---|---|
| Standard MHA (n_h = 128) | 2 \times n_h \times d_h = 32,768 | 3.93\text{ MB} | 515.4\text{ GB} (Exceeds 6\times H100 80GB) |
| GQA (n_{kv} = 8, Llama-3 style) | 2 \times n_{kv} \times d_h = 2,048 | 245.8\text{ KB} | 32.2\text{ GB} |
| MLA (d_c = 512, d_h^R = 64, DeepSeek-V3/R1) | d_c + d_h^R = 576 | 69.1\text{ KB} | 9.06\text{ GB} (98.2\% reduction vs. MHA; 71.9\% vs. GQA) |
While Mixtral 8x7B (Dec 2023) popularized coarse top-2 routing over 8 monolithic experts, DeepSeek-V3 (Dec 2024), Qwen 2.5/3 MoE, and Llama 4 (Apr 2025) transitioned to fine-grained shared + routed MoE architectures:
E4M3) with tile-wise(1 \times 128) activation scaling and block-wise (128 \times 128) weight quantization, DeepSeek-V3 completed pre-training on 14.8\text{T} tokens in just 2.788\text{M} H800 GPU hours (\sim\$5.58\text{M} compute cost).Through early 2024, LLMs generated answers in a single forward-pass stream with fixed compute per output token. On complex algorithmic, mathematical, or multi-file software engineering problems, standard RLHF models failed whenever an early token committed to an invalid proof branch.
The takeoff point began in September 2024 with OpenAI's o1 and became an industry-wide paradigm shift in January 2025 with DeepSeek-R1, followed rapidly by OpenAI o3 / o4-mini, Claude 3.7 / 4 / 4.5 / 4.6, Gemini 2.5 / 3 Pro, and Qwen 3.
Unlike RLHF—which trains a neural reward model r_\phi(x, y) on subjective human preferences and suffers from reward hacking over long rollouts—RLVR trains the policy \pi_\theta directly against deterministic, programmatic verifiers:
Standard PPO requires keeping a critic (value) network V_\psi in GPU memory equal in size to the policy model \pi_\theta, doubling memory overhead during long Chain-of-Thought rollouts. Group Relative Policy Optimization (GRPO) (Shao et al. / DeepSeek-R1) eliminates the critic network entirely by sampling a group of G reasoning trajectories \{o_1, o_2, \dots, o_G\} from the old policy \pi_{\theta_{\text{old}}}(\cdot \mid q) for each prompt q and computing the baseline advantage from the group's normalized verifiable rewards \{r_1, \dots, r_G\}:
where the token probability ratio \rho_{i,t}(\theta) and group-normalized advantage \hat{A}_i are defined as:
When trained via large-scale RLVR (DeepSeek-R1-Zero, o1, o3), models autonomously discover cognitive strategies never hardcoded in supervised data:
By mid-2025, separating "fast chat models" (like GPT-4o) from "slow reasoning models" (like o1) proved suboptimal for real-world software engineering and enterprise workflows. Three convergent breakthroughs defined the 2025–2026 frontier:
think \to run bash / search code \to think about test failure \to edit file \to verify), enabling continuous multi-hour agentic coding sessions.The latency gap between closed frontier APIs and open-weight models collapsed from >18 months in 2022 to <3 months by 2025–2026:
/think and /no_think mode switching under Apache 2.0.HostInference).On SWE-bench Verified (resolving real-world GitHub issues across production Python repositories with full unit-test verification), frontier model accuracy jumped from 4.4\% (GPT-4, 2023) to 49\% (Claude 3.5 Sonnet, Oct 2024), 65\%–72\% (Claude 3.7 / 4, o3, 2025), and 75\%+ in 2026.
Simultaneously, Anthropic's open-source Model Context Protocol (MCP) (launched Nov 2024 and adopted across IDEs, CLI coding agents, OpenAI, and Google in 2025–2026) replaced bespoke per-application tool glue with a standardized JSON-RPC 2.0 client-server protocol for resources, tools, and context briefings.
# Reference pattern: Interleaved Reasoning + MCP Tool Verification Loop (2025-2026)
def run_verified_agent_loop(client, mcp_session, task_prompt: str, max_steps: int = 25):
messages = [{"role": "user", "content": task_prompt}]()
tools = mcp_session.list_tools()
for step in range(max_steps):
# Model allocates adaptive thinking budget before each tool/action decision
response = client.messages.create(
model="claude-opus-4-6",
max_tokens=16000,
thinking={"type": "enabled", "budget_tokens": 8000},
tools=tools,
messages=messages,
)
messages.append({"role": "assistant", "content": response.content})
tool_Uses = [b for b in response.content if b.type == "tool_use"]
if not tool_Uses:
return response # Model verified goal completion and emitted final synthesis
tool_results = []
for call in tool_Uses:
result = mcp_session.call_tool(call.name, call.input)
tool_results.append({
"type": "tool_result",
"tool_use_id": call.id,
"content": result.text,
})
messages.append({"role": "user", "content": tool_results})
raise RuntimeError(f"Agent exceeded bounded step budget ({max_steps} steps)")
| Date | Model / Breakthrough | Organization | Key Architectural & Capability Contribution |
|---|---|---|---|
| Jun 2020 | GPT-3 (175B) | OpenAI | Proves few-shot in-context learning at scale without gradient fine-tuning. |
| Jan–Mar 2022 | InstructGPT & Chinchilla (70B) | OpenAI / DeepMind | RLHF alignment pipeline (SFT \to RM \to PPO); compute-optimal 20\text{ tokens/param} law. |
| Nov 2022 | ChatGPT (GPT-3.5) | OpenAI | Consumer tipping point for RLHF conversational interfaces (100M users in 60 days). |
| Feb–Jul 2023 | LLaMA-1 & LLaMA-2 (7B–70B) | Meta | Catalyzes the open-weight ecosystem, GQA adoption, and inference-optimal over-training. |
| Mar 2023 | GPT-4 | OpenAI | Frontier leap in coding, bar/medical exam reasoning, and vision-language input. |
| Dec 2023 | Mixtral 8x7B | Mistral AI | Open-weight sparse Mixture-of-Experts (47\text{B} total, 13\text{B} active) matching 70B dense models. |
| Feb–May 2024 | Gemini 1.5 Pro, Claude 3, GPT-4o | Google / Anthropic / OpenAI | 1\text{M}–2\text{M} token native multimodal context; omni audio/vision/text tokenization. |
| Jun–Oct 2024 | Claude 3.5 Sonnet & MCP | Anthropic | Breakthrough in agentic coding (SWE-bench 49\%), Computer Use, and the Model Context Protocol. |
| Sep–Dec 2024 | OpenAI o1 & DeepSeek-V3 (671B) | OpenAI / DeepSeek | First RLVR test-time compute reasoning model (o1); MLA + FP8 fine-grained MoE (V3). |
| Jan–Feb 2025 | DeepSeek-R1 & Claude 3.7 Sonnet | DeepSeek / Anthropic | Open-weight GRPO reasoning paper (R1); first unified hybrid instant + extended thinking model (3.7). |
| Mar–May 2025 | Gemini 2.5 Pro, o3 / o4-mini, Llama 4, Qwen 3, Claude 4 | Google / OpenAI / Meta / Alibaba / Anthropic | Interleaved tool-use thinking (o3, Claude 4), 1\text{M}–10\text{M} multimodal context, and hybrid open-weight MoEs. |
| Late 2025–2026 | GPT-5 Series, Claude 4.5 / 4.6, Gemini 3, Gemma 4 | OpenAI / Anthropic / Google | Adaptive effort routing, multi-hour autonomous software engineering, and verifiable multi-agent workflows. |
Even after the 2024–2026 RLVR and agentic takeoff, transformer-based foundation models exhibit well-characterized engineering constraints:
Cluster Hub: Generative AI Hub: Foundation Models, RAG Architecture, and Agent Workflows (generative-ai)