How to Enhance AI Agent Capabilities Without Scaling Up Model Parameters
Expanding model parameters is traditionally seen as the primary way to improve performance, but agentic tasks require robust behavioral strategies like planning, tool calling, and error recovery rather than just knowledge capacity. This article explores how to significantly enhance AI agent capabilities without altering the model's structure or size by leveraging post-training techniques and engineering systems. It covers identifying capacity bottlenecks, post-training methodologies, trajectory data design, trajectory-level evaluation, engineering pipelines, and security governance.
Expanding parameter scale has long been considered a direct method for enhancing model capabilities during iterations. However, for agentic tasks, performance depends not only on the base model’s knowledge capacity but also on behavioral strategies such as planning, tool calling, state tracking, error recovery, result verification, and multi-turn decision-making. Recently, a noteworthy practice has emerged in the industry: keeping the network structure and parameter scale of a general release model identical to its preview version, and merely re-running post-training, which led to significant improvements across multiple agent benchmarks. This suggests that agent-oriented post-training data, training objectives, and evaluation systems might offer a better return on investment than simply scaling up.
This article does not focus on any specific product version but abstracts this phenomenon into a general technical problem: how to enhance agent capabilities through post-training and systems engineering without changing the model structure and size. The following sections elaborate on capacity bottlenecks, post-training methods, trajectory data design, evaluation systems, engineering loops, and security governance.
1. Agent Capacity Bottlenecks Go Beyond Parameter Scale
Agent tasks typically involve a long chain: understanding the goal, decomposing subtasks, selecting tools, filling parameters, observing execution results, maintaining state, handling exceptions, verifying results, and reflecting and retrying when necessary. Expanding parameters can improve general knowledge, language understanding, and basic reasoning, but it does not automatically guarantee the following behaviors:
- Stable Tool Calling Format: The model must output structured parameters according to tool definitions, ensuring that parameter types, required fields, and enum values are valid.
- Long-Context State Consistency: The ability to remember completed steps, failure reasons, and remaining goals after multiple turns of execution.
- Exception Recovery Capability: The ability to identify issues and adjust strategies when tools return errors, timeouts, or empty results.
- Cost and Step Control: Avoiding invalid calls, redundant calls, and over-planning.
- Safety Boundary Compliance: Not making unauthorized tool calls and not executing high-risk irreversible operations.
These capabilities belong more to “behavioral strategies” than to “knowledge capacity.” Behavioral strategies can be shaped through post-training methods like Supervised Fine-Tuning (SFT), Preference Optimization, and Reinforcement Learning (RL). Therefore, when the base structure remains unchanged and re-post-training improves agent benchmarks, the technical implication is that training data distribution, trajectory quality, and reward design have a significant impact on agent performance.
From an enterprise deployment perspective, keeping the model structure and size unchanged offers practical advantages: inference costs do not increase due to scaling, existing deployment pipelines and capacity planning are easier to reuse, version iteration can be faster, and evaluation comparisons are fairer—because the structure is the same, performance changes are more easily attributed to post-training data and objectives.
2. Why “Same Structure and Size + Re-post-training” Works
The core reason re-post-training is effective lies in shifting the training objective from “predicting the next token” towards “completing multi-step tasks.” Common methods include:
- Supervised Fine-Tuning (SFT): Using high-quality task trajectories to let the model learn demonstrations of task decomposition, tool selection, parameter filling, and result summarization.
- Rejection Sampling: Sampling multiple trajectories for the same task and retaining those that execute successfully, have reasonable step counts, and use tools legally for retraining.
- Preference Optimization: Constructing “good trajectory/bad trajectory” pairs to make the model prefer shorter, more stable behaviors with fewer invalid calls.
- Verifiable Reward Training: Executing tasks in a sandbox environment, using whether the task is completed, whether tool calls are legal, whether results are correct, and whether costs are controlled as reward signals.
- Curriculum Learning: Gradually increasing difficulty from atomic capabilities to composite tasks, and then to long-context tasks, preventing the model from prematurely overfitting on complex tasks.
Key risks of same-structure post-training are catastrophic forgetting and distribution shift. If training data only covers narrow tool-calling scenarios, the model may degrade in general Q&A, open-ended reasoning, or clarification abilities. Therefore, in practice, it is necessary to mix general instruction data, multi-turn dialogue data, failure recovery data, and rejection/clarification samples, while setting regularization constraints and regression evaluations. Another risk is reward hacking: the model might learn to bypass checks, forge results, or exploit evaluation vulnerabilities. This requires joint constraints from executable evaluation, result verification, manual spot-checking, and multi-seed evaluation.
3. Post-Training Data Design for Agents
Post-training data for agents should not merely be “question-answer” pairs, but should be organized into “state-action-observation-reward” trajectories. A usable trajectory should at least include: task description, available tool list, thought or decision summary for each step, tool calling parameters, tool return results, error messages, final answer, and success determination. Data design can follow these principles:
- Executability: Trajectories should be replayable in a sandbox, and tool calling parameters should be verifiable.
- Verifiability: Task results should have clear determination rules, avoiding reliance on subjective scoring alone.
- Difficulty Stratification: Separate datasets for atomic tool calls, multi-tool combinations, long-context planning, and exception recovery.
- Value of Failure Samples: Failure trajectories like error calls, timeouts, missing parameters, and repeated calls can be used for preference pairs or negative samples.
- Desensitization and Isolation: Strict isolation between training sets, evaluation sets, and online feedback data to prevent data leakage.
- Reasonable Ratio: Configuring general instructions, multi-turn dialogues, tool calls, rejection/clarification, and safety samples according to target scenarios.
For annotation, it is recommended to retain both process labels and result labels. Process labels include subtask boundaries, tool selection rationale, parameter sources, and error recovery actions; result labels include task completion, answer correctness, step cost, and safety compliance. Process labels help train stable strategies, while result labels help reinforce the final objective.
4. Evaluation System: From Single-Turn QA to Trajectory-Level Assessment
If we only look at single-turn Q&A accuracy, it cannot reflect agent capabilities. A more reasonable evaluation should cover:
- Task Completion Rate: Whether the final result meets the success criteria.
- First-Time Success Rate: The proportion of tasks completed in one go without relying on retries.
- Average Steps and Tool Call Count: Measuring efficiency and cost.
- Tool Calling Accuracy: Whether tool selection is correct, and whether parameter types and enums are legal.
- Invalid Call Rate: The proportion of repeated calls, empty parameters, and unauthorized calls.
- Exception Recovery Rate: Whether the model can adjust its strategy and continue the task after a tool error.
- Long-Context Consistency: Whether initial constraints are still followed after multiple turns.
- Safety Violation Rate: Whether unauthorized access, sensitive data leakage, or high-risk operations are triggered.
- Latency and Cost: End-to-end time consumption, call counts, and resource usage.
For evaluation methods, it is recommended to use offline replay, sandbox execution, adversarial prompt injection, multi-random-seed testing, and confidence interval reporting. The benchmark set should be divided into three layers: atomic capabilities, composite tasks, and long-context tasks, examining both individual skills and overall completion rates. For comparing versions with the same structure and size, tool definitions, evaluation sets, and decoding strategies should be fixed to reduce irrelevant variable interference. Manual spot-checking is indispensable because automated judgments might miss cases where “the result seems correct but the process violated rules.”
5. Engineering Loop: Integrating Training, Inference, and Tool Calling
Post-training is not a one-time task but a continuous loop: data collection, cleaning, trajectory annotation, training, offline evaluation, gray release, online monitoring, and failure feedback. Engineering efforts should focus on building:
- Sandbox Tool Environment: Providing a replayable, rate-limited, and auditable mock or test environment for each tool.
- Trace Tracking: Recording task IDs, step numbers, inputs/outputs, error codes, latency, and final determinations to facilitate problem localization.
- Version Management: Model versions, data versions, evaluation set versions, and tool definition versions must be correlatable.
- Gray Release and Rollback: New versions should first be validated with a small traffic volume, observing completion rate, invalid call rate, and safety metrics before gradually scaling up.
- Observability: Continuously observing online performance through log services, monitoring alerts, and cost statistics.
When deploying in the cloud, you can leverage general capabilities like container platforms, object storage, log services, and monitoring alerts provided by platforms such as Baidu AI Cloud to build your training and evaluation pipelines. The tool calling side should implement permission isolation, tool whitelists, rate limits, and audit records to prevent agents from executing irreversible operations in real environments.
A simplified post-training pseudo-code is as follows:
# Train agent policy using demo traces, preference pairs, and rollout environmentdef train_agent_policy(base_model, demo_traces, preference_pairs, rollout_env):# Step 1: Supervised fine-tuning to establish basic behaviorsmodel = sft(base_model, demo_traces)# Step 2: Preference optimization to improve action selectionmodel = preference_optimize(model, preference_pairs)# Step 3: Reinforcement learning with verifiable rewards in the environmentfor batch in curriculum(rollout_env):trajectories = sample(model, batch)rewards = verify(trajectories,checks=["task_success", "tool_legal", "param_valid", "step_cost"])model = policy_update(model, trajectories, rewards)# Step 4: Mix general data for regression constraints to prevent forgettingmodel = mix_general_regression(model, general_data)return model
This process emphasizes three points: first, establish basic behaviors using demonstration trajectories; second, optimize selection using preference data; finally, reinforce multi-step decision-making using verifiable rewards in an executable environment, mixed with general data for regression constraints.
6. Security Governance and Practice Checklist
Once an agent is connected to real tools, security boundaries become more critical than in pure text Q&A. Key precautions include prompt injection, unauthorized calls, sensitive data leakage, tool abuse, and irreversible operations. Governance measures include least privilege, tool whitelists, manual confirmation for high-risk operations, output verification, idempotent design, rollback mechanisms, and full-link auditing. Adversarial samples and red team testing should be included in the evaluation, and versions failing safety metrics should not be released.
When implementing, refer to the following checklist:
- Define task success criteria and failure classifications before building the evaluation set.
- Ensure isolation between training and evaluation sets to prevent data leakage.
- When keeping the base structure unchanged, focus on iterating trajectory data, reward functions, and curriculum difficulty.
- Mix general data with rejection/clarification samples to prevent capability degradation.
- Replace purely subjective scoring with sandbox execution and result verification.
- Conduct gray releases, continuously monitoring completion rate, invalid call rate, latency/cost, and violation rate.
- Establish a failure trajectory feedback mechanism to convert online issues into data for the next round of post-training.
In summary, scaling up model size is not the only path to enhancing agent capabilities. Without changing the model’s structure and size, multi-step task performance can be significantly improved through high-quality trajectory data, behavior-oriented post-training objectives, trajectory-level evaluation, and engineering loops. For developers and enterprises, the key to this path is not chasing parameter numbers, but solidifying task definitions, data quality, reward design, and observability.
