Large Language Models at Scale
Scaling laws, compute budgets, emergent capabilities, and the cost shape that determines who can train frontier models.
Summary#
“LLMs at scale” is the engineering and economic reality behind training a frontier model: a single training run costs tens to hundreds of millions of dollars, occupies thousands of GPUs for months, and is bottlenecked by data, power, and supply-chain physics as much as by algorithms. The scaling laws (Kaplan 2020, Chinchilla 2022) say loss decreases as a smooth power law in compute, parameters, and tokens — which is why labs spend that much money: the curve tells them, with surprising precision, the loss they’ll land on.
The other half of the story is emergent capabilities — abilities like multi-step reasoning, in-context learning, and tool use that appear non-smoothly above certain scale thresholds. Whether emergence is real or an artefact of how we measure remains debated, but the engineering implication is clear: the difference between a 7B model and a 70B model is not just “more of the same” — at some point new behaviours come online that the smaller model simply doesn’t have.
Why it matters#
You don’t have to train a frontier model to need this knowledge. Every team that picks a model picks at a point on the scaling curve. Choosing between Llama-3-8B and Llama-3-70B for a production task is, implicitly, a decision about how much capability the task needs and how much inference budget you have. Understanding scaling laws lets you reason about this trade-off instead of guessing.
It also explains the market structure. Why can only a handful of labs train frontier models? Because the cost curve is exponential in capability — moving from GPT-3.5-class to GPT-4-class to GPT-5-class is roughly 10x more compute per generation. The labs that can afford it are the ones with sustained access to capital, power, and accelerators. The labs that can’t are forced into the distillation-and-fine-tuning game, which is still valuable but doesn’t move the frontier.
How it works#
The scaling laws: loss as a power law#
Kaplan et al. (2020) showed that for transformer language models, test loss falls as a power law in three quantities: parameters N, training tokens D, and compute C ≈ 6 · N · D. Bigger model, more data, more compute — each reduces loss predictably, with the smallest effect from increasing one without the others.
Hoffmann et al. (Chinchilla, 2022) refined this with a key observation: at a fixed compute budget, there’s an optimal ratio of parameters to tokens, roughly N tokens ≈ 20 · parameters. Earlier models (GPT-3, 175B parameters, 300B tokens) had violated this ratio — they were under-trained. The Chinchilla recipe (70B parameters, 1.4T tokens) at the same compute budget achieved lower loss. This insight reshaped how labs allocated compute and was the practical foundation under Llama, Mistral, and Qwen.
Beyond Chinchilla: inference-aware training#
Chinchilla-optimal is loss-optimal for the training budget. But labs also care about inference cost, which scales with N (more parameters per forward pass) but not directly with D. A smaller model trained on more tokens than Chinchilla-optimal will have slightly worse training loss but much cheaper inference — and inference is paid every time a user calls the model.
This is why Llama-3 8B was trained on 15T tokens (way past Chinchilla-optimal for an 8B), and Llama-3 70B was trained on the same 15T: they were optimised for serving cost, not for training loss. In 2026 this is the dominant pattern at the frontier.
Emergent capabilities: the staircase, not the slope#
Most capabilities improve smoothly with scale — perplexity, basic translation, simple QA. Some capabilities appear to jump discontinuously: in-context learning (GPT-3 at 175B), multi-step arithmetic (around 60B parameters), chain-of-thought reasoning (around 100B with appropriate prompting), tool use, multilingual transfer.
The debate is whether these are genuinely emergent (small models cannot do them, large models suddenly can) or an artefact of the binary metrics used to score them (small models can do them weakly, the metric only credits perfect answers). In 2023, the “mirage” paper argued emergence largely disappears under continuous metrics; in practice both effects are real, and engineers see capability jumps at scale even on continuous metrics for the hardest tasks.
Training infrastructure: the part that’s actually hard#
A frontier training run uses thousands of accelerators (H100s, B200s, TPUs) wired together with high-bandwidth interconnect (NVLink within a node, Infiniband or proprietary fabric between nodes). The model is too large for any single GPU, so parallelism splits it:
- Data parallelism — each GPU has a full copy of the model and processes a different batch; gradients are all-reduced across GPUs.
- Tensor parallelism — single matrix multiplications are split across GPUs (column or row sharding). High communication cost; fits within a single node.
- Pipeline parallelism — different layers go on different GPUs; activations and gradients flow between them in a pipeline. Lower bandwidth requirement; introduces bubbles in the schedule.
- Sequence parallelism — splits along the sequence dimension; useful for long contexts.
- Expert parallelism — for MoE models, splits the experts across GPUs.
A frontier run combines all of these. Getting >50% of theoretical peak FLOPs out of the cluster is the goal; ~40% is good; <30% means something is wrong. Frameworks like Megatron, DeepSpeed, FSDP, and increasingly torch.distributed handle the choreography.
Training-time failures and recovery#
At thousands of GPUs running for months, hardware failures are constant — a GPU dies, a NIC flaps, a node loses power. The training loop must checkpoint frequently (every few hundred steps), detect failures, restart from the last checkpoint without losing more than minutes of work. Loss spikes are also common (rare bad batches, instability in the optimizer); the response is gradient clipping, learning-rate warmups, occasionally rolling back to an earlier checkpoint and skipping the offending batch.
Frontier-lab training logs reveal that a frontier run is mostly a story of infrastructure heroics. The published “loss curve goes down smoothly” plot hides dozens of restarts, recoveries, and operational saves.
Variants and trade-offs#
Other levers:
- Data quality scaling. Frontier labs spend as much engineering effort on data curation as on architecture. Deduplication, quality filtering, removing toxic content, balancing language mix, including math/code/reasoning-heavy data — these set the ceiling that scale can reach. A poorly-curated 15T-token corpus produces a worse model than a well-curated 5T-token one.
- Synthetic data. Generated by a teacher model, often used to amplify scarce categories (math, code, multi-step reasoning). The Phi family from Microsoft and DeepSeek-R1 both relied heavily on synthetic data. The risk is distribution collapse — over-relying on synthetic data narrows the model’s distribution.
- Reasoning-scaled training. The o1 / DeepSeek-R1 line spends extra compute at training time teaching the model to generate long chains of thought, and extra compute at inference time sampling longer reasoning traces. This is a different scaling axis: more compute per token, not more tokens.
- Multimodal scaling. Training a single model on text + image + audio + video data. The data pipeline is harder; the capability gain is significant. Frontier models in 2026 are overwhelmingly multimodal at the data level even when their dominant interface is text.
The post-Chinchilla puzzle
Chinchilla-optimal said ~20 tokens per parameter is the sweet spot. Llama-3 8B saw ~1875 tokens per parameter (15T / 8B). Did Chinchilla turn out to be wrong? Not exactly — Chinchilla optimized for training-loss-per-FLOP. Llama-3’s team optimized for inference-cost-per-quality, which weights small models trained on lots of data much more heavily. The same data shows that training loss continues to improve well past Chinchilla-optimal, just with diminishing returns. The reframing — “train smaller models longer because inference is paid forever” — is one of the most consequential operational insights of the post-2022 era and it didn’t require a new scaling law to derive.
When this is asked in interviews#
This is a senior-level question on ML-research, AI-infrastructure, and AI-strategy loops. It also comes up on AI-platform loops when the team interacts with frontier labs or has to make build-vs-buy decisions at the model level.
What the interviewer wants:
- Can you state the scaling laws (loss is power-law in compute, parameters, tokens) and the Chinchilla refinement (
~20:1token-to-parameter ratio). - Do you understand why Chinchilla-optimal isn’t the same as inference-optimal, and which one frontier labs actually chase in 2026.
- Can you reason about emergent capabilities — what they are, what’s debated, and how they affect model choice.
Common follow-ups:
- “Why isn’t bigger always better in production?” — inference cost scales with parameters, latency scales with parameters, the marginal capability gain from doubling parameters is small for most production tasks. The right size is the smallest model that passes your evals.
- “What stops scaling from continuing?” — power (data-centre capacity), capital (each generation is
~10xmore expensive), data (high-quality tokens are finite), interconnect (training at the next scale needs better network fabric than exists). Not algorithmic — the math still works. - “Where will the next capability gains come from if scaling slows?” — post-training (RLHF, reasoning RL), tool use and agentic loops, multimodal data, better data curation, more inference-time compute. This is the active research bet at frontier labs.
Related concepts#