LLM Post-Training: Capability Evolution and Engineering Evaluation
This article explains how post-training reshapes large language models and why benchmark scores alone can be misleading. It breaks evaluation into capability, interaction, and governance layers, then shows how to build a multi-dimensional evaluation matrix with verifiable, preference, and adversarial task sets. You will find a minimal Python evaluation harness, guidance on defining "working" milestones for complex engineering tasks, expert workflow injection, tiered security responses, and cloud-based selection and rollout practices.
1. The Starting Point: Why Benchmark Scores Look Inflated
Whenever a new generation of large models is released, the first community discussion is rarely “what can this help me build?” It is usually “is this score even plausible?” That skepticism is not just an emotional reaction. It points to a structural problem: what benchmarks measure is not what real engineering work cares about.
Benchmark scores measure model performance under fixed prompts, fixed inputs, and fixed scoring scripts. Engineering adoption cares about stability under long contexts, noisy data, multi-turn rework, and retries after tool-call failures. The former is a controlled experiment; the latter is an open system. As post-training methods become stronger, the gap between the two is amplified rather than closed.
Post-training generally refers to what happens after pre-training: supervised fine-tuning, preference alignment, rejection sampling, reinforcement learning with verifiable rewards, long chain-of-thought distillation, and similar techniques that shape a general-purpose base model to better match human preferences and task formats. The capability gains are real. But there is a side effect: the model becomes better at answering “within the evaluation paradigm.” When training signals depend heavily on automatically gradable questions, gains on those questions are quickly amplified, producing a deceptively steep score curve.
So the first step in evaluation is neither to trust nor to dismiss the score. It is to split evaluation into three layers:
- Capability layer: Does the model have the knowledge and reasoning foundation required for a task category?
- Interaction layer: Can the model stay on target across multiple turns, tools, and constraints?
- Governance layer: Are outputs auditable, rollback-capable, and subject to tiered authorization?
Only when all three layers pass is a model ready for production.
2. What Post-Training Actually Changes
Treating post-training as “parameter tuning” underestimates it. It is closer to a pipeline that reshapes a base model’s controllability, format compliance, refusal boundaries, and tool-use habits. Four gains matter most in engineering.
First, format compliance. Structured output—strict JSON, fixed field names, constrained enum values—is a hard requirement in business systems. Post-training can significantly reduce parsing failures, letting model output flow directly into downstream programs instead of relying on regex fallbacks.
Second, coherence in long workflows. Complex engineering tasks are rarely a single question and answer. They are loops: read code, locate the issue, make one change, run tests, fix again. If post-training covers tool invocation and self-verification patterns, the model is more likely to retry with evidence after a failure rather than repeating the same mistake.
Third, adaptation to expert workflows. Abstracting an expert’s operation sequence into reusable workflow templates and injecting them through demonstration data can make the model behave more like a human assistant in specialized scenarios: confirm prerequisites first, then propose a solution, then provide a verification method.
Fourth, finer safety boundaries. Scenarios such as network security and content compliance do not need blanket refusals. They need tiered responses: clearly refuse high-risk requests, provide defensive and compliance-oriented explanations for medium-risk requests, and assist normally with low-risk requests. Post-training can make this tiering smoother and reduce usability loss from false refusals.
3. Building an Evaluation System: From a Single Score to a Multi-Dimensional Matrix
To answer whether a given model generation has truly improved, evaluation must expand from a single leaderboard to a matrix. A practical matrix includes at least four dimensions and three task sets.
Four dimensions:
- Correctness: Is the result verifiable, ideally judged by a program rather than human impression?
- Stability: Consistency across repeated samples of the same input. High variance means unusable in production.
- Cost efficiency: Inference resources and latency consumed per successful task, not unit price alone.
- Safety: Pass rate and false-refusal rate on privilege escalation, inducement, and injection cases.
Three task sets:
- Verifiable set: Has standard answers or executable checks, suitable for automated regression.
- Preference set: No single correct answer; requires pairwise comparison or rule-based scoring.
- Adversarial set: Includes attack surfaces such as prompt injection, context contamination, and forged tool returns.
The sample code below shows a minimal runnable evaluation skeleton. The point is to put “verifiable” and “variance statistics” behind the same entry point, so you do not look at the mean alone.
import statisticsfrom dataclasses import dataclass, field@dataclassclass Case:cid: strprompt: strverifier: callable # returns (passed: bool, score: float)samples: int = 5@dataclassclass Report:cid: strpass_rate: floatmean_score: floatstd_score: floatnotes: list = field(default_factory=list)def run_case(model, case: Case) -> Report:scores, passes = [], 0for _ in range(case.samples):out = model.generate(case.prompt)ok, sc = case.verifier(out)passes += int(ok)scores.append(sc)return Report(cid=case.cid,pass_rate=passes / case.samples,mean_score=statistics.mean(scores),std_score=statistics.pstdev(scores) if len(scores) > 1 else 0.0,)def gate(report: Report, min_pass=0.8, max_std=0.15) -> bool:# Release gate: require both pass rate and controlled variancereturn report.pass_rate >= min_pass and report.std_score <= max_std
In practice, put the gate conditions into the pipeline. Any model or prompt change should trigger a full regression, and historical reports should be retained for comparison. That way, “this generation is stronger” becomes a reproducible conclusion rather than a feeling.
4. Complex Engineering Scenarios: Define “Working” Clearly
“Basically working on complex engineering” is too vague in an engineering context. A practical approach is to break “working” into decidable milestones: whether environment identification succeeded, whether dependency resolution is complete, whether changes are minimal, whether tests were actually executed, and whether failure logs were correctly located. Each milestone maps to a verifier, and together they form an end-to-end success rate.
Context management deserves emphasis. Long repositories and long logs quickly consume the context window. A common strategy is layered retrieval: start with a directory-level summary, trim relevant snippets along the call chain, and only then include the full text of key files. Combined with a prompt constraint to restate the goal before acting, this can noticeably reduce goal drift.
5. Expert Workflows and Knowledge Injection
The value of expert workflows is making tacit experience explicit. The usual path has three steps: collect expert operation traces, abstract them into a state machine or step checklist, then inject them into the model with demonstration and verification data. Evaluation should not look only at the final answer. It should also check whether the step order follows the standard and whether confirmation is requested at key points. For high-risk operations, default to a three-stage pattern: the model gives advice, the system executes, and a human confirms. Avoid giving a generative component direct change authority.
6. Security Governance: Tiered Response and Auditability
Security capability must be measured with adversarial sets, not subjective impressions. Maintain a continuously updated attack case library covering prompt injection, forged tool returns, privilege escalation inducement, sensitive information extraction, and similar types. Track the false-refusal rate at the same time. Excessive false refusals push business teams to bypass the security layer, which is more dangerous. All high-risk decisions and handling actions should be written to a logging service, with monitoring and alerting forming a closed loop that is traceable and reviewable.
7. Selection and Rollout on the Cloud
On Baidu AI Cloud, the above process can map to a combination of general capabilities: use a container platform to run evaluation and inference tasks, object storage to hold datasets and reports, a message queue to decouple long tasks, and logging plus monitoring and alerting to observe success rate, latency, and false-refusal rate. Model services are accessed through a unified gateway, which makes canary release and rollback easier. The key principle: models are replaceable, evaluation is not optional; version prompts and workflows, and automate reports and gates.
8. Conclusion
In response to the question of whether scores are inflated, the most professional answer is not to pick a side but to build your own measurement. Separate the capability, interaction, and governance layers. Replace single-point scores with verifiable task sets and variance statistics. Write complex engineering and expert workflows as decidable milestones. Make security a tiered response with an audit closed loop. Then no matter how fast models iterate, your system can consistently deliver predictable gains.
