Engineering Practices and Cost Analysis of Reinforcement Learning Post-Training for Large Language Models

    As pre-training scales yield diminishing returns, reinforcement learning (RL) post-training has become the primary driver for advancing large language model (LLM) capabilities. This article analyzes a real-world RL post-training case involving a six-day training cycle, 30 iterative steps, 750,000 sampled trajectories, and a total cost of approximately $3.47 million. It explores the transition from pre-training to scalable RL, detailing the engineering significance of verifiable tasks, sampling throughput, and cost breakdowns. Additionally, the article covers dual-version model strategies, version lifecycle governance, and practical recommendations for enterprises looking to implement RL post-training pipelines.

    Engineering Practices and Cost Analysis of Reinforcement Learning Post-Training for Large Language Models

    1. Introduction: Post-Training is Becoming the Main Battlefield for LLM Capability Leaps

    Over the past few years, improvements in large language model (LLM) capabilities have relied heavily on expanding data and parameter scales during the pre-training phase. However, as high-quality corpora become scarce and the marginal returns on pre-training compute diminish, the industry’s focus is shifting from “making models larger” to “making models stronger.” In this context, post-training with reinforcement learning (RL) has emerged as a mainstream technical approach. Instead of merely mimicking corpus distributions, models continuously explore, receive feedback, and adjust their policies in verifiable task environments, thereby expanding the boundaries of their reasoning and planning capabilities.

    Recently, a tech company disclosed the RL training process for its new generation of LLMs, using a real-time training dashboard to display training progress, token consumption, sample quantities, and cost curves. The series includes a flagship version for all-modal scenarios and a lightweight version for efficient inference. The entire post-training process took less than six days, with each version completing about 30 RL iterations, sampling approximately 750,000 trajectories in total, at a combined post-training cost of around $3.47 million. These public metrics provide a rare window for analyzing the engineering practices of RL post-training. This article uses this as a backdrop to abstract general technical methodologies and engineering experiences.

    2. From Pre-training to Reinforcement Learning: The Logic of Capability Boundary Migration

    2.1 Why Pre-training is Not Enough

    The essence of pre-training is “next-token prediction,” where the model learns the statistical patterns of language and knowledge. While this method excels at generating fluent text, it struggles with tasks requiring multi-step reasoning, precise calculation, or code execution validation. Relying solely on imitation learning often leads to “looks correct but is actually wrong” outcomes. The model lacks an explicit “correctness signal” to evaluate answer quality independently.

    2.2 Verifiable Tasks are the Fuel for RL

    The core premise of RL post-training is the existence of “verifiable reward signals.” Typical approaches include:

    • Math and logic tasks: Comparing against standard answers or using symbolic verifiers to determine correctness.
    • Code tasks: Using unit tests, compiler outputs, and sandbox execution results as rewards.
    • Structured tasks: Format validation for tool calls or reachability checks for planning paths.

    The common characteristic of these tasks is that answers can be programmatically determined without relying on human preference annotations, allowing for low-cost, large-scale reward signal generation. The industry widely views this path as a critical step toward Recursive Self-Improvement (RSI)—where the model continuously discovers stronger problem-solving strategies through exploration and feedback, expanding its intelligence boundaries as compute scales.

    2.3 Engineering Implications of Scaled RL

    “Scaling RL compute” does not simply mean stacking machines; it implies:

    1. Sampling throughput: Each iteration requires generating thousands of complete rollouts. The throughput of the inference cluster directly determines the training wall-clock time.
    2. Reward computation: Verifiers themselves consume compute, and code-related tasks require secure isolation for sandbox execution.
    3. Training stability: Long-chain RL is prone to reward hacking and policy collapse, necessitating meticulous hyperparameter tuning and curriculum design.

    3. Training Process Analysis: Six Days, 30 Steps, 750k Trajectories

    3.1 Training Pace and Data Scale

    From the public information, the basic rhythm of this training round can be reconstructed: both versions executed about 30 policy updates, accumulating roughly 750,000 sampled trajectories. On average, this translates to over 10,000 trajectories sampled per step, with each step taking about 2 to 4 hours. This “few steps, large batches” configuration is a typical characteristic of long-chain reasoning RL. Unlike pre-training, which often involves tens of thousands of steps, RL post-training involves massive data volumes per step, and a single update significantly impacts the policy. Consequently, it demands higher standards for data quality and variance control.

    3.2 Cost Breakdown

    Public data shows the flagship version’s post-training cost was about $2.62 million, and the lightweight version was about $0.85 million, totaling around $3.47 million. Three key points require attention:

    • This cost only covers the post-training phase: It excludes pre-training of the base model, data construction, R&D, and external inference service costs.
    • Sampling (inference) typically takes the lion’s share: In long-chain RL, the compute consumed by generating trajectories usually exceeds that of the policy updates themselves. The flagship model has larger parameters, naturally resulting in higher sampling costs, which explains the roughly threefold cost difference between the flagship and lightweight versions.
    • The real-time public cost curve offers reference value: Midway through training (a few days in), the cumulative cost had exceeded $1.35 million, averaging about $31,000 per hour, indicating that RL post-training is an intensive engineering effort billed “by the hour.”

    For enterprise tech teams, the takeaway from this data is clear: to replicate a similar RL post-training pipeline, adequate planning is required for inference clusters, verifier infrastructure, and hyperparameter tuning budgets. It is advisable to validate methodology effectiveness starting with a lightweight version before scaling up to flagship proportions.

    3.3 The Value of Training Transparency

    Publicly displaying training progress, token consumption, and internal metrics via a real-time dashboard is a noteworthy industry practice. Its value includes allowing the community to observe the actual shape of RL curves (rather than just final benchmark scores), establishing reasonable expectations for training costs, and driving evaluation systems from “outcome-oriented” to “process-auditable.” It is worth noting that intermediate metrics during training do not represent the final model’s capabilities; evaluation should still be based on standardized benchmarks post-release.

    4. Dual-Version Strategy: Synergistic Design of Flagship and Lightweight

    The released model series adopts a “flagship + lightweight” dual-version structure backed by clear engineering logic.

    4.1 Flagship Version: The Explorer of Capability Limits

    The flagship version plays the role of “exploring the capability ceiling,” supporting multiple modal inputs like text, image, video, and audio, and integrating 3D spatial understanding for complex reasoning and all-modal interaction scenarios. In third-party comprehensive intelligence evaluations, this version achieved leading results among open-weight models. Its significance lies in validating the effectiveness of RL methods at current scales, anchoring the direction for subsequent iterations.

    4.2 Lightweight Version: The Balancer of Cost and Experience

    The lightweight version focuses on inference efficiency, covering high-frequency, low-latency scenarios with smaller parameters. At launch, an “ultra-fast output mode” was also provided, with output speeds reaching dozens of times that of the base mode. Such modes are typically achieved through speculative decoding, parallel sampling, or distillation, making them suitable for applications sensitive to first-token latency, such as conversational assistants, real-time translation, and desktop tools.

    4.3 Client and Open Platform Support

    The deployment of model capabilities relies on distribution channels. The official release of a desktop client signifies the transition from “API services” to “terminal products,” posing new engineering challenges for edge resource management, local caching, and privacy protection. Concurrently, providing standardized APIs via an open platform allows enterprise developers to integrate model capabilities into their own business systems. For enterprises lacking self-built training conditions, they can leverage model hosting and inference acceleration capabilities provided by mainstream cloud platforms (such as the general model service categories offered by Baidu AI Cloud) to complete integration validation at a lower threshold.

    5. Version Iteration and Deprecation Governance

    The flip side of serialized model operations is version governance. Prior to this release, the previous open-source model had been running for nearly six months. About two weeks after the new version went live, the official announced the deprecation of the old version with an automatic switching mechanism—existing calls would be smoothly migrated to the new version on a specified date.

    Key takeaways from this process include:

    1. Advance notice: Leaving a buffer period of a few days prevents passive business interruptions.
    2. Automatic switching: Executing default upgrades for calls not explicitly locked to a version reduces migration costs.
    3. Restrained pace: Not releasing new models for nearly six months and focusing on RL indicates that a “fewer but better” iteration rhythm is more conducive to capability accumulation than frequent releases.

    When selecting third-party model services, enterprises should also incorporate “version lifecycle policies” into their technical evaluation, clarifying upgrade windows, compatibility commitments, and rollback plans.

    6. Implementation Recommendations for Enterprises

    Based on the above analysis, if enterprises wish to adopt similar RL post-training practices, they can follow this path:

    • Step 1: Task selection: Prioritize scenarios where rewards can be programmatically verified (math, code, structured outputs) to avoid relying on high-cost human annotations.
    • Step 2: Small-scale validation: Run the “sampling-validation-update” loop on a lightweight base model to confirm reward design and training stability.
    • Step 3: Scale expansion: Invest in flagship-scale training only after methodology convergence, with a solid budget for hourly billing costs.
    • Step 4: Evaluation and governance: Establish a dual-layer evaluation system comprising process metric monitoring and final benchmark assessments, while planning version iteration and deprecation mechanisms.

    At the infrastructure level, training and inference environments can be built using general cloud product categories—using object storage for trajectory data, container platforms to schedule sampling and training tasks, message queues to decouple reward computation pipelines, and logging and monitoring services to ensure training observability. This allows teams to focus their energy on algorithms and data.

    7. Conclusion

    Reinforcement learning post-training is reshaping the capability growth curve of large language models. Six days, 30 steps, 750,000 trajectories, and an investment of several million dollars outline the real cost and technical contours of “scaled RL” at the current stage. For developers, understanding these general methodologies—verifiable task design, sampling engineering, dual-version strategy, and version governance—holds more long-term value than focusing on a single release’s benchmark ranking. As training transparency and open-source ecosystems advance, post-training technology will accelerate towards democratization, becoming a foundational capability accessible to every tech team.