APIUp to 28% cheaper than official pricesTry the API →
Hermes
Back to News

CMU Collapses Four AI Training Stages Into One Shared Loss

CMU-led team unifies pretraining, SFT, and RL into one maximum-likelihood objective called unified training. RL rollouts reframed as likelihood fitting to model-generated targets via MaxRL extension . Single trainer mixes static text and RL generations; staged training becomes a special case.

CMU Collapses Four AI Training Stages Into One Shared Loss
Source
AlphaSignal
Published
Author
AlphaSignal
Read
2 min read

Takeaways

  • CMU-led team unifies pretraining, SFT, and RL into one maximum-likelihood objective called unified training.
  • RL rollouts reframed as likelihood fitting to model-generated targets via MaxRL extension .
  • Single trainer mixes static text and RL generations; staged training becomes a special case.
  • Beats staged training on accuracy, compute efficiency, coverage, and forgetting in controlled reasoning experiments.
  • Produces better starting checkpoints for continual learning across math then coding RL.
  • Code and checkpoints released at GitHub and Hugging Face .

Large language model training commonly moves through four pipelines: pretraining on broad corpora, midtraining on curated data, supervised fine-tuning (SFT), and reinforcement learning (RL) from model-generated rollouts. Each stage brings its own data, objective, scheduler, and infrastructure. A new paper from Carnegie Mellon University and collaborators derives a likelihood-based algorithm that can train across all four stages.

A shared objective turns the allocation of tokens, examples, and rollouts into a configurable data-mixing problem. Developers can vary when each source enters training, how much compute it receives, and how long it remains in the mix without changing optimization algorithms between stages. The experiments report stronger reasoning performance, less post-training forgetting, and better preparation for later RL tasks under matched compute budgets.

Why the Pipeline Split

StageTypical inputTypical objective
PretrainingBroad text and code corporaNext-token likelihood
MidtrainingCurated domain dataNext-token likelihood
SFTPrompt-response examplesResponse likelihood
RLModel rollouts scored by rewardsPolicy gradient

Pretraining, midtraining, and SFT already optimize closely related cross-entropy losses. Their main differences lie in data selection, masking, and learning-rate schedules. RL methods such as Proximal Policy Optimization (PPO) and Group Relative Policy Optimization (GRPO) instead generate responses, score them with a reward function, and estimate policy gradients from those scores.

That optimization split usually produces separate trainers, rollout services, replay systems, and optimizer configurations. It also complicates pretraining-data replay during RL, leaves compute allocation to manual experiments, and makes scaling-law analysis difficult across the boundary between pretraining and post-training. Models can also lose general capabilities when later updates concentrate on a narrow reward.

One Loss, Many Data Sources

Maximum Likelihood RL (MaxRL), an earlier result from the same group, expresses a policy-gradient update as maximum-likelihood fitting to a success-conditioned distribution derived from the current policy. In plain terms, rewarded generations become weighted training targets that a cross-entropy trainer can consume.

Reporting is indexed from AlphaSignal. Rights remain with the original publisher and cited sources.

Read original report

Sources

  1. 01arxiv.org
  2. 02huggingface.co
  3. 03aiweekly.co
  4. 04github.com
  5. 05arxiv.org