Why LLM Agent Capabilities Need Multiple Rounds of Iteration
This article explains why newly released foundation models often underperform in agentic tasks, tracing the issue to insufficient post-training rather than a hard capability ceiling. It breaks down the four training layers behind agent behavior, the four common failure modes seen in first-release models, and practical engineering safeguards such as tool-call validation, exponential backoff, externalized state, and monitoring. It also outlines how to build a reproducible evaluation loop to measure real progress. The goal is to help developers use early releases for exploration while keeping production pipelines stable.
1. The Pattern: A New Model Struggling with Agent Tasks Is Not Surprising
Many developers find that a freshly released foundation model struggles in agent scenarios after switching to it: it drifts off course midway through multi-step tasks, fills in tool parameters incorrectly, loses constraints inside long contexts, and fails to retry after errors. This experience is often attributed to “the model isn’t good enough,” but the more common real reason is that agent capability does not emerge naturally during pre-training. It is ground out gradually through multiple rounds of subsequent training and targeted optimization.
A model typically goes through several iterations on its way from launch to genuinely usable: first instruction and preference alignment, then additional tool-calling and multi-turn planning data, then targeted fixes for observed failure cases, and finally engineering-side adjustments informed by real traffic. The launch version is like a chassis straight off the assembly line: it runs, but the chassis tuning is not finished yet.
2. Where the Capability Comes From: Four Training Layers of Agent Ability
- Pre-training: supplies world knowledge and code/text priors, determining what the model “knows,” but it barely determines whether the model “follows a process.”
- Supervised fine-tuning: injects format specifications, role constraints, and reasoning paradigms so that outputs are structurally parseable.
- Preference alignment: uses human or rule-based preferences to reduce non-compliant behavior such as verbosity, overstepping authority, and random tool calls.
- Tool and trajectory optimization: trains on real or simulated multi-step execution trajectories so the model learns the closed loop of “observe, decide, call, verify.”
Only when the fourth layer is thick enough will the model stay stable across long workflows. Launch versions often have the first three layers in place but a thin fourth layer, producing the disjointed feeling of “great at single-turn Q&A, poor at multi-step execution.”
3. Why Launch Versions Commonly Show Four Types of Failure
- Planning drift: once the step count grows, the model forgets the overall goal and produces repeated or irrelevant actions.
- Tool misuse: wrong function names, wrong parameter types, misjudged required fields, and failed parsing of return values.
- Context pollution: intermediate noise is treated as fact, skewing later reasoning.
- Weak recovery: on errors the model neither backs off and retries nor switches paths, and simply terminates.
The common thread is that these are not knowledge gaps but behavioral policy gaps, which can only be solved through subsequent iteration together with engineering constraints.
4. Practical Engineering Countermeasures
Do not hand all instability over to the model; the application architecture must carry the fallback responsibility:
# Skeleton: tool execution with validation and backoffdef run_tool(name, args, schema, retry=2):for i in range(retry + 1):if not schema.validate(args):args = schema.coerce(args) # parameter correctiontry:return call(name, args)except ToolError as e:if i == retry:return {"ok": False, "err": str(e)}time.sleep(2 ** i) # exponential backoff
Three supporting measures: structured output constraints (a fixed JSON schema), externalized state (write the goal and completed steps to external storage instead of relying only on the context), and logging plus monitoring alerts (record every call chain so it is easy to tell whether the problem lies with the model or the interface).
5. Build Your Own Evaluation Loop
Model selection cannot rely on gut feeling; you need a reproducible evaluation set: collect 50 to 200 real tasks, annotate the expected tool sequence and acceptance criteria, and track four metrics: task success rate, average number of steps, parameter error rate, and recovery success rate. Run a regression pass on every model or prompt change, so you can tell whether “it got better” is an illusion or a fact.
6. Conclusion
A new model performing unremarkably in agent scenarios is, most of the time, a matter of insufficient iteration rounds rather than a capability ceiling. The rational approach is to use launch versions for exploration and canary rollouts, keep validation, retries, and externalized state in the production path, and wait for later versions to fill in the behavioral policy. If you need stable model services along with general-purpose capabilities such as object storage, message queues, container platforms, logging services, and monitoring alerts, Baidu AI Cloud can provide the corresponding infrastructure support, letting teams focus their energy on the evaluation loop and business refinement.
