Papers
Topics
Authors
Recent
Search
2000 character limit reached

Training Foundation Models with a Single Algorithm

Published 29 Oct 2026 in cs.LG | (2610.40564v1)

Abstract: Foundation models are typically trained in stages: pretraining, midtraining, supervised fine-tuning (SFT), and reinforcement learning (RL), with changes in both data and learning algorithms. We show that this algorithmic separation is not fundamental. By deriving suitable RL objectives as maximum-likelihood fitting to model-generated target distributions, we place all of these stages under a single likelihood-based training algorithm, unified training. This perspective turns the foundation-model training lifecycle into a problem of choosing which data to train on, in what proportions, and when, with conventional staged training as a special case. We instantiate this framework in a unified training system that mixes static data and RL generations within a single trainer. Across controlled and real-world experiments, unified training improves the accuracy-compute tradeoff and task coverage while preserving broader capabilities, and provides a stronger starting point for continual learning. This work lays the groundwork for a unified science of foundation-model training, connecting mathematical principles, training infrastructure, and the development of model capabilities.

Summary

  • Training Foundation Models with a Single Algorithm presents a unified approach that combines pretraining, reinforcement learning (RL), and supervised fine-tuning into a single weighted maximum-likelihood training process.
  • The empirical study evaluates unified training with two models demonstrates that overlapping training distributions improves final capability and data usage efficiency.
  • Integrating midtraining data into pretraining enhances model capability retention and subsequent adaptation to new tasks, outperforming staged training at large and small compute budgets.

Central thesis and scope

The paper argues that the conventional separation between pretraining, midtraining, SFT, and RL is algorithmic rather than fundamental. Its central proposal, unified training, expresses these phases as a single weighted maximum-likelihood procedure over an evolving mixture of static examples and model-generated responses (2610.40564). The learning rule remains fixed; only the source distributions, mixture weights, and timing of data exposure change. Under this formulation, staged training is recovered as the degenerate case in which one source receives all probability mass during each stage.

The claim is not that all RL algorithms are literally equivalent to supervised learning. Rather, the paper identifies a class of policy-gradient objectives whose expected updates can be represented as likelihood fitting to a reward-conditioned target distribution. This distinction is important: the framework accommodates MaxRL, REINFORCE, and TailRL under explicit assumptions, but does not automatically encompass PPO or GRPO with arbitrary advantage normalization, clipping, or KL constraints.

The empirical study evaluates whether overlapping training distributions improve final capability, compute efficiency, retention, and subsequent adaptation. It uses two settings: a controlled reasoning-puzzle benchmark with a 124M-parameter model, and a heterogeneous mathematical-RL experiment with a 756.8M-parameter model. The results consistently show that data composition and timing matter jointly with the RL objective. They do not establish a universally optimal mixture.

Likelihood formulation of RL

For static data, the formulation is standard. A source is defined by a prompt distribution and a conditional completion distribution, and training minimizes the negative log-likelihood of sampled prompt–completion pairs. Pretraining, midtraining, and SFT differ primarily in their data distributions and token masks.

The key theoretical step is the likelihood interpretation of MaxRL. For binary rewards, let the model’s success probability on prompt xx be pθ(x)p_\theta(x). The policy gradient of the log success probability can be written as an expectation over the model distribution conditioned on successful completions:

∇θlog⁡pθ(x)=Ey∼πθ+(⋅∣x)[∇θlog⁡πθ(y∣x)].\nabla_\theta \log p_\theta(x) = \mathbb{E}_{y\sim \pi_\theta^+(\cdot\mid x)} \left[ \nabla_\theta \log \pi_\theta(y\mid x) \right].

Consequently, an RL update can be implemented by fitting the current model to its own success-conditioned distribution πθt+\pi_{\theta_t}^+, with the target held fixed during optimization. Static data and successful RL generations can therefore be combined in one objective:

L(θ;qt)=−E(x,y)∼qt[log⁡πθ(y∣x)],\mathcal{L}(\theta;q_t) = -\mathbb{E}_{(x,y)\sim q_t} \left[ \log \pi_\theta(y\mid x) \right],

where qtq_t is a weighted mixture of source distributions.

This interpretation also clarifies the role of different RL objectives. MaxRL uses the original prompt distribution and conditions completions on success. REINFORCE uses the same binary success-conditioned completion distribution but reweights prompts by their success probability. For continuous rewards, TailRL constructs a mixture of distributions conditioned on exceeding reward thresholds. These are different target and prompt distributions, even though they share the same likelihood trainer.

The framework permits generations from a policy ν\nu distinct from the policy being optimized. In that case, the trainer fits ν+\nu^+ rather than the current-policy target. This enables asynchronous generation and optimization, but the resulting update is generally off-policy and is not equal to the current policy’s MaxRL gradient. The distinction is especially consequential because the implementation uses stale generations: in the real-world experiments, inspected generator policies lagged the trainer by approximately 12–44 optimizer updates.

Unified implementation

The implementation represents every training example as a token sequence with nonnegative per-token weights. Pretraining and document-continuation data receive unit weights. SFT masks prompt tokens and trains only on response tokens. RL examples assign nonzero weights to successful responses and zero weights to unsuccessful responses. The trainer applies one token-weighted cross-entropy objective to the resulting batch.

For a prompt with NN sampled completions, the binary-reward implementation estimates the pass rate p^\hat p and assigns each successful response weight pθ(x)p_\theta(x)0. This yields an empirical success-conditioned target. If no sampled completion is correct, the prompt contributes no positive RL target, although unsuccessful response tokens remain part of the normalization denominator.

The system separates generation and optimization asynchronously. A generator samples responses and appends them to a shared buffer containing both RL generations and static data. The trainer samples from this buffer, updates the model, and periodically publishes new weights. This architecture is operationally important: the unified method is not merely a reparameterization of a synchronized training loop, but a common infrastructure for heterogeneous data streams.

In the controlled experiments, the shared loss uses a token mixture directly. In an alternative baseline, RL and midtraining losses are normalized separately and combined with a fixed coefficient. The paper finds that the shared normalization is competitive and often achieves the best aggregate result, but it is not uniformly superior. Separately normalized objectives frequently perform better on the primary Extended reasoning task, and their optimal coefficient varies across initializations and data mixtures. Thus, unified loss aggregation reduces a tuning dimension but does not dominate every manually weighted alternative.

Controlled reasoning experiments

Experimental design

The controlled setting isolates transfer from demonstrated reasoning operations to novel compositions. A 124M-parameter model is pretrained on 20B tokens and receives a 510M-token corpus of oracle-generated reasoning traces. The corpus contains puzzles with six to nine people and demonstrates individual reasoning operations, while RL introduces compositions of these operations that are absent from midtraining.

The Base setting evaluates puzzles with eight to nine people. The Extended setting introduces ten- and eleven-person puzzles during RL. Extended generalization evaluates twelve-person puzzles absent from both midtraining and RL. RL uses 6,000 updates for Base and 12,000 for Extended, with 512 sampled responses per update and 16 responses per prompt. Performance is reported as pass@1 and pass@16, averaged over two RL seeds.

Unified configurations mix midtraining traces into the final 8,147 pretraining updates and optionally continue mixing them into RL. The study varies pretraining exposure from approximately 133M to 2.14B midtraining tokens and adds between 4 and 64 midtraining examples per RL update. Staged baselines use one, two, or four passes over the same corpus, at two learning rates.

Performance, generalization, and reuse

The best unified configurations outperform the selected staged baseline on final Base and Extended performance and also improve Extended generalization. The result is significant because the generalization test requires larger puzzles than those seen during either midtraining or RL. The paper therefore reports an advantage that cannot be attributed solely to memorizing the RL prompt distribution.

The strongest benefit arises from exposing the model to midtraining data during the latter portion of pretraining. The two best configurations reuse the fixed midtraining corpus for approximately two and four passes during pretraining. Midtraining data mixed during RL also helps, particularly in Extended and Extended generalization, although its effect is less monotonic in Base.

Figure 1

Figure 1: Unified training combines static data and RL generations under one weighted likelihood loss and attains a stronger accuracy–coverage frontier than the tested staged configurations.

The result contradicts a simple interpretation of midtraining as a one-time preparatory phase. In the staged sweep, increasing the number of midtraining passes beyond the best configuration reduces final RL accuracy. Under unified training, repeated exposure can improve subsequent RL, provided that it is distributed across the training trajectory rather than concentrated into a separate phase.

Compute allocation

The compute-matched analysis includes pretraining, midtraining, RL generation, and RL optimization. This is essential because unified configurations process additional static examples and therefore cannot be compared solely by equal RL update counts.

Staged training is compute-optimal for accuracy at some intermediate budgets and has a stronger coverage frontier in parts of the in-distribution evaluation. However, unified training reaches higher accuracy at the smallest and largest tested budgets and is generally superior on Extended generalization. The paper’s strongest compute claim is therefore conditional rather than universal: unified training is more compute-efficient in several important regimes, especially at larger budgets and under distribution shift, but staged training remains competitive at intermediate in-distribution budgets.

Figure 2

Figure 2: Accuracy and coverage as functions of cumulative training compute, with unified and staged configurations compared across Base and Extended reasoning tasks.

The implication is that the best training organization depends on the available compute budget and evaluation objective. Selecting a single final checkpoint from a single recipe obscures this distinction; the paper instead constructs empirical frontiers over both configuration and RL duration.

Retention during initialization

Mixing midtraining data into pretraining preserves general capabilities substantially better than a separate midtraining phase. Across unified initializations, held-out pretraining loss remains close to the pretraining-only model: the reported mean loss ranges from 2.537 to 2.540 compared with 2.537 for the reference. The mean score over five general benchmarks remains within 0.52 percentage points of the pretraining-only model.

By contrast, every staged initialization increases held-out pretraining loss and lowers the aggregate benchmark score. The staged configuration selected for the best final RL accuracy is not the one with the best retention. This separation between immediate reasoning performance, retention, and downstream RL performance is one of the paper’s more important empirical observations.

Figure 3

Figure 3: Unified mixing preserves pretraining loss and general benchmark performance more effectively than the evaluated staged midtraining configurations.

The result does not imply uniform preservation across all capabilities. Staged midtraining improves TruthfulQA in the reported benchmark set while reducing MMLU, ARC-Easy, HellaSwag, and WinoGrande. The retention advantage is therefore an aggregate statement about the chosen metrics, not a claim that unified training dominates on every individual capability.

Real-world heterogeneous midtraining

Data mixture and capability trade-offs

The second experimental suite starts from a 756.8M-parameter model pretrained on 354.5B tokens and midtrained on 17.73B Dolmino tokens. Mathematical RL uses 11,977 filtered prompts. The additional 240M-token corpus contains web text, mathematics, code, question answering, and reasoning traces. Unified runs mix this corpus into mathematical RL at constant proportions of 0.1%, 0.2%, 0.5%, 1%, 2%, or 5%; the staged baseline consumes it before RL.

Mathematical pass@1 remains remarkably stable across mixture proportions. The reported Math pass@1 values range from 24.27% at 0.5% mixing to 24.80% at 5%, while the staged reference reaches 24.17% under the corresponding averaged benchmark protocol. The more pronounced effect concerns coverage and retention. At 5% mixing, mathematical pass@32 reaches approximately 69.0%, compared with 68.6% for the zero-mixing control and 68.4% for the staged baseline. Held-out corpus loss improves monotonically with mixture proportion, reaching a change of pθ(x)p_\theta(x)1 nats/token at 5%.

The trade-off is coding accuracy. Coding pass@1 declines as more heterogeneous midtraining data is retained during mathematical RL, although coding coverage improves relative to the RL-only control at every nonzero proportion. Thus, the same mixture can reduce one-shot coding reliability while increasing the probability that at least one of many samples is correct.

Figure 4

Figure 4: Increasing the midtraining proportion improves retention and often coverage, while producing task-specific accuracy trade-offs.

These results reject the idea that retention can be characterized by a single scalar objective. The mixture changes the distribution of failure modes: it can improve coverage and general knowledge while degrading pass@1 on another specialized task.

Scheduling exposure

The paper next fixes the average configured mixture at 0.5% and changes its temporal schedule. Constant mixing, full annealing, linear growth, and half annealing produce similar mathematical performance. Half annealing, which starts at 2% and reaches zero halfway through RL, produces the highest reported Coding pass@1, 18.85%, compared with 16.51% for constant 0.5% mixing and 17.76% for full annealing. It also reaches Coding pass@32 of 46.93%, versus 46.38% for constant mixing.

The improvement comes with weaker retention: the held-out loss change under half annealing is pθ(x)p_\theta(x)2 nats/token, compared with pθ(x)p_\theta(x)3 for constant mixing. The timing of data exposure therefore matters even when the average configured proportion is held fixed.

Figure 5

Figure 5: Data schedules with the same average configured proportion yield different trade-offs among coding accuracy, coverage, and held-out corpus loss.

The implication is direct: mixture optimization must include temporal allocation, not merely total data volume. Early exposure appears more favorable for later specialized accuracy, whereas continued exposure better preserves the midtraining distribution. The experiments do not determine whether this pattern is due to representation formation, optimization interference, or the interaction between static examples and the evolving RL policy.

RL objective choice

MaxRL and REINFORCE produce different capability profiles under the same unified data mixture. At 2% constant mixing, REINFORCE obtains Math pass@1 of 24.81%, compared with 23.99% for MaxRL. MaxRL obtains higher Math pass@32, 69.61% versus 67.70%. REINFORCE also gives lower held-out corpus loss, pθ(x)p_\theta(x)4 versus pθ(x)p_\theta(x)5 nats/token, and higher SciQ and ARC-Challenge accuracy.

This comparison is methodologically important because it shows that the mixture alone does not determine the outcome. The RL target distribution and effective prompt weighting remain consequential. Unified training supplies a common implementation, but it does not collapse MaxRL and REINFORCE into the same algorithm.

Continual learning

The strongest downstream result concerns subsequent coding RL. After mathematical training, all models receive the same coding RL procedure without additional midtraining data. The staged mathematical model reaches 22.94% HumanEval+ pass@1 and 29.81% MBPP+ pass@1 after 4,000 coding updates. The model previously trained with 5% unified mixing reaches 24.96% and 32.69%, respectively. Its pass@16 scores are 46.95% on HumanEval+ and 58.47% on MBPP+, compared with 45.12% and 52.12% for the staged model.

Figure 6

Figure 6: Unified mathematical training produces stronger subsequent coding-RL performance than staged mathematical training under an identical coding-RL procedure.

The same pattern appears in a WebInstruct continuation experiment. Unified models initially have lower accuracy but surpass the staged model after further RL on several overall and free-form metrics. The result supports a specific interpretation: unified training can produce an initialization that is less specialized to the preceding task and consequently more amenable to later adaptation. It does not establish that unified training universally improves continual learning, since the advantage varies by mixture proportion, answer type, and coverage metric.

Limitations and open questions

The empirical scope is limited. Most controlled experiments use one RL task at a time, small or medium model sizes, fixed corpora, and binary verifiable rewards. The real-world study uses a 0.76B-parameter model and compares equal optimizer-update budgets rather than fully compute-matched training. The paper therefore does not establish scaling laws that predict the optimal mixture as model size, corpus size, or RL budget changes.

The controlled pretraining mixtures also change batch size without retuning the learning rate or batch-size-dependent optimization parameters. The authors explicitly defer this interaction. In addition, unified training often uses stale generations, and the exact age distribution of consumed samples is not logged. Some comparisons therefore conflate the effect of data mixing with asynchronous execution, baseline subtraction, and implementation differences.

The theoretical framework has a defined scope. Its likelihood equivalence applies to fixed generation distributions and suitable policy-gradient objectives. PPO and GRPO mechanisms involving empirical advantages, clipping, policy ratios, or KL penalties are not automatically represented by the same fixed-target likelihood objective. Continuous rewards require additional estimators, and finite-sample behavior can differ materially from population-gradient identities.

Finally, the experiments do not identify a generally optimal schedule. They reveal trade-offs among pass@1, pass@k, held-out loss, general knowledge, and downstream adaptation, but no single mixture dominates all metrics. Joint multi-task training and longer sequences of continual-learning stages remain untested.

Conclusion

"Training Foundation Models with a Single Algorithm" (2610.40564) presents a coherent mathematical and systems-level account of foundation-model training in which static data, demonstrations, and reward-selected generations are handled by a shared weighted likelihood trainer. Its empirical evidence indicates that overlapping data sources can improve accuracy–compute trade-offs, generalization, retention, and later adaptation relative to the evaluated staged baselines.

The main contribution is not the claim that stages disappear operationally. Rather, it is the redefinition of the training-design problem: algorithmic continuity permits systematic study of data composition, reuse, timing, and compute allocation across the full trajectory. The evidence supports unified training as a competitive and flexible alternative to staged pipelines, while leaving the predictive theory of mixture schedules, optimization adaptation, and multi-task continual learning unresolved.

Whiteboard

Explain it Like I'm 14

1. What is the paper about?

This paper presents a new way to train foundation models—large AI systems that can learn many different skills, such as writing, answering questions, solving math problems, and generating computer code.

Usually, these models are trained in separate steps:

  1. Pretraining: learning from a huge amount of general text.
  2. Midtraining: learning from more specialized material, such as math or reasoning examples.
  3. Supervised fine-tuning: learning from examples showing good answers.
  4. Reinforcement learning (RL): trying answers and receiving rewards for correct ones.

The authors argue that these steps do not need to be treated as completely different activities. Instead, they suggest using one main training method throughout the whole process. They call this approach unified training.

The main idea is simple: keep the training rule the same, but change the mixture of data the model sees over time.

2. What questions are the researchers asking?

The researchers want to know whether unified training can work as well as, or better than, traditional staged training.

In particular, they ask:

  • Can one training method handle general text, specialized examples, and reinforcement-learning data?
  • Does mixing different kinds of data improve the model’s accuracy?
  • Does unified training help the model solve new problems that were not directly shown during training?
  • Can it reduce forgetting, where learning a new skill damages an older skill?
  • How should the amount and timing of different kinds of data be chosen?
  • Does unified training use computer power more efficiently?
  • Does it give the model a better starting point for learning future tasks?

3. How did the researchers approach the problem?

A common learning rule

Most parts of AI training can be described as asking the model to predict the correct next word or token. A token is a small piece of text, such as a word, part of a word, or punctuation mark.

The model receives a prompt and tries to produce an answer. Training then gives the model a larger score when its answer is more like the desired answer.

The paper uses a method called maximum likelihood estimation. In everyday language, this means:

Train the model to make the examples in its training data as likely as possible.

For example, if the correct sentence is “The cat sat on the mat,” the model is trained to give high probability to each part of that sentence.

Connecting reinforcement learning to the same method

In reinforcement learning, the model produces several possible answers. It then receives a reward, such as:

  • 1 for a correct answer
  • 0 for an incorrect answer

The researchers show that, for certain reinforcement-learning methods, the model can instead be trained by treating successful answers as ordinary training examples.

An analogy is a student practicing math problems:

  1. The student tries several solutions.
  2. The teacher marks the correct ones.
  3. The student studies the correct solutions more carefully.
  4. The student gradually becomes more likely to produce correct solutions.

This allows ordinary text, demonstrations, and successful model-generated answers to be placed in one shared training system.

Mixing different data sources

The researchers create a mixture of:

  • General pretraining text
  • Specialized midtraining material
  • Instruction-and-answer examples
  • Correct answers generated during reinforcement learning

Traditional staged training is treated as a special case where the model sees almost entirely one type of data at a time. Unified training instead allows several types of data to appear together, in adjustable amounts.

The training system

The implementation has three main parts:

  • A generator, which creates possible answers to questions.
  • A data buffer, which stores both old training examples and newly generated answers.
  • A trainer, which teaches the model using examples sampled from the buffer.

The generator and trainer can work at the same time. Occasionally, the generator receives updated model weights so that it uses a newer version of the model.

The researchers tested the approach in two main settings:

  1. Controlled reasoning tasks: small models solved specially designed logic and reasoning puzzles.
  2. More realistic tasks: larger models worked on mathematics, coding, web text, and reasoning data.

They compared unified training with traditional staged training while trying to keep the amount of computer work similar.

4. What did the researchers find?

Better reasoning performance in many settings

In the controlled reasoning experiments, the best unified-training setups performed better than staged training on:

  • Accuracy: how often the model gave the correct answer on its first try.
  • Coverage: how often at least one answer was correct among several attempts.
  • Generalization: how well the model solved larger or unfamiliar problems.

This is important because a model should not only memorize the examples it has seen. It should also learn skills that work on new problems.

Better use of repeated data

The researchers reused some of the same specialized training material several times. Unified training often handled this reuse better than staged training.

In some experiments, the model benefited from seeing specialized reasoning data during pretraining and again during reinforcement learning. In contrast, simply extending a separate midtraining stage could eventually reduce performance.

This suggests that when data is used may matter as much as how much data is used.

Improved preservation of older abilities

A major problem in machine learning is catastrophic forgetting. This happens when a model learns a new skill but becomes worse at skills it learned earlier.

For example, a model might become better at solving math problems but worse at understanding ordinary text.

The experiments found that mixing specialized data with general pretraining data helped preserve broader abilities. Unified models kept performance closer to the original pretrained model, while some staged models lost more of their earlier abilities.

More efficient use of computing power in important cases

The authors compared models with similar total computing costs.

Staged training was sometimes better at certain middle points, especially for one measure of coverage. However, unified training often achieved stronger results at larger computing budgets and was especially competitive on generalization.

This means unified training does not always win in every situation, but it can provide more performance for the same amount of computing in many important cases.

Different mixtures create different trade-offs

The experiments with math and coding showed that there is no single perfect data mixture.

Adding more specialized midtraining data generally helped the model:

  • Remember specialized information
  • Cover more possible answers
  • Improve some general science abilities

However, it could sometimes slightly reduce:

  • First-answer math accuracy
  • Coding accuracy

The timing also mattered. For example, using specialized data early and then reducing it later helped coding performance while keeping some of the benefits of specialized training.

This shows that unified training gives researchers more control, but also creates more choices to tune.

5. Why are these findings important?

The paper suggests that foundation-model training may be better understood as one continuous process rather than several unrelated stages.

Instead of asking:

“What is the best method for pretraining, and what is the best method for reinforcement learning?”

researchers could ask:

“What kinds of data should the model see at each moment, and in what amounts?”

This change could have several effects:

  • Simpler training systems: One trainer and one main loss function could handle many types of data.
  • Better models: Mixing data may improve accuracy and generalization.
  • Less forgetting: Earlier abilities may be preserved while new skills are learned.
  • More efficient computing: Training resources could be moved between data sources as needed.
  • Better continual learning: A model trained in this way might be more prepared to learn new subjects later.

Conclusion

The paper’s central message is that AI models may not need sharply separated training stages. Pretraining, specialized learning, instruction training, and reinforcement learning can often be viewed as different ways of supplying examples to the same learning process.

The results suggest that carefully mixing data over time can improve reasoning, generalization, and the preservation of older skills. However, the best mixture depends on the goal: a setting that improves math coverage may not be the best one for coding accuracy or memory of general knowledge.

Overall, the research proposes a promising new way to design foundation-model training. Rather than building a model through a fixed series of steps, developers could guide it through a changing “diet” of examples while using the same basic learning rule throughout.

Practical Applications

Immediate Applications

  • Unified training infrastructure for foundation models — AI/software industry.
    • a shared data buffer for static and generated examples;
    • per-token weights and prompt masks;
    • asynchronous generation and optimization workers;
    • periodic model-weight synchronization; and
    • configurable source-mixture schedules.
    • Dependencies: the RL objective must admit the paper’s likelihood interpretation; reward signals must be sufficiently reliable; asynchronous policy staleness and buffer management must be monitored.
  • More flexible reasoning-model training — software, education, and scientific computing.
    • general pretraining text;
    • domain-specific reasoning traces;
    • supervised demonstrations; and
    • verifier-approved model generations.
    • Dependencies: tasks should provide verifiable or otherwise trustworthy rewards. The reported strongest evidence concerns reasoning tasks and mathematics, so performance should not be assumed for open-ended generation.
  • Reward-filtered synthetic-data pipelines — AI data engineering. A generation service can sample multiple completions per prompt, retain successful completions, assign reward-derived weights, and place them in the same training buffer as human- or curator-produced data. This can turn existing verifiers—unit tests, symbolic solvers, exact-match evaluators, simulators, or safety checkers—into scalable data-generation tools. Dependencies: verification must correlate with the desired behavior. Incorrect or exploitable reward functions could amplify undesirable outputs; deduplication and contamination checks remain necessary.
  • Data-mixture and compute-allocation optimization — AI operations and cloud infrastructure.
    • measuring performance as a function of static-data and RL-token fractions;
    • comparing constant, increasing, and decreasing mixture schedules;
    • selecting checkpoints on compute–accuracy or compute–coverage frontiers; and
    • allocating more compute to unified training when larger budgets favor it.
    • Dependencies: mixture proportions are task- and model-dependent. The paper does not establish a universal optimal schedule, and extensive checkpoint evaluation may itself be expensive.
  • Reduced catastrophic forgetting during specialization — healthcare, law, finance, and enterprise AI. When adapting a general model to a specialized domain, a small continuing stream of general or heterogeneous data can be mixed into domain training rather than postponing specialization to a separate stage. This may preserve broad capabilities while improving the target task. Potential products include domain-adaptation trainers with retention controls and dashboards for general-benchmark degradation. Dependencies: retention is not guaranteed; the experiments show tradeoffs, including lower coding accuracy under some mixtures. Sensitive domains additionally require privacy, licensing, and regulatory controls for all replayed data.
  • Continual-learning workflows — enterprise software and research platforms. A model can be trained with a mixture that maintains general capabilities and provides a stronger initialization for later tasks. Organizations could periodically add new verified tasks or domain data to the shared buffer rather than performing isolated fine-tuning cycles. Dependencies: the reported continual-learning evidence is preliminary and based on specific model and task settings. Long-term stability, data governance, and protection against accumulated distribution bias require validation.
  • Migration of existing staged pipelines without changing the model architecture — industrial ML engineering. Since staged training is a special case of the unified framework, teams can begin by reproducing their current pipeline with source weights that switch abruptly, then gradually introduce overlap between sources. This provides a low-risk migration path:

    1. encode pretraining, SFT, and RL examples in the common format;
    2. reproduce staged baselines;
    3. introduce limited data overlap;
    4. evaluate retention and compute efficiency; and
    5. adopt schedules only where they improve validated business metrics. Dependencies: existing reward models, data loaders, distributed-training systems, and evaluation infrastructure must support token-level weighting and source tracking.
  • Academic benchmarking of training trajectories — machine-learning research.

    • source proportions;
    • data reuse and replay;
    • schedule shape;
    • generator–trainer synchronization frequency;
    • compute allocation; and
    • retention and continual-learning outcomes.
    • Dependencies: fair comparisons require compute-matched experiments, multiple random seeds, transparent data accounting, and evaluation beyond the task used for RL.

Long-Term Applications

  • A general-purpose training operating system for foundation models — AI infrastructure. The framework could mature into a unified platform in which any data source is represented as a prompt distribution, target distribution, and weight schedule. This could support pretraining, instruction tuning, preference optimization, verifiable RL, tool-use traces, and continual learning through a common orchestration layer. Potential components include a source registry, adaptive mixture scheduler, reward-verification service, replay manager, and compute-aware controller. Dependencies: broader validation is needed for preference rewards, human feedback, multimodal data, off-policy generators, and objectives that do not have a clean likelihood representation.
  • Adaptive training controllers — autonomous ML operations. Future systems could automatically adjust mixture weights according to validation signals. For example, a controller might increase reasoning data when task coverage stagnates, increase general data when retention declines, or reduce a source when it causes harmful capability tradeoffs. This would transform training into feedback-controlled optimization over the model’s entire lifecycle. Dependencies: reliable online evaluation, stable multi-objective optimization, causal attribution of improvements, and safeguards against overfitting to validation metrics are required.
  • Scalable self-improvement for coding and theorem proving — software engineering and formal methods. Models could generate candidate programs, proofs, or solutions; external tools could verify them; and verified outputs could be continuously incorporated into training alongside general data. This may produce systems that improve coverage of difficult problems while retaining general language and coding skills. Dependencies: verifiers must be robust to reward hacking, generated data must be diverse rather than repetitive, and scaling laws for verified synthetic data must be established.
  • Robotics and embodied-agent training — robotics and autonomous systems. The same architecture could combine demonstrations, simulator trajectories, successful rollouts, and real-world feedback in one training process. For example, a robot could train on expert demonstrations, simulated successes, and task rewards while retaining general manipulation or navigation skills. Dependencies: the paper evaluates language-model-style tasks rather than physical robots. Real-world deployment additionally requires safe exploration, sim-to-real transfer, costly data collection, latency control, and certification.
  • Scientific and engineering design systems — energy, materials, and manufacturing. Unified training could combine scientific literature, structured experiment records, expert demonstrations, and outputs validated by simulators or laboratory measurements. Candidate designs might be generated, scored, and fed back into the model using weighted likelihood updates. Dependencies: high-fidelity verifiers and sufficient experimental throughput are essential. Distribution shift, expensive evaluation, intellectual-property constraints, and the risk of optimizing simulator artifacts remain major barriers.
  • Personalized educational tutors — education. An educational model could mix curriculum content, teacher-authored demonstrations, student-interaction traces, and correctness-verified solutions. Training schedules could emphasize retention of broad knowledge while improving performance on specific curricula or student needs. Dependencies: educational correctness is multidimensional and cannot be reduced solely to answer accuracy. Privacy, age-appropriate safeguards, pedagogical validation, and protection against reinforcing learner misconceptions are necessary.
  • High-stakes decision support — healthcare, finance, and public policy. In principle, unified training could combine general knowledge with domain-specific documentation, expert demonstrations, and outcomes validated by domain rules or retrospective data. The retention findings suggest a possible way to specialize without completely discarding broader capabilities. Dependencies: this is a long-term research direction, not a deployment recommendation. Clinical and financial outcomes are noisy, delayed, and confounded; reward functions may encode harmful biases; and regulatory approval, auditability, human oversight, and robust out-of-distribution testing are mandatory.
  • Principles and scaling laws for complete foundation-model lifecycles — academia and policy.
    • source-level token and compute budgets;
    • mixture schedules;
    • generator freshness and synchronization;
    • reward-verification accuracy;
    • retention metrics; and
    • compute-matched comparisons with staged baselines.
    • Dependencies: the current experiments are limited in model size, domains, objectives, and task structure. Large-scale replication and independent evaluation are needed before these findings can support industry-wide standards or public policy.
  • General multimodal and agentic foundation-model training — vision, audio, robotics, and tool use. The common likelihood formulation could eventually unify text, image, audio, action, tool-call, and environment-feedback data, allowing an agent to learn demonstrations and successful interactions through a single data-mixture mechanism. Dependencies: modality-specific likelihoods, continuous actions, temporal credit assignment, off-policy corrections, and heterogeneous reward scales require substantial theoretical and systems development. The paper’s demonstrated guarantees should not yet be extrapolated directly to these settings.

Glossary

  • Asynchronous training: A training setup in which data generation and model optimization occur independently and concurrently. “Generation and optimization proceed asynchronously”
  • Advantage estimation: The process of estimating how much better an action performs than a baseline in policy-gradient reinforcement learning. “introduce choices of advantage estimation”
  • Calibration: The agreement between predicted probabilities and observed outcome frequencies. “we leave a detailed analysis of these interactions to future work.”
  • Conditional completion distribution: A probability distribution over completions given a prompt. “let μ(y∣x)\mu(y\mid x) the conditional completion distribution in the training data.”
  • Continual learning: Learning new tasks while retaining previously acquired capabilities. “Continual learning.”
  • Compute-optimal: Achieving the best performance for a given computational budget. “Unified Training can be Compute-optimal in More Settings”
  • Coverage: The proportion of inputs for which a model produces at least one successful answer among multiple attempts. “We report accuracy (pass@1) and coverage (pass@16) on held-out questions”
  • Data mixture: A combined training distribution formed from multiple data sources with specified proportions. “The trainer implements the data mixture by sampling static data and RL generations from a shared buffer.”
  • Data reuse: Training repeatedly on examples from a fixed dataset or corpus. “Varying epochs over this fixed corpus allows us to study the effect of data reuse through the training process.”
  • Effective prompt distribution: The prompt distribution induced by the weighting scheme of a particular reinforcement-learning objective. “different choices of target and effective prompt distributions.”
  • Forward KL divergence: A directional measure of the difference between two probability distributions, emphasizing outcomes expected under the first distribution. “this loss differs from the expected forward KL divergence”
  • Foundation model: A broadly trained model intended to support many downstream tasks. “Foundation models are typically trained in stages”
  • Generalization: The ability of a model to perform well on inputs or tasks not encountered during training. “Unified training therefore can improve both performance on the RL tasks and generalization beyond the training distribution.”
  • Held-out data: Evaluation data excluded from model training. “Loss is measured on held-out pretraining data”
  • Heterogeneous corpus: A dataset containing substantially varied types or sources of content. “we now use a heterogeneous midtraining corpus”
  • Likelihood fitting: Training a probabilistic model to assign high probability to observed or target examples. “This places RL in the same likelihood-fitting form as pretraining, midtraining, and SFT.”
  • Maximum Likelihood Estimation (MLE): Estimating model parameters by maximizing the probability of observed training data. “Maximum likelihood estimation (MLE) fits the model to training examples by minimizing their negative log-likelihood.”
  • Maximum Likelihood Reinforcement Learning (MaxRL): A reinforcement-learning formulation that expresses policy improvement as likelihood fitting to successful model-generated completions. “Building on Maximum Likelihood Reinforcement Learning (MaxRL)”
  • Midtraining: An intermediate training stage using curated data between pretraining and task-specific alignment. “Pretraining, midtraining, supervised fine-tuning (SFT), and reinforcement learning (RL)”
  • Negative log-likelihood: The negative logarithm of the probability assigned to an observed outcome, commonly used as a training loss. “minimizing their negative log-likelihood.”
  • Off-policy: Describing learning from data generated by a policy different from the policy currently being optimized. “The likelihood formulation does not require RL data to be generated by the model currently being optimized.”
  • On-policy: Describing learning from data generated by the same policy that is currently being optimized. “When ν=πθt\nu=\pi_{\theta_t}, this recovers the on-policy MaxRL update”
  • Oracle-generated: Produced by a system assumed to provide correct or authoritative answers. “The midtraining corpus contains oracle-generated solutions”
  • Pass rate: The fraction of sampled attempts that receive a successful or correct reward. “For binary rewards, it estimates the pass rate”
  • Policy gradient: A gradient-based method that updates a policy to increase expected reward. “with policy gradient:”
  • Policy staleness: The discrepancy caused by training with model weights that are older than the current weights. “reports the resulting policy staleness”
  • Pretraining: Initial large-scale training on broad general-purpose data. “Pretraining, midtraining, and SFT all use this objective with different training data.”
  • Prompt distribution: A probability distribution describing which prompts are sampled for training or evaluation. “Let ρ(x)\rho(x) denote the prompt distribution”
  • Reward normalization: Scaling or transforming rewards to a standard numerical range. “introduce choices of advantage estimation, reward normalization”
  • Reward-conditioned distribution: A distribution over model outputs conditioned on receiving a particular reward. “the success-conditioned distribution”
  • REINFORCE: A Monte Carlo policy-gradient algorithm that estimates policy updates from sampled actions and rewards. “REINFORCE \citep{williams1992reinforce} estimates this expectation from sampled completions.”
  • Retention: The preservation of capabilities learned earlier in training. “We next ask whether learning from the midtraining reasoning corpus preserves the general capabilities acquired from pretraining data”
  • Scaling law: An empirically observed relationship between model performance and factors such as data, parameters, or computation. “pretraining scaling laws characterize the relationship between data, compute, and model performance”
  • Score function: The gradient of the log probability of an outcome with respect to model parameters. “Averaging the weighted score function over the NN samples for a prompt gives”
  • Success-conditioned distribution: A distribution over outputs restricted to those that receive a successful reward. “its successful completions define”
  • Supervised fine-tuning (SFT): Adaptation of a pretrained model using labeled input-output demonstrations. “SFT fits demonstrations paired with instructions.”
  • TailRL: A reinforcement-learning objective that integrates distributions conditioned on exceeding reward thresholds, supporting continuous rewards. “The framework also accommodates rewards normalized to [0,1][0,1], including continuous-reward REINFORCE and TailRL”
  • Token fraction: The proportion of training tokens contributed by a particular data source. “For a target token fraction fsf_s from source s∈Ss\in S”
  • Token mask: A pattern specifying which tokens contribute to a training loss. “RL uses the same prompt mask”
  • Unified training: A training framework that applies one likelihood-based objective to mixtures of static data and generated reinforcement-learning data. “Unified training applies the same likelihood loss to this mixture”
  • Verifiable reward: A reward whose correctness can be checked through an external procedure or criterion. “with verifiable answers and controllable difficulty.”
  • Weighted likelihood loss: A likelihood-based loss in which examples or tokens contribute with different weights. “We implement this formulation through a common data representation, weighted likelihood loss, and trainer for both static and generated data.”

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 14 tweets with 975 likes about this paper.

HackerNews