Scaling LLMs: Pretraining Scale vs. Post-Training Depth

    This article compares two routes for improving large language models: scaling pretraining and scaling post-training. It examines their cost structures, the difference between compute-optimal and deployment-optimal choices, MoE total versus active parameters, engineering considerations for post-training, limitations of benchmark-based “catch-up” claims, and practical guidance for developers and enterprises.

    Introduction: Scaling Is Not One-Directional

    Over the past few years, improving large language model capabilities has mainly relied on scaling pretraining, i.e., increasing parameter count and training data volume. More recently, investment in the post-training stage has increased noticeably, including more diverse task environments, longer decision chains, and larger-scale reinforcement learning. The two routes have different cost structures and applicable scenarios. Understanding their differences helps identify where a performance improvement comes from and supports more reasonable technical decisions.

    1. The Basic Logic of Two Technical Routes

    1.1 Pretraining Scale Expansion

    The core assumption of this route is that the capacity of the base model and the training data determine the upper bound of capability. Increasing parameters, expanding the corpus, and extending training usually improve knowledge coverage and basic reasoning ability. Its cost is concentrated in one-time large-scale training, with high capital investment and long cycles. Any error at the architecture or data level requires retraining to correct.

    1.2 Post-Training Scale Expansion

    This route assumes that the base model already has strong potential, and the key is how to elicit it. Typical methods include supervised fine-tuning, preference optimization, and reinforcement learning based on verifiable rewards. Its cost grows with the number of task environments, environment complexity, and sampling volume. Iteration is fast and can be adjusted weekly or monthly, but it places higher demands on reward design, evaluation systems, and training stability.

    The two routes are not mutually exclusive. A model can first complete pretraining on a larger base and then use extensive post-training to achieve stronger task performance. The difference lies in which end resources are prioritized, which determines the team’s organizational approach and iteration cadence.

    2. Compute-Optimal Is Not Deployment-Optimal

    2.1 Empirical Ratio for Training Budget

    Early research produced an empirical conclusion: under a fixed training compute budget, parameter count and training token count should grow proportionally together. A commonly cited industry figure is about 20 training tokens per parameter. This conclusion corrected the earlier practice of emphasizing parameter growth while relatively neglecting data volume.

    Training compute can be estimated with the following approximation:

    1. def training_flops(n_params: float, n_tokens: float) -> float:
    2. # Empirical approximation: one training run costs about 6 * N * D
    3. return 6 * n_params * n_tokens
    4. # Example: 7B parameters, trained on 1T tokens
    5. print(f"{training_flops(7e9, 1e12):.2e}") # 4.20e+22

    2.2 Inference Cost Changes the Optimum

    The ratio above only considers the cost of “training once.” After a model goes live, every call consumes compute, and inference cost accumulates with call volume. If a model serves billions of requests per day, inference overhead may far exceed training overhead.

    The compute per token at inference is approximately 2 * N, where N is the number of participating parameters. In this scenario, a smaller model with a longer training cycle is often more economical: it sacrifices some training efficiency in exchange for lower serving cost. Therefore, “optimal” needs to be redefined based on total lifecycle cost rather than one-time training performance alone.

    The following function roughly compares the total compute of two options:

    1. def lifetime_flops(n_params, train_tokens, inference_tokens):
    2. train = 6 * n_params * train_tokens
    3. serve = 2 * n_params * inference_tokens
    4. return train + serve
    5. # Assumption: lifetime inference volume of 1e13 tokens served
    6. small = lifetime_flops(7e9, 2e12, 1e13)
    7. large = lifetime_flops(30e9, 0.5e12, 1e13)
    8. print(f"Small model total compute: {small:.2e}, large model total compute: {large:.2e}")

    This is only a rough estimate. Actual decisions also need to consider memory usage, latency requirements, and deployment environment. But it shows that when inference volume is large, model selection should be based on total cost of ownership.

    3. MoE Architecture: The Division of Total and Active Parameters

    Mixture-of-Experts (MoE) architecture splits a model into a large number of expert subnetworks, and each token activates only a subset of them. This brings an important distinction: total parameters determine how much knowledge the model can store, while active parameters determine the compute per token.

    3.1 Different Roles of the Two Parameter Types

    Total parameter count affects model capacity and determines how many facts, terms, and long-tail knowledge items it can cover. Active parameter count affects the compute cost of a single inference and also affects how deep an intermediate state the model can maintain during step-by-step reasoning. Both matter, but they correspond to different capability dimensions.

    A common analytical framework suggests that, with total parameter scale fixed, increasing the number of experts activated per token usually helps with complex reasoning tasks. This judgment needs to be verified through ablation experiments and should not be treated directly as a universal rule.

    3.2 How to Calculate Parameter Count

    The parameter count of an MoE model can be estimated as follows:

    1. def moe_params(n_shared, n_expert, n_total_experts, top_k):
    2. total = n_shared + n_total_experts * n_expert
    3. active = n_shared + top_k * n_expert
    4. return total, active
    5. # Example assumptions: 2B shared parameters, 0.5B per expert, 64 experts, top-2 activation
    6. total, active = moe_params(2e9, 0.5e9, 64, 2)
    7. print(f"Total parameters {total/1e9:.1f}B, active parameters {active/1e9:.1f}B")

    This structure allows teams to trade off storage capacity against inference cost. When selecting a model, pay attention to both total parameters (affecting memory and deployment thresholds) and active parameters (affecting throughput and latency).

    4. Engineering Essentials for Post-Training Scaling

    Post-training results depend heavily on engineering details. The following are common areas of focus.

    4.1 Diversity of Task Environments

    The number and types of training environments directly affect model generalization. Reinforcing only a single task type makes the model prone to overfitting on that type and failing when the wording or scenario changes. Covering different types such as code, data analysis, multi-step tool invocation, and long-document understanding helps improve transfer ability.

    4.2 Long-Horizon Tasks and Reward Design

    Long-horizon tasks refer to tasks that require dozens of steps or more to complete. Rewards for such tasks are often sparse, with only the final result being judgeable. Reward design needs to distinguish intermediate progress from final results; otherwise, the model may learn to exploit loopholes, such as optimizing only visible metrics at the expense of true correctness.

    4.3 Training Stability and Regression Risk

    Large-scale reinforcement learning is prone to policy collapse, abnormal output length expansion, or degradation of certain capabilities. During training, general evaluation sets should be run regularly to check for capability regressions, and rollback checkpoints should be retained.

    Below is an illustrative training task configuration to show the idea of multi-environment mixed sampling:

    1. rl_task_mixture:
    2. environments:
    3. - name: code_repair
    4. weight: 0.3
    5. max_steps: 40
    6. - name: data_analysis
    7. weight: 0.25
    8. max_steps: 25
    9. - name: tool_orchestration
    10. weight: 0.25
    11. max_steps: 60
    12. - name: long_document_qa
    13. weight: 0.2
    14. max_steps: 15
    15. eval_every_n_steps: 500
    16. rollback_on_regression: true

    This configuration is only structural illustration. Specific weights and step counts need to be adjusted according to task distribution and compute budget.

    5. How to View “Catch-Up” Conclusions Rationally

    Composite scores and rankings on leaderboards are one reference for understanding model capabilities, but they cannot be used alone as a basis for selection. When reading such conclusions, consider the following points.

    First, a composite index is weighted from multiple subtasks, and the weighting design affects rankings. The same model may perform very differently across subtasks.

    Second, Elo-style ratings depend on battle samples and judging criteria. Score gaps need to be understood together with sample size and confidence intervals.

    Third, evaluation results are affected by prompt templates, decoding parameters, judging methods, and model versions. Reproduction results from different teams may be inconsistent.

    Fourth, public evaluation sets may be covered by training data, and scores may overestimate true generalization ability.

    It is advisable to build evaluation sets using your own business data, covering real input distributions, edge cases, and failure cases, and then compare candidate models.

    6. Practical Recommendations for Developers and Enterprises

    6.1 Select by Scenario

    If the business is dominated by high-frequency, low-latency calls, focus on active parameters, cost per token, and throughput capability. If the business is dominated by a small number of high-difficulty reasoning tasks, pay more attention to the model’s overall reasoning performance.

    6.2 Evaluate Deployment Methods

    Self-deployment requires consideration of memory, parallelism strategies, and compatibility with inference frameworks. When using cloud services, pay attention to call quotas, data compliance requirements, and service availability metrics.

    6.3 Establish Continuous Evaluation Mechanisms

    Model versions iterate quickly. Teams should establish a fixed evaluation pipeline, automatically run regression tests whenever switching models or updating prompts, and record trends in key metrics.

    6.4 Consider the Marginal Benefits of Domain Fine-Tuning

    When a general model performs insufficiently in a specific domain, consider post-training on domain data or retrieval augmentation. Before investing, assess whether the existing model’s errors mainly come from missing knowledge or from broken reasoning chains. The two types of problems have different solution paths, and error attribution determines the return on investment.

    Overall, improvements in large model capabilities are shifting from single parameter expansion toward coordinated optimization of pretraining and post-training. Understanding the cost structures of the two routes, the economics of the inference stage, and the limitations of evaluation is the foundation for making reliable technical judgments.