The Post-Training Era: How LLM Agent Capabilities Evolve and Why Cost-Effectiveness Needs a New Metric

    Evaluation is shifting from single-turn answer accuracy to long-horizon task completion, which weakens the link between parameter count and real agent performance. This article explains why a smart base model often underperforms in production, how to structure regression evaluation for coding agents, and how to calculate cost per successful task instead of price per million tokens, along with practical guidance on scenario tiering, observability, and elastic infrastructure.

    1. Evaluation Is Moving From Answer Accuracy to Long-Horizon Task Completion

    For the past few years, LLM capability was mostly measured with single-turn Q&A and static coding problem sets. These benchmarks share a structural weakness: the problems get trained on repeatedly, answers leak into the corpus, scores saturate, and the ability to discriminate between models drops.

    Over the past year, the community has leaned toward long-horizon agent benchmarks, typically coding agents. Their defining traits are that tasks come from real engineering environments, require multiple rounds of tool calls, include a build-and-test feedback loop, and apply stronger controls against data contamination.

    The scoring logic has changed accordingly. It is no longer just about whether the final answer is correct, but whether the model can hold its objective across dozens or even hundreds of interaction steps, read error output, roll back incorrect changes, and converge within budget. A lead on an older benchmark therefore does not extrapolate linearly to real engineering delivery capability.

    2. Parameter Scale vs. Real Capability: Correlated, but Weakly

    There is a common intuition in the industry: bigger models are stronger models. Public information suggests that leading closed-source models are generally in the trillion-parameter range, while strong open models range from hundreds of billions to trillions. Scale does correlate positively with capability.

    On agent benchmarks, however, that correlation weakens noticeably, for three reasons:

    1. Capability is defined by the task. Agent capability is a composite skill tied to specific scenarios such as writing code, operating a terminal, or handling tickets, not general knowledge coverage.
    2. Post-training shapes behavior policy. Whether a model decomposes a task, verifies its work proactively, and switches paths after failure is primarily determined in the post-training stage.
    3. Architecture and data efficiency. Better attention and sparsification designs, plus higher-quality training and inference data mixtures, allow mid-sized models to approach the performance of much larger ones.

    The conclusion: scale sets the slope of the ceiling, while post-training determines where on that curve you actually sit.

    3. Why a “Smart” Base Model Is Not Automatically Good in Production

    A frequent failure mode is a base model that performs well on general understanding but drops sharply on a real platform. The usual root cause is a mismatch between the post-training environment and the target scenario, for example training the agent only inside a proprietary closed toolchain. The model then learns that platform’s calling conventions, and generalization degrades in a general environment.

    A schematic evaluation and regression pipeline can be organized like this:

    1. # Pseudocode: regression evaluation skeleton for long-horizon agent capability
    2. def run_agent_eval(model, tasks, max_steps=120, budget_tokens=2_000_000):
    3. results = []
    4. for t in tasks:
    5. env = SandboxRepo(t.repo_snapshot) # Isolated environment to avoid host contamination
    6. score = 0.0
    7. for step in range(max_steps):
    8. action = model.plan(env.state(), allowed_tools=env.tools())
    9. obs = env.execute(action) # Build/test/static-check feedback
    10. if obs.done:
    11. score = env.verify() # Score by test pass rate and change quality
    12. break
    13. if obs.budget_exceeded:
    14. score = 0.0
    15. break
    16. results.append((t.id, score, step, obs.tokens_used))
    17. return aggregate(results)

    In practice, at least three metrics should be fixed: task success rate, average number of interaction steps, and cost per task (tokens and wall-clock time). Only when all three are included can you avoid the false improvement of trading more steps for a higher success rate.

    4. The Right Way to Calculate Cost-Effectiveness: Cost per Successful Task, Not Unit Price

    Many teams compare cost-effectiveness using only the price per million tokens, which can be seriously misleading. A more reasonable measure is:

    • Effective cost = total spend ÷ number of successful tasks
    • Constrain P95 latency and retry rate at the same time, because retries multiply cost
    • For long-horizon tasks, include supporting overhead such as environment setup, logging, and monitoring alerts

    A practical formula:

    1. CostPerSuccess = (TokensIn * PriceIn + TokensOut * PriceOut) * Attempts / SuccessTasks

    Attempts is determined by the retry policy. If model A is 30% cheaper per token but has a 20% lower success rate and needs one extra attempt, its actual cost per successful task is higher.

    5. Enterprise Adoption: Scenario Tiering and Observability First

    1. Tier by scenario. Split tasks into high-certainty work (templated changes) and low-certainty work (cross-module refactoring). Use mid-sized models for the former and reserve stronger models as a fallback for the latter.
    2. Align post-training and knowledge injection with the scenario. Run behavior training and tool-use constraints on a general agent framework rather than binding to a single closed toolchain. Inject enterprise private knowledge through retrieval augmentation and a tiered knowledge base instead of relying on parametric memory alone.
    3. Observability first. Connect unified logging, monitoring alerts, and distributed tracing, and turn every tool call, failure reason, and rollback count into analyzable data that closes the evaluation loop.
    4. Elastic compute and cost governance. Use container platforms and autoscaling to carry evaluation and batch inference, archive datasets and artifacts in object storage, and control budgets with quotas and tiered routing.
    5. Build a unified model gateway in the cloud. The LLM services and general cloud capabilities offered by Baidu AI Cloud, such as container platforms, object storage, logging, and monitoring alerts, can be used to build model routing, canary releases, and a cost dashboard, moving model selection from guesswork to a data-driven process.

    6. Summary

    The evaluation focus has shifted to long-horizon real tasks, the explanatory power of parameter count has declined, and post-training plus environment fit have become the decisive variables. When assessing cost-effectiveness, enterprises should drop the unit-price view and adopt a combined measure of cost per successful task, latency, and retry rate, then use tiered routing, an observability system, and elastic infrastructure to convert model capability into deliverable productivity.