Why Post-Training Matters More Than Pretraining: How LLM Capabilities Diverge

    Early general-purpose LLMs and later coding-specialized models often share similar pretraining foundations, yet their capabilities can diverge sharply. This article explains why pretraining determines a model's ceiling while post-training determines how usable it feels in practice. It covers the biases in human preference labeling, the case for verifiable rewards in coding and tool-use tasks, agentic trajectory training, intent alignment, and a practical closed-loop pipeline for post-training and evaluation that engineering teams can adopt.

    Why Post-Training Matters More Than Pretraining: How LLM Capabilities Diverge

    First Movers Don’t Have a Generational Edge: Shared Pretraining, Different Product Paces

    A common misconception when discussing capability differences among large language models is to equate “who shipped first” with “generational technical advantage.” In reality, early general-purpose models and later models that excel at coding and tool calling often share closely related pretraining foundations: scaling laws, hundred-billion-parameter architectures, autoregressive pretraining objectives, data mixtures, and distributed training engineering. Key insights flowed within the same research community. What first movers captured was a product window and user mindshare—not a permanent monopoly on pretraining.

    The real distinction lies between two kinds of capabilities. One is the “foundation ceiling” granted by pretraining: general reasoning, knowledge coverage, math and formal reasoning, long-context understanding. The other is the “usability” granted by post-training: instruction following, tool calling, code editing, intent clarification, safe refusals, and format control. The former determines whether a model can do something; the latter determines whether it is pleasant to use, safe to rely on, and able to complete multi-step tasks reliably.

    This is why it is not contradictory for a general-purpose model to still lead on verifiable benchmarks like math and formal reasoning, while a coding-specialized model achieves a decisive local lead in coding, tool calling, and intent alignment—without representing an across-the-board intelligence gap. Capability divergence largely comes from post-pretraining choices in alignment and reinforcement learning.

    Pretraining Sets the Ceiling; Post-Training Sets the Experience

    Pretraining solves next-token prediction: the model learns language patterns, code structure, world knowledge, and reasoning modes from massive corpora. It is like laying a foundation—the broader the base, the greater the later plasticity. But a pretrained model does not naturally “understand human intent,” nor is it naturally good at multi-step tool use. It may produce plausible-looking code that cannot run, or ramble on when the user’s goal is vague.

    Post-training—through supervised fine-tuning, preference optimization, rejection sampling, reinforcement learning, red-teaming, and safety policies—shapes a “text completion engine” into a “task-completing assistant.” The key here is not any single algorithm but the data flywheel and reward signal design. Early RLHF pipelines typically worked like this: annotators compare two responses, a reward model is trained on those comparisons, and reinforcement learning then optimizes the policy against it. This approach worked quickly at first because human preferences rapidly corrected obvious errors and improved tone and formatting.

    But preference scoring has a structural flaw: annotators have limited time and cognitive bandwidth. Faced with three hundred lines of code, no one can verify line by line in under a minute whether it actually runs. Faced with deep logic, it is hard to judge whether intermediate steps are rigorous. So scores drift toward superficial features that “look better”: tidy paragraphs, plenty of subheadings, opening with agreement, confident tone. Once the reward model learns these shortcuts, they backfire—producing sycophancy, bureaucratic verbosity, and format fetishism.

    Where Early Human Preference Scores Go Wrong

    Preference data is not ground truth; it is a noisy, weak supervision signal. Its bias comes mainly from three sources:

    1. Asymmetric verification cost. Natural language tone is easy to judge; code correctness, edge cases, performance, and security are hard to verify quickly. Models prioritize optimizing the “easy-to-judge” dimensions.
    2. Distorted labeling incentives. Annotators tend to pick the response that “looks nice” rather than the one that “verifies as correct.” Long answers, bold headings, and opening flattery can earn disproportionately high scores.
    3. Distribution shift. Real development tasks are long-horizon, multi-step, and tool-feedback-driven, while preference labeling is typically single-turn, short-text, and static comparison. The training distribution doesn’t match the usage distribution.

    In open-ended conversation, this bias shows up as “sounds great”; in coding tasks, as “thorough explanation, but the code doesn’t run.” Fixing it requires more than a bigger preference model—the reward signal must shift from “subjectively pleasing” to “verifiably correct.”

    Why Coding and Tool Use Need Verifiable Rewards

    Coding tasks have a natural advantage: many outcomes can be verified by an external environment. Whether compilation passes, unit tests pass, static checks stay clean, interface contracts are satisfied, and end-to-end trajectories succeed—all are more stable reward sources than “a human thinks it looks good.” Tool calling is the same: whether parameters are valid, whether results are correctly consumed, whether failures are recovered from, and whether permission boundaries are respected can all be verified through sandboxes and trajectory logs.

    A practical verifiable reward design can be layered:

    1. def verifiable_reward(trace):
    2. # trace contains code, tool calls, execution results, and intermediate states
    3. if not trace.compile_ok:
    4. return -1.0
    5. if not trace.tests_pass:
    6. return -0.5
    7. score = 0.4
    8. score += 0.3 * trace.coverage_ratio # test and edge-case coverage
    9. score += 0.2 * trace.minimal_diff_ratio # whether changes are minimal, no unrelated edits
    10. score += 0.1 * trace.explanation_match # whether explanation matches execution results
    11. return score

    Human preference still has value, but it should serve as a secondary signal when verifiable scores are close, with a penalty for format bias. For example:

    1. def preference_reward(pair, verifier):
    2. a, b = pair
    3. score_a = verifier.task_score(a)
    4. score_b = verifier.task_score(b)
    5. if abs(score_a - score_b) > verifier.epsilon:
    6. return 1 if score_a > score_b else -1
    7. human = pair.human_label
    8. style_penalty = verifier.style_bias(a) - verifier.style_bias(b)
    9. return human - 0.2 * style_penalty

    The core principle: whenever execution can verify the outcome, don’t rely on subjective preference; when preference is unavoidable, suppress superficial features.

    Agentic Training: From Answer Quality to Trajectory Quality

    A key reason coding-specialized models stand out at tool calling and intent alignment is agentic training. Traditional conversational evaluation focuses on single-turn answer quality, while agentic tasks focus on multi-step trajectories: understanding the goal, decomposing a plan, choosing tools, reading results, detecting errors, backing off and retrying, and final delivery. The model must not only “talk well” but “act well.”

    This requires training data to expand from “question-answer pairs” to “trajectory pairs”: states, actions, tool returns, failure causes, corrective actions, and final verification results. Evaluation must also move beyond final answers to trajectory-level metrics:

    1. def eval_agent(tasks, agent):
    2. results = []
    3. for t in tasks:
    4. trace = agent.run(t.prompt, tools=t.tools)
    5. results.append({
    6. "task_id": t.id,
    7. "success": t.verifier(trace),
    8. "steps": len(trace.steps),
    9. "tool_calls": trace.tool_calls,
    10. "recovered": trace.recovered_from_error,
    11. "policy_violation": trace.policy_violation
    12. })
    13. return aggregate(results)

    The core challenge in trajectory training is reward sparsity and credit assignment. If only final success yields a score, the model cannot tell which step was right. A better approach combines process rewards with outcome rewards: does the plan cover the constraints, are tool parameters valid, are intermediate results correctly referenced, is recovery from failure effective. Only then can the model learn behaviors like “clarify before executing,” “read the docs before editing code,” and “verify in small steps before large changes.”

    Intent Alignment: Turning Complex Goals into Executable Constraints

    When users state complex goals, they typically describe only the desired outcome, not the constraints. Models with strong intent alignment proactively identify missing information: target environment, inputs and outputs, boundary conditions, files that must not change, acceptance criteria. Instead of dumping code immediately, they first form executable constraints and then plan within them. This capability is especially visible in “describe requirements in natural language” scenarios, because it converts vague wishes into verifiable tasks.

    Training for this requires three kinds of data: clarification dialogues, constraint tracking, and refusals with graceful degradation. The model must learn to ask questions when information is insufficient, point out conflicts when constraints clash, and refuse unauthorized tool calls when permissions are lacking. Safety policy shouldn’t be a final filter only—it should enter trajectory training and the reward function.

    A Practical Post-Training and Evaluation Closed Loop

    Engineering teams don’t need a “magical training method”; they need a reusable closed loop:

    1. Layered evaluation sets. Build separate sets for general reasoning, code correctness, tool calling, long-document retrieval, and safety refusals, so a single aggregate score doesn’t mask differences.
    2. Verifiable rewards first. Use compilation, unit tests, static checks, interface contracts, and sandboxed execution results as primary rewards; treat human preference as auxiliary and as a debiasing target.
    3. Trajectory-level annotation. Record plans, tool calls, error recovery, and final verification to train process rewards and failure-recovery strategies.
    4. Debias preference data. Control for length, formatting, and tone features; include anti-sycophancy and anti-format-fetish samples.
    5. Safety and permissions. Tool allowlists, least privilege, and secondary confirmation for sensitive operations—built into evaluation metrics.
    6. Continuous regression. Run a fixed regression suite on every post-training iteration, tracking success rate, average steps, tool error rate, and policy violation rate.

    On the infrastructure side—using a platform like Baidu AI Cloud, for example—a general container platform can host code sandboxes and evaluation jobs, log services can collect trajectories and tool returns, and monitoring and alerting can track regression metrics. The point is not any specific API, but turning “execution verification → trajectory collection → reward computation → regression evaluation” into a pipeline.

    Conclusion

    Early general-purpose models took off first on the strength of a product window and a solid pretraining foundation. Later coding-specialized models achieved local leads in coding, tool calling, and intent alignment through post-training choices: reducing dependence on outsourced preference scoring, adding verifiable rewards, strengthening agentic trajectory training, and folding intent clarification and safety constraints into the task loop. The so-called “unique training methods” are no magic—they are the shift of reward signals from “looks pleasing” to “verifiably correct after execution,” and of evaluation targets from “single-turn answers” to “multi-step trajectories.” Understanding this lets you view capability divergence among models more rationally—and find actionable improvements for your own post-training and evaluation systems.