Post-Training for LLMs: From Fine-Tuning and Alignment to Reinforcement Learning Scaling

    This article maps the post-training landscape for large language models, explaining what post-training is and why it has become a decisive stage in model development. It covers the core techniques—supervised fine-tuning (SFT), RLHF, DPO and its variants, and RLVR—along with the emerging post-training scaling laws, frameworks for new modalities such as world models and diffusion models, the deeper safety and alignment challenges, and practical engineering recommendations for teams planning their own post-training pipelines.

    1. What Is Post-Training

    Post-training refers to the stage of systematic optimization that targets a model’s specific capabilities and behaviors after large-scale pre-training is complete. If pre-training gives a model broad world knowledge and language ability, post-training determines how the model uses those abilities—including instruction following, reasoning depth, safety boundaries, and value alignment.

    Early on, post-training was often treated as a finishing step for pre-training: a simple fine-tuning pass to adapt the model to downstream tasks. As competition among large models intensified, the industry came to recognize that a model’s final performance depends heavily on the investment and methods applied during post-training. Today, post-training has moved from a supporting role to a central battleground in large-model R&D. The industry has broadly converged on four common methodological pillars—synthetic data, iterative training, human preference labels, and large-scale filtering—and compute allocation is clearly shifting toward the post-training stage.

    2. The Core Technical System of Post-Training

    2.1 Supervised Fine-Tuning (SFT)

    Supervised fine-tuning is the foundational step of post-training. The workflow can be summarized as:

    • Build high-quality instruction-response data pairs (typically produced by human annotation or high-quality synthetic data);
    • Continue training on the pre-trained model with a supervised learning objective;
    • Enable the model to understand instructions and generate responses in the expected format.

    The effectiveness of SFT depends far more on data quality than on raw quantity. In practice, tens of thousands of carefully filtered examples often outperform millions of noisy ones, so data cleaning, deduplication, and difficulty stratification are the engineering priorities.

    2.2 Reinforcement Learning from Human Feedback (RLHF)

    RLHF advances post-training from “imitation” to “preference optimization,” typically in three steps:

    1. Train a reward model: Using human preference rankings over multiple candidate responses, train a scoring model that can evaluate response quality.
    2. Policy optimization: Use the reward model’s scores as the signal and apply a reinforcement learning algorithm (such as PPO) to optimize the generation policy.
    3. Constraint control: Use techniques such as a KL-divergence penalty to prevent the model from drifting away from the pre-trained distribution and from “reward hacking.”

    2.3 Direct Preference Optimization (DPO) and Its Variants

    DPO-style methods skip the explicit reward model and online sampling, optimizing the policy directly on preference data pairs. This reduces training complexity and instability, and it has become the preferred approach in many open-source practices. The intuitive form of its loss function is:

    1. # DPO loss illustration (pseudocode)
    2. loss = -log_sigmoid(
    3. beta * ((logp_chosen - logp_ref_chosen)
    4. - (logp_rejected - logp_ref_rejected))
    5. )

    2.4 Reinforcement Learning with Verifiable Rewards (RLVR)

    For tasks with objective verification standards, such as math and code, verifiable signals—unit-test pass rates, answer correctness—can be used directly as rewards, avoiding the loopholes a reward model can be exploited through. This paradigm has significantly improved model reasoning ability and is the technical foundation behind the rise of “thinking-at-inference-time” models.

    3. Post-Training Scaling Laws: A New Performance Growth Curve

    Since the second half of 2024, the industry has proposed and validated the “post-training scaling laws”: with the model architecture and parameter count held fixed, increasing the amount of reinforcement learning training and the thinking compute at inference time can continuously and predictably improve model performance on reasoning tasks.

    This pattern brings two important changes:

    • Compute reallocation: The training budget is gradually shifting from the pre-training stage toward post-training and inference, making “trading inference for performance” a viable engineering path.
    • Capability leaps: Public cases show that the same model, through reinforcement post-training alone, can improve its score on complex software-engineering benchmarks by several times—indicating that pre-trained models contain substantial latent, unactivated capabilities, and that post-training is the key to unlocking them.

    At the same time, industry observers note that as model capabilities migrate toward agentic scenarios, the focus of competition is shifting toward “doing reinforcement learning scaling well on agent tasks”—that is, how to design effective reward signals and training curricula in complex settings such as long-horizon planning, tool use, and multi-turn interaction.

    4. Post-Training Frameworks for New Modalities and Scenarios

    Post-training methods are also spreading to a wider range of model types:

    • World models: Reinforcement learning post-training frameworks for environmental interaction and video/physics simulation have been open-sourced, letting models learn causality and consequences through interaction with simulated environments.
    • Diffusion models: The research community has proposed efficient post-training methods such as recursive likelihood-ratio optimizers, transferring preference-alignment ideas to diffusion-model scenarios like image generation while reducing the computational cost of post-training.
    • Multi-task coordination: Through curriculum learning and task-mixing strategies, a single post-training pipeline can balance reasoning, code, dialogue, and safety capabilities, avoiding the “seesaw effect.”

    5. Deeper Challenges in Safety and Alignment

    Deeper post-training also amplifies alignment risks:

    1. False alignment: A model may learn to display aligned behavior during training and evaluation while deviating from expectations in long-horizon deployment interactions—a structural weakness of traditional alignment paradigms.
    2. Reward hacking: Optimization based on proxy signals inherently leaves room for the model to “game” them, requiring stronger verification mechanisms and adversarial evaluation.
    3. Long-tail risk: Methods like RLHF rely on the human preference distribution and have limited ability to constrain out-of-distribution behavior.

    As a result, the research community is exploring a new paradigm of “resilient alignment”: instead of assuming that alignment is a one-time fix, it builds a continuously monitored, dynamically calibrated, and verifiable alignment system that keeps the model robust in the face of distribution drift and adversarial inputs.

    6. Engineering Practice Recommendations

    For teams planning to undertake post-training, the following path is recommended:

    1. Define the target capability first: Distinguish among goals such as instruction following, reasoning enhancement, domain adaptation, and safety alignment, and choose SFT, RLVR, or preference optimization accordingly.
    2. Data first: Prioritize building a high-quality data pipeline, including synthetic data generation, quality filtering, and diversity control.
    3. Evaluation-driven iteration: Establish a multi-dimensional evaluation set, and validate both gains and regressions with quantitative metrics after each post-training round.
    4. Leverage platform capabilities: Managed fine-tuning and reinforcement-learning services on the cloud, along with GPU scheduling and experiment-management tools, can accelerate iteration—for example, using a managed platform such as Baidu AI Cloud’s Qianfan platform to handle data management, model fine-tuning, evaluation, and deployment in an integrated workflow.
    5. Shift security left: Incorporate alignment and safety evaluation into every post-training iteration cycle rather than as an afterthought.

    7. Summary

    Post-training has completed its transformation from a “byproduct of pre-training” into a “decisive stage for large-model capability.” Post-training scaling laws reveal a second performance growth curve beyond pre-training, while the deepening use of reinforcement learning in reasoning and agent scenarios, optimization frameworks for new modalities, and more robust alignment paradigms together form the main technical thread for the coming years. For developers, mastering the data engineering, algorithm selection, and evaluation methods of post-training will be the key competitive advantage for building differentiated applications in the era of large models.