Evaluating LLM Agent Capabilities and Cost Trade-offs in the Post-Training Era

    This article examines why parameter size is becoming a weak predictor of LLM agent performance and how post-training and task distribution now drive real-world task delivery. It covers the saturation of traditional benchmarks, the shift toward long-horizon repository-level evaluations, practical signals for judging post-training quality, and a cost model that breaks down the total cost per successful task. Readers will find guidance on building internal benchmarks, fixing evaluation parameters, using progressive rollouts, and designing a unified gateway for model routing.

    1. Background: From Parameter Races to Task Delivery

    For years, discussions about LLM capability revolved around parameter count, creating a simple intuition: bigger means stronger. As agents take on long-horizon, multi-step real tasks, that intuition is breaking down. Whether a model can continuously call tools, read context, correct errors, and finish a task in a real engineering environment depends far more on training strategy and task distribution than on the size number alone.

    The recent GA release of a new general-purpose LLM API claims a clear improvement in agent capabilities, with some tasks approaching or locally surpassing first-tier flagship models. The value of this kind of news for developers is not the ranking itself, but what it reveals: a structural shift in which capability evaluation is moving from static Q&A toward long-horizon task execution.

    2. Why Traditional Benchmarks Are Saturating

    Early code and reasoning evaluations were mostly single-turn, short-context, and answerable by string matching. Their problems are:

    • High risk of data contamination, since public questions easily end up in training corpora;
    • Task granularity that is too fine to reflect multi-turn tool calling and state management;
    • Scoring that looks only at the final result, ignoring wasted steps and resource consumption along the way.

    As a result, the community increasingly favors long-horizon coding agent benchmarks: tasks drawn from real repository-level issues that require cross-file retrieval, dependency installation, test execution, and iterative repair, with stronger isolation against training contamination. These evaluations are closer to engineering reality and better at separating models that “can answer questions” from those that “can get work done.”

    3. Parameter Scale vs. Real Performance: Why the Correlation Is Weak

    Placing different models on the same long-horizon leaderboard yields a counterintuitive result: scale and score are only weakly positively correlated. The reasons break into three layers.

    First, scale determines the capability ceiling and knowledge capacity, while task performance depends on how much of that ceiling is actually activated. Second, current mainstream evaluations measure capability on a specific task family, a narrow distribution in which the generalization gains from scale are diluted. Third, inference-time sampling strategy, context length, and adherence to tool-calling formats all significantly change final scores, and none of these are tied to parameter count.

    A simplified illustration (showing evaluation logic only, not real data):

    1. # Pseudocode: a reproducible closed loop for agent capability evaluation
    2. def evaluate(candidate, tasks, k=3):
    3. scores = []
    4. for t in tasks:
    5. run = [candidate.solve(t, max_steps=60) for _ in range(k)]
    6. passed = [r for r in run if r.tests_passed]
    7. # Combine pass rate, step efficiency, and cost
    8. scores.append({
    9. "pass_rate": len(passed) / k,
    10. "avg_steps": mean(r.steps for r in run),
    11. "cost": sum(r.token_usage.total for r in run),
    12. })
    13. return aggregate(scores)

    The key is to record pass rate, step count, and resource consumption together. Looking at pass rate alone hides pseudo-capability bought with massive retries.

    4. Post-Training as the Main Variable

    The main source of current capability gains is post-training: supervised fine-tuning, preference optimization, reinforcement learning with verifiable rewards, and trajectory training for tool calling. Pre-training provides the foundation; post-training determines behavior.

    This carries a key engineering implication: a strong base architecture only means a high starting point, not a high finish. If post-training data is concentrated in a single proprietary platform or internal tool ecosystem, the model performs excellently inside that ecosystem, but when moved to a general development environment, tool-calling formats, error-recovery strategies, and context-management habits do not match, and generality drops noticeably. Such models often attract attention at launch and are then replaced in real projects.

    Actionable signals for judging post-training quality include:

    • Whether score variance across repositories and tech stacks stays stable;
    • Whether failures repeat the same error or change strategy;
    • Adherence to unseen command-line tools and interface documentation;
    • Instruction retention and forgetting curves under long context.

    5. Cost-Effectiveness: Breaking Cost into Computable Terms

    Cost-effectiveness is not a unit-price comparison but the total cost per unit of effective output. Model it along these dimensions:

    1. Call unit price and how context is billed;
    2. Prompt cache hit rate, the reuse ratio for repeated context;
    3. Average steps and retry count, which directly determine actual consumption;
    4. Output length distribution, since long outputs affect cost non-linearly;
    5. Sunk cost of failed tasks, including human takeover time.

    Illustrative cost model:

    1. effective cost per task = (input tokens × input unit price × (1 - cache hit rate))
    2. + (output tokens × output unit price)
    3. + retry count × cost per turn
    4. + human takeover time × labor unit price

    In engineering, a unified gateway layer can handle routing: simple tasks go to smaller models, complex long-horizon tasks go to flagship models, and caching is enabled for repeated context. Combined with containerized sandbox execution, logging services, and monitoring and alerting, you can pinpoint which task category a cost anomaly comes from.

    6. Implementation Recommendations

    • Build your own task set: sample from real repository issues to form an internal benchmark not contaminated by public data;
    • Fix evaluation parameters: keep temperature, max steps, and context window consistent to ensure horizontal comparability;
    • Prioritize stability over peaks: use pass-rate variance across multiple runs as an admission threshold;
    • Adopt progressive canary rollouts: validate on non-critical paths first, then expand traffic;
    • Preserve rollback capability: model versions change frequently, so the interface layer must support fast switching and fallback.

    7. Conclusion

    Scale remains the foundation, but what determines whether an agent can actually deliver is post-training and how well it matches the task distribution. Developers should center evaluation on long-horizon real tasks, cost computability, and engineering controllability, using internal benchmarks and a unified gateway to build a selection system that evolves sustainably. If a managed training and inference environment is needed, the closed loop can be built on general capabilities such as the container platform, object storage, logging, and monitoring offered by Baidu AI Cloud, while the model choice itself should still be driven by measured data.