Why LLM Agent Capabilities Require Multiple Rounds of Iterative Refinement

    This article explains why newly released foundation models often underperform in agent scenarios, tracing the gap to agent execution skills that only stabilize after repeated targeted optimization. It outlines a five-dimension evaluation framework, a layered model selection strategy, and engineering safeguards such as structured output validation, external state storage, and step limits to keep agent workflows reliable.

    1. The Gap: Why New Models Feel Disappointing in Agent Scenarios

    Many developers notice the same pattern when trying a freshly released foundation model: single-turn Q&A and text generation feel smooth and natural, but the moment the model is placed inside an agent loop, problems appear. Tool calls come back with malformed arguments, multi-step tasks drift off course midway, and constraints get forgotten as the context grows. This gap is not an illusion. It is the expected result of differences between evaluation dimensions.

    Two categories of capability need to be separated. The first is language understanding and generation, which is largely determined during pre-training. The second is agent execution capability, which covers instruction following, structured output, tool calling, long-horizon planning, and error recovery, and which only becomes stable after additional rounds of training and optimization. Maturity in the first category does not imply maturity in the second.

    2. The Cause: Agent Capability Accumulates Through Targeted Optimization Rounds

    A common pattern across the industry is that models ranking near the top of agent evaluations have almost always gone through several iterations. Looking at general technical evolution paths, a single generation of foundation model typically passes through three stages: an initial release, a capability-enhanced version, and a stability revision. Each round targets metrics such as tool-call accuracy, long-context consistency, and multi-turn task completion rate.

    A first-version model that has gone a long time without updates and is only now being released again has missed that accumulation, so weak performance in agent scenarios is a reasonable expectation. This is not a case of the model getting “worse”; it means the optimization targets have not yet extended to this scenario. Understanding this prevents an engineering problem from being misread as a model selection mistake.

    3. A Judgment Framework: How to Assess Whether a Model Fits Agent Workloads

    Evaluate across five reproducible dimensions instead of relying on subjective impressions:

    1. Structured output stability: field completeness and parse failure rate under JSON mode.
    2. Tool-call correctness: function name selection, parameter types, and the proportion of missing required fields.
    3. Multi-step task completion rate: final success rate and average step count for task chains of 5 to 10 steps.
    4. Long-context consistency: whether the original system constraints are still honored after the history is expanded.
    5. Error recovery: whether the model self-corrects after a tool returns an error rather than repeating the same ineffective call.

    A skeletal evaluation harness looks like this:

    1. def evaluate_agent(model, tasks):
    2. report = {"json_fail": 0, "tool_arg_err": 0, "success": 0}
    3. for t in tasks:
    4. out = model.run(t.prompt, tools=t.tools)
    5. if not is_valid_json(out.raw):
    6. report["json_fail"] += 1
    7. if has_missing_required_args(out.tool_calls, t.schema):
    8. report["tool_arg_err"] += 1
    9. if out.final_state == t.goal:
    10. report["success"] += 1
    11. return report

    4. Practical Strategy: Layer Scenarios and Combine Models

    Do not bet every task on a single model. Split workloads by complexity: hand simple classification, summarization, and field extraction to lightweight models; route complex tasks that need multi-step planning and tool orchestration to models that have been through multiple rounds of agent optimization; and add rule-based validation plus a second review pass on chains with very high stability requirements. This combination strikes a better balance between cost and reliability.

    5. Engineering Safeguards: Containing the Uncertainty

    Even when model capability is not yet mature, the engineering side can improve results substantially:

    • Constrain output: use structured output modes with JSON Schema validation, and retry whenever parsing fails.
    • Narrow the tool set: expose only the tools needed for a given turn to reduce selection ambiguity.
    • Externalize state: write task state to external storage to avoid forgetting over long contexts.
    • Cap steps and budget: set a maximum iteration count and timeout to prevent infinite loops.
    • Make the pipeline observable: use logging services and monitoring alerts to record the input, output, and latency of every call, making degradation points easier to locate.
    1. {
    2. "max_steps": 8,
    3. "retry_on_parse_error": 2,
    4. "state_store": "external",
    5. "tools_exposed_per_turn": 3
    6. }

    6. Conclusion

    When a new model underperforms in agent scenarios, the usual cause is that optimization rounds have not yet covered the scenario, not a defect in capability. Developers should build quantitative evaluations, select models by scenario layer, and use engineering measures as a safety net. If elastic compute and supporting capabilities are needed, general product categories such as the container platform, object storage, logging service, and monitoring alerts offered by Baidu AI Cloud can be used to build a reproducible evaluation and runtime environment, decoupling the pace of model iteration from business stability.