Post-Training a Fixed Base vs. a Trillion-Parameter MoE: Which Route Wins?

    This article compares two LLM development strategies competing under twin constraints on compute and data: pushing post-training to its limit on an unchanged base model (Route A), and rebuilding a larger sparse-activation MoE base to trade parameters for capacity (Route B). It explains why post-training alone can be a genuine upgrade when base potential is far from exhausted, breaks down the real costs of trillion-parameter MoE models, and shows how to translate "strong at coding" into verifiable metrics rather than leaderboard positions. It also distinguishes a 1M-token context window from usable context, offers a decision matrix for choosing between routes, and outlines a minimum viable evaluation pipeline that measures success rate together with cost and out-of-distribution robustness.

    A Debate About Routes, Not Versions

    Over the past year, the release cadence of open-weight large models has felt like a relay race: one release dominates the headlines, and within a couple of weeks another lab ships a newer version. Observers tend to read this as a leaderboard reshuffle, but for engineers the more interesting signal is that two fundamentally different technical routes are being bet on at the same time:

    • Route A — Keep the base fixed, squeeze post-training to its limit. Leave the base model’s parameter count, architecture, and pre-training data mix untouched, and pour all incremental compute into reinforcement learning and post-training — pushing the ceiling of intelligence higher with longer training and more realistic task environments.
    • Route B — Rebuild the base, trade scale for headroom. Train a substantially larger sparse-activation (MoE) model from scratch, carrying reasoning and coding tasks on greater knowledge capacity and stronger representations — at the cost of higher training expense, lower stability, and greater engineering complexity.

    Within the same week, open-weight releases included both a MoE model whose parameter count crossed the trillion threshold and an iterative version that “explicitly keeps the base identical to the previous generation.” Both target coding and agents, and both are open-weight. This is no coincidence: under twin constraints on compute and data, the two most easily verifiable sources of gains were selected at the same time. Understanding where each route’s returns stop matters more to engineers than arguing about who ranks higher.

    Route A: Why “Not Changing the Base” Can Be a Real Upgrade

    The invisible hierarchy in the field

    There is a long-standing, simplistic view in the technical community: changing the base and adding parameters is a “real upgrade,” while touching only post-training is “just tuning.” This judgment does not hold while pre-training potential is far from exhausted.

    A rough layered model helps explain it:

    • Pre-training sets the model’s floor — it defines the quality of the model’s representations of the world, its prior knowledge of language and code, and the “physical boundary” of available capability.
    • Post-training determines how high the model can reach toward its ceiling — how large a fraction of that latent capability gets called up reliably and consistently.

    A common empirical pattern: the base “saw” and could solve a class of problems during training, but before alignment it answers correctly in only 30% of samples; after high-quality post-training, the same base with the same parameters pushes accuracy above 80%. Not a single parameter is added, yet usable intelligence rises substantially. When the base’s potential is far from exhausted, the marginal return of post-training can exceed that of adding more parameters.

    Three actionable levers

    Following the generally accepted methodology, this route typically stacks resources in three directions:

    1. Long-horizon task environments at tens of times the scale. Not more standard Q&A pairs, but letting the model live inside real engineering task chains: read the requirement → locate the code → modify → run tests → read errors → modify again. The number of long-horizon episodes is the core variable, because credit assignment in multi-step tasks is far harder than in single-step ones.
    2. Diversity of environment types. Covering terminal command execution, repository-level code changes, cross-tool collaboration (retrieval, compilation, testing, log inspection), and more. Diversity directly determines behavioral generalization — a policy trained in a single environment degrades when the tool form changes.
    3. Post-training duration and compute. The “dumbest” and most effective lever: stack up RL training steps and rollout scale so the policy converges over enough interactions.

    Return profile and risks

    Return profile: low cost per unit of compute, short cycles (usually weeks rather than months), reuse of existing base assets, and fast iteration feedback.

    Risks: base capacity is a hard constraint. If the knowledge a task needs is not in the base at all, post-training degrades into “memorizing specific problem types,” showing up as rising leaderboard scores while real business results stay flat or even drop. In addition, an over-optimized policy tends to narrow — the stronger it gets in one environment, the harder it is to transfer to adjacent tasks.

    The success criterion for this route is not a single benchmark score but the retention of out-of-distribution tasks.

    Route B: The Math Behind a Trillion-Parameter Sparse-Activation Base

    Why keep adding parameters

    The core of MoE is trading total parameters for knowledge capacity and activated parameters for inference cost. Its ledger has two columns:

    Dimension Effect
    Total parameter count Determines the density of knowledge and representation capacity; affects coverage of rare knowledge and long-tail codebases
    Activated parameters per token Determines the actual compute at inference time and the memory/bandwidth pressure
    Expert routing load Determines training stability and effective utilization; the biggest risk point in MoE engineering

    A trillion-scale total parameter count paired with tens-of-billions-scale activated parameters is the mainstream approach to “balancing capacity and cost” today. It is especially friendly to coding tasks: coding is a classic “long-tail-knowledge-dense + strong-rule-constrained” task, and many obscure APIs, internal DSLs, and legacy code depend on capacity rather than technique.

    The costs are real

    • Training side: routing collapse, load imbalance, and loss spikes in large-scale MoE all demand significant engineering effort to tune, and the sunk cost of a single failed attempt is very high.
    • Inference side: even with activated parameters under control, all expert weights must stay resident in memory/VRAM, so VRAM usage and cross-node communication become the bottleneck, and the deployment bar is markedly higher than for a small dense model.
    • Iteration side: once the base is set, further optimization can only go back down the Route A path — the two routes are not mutually exclusive in the long run; they are in series.

    Evaluation: Translating “Strong at Coding” into Verifiable Metrics

    Both routes claim coding leadership, but “coding ability” can be broken into at least four layers, and confusing them is the most common source of misjudgment:

    1. Function-level generation: a single file with a clear signature and comments. High saturation, low discrimination.
    2. Repository-level modification: given an issue description, locate and fix across multiple files, passing existing tests.
    3. Terminal/CLI agent tasks: completing builds, debugging, deployment, and script writing in a real shell, closing the loop on command output feedback.
    4. Long-horizon multi-step tasks: complex workflows across sessions and tools that require self-verification and backtracking.

    The later the layer, the more it depends on post-training rather than pure parameter scale — which is exactly why Route A concentrates firepower on terminal and CLI environments: these tasks have verifiable signals (did the command succeed, did the tests pass) that are naturally suited to RL rewards.

    A few traps in evaluation systems

    • Benchmark contamination: if training data contains benchmark solutions, score gains have nothing to do with capability. The fix is a private holdout set that never enters the training or tuning loop.
    • pass@k diverging from felt experience: a 5-point pass@1 gain feels small in single-interaction products; conversely, agent scenarios should look at the joint metric of task success rate × average number of interactions.
    • The cost blind spot of only looking at success rate: a model at 70% success that burns 400,000 tokens per task on average is often worse, from an engineering standpoint, than one at 65% using only 120,000 tokens.

    A minimum viable evaluation skeleton

    1. from dataclasses import dataclass, field
    2. @dataclass
    3. class TaskCase:
    4. id: str
    5. prompt: str # task description / issue
    6. repo_snapshot: str # initial repo snapshot path (internal object storage)
    7. verify_cmd: list[str] # auto-checkable verification command, e.g. ["pytest", "-q"]
    8. max_steps: int = 40
    9. budget_tokens: int = 400_000
    10. @dataclass
    11. class CaseResult:
    12. success: bool
    13. steps: int
    14. tokens: int
    15. cost: float
    16. first_action: str = "" # to observe whether the policy inspects before editing
    17. async def evaluate(model_client, cases: list[TaskCase], repeats: int = 3):
    18. agg = []
    19. for case in cases:
    20. for _ in range(repeats):
    21. run = await model_client.run_agent(
    22. task=case.prompt,
    23. workspace=case.repo_snapshot,
    24. verify=case.verify_cmd,
    25. max_steps=case.max_steps,
    26. budget_tokens=case.budget_tokens,
    27. )
    28. agg.append(CaseResult(**run))
    29. total = len(agg)
    30. succ = sum(r.success for r in agg)
    31. print(f"Task success rate : {succ}/{total} = {succ/total:.1%}")
    32. print(f"Avg interaction steps: {sum(r.steps for r in agg)/total:.2f}")
    33. print(f"Avg tokens : {sum(r.tokens for r in agg)/total:,.0f}")
    34. # key: read success rate together with cost; success rate alone picks "money-burning" models
    35. print(f"Cost per success : {sum(r.cost for r in agg)/max(succ,1):.4f}")

    The value of this skeleton is threefold: verification is fully automated (otherwise you cannot run dozens of rounds at scale), cost is part of the metric (so you do not optimize for accuracy alone), and the first action is recorded (to distinguish an “explore-then-modify” policy from a “hack-edit-directly” one — often a signal of long-horizon ability).

    1M Context: Same Starting Line, Different Engineering Difficulty

    Both push their context window to the million-token scale, but that is only a capability claim, not usable capacity. Engineering has to distinguish three concepts:

    • Window limit: the maximum input length the API allows.
    • Effective context: the range in which the model can still retrieve and reason stably at that length. In practice, recall of “key information in the middle” of very long inputs is generally weaker than at the beginning and end — the so-called lost-in-the-middle effect.
    • Economic context: the length that is actually worthwhile under cost, latency, and VRAM constraints. Attention overhead grows superlinearly with length, and the KV cache balloons linearly, so filling a million-token context all at once is often neither economical nor fast.

    So in real systems, context management is a strategy problem, not a model problem. A recommended layered approach:

    1. def build_context(task, repo_index, budget=180_000):
    2. """
    3. Build context in layers rather than "stuff in as much as fits."
    4. Use "effective context" for the budget instead of the "window limit" —
    5. better returns and controllable cost.
    6. """
    7. parts = []
    8. parts.append(("task description", task.description, 2_000))
    9. # 1) structure first: directory tree + key interface signatures, the best value signal
    10. parts.append(("repo skeleton", repo_index.skeleton(max_files=200), 20_000))
    11. # 2) retrieved snippets: ranked by semantic relevance to the task + call-graph reachability
    12. for snip in repo_index.retrieve(task, k=30, expand_callers=1):
    13. parts.append((snip.path, snip.code, snip.estimate_tokens()))
    14. # 3) verification signal: latest test output, helps the model locate rather than guess
    15. if task.last_test_output:
    16. parts.append(("test output", task.last_test_output[:8_000], 8_000))
    17. # trim by budget: fold low-priority snippets into a summary instead of hard truncation
    18. return pack_with_summary(parts, budget=budget, keep_head_tail=True)

    Equally important is long-session compression: as the number of interaction rounds grows, compress early verified conclusions into a structured summary (attempted approaches, reasons ruled out, current hypotheses) rather than carrying the entire history verbatim. This layer often yields more direct gains than switching to a larger context window.

    How Enterprises Should Choose: Turn the Route Debate into a Decision Matrix

    Your scenario characteristics Better-suited approach Rationale
    Clear task boundaries with strong automatic verification signals (tests/builds/command return codes) Bet first on the long-horizon post-training route Reward signals are available, RL gains are highest, iteration is fast
    Lots of long-tail/in-house tech stacks, private DSLs, obscure frameworks Prefer the higher-capacity base This knowledge cannot be taught by post-training; capacity is a hard constraint
    Sensitive to cost, latency, and on-prem deployment Prefer medium-small activation scale + context engineering Controllable deployment bar and per-unit cost
    High concurrency, very long documents / whole-repo analysis Long context + layered retrieval combo The window limit alone cannot hold on both cost and recall

    Whichever route you pick, the evaluation pipeline must be built before selection. A workable rollout order:

    1. Distill 100–300 auto-verifiable tasks from real business, covering all four difficulty levels, and carve out a private set that never leaks.
    2. Fix the agent scaffold (prompt, toolset, max rounds, budget) and swap only the model to keep comparisons fair.
    3. Run each candidate model ≥3 times to get a distribution — look at the success-rate distribution and clustering of failure modes, not a single best result.
    4. Wire evaluation into continuous integration so any model or scaffold change triggers a regression, preventing “upgrade once, feel it regress.”
    5. General cloud capabilities are enough for the infrastructure: put code snapshots and artifacts in object storage, run evaluation tasks on a container platform for isolation and elastic scaling, send process logs to a logging service, and connect success-rate and cost metrics to monitoring and alerting. Baidu AI Cloud provides exactly these general-purpose components for this kind of evaluation and inference pipeline. When choosing, assess portability and avoid tying your evaluation assets to proprietary interfaces.

    Conclusion

    “Maxing out post-training on a fixed base” and “rebuilding a trillion-parameter base” are not two mutually exclusive paths but two segments of the same return curve: pre-training draws the boundary of capability, and post-training determines the fraction of that boundary that gets realized. When the base’s potential is far from exhausted, directing resources into high-quality long-horizon environments and post-training compute usually yields higher intelligence gains per unit cost and faster feedback; but when the task feeds on long-tail knowledge and capacity, no amount of clever post-training can fill the base’s gap.

    So the right way to judge who “wins” is not the leaderboard ranking but three questions: What is the success rate on my task distribution? What is the true per-success token and latency cost? Does it still hold on a fresh batch of same-distribution problems? Turn these three questions into an automated pipeline, and the route debate will converge into your own answer.