AI guides

Meta FAIR proposes a universal scaling law to predict training trajectories under specified conditions

By 文婷0 viewsSource: 量子位
Meta FAIR proposes a universal scaling law to predict training trajectories under specified conditions

The study combines endpoint power laws, curve normalization and convex-optimization analysis. Using public scaling-ladder data and three early MAI-Base-2 checkpoints, it reports 0.34% average relative error on 92 held-out checkpoints. Results depend on training configurations and fitting conditions.

Editor's verification: This study fits and validates trajectory patterns under fixed TPP and suitable model, optimizer, and hyperparameter configurations. It is not an exact guarantee for arbitrary nonconvex training processes. The MAI case uses publicly available scaling-ladder data plus three early checkpoints from the target model, then tests the remaining 92 points; it is not a prediction made before training without any target-model information. Theorem 1's assumptions, including convex loss and bounded gradients and parameters, must be distinguished from empirical validation on deep models. DataDecide's 2,750 trajectories are metric trajectories for combinations of datasets, model scales, and evaluation sets.

Amid the fierce competition in foundation models, Meta has quietly given scaling laws a major overhaul.

Just now, the FAIR team within Meta Superintelligence Labs released a major study, 《Universal Scaling Law》:

Weren't the original scaling laws mainly about predicting where a model would end up after training? Meta's version now predicts the whole training process.

Article illustration

For example, 🌰 using a public endpoint scaling law, training data from five small models, and three checkpoints from the large model's first 23% of training, they can plot the entire remaining loss curve of a massive 2.8-trillion-parameter model in advance.

Even across a 130-fold increase in training compute from small models to the large one, the predicted curve's average error against actual training across 92 validation checkpoints is only 0.34%, with maximum error no greater than 0.68%!

Article illustration

Loss is not the only thing that can be previewed.

Changes throughout training can also be predicted for downstream benchmark accuracy, such as HellaSwag, and the parameter norms of internal model layers.

That has model-training practitioners excited.

One researcher who has spent years on the front lines of training exclaimed:

If this can even predict evaluation curves, does that mean my hobby of getting up at 3 a.m. to refresh the WandB dashboard is finished? (doge)

Article illustration

Another observer put it succinctly:

Predicting the entire loss trajectory rather than just its endpoint would be huge if it fully holds up. Compute budgets could finally become genuine plans rather than prayers.

(Seriously, what model trainer has not questioned everything late at night while staring at a suddenly oscillating loss curve?)

ViT core author and current MSL researcher Lucas Beyer, whom Zuckerberg recruited from OpenAI last year, also promptly reposted it on X:

My colleagues may have a big result.

Why "may"? Because he still needs time to digest it himself...

Article illustration

So how did Meta break down the seemingly mystical art of large-model pretraining into precise mathematical formulas? Let us take a look.

Article illustration

From "only the finale" to "spoiling every frame"

You might ask: couldn't OpenAI's Kaplan scaling laws or DeepMind's Chinchilla already use small models to predict large ones?

The classic endpoint scaling laws compared here mainly predict final cross-entropy loss at the end of training (t=T). Earlier work had already extended them to training trajectories and downstream metrics, so it would be wrong to say every existing scaling law predicts only one endpoint number.

It is like spending tens of millions of dollars making a very long television series, with traditional scaling laws telling you only the approximate audience rating of the final episode.

But over the hundreds of thousands of intermediate iterations, how fast should loss fall? When should evaluation accuracy start rising? Are weight-matrix norms quietly getting out of control?

Sorry: traditional scaling laws shrug, leaving you anxiously watching monitoring dashboards.

Article illustration

Meta's first major step was to find that the scaling-law structure itself can extend directly from the endpoint to the entire training trajectory.

Under fixed TPP, they show that the conventional endpoint scaling law is simply a particular slice of the universal scaling law at training progress X=1.

At any fixed progress x during training, the scaling laws for intermediate checkpoints share exactly the same compute exponent β. Only the amplitude and loss floor change with x.

Article illustration
△ Scaling laws at different training stages share the same compute exponent

This property is excellent news for practical engineering.

Previously, when fitting scaling-law coefficients, each completed small-model run contributed only one endpoint data point.

Now, because the whole trajectory shares one compute exponent, the team jointly estimates it using all intermediate checkpoints from the small models' training runs.

Let us look directly at the experimental results.

The team jointly fitted training trajectories from small models of only 1.18B–4.16B parameters, then predicted the full trajectory of an unseen 7B model with a Qwen3-MoE architecture.

Throughout training, the relative error between actual and predicted validation loss stayed below 0.5%, with an average error of just 0.16%.

Article illustration
△ Using 1.18B–4.16B models to predict a 7B model's training-loss curve

For Microsoft's MAI-Base-2, a 2.8-trillion-parameter MoE model with publicly released training curves (80B active parameters, trained on 50T tokens), the team did not retrain the model. It fitted the public Microsoft scaling-ladder data together with MAI-Base-2's first three checkpoints (all within the first 23% of training).

Despite extrapolating across 130 times as much compute, the average relative deviation across all held-out checkpoints in the later, roughly 80% of the compute range was only 0.34%, while final-loss prediction error stayed below 0.3%.

Article illustration
△ Predicting MAI-Base-2's subsequent loss curve using only three early target checkpoints and small-model data

Predicting loss alone was not enough.

The team also extended the universal formula to downstream evaluation metrics and internal parameter norms.

For the continuous LAMBADA perplexity metric, they fitted a logarithmic power law;

For discrete accuracy metrics such as HellaSwag, ARC, PIQA, and OpenBookQA, they applied power-law fitting to logit-transformed accuracy.

Even internal Frobenius norms, usually treated as a black box, followed suit. At the whole-model level, for embedding and hidden-layer modules, or down to Q/K/V matrices, SwiGLU, and MoE routers, an initialization-aware transformation subtracts the initial norm at step zero and normalizes the result. Most parameter norms then collapse onto a smooth universal trajectory.

Article illustration

And if you think this only works for text-only LLMs, no, no, no.

The team also moved directly into Transfusion native multimodal training.

The team used Dense (up to 8B active parameters) models and split-FFN architectures (up to 14B total parameters and 8B active parameters), jointly performing autoregressive next-token prediction for text and flow matching for image generation.

Total loss, text cross-entropy loss, image flow-matching loss, C4 perplexity, accuracy on eight commonsense-reasoning benchmarks, and even DPG, GenEval, and FID scores for image generation all followed the predicted curves within the same universal scaling-law framework.

Article illustration

To test generality thoroughly, they also examined AllenAI's open-source DataDecide project in depth.

They performed meta-learning on 25 pretraining datasets, 10 model sizes (10M–1B), 11 perplexity metrics, spanning 2,750 metric trajectories combining datasets, model scales, and evaluation sets (about 20,000 checkpoints). The curves still collapsed reliably across a 100-fold range in parameter count.

Article illustration

Article illustration
△ Perplexity curves from models spanning a 100-fold range in parameters collapse onto one universal trajectory

Why can highly nonconvex neural networks be predicted so accurately?

At this point, many knowledgeable readers may be scratching their heads.

Deep neural networks' loss landscapes are notoriously highly nonconvex and nonsmooth, with tangled internal dynamics.

How can a simple mathematical formula so accurately capture training curves from different scales, architectures, and optimizers?

To understand, we need to unpack the three theoretical pillars the Meta team established in this paper.

Article illustration

1. Traditional scaling laws plus scaling collapse

Researchers had already observed scaling collapse: under fixed TPP and particular hyperparameter settings, normalizing training progress and loss for models of different sizes causes their loss curves to overlap on the same dimensionless universal trajectory Φ(x).

Some had regarded scaling collapse and traditional scaling laws as competing approaches, but Meta's team identified their underlying relationship:

Scaling laws determine the absolute loss scale, while scaling collapse describes how loss evolves relative to that scale.

Put simply, traditional scaling laws specify the "endpoint coordinates", Scaling Collapse describes the "shape of the route in between."

The team combined the two through Affine Interpolation, upgrading a single-point prediction to absolute-value predictions across the whole trajectory:

Article illustration

2. A breakthrough through convex dominance

Simply combining the two is not enough, however.

In earlier scaling-collapse studies, the universal trajectory ϕ(x) was only an empirical curve without an explicit parametric form. It was also unclear how to adjust hyperparameters to keep curves closely aligned when changing model size or optimizer.

This is where first author Zhiqi Bu's previously proposed convex-dominance theory enters the picture.

The theory reveals a deeply counterintuitive but powerful finding:

Drawing on convex dominance, the paper uses convex-optimization analysis as a tractable approximate model of training dynamics. In the tested deep networks, it observes convex-like behavior after an initial settling-in period. This does not prove that convex theory can exactly characterize arbitrary nonconvex neural networks.

Using convex-optimization analysis, the team derives an approximate loss equation for any iteration, then obtains an explicit, closed-form parameterization of the universal trajectory ϕ(x).

The formula also makes clear that

the universal trajectory's shape is determined directly by the chosen normalized learning-rate schedule s(x), such as cosine annealing, linear decay, or WSD.

Article illustration

3. The 1/√T hyperparameter scaling rule and progress offset Tₒ𝒻𝒻ₛₑₜ

If training follows the patterns revealed by convex dominance, how should hyperparameters be set to maintain the best asymptotic convergence rate across scales while keeping the optimization timescale 1/(ληT) fixed?

Theorem 1 gives the answer: for the peak learning rate η and weight decay λ, apply 1/√T scaling to both, where T is the total number of training steps.

Article illustration

Article illustration

Simply tune reference values on a small model, (ηᵣₑ𝒻,λᵣₑ𝒻), then divide them by √T.

Even if the reference hyperparameters are not theoretically optimal, following 1/√T scaling produced closely aligned curves in the tested AdamW, Muon-NSGD, and other configurations in the paper. This is not a guarantee for arbitrary optimizers, learning-rate schedules, or data configurations.

Moreover, convex-dominance theory indicates that neural networks' "convex-like behavior" emerges only after the initial settling-in period.

The team therefore introduces a crucial training-progress offset into the scaling-collapse transformation: Tₒ𝒻𝒻ₛₑₜ, together with a corresponding loss offset Lₒ𝒻𝒻ₛₑₜ, to filter out high-variance noise from the earliest nonconvex phase.

Adding this training-progress offset and fitting the loss offset reduces discrepancies between normalized curves, by about two orders of magnitude in some illustrated configurations. In the 7B case, the mean full-trajectory prediction error falls sharply from the comparison method's 1.06% to 0.16%.

Article illustration

△ AI-generated image

When a hardcore mathematician meets the leader of Llama 3 pretraining

After following this closely reasoned mathematics, you may wonder what kind of team can unite abstract convex-optimization theory with the industrial-scale training of models containing trillions of parameters.

A look at the paper's seven authors reveals:

This lineup is like bringing the leading theorists and engineering heavyweights together at one mahjong table!

First is Meta FAIR Chinese research scientist and the paper's first and corresponding author, Zhiqi Bu, whose résumé is impressive.

Article illustration

△ Zhiqi Bu. Image source: University of Minnesota

In 2012, he entered the University of Cambridge to study mathematics as an undergraduate. He then earned a master's in mathematics from Columbia University, followed by a doctorate in applied mathematics and computational science from the University of Pennsylvania, supervised by Wharton statistics professor Weijie Su and Penn medical school's biostatistics professor Qi Long. During that period, he also earned a master's in statistics from Wharton.

When publishing his first NeurIPS paper in 2019, Bu left a geekily romantic remark on his personal website:

Seven months of grinding through mathematics. Worth it!

Article illustration

After graduation, he worked on large-scale deep-learning optimization and differential privacy at AWS AI and Amazon AGI, not only developing the hyperparameter-free Automatic Clipping algorithm for gradient clipping but also directly participating in pretraining the Amazon Nova family of foundation models.

After joining Meta FAIR, he began a sustained effort to unify large-model training dynamics through mathematical principles.

In February this year, Bu published, as first author, 《Convex Dominance in Deep Learning I》 at ICLR, systematically illuminating convex dominance in deep learning for the first time.

Article illustration

Just nine months later, the Universal Scaling Law paper discussed here grew from that theoretical foundation into a towering tree.

Nearly every co-author behind him is a formidable figure in their field. With limited space, here are just a few:

  • Zeyuan Allen-Zhu: a prominent Meta FAIR researcher and former principal researcher at Microsoft Research, a leading figure in optimization theory and understanding the mechanisms of modern AI training.

Article illustration

△ Zeyuan Allen-Zhu

  • Mike Lewis and Junlin Han: the former was Meta's head of Llama pretraining research and personally led Llama 3 pretraining; the latter holds a doctorate from Oxford and has worked extensively on multimodal pretraining and Llama 4 research.

Article illustration

△ Left: Mike Lewis. Right: Junlin Han

Anyway, for a long time, many people have viewed large-model pretraining as "modern alchemy," heavily dependent on intuition, feel, and brute-force compute.

Learning rates rely on inherited recipes, weight decay on grid search, and the middle of a large-model training run on refreshing dashboards at 3 a.m. and praying gradients do not explode.

The team's derivations and multiple sets of metric trajectories support the following assessment:

In the trillion-parameter extrapolations and other settings studied in the paper, convex-optimization-inspired models can approximately describe training trajectories. This does not prove that one formula now fully captures all deep-learning dynamics.

As mathematical theory takes over from empirical trial and error, large-model pretraining may only just be reaching its coming-of-age moment: leaving the workshop behind and entering precision engineering science.

Article illustration

References:

[1]https://arxiv.org/abs/2611.35517

[2]https://x.com/giffmana/status/2127424363368501481

[3]https://sites.google.com/view/zhiqi-bu

Article from "QbitAI," by "Wenting".

Related topics

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)