Agent Self-Evolution: Why Co-Optimizing Weights and the Harness Matters

    This article examines why stronger base models alone fail to improve enterprise AI agent success rates, drawing on a self-evolution evaluation where a researcher agent improves a target agent by either training weights or modifying the harness. It explains the normalized weighted scoring method, the strong coupling between weights and framework, why coding gains came mostly from harness changes, and a practical engineering loop for co-optimization. Readers will learn how to measure weight and framework contributions separately, prioritize early structural changes under budget limits, and build reproducible experiments.

    1. Background: The Bottleneck Is Not Model Strength

    A recurring pattern in enterprise AI agent deployments is that teams keep swapping in stronger base models and adding instruction-tuning data, yet online task success rates barely move. A recent evaluation of agent self-evolution offers a more structured explanation: what limits the system’s ceiling is often not the weights themselves, but the runtime that hosts them—the harness responsible for tool-call orchestration, context assembly, execution control, and failure retries.

    The evaluation setup is worth borrowing. A “researcher agent” is tasked with improving a separate “target agent,” using one of two improvement methods: training weights or modifying the harness. Each development cycle is capped at 24 hours and four accelerator cards, with a fixed quota for teacher-model calls. The visible set provides tasks and full trajectories; the selection set returns only scores. The final submission is a weight-plus-harness pair, evaluated on an independent test set. The key constraint is that the researcher model’s own capability must not be conflated with the target model’s performance.

    2. Scoring: Normalized Weighted Score Is Not Success Rate

    The 31.23 reported in the evaluation is a normalized weighted score, not a simple average, and it does not mean 83% of tasks succeeded. It is computed by weighting each domain according to the inverse of the “initial-to-reference” gap, measuring the fraction of that gap that was closed. With a 9B-class base model as the target, the initial system scored only 1.09; instruction-tuned weights paired with the reference harness reached 37.42, and the submitted system closed roughly 83% of the gap. Interactive benchmarks exceeded the reference, but two coding benchmarks still lagged behind.

    The engineering implication is direct: comparing scores across target models is meaningless. A 2B-class target using its own normalization weights cannot be compared head-to-head with the 9B case; likewise, absolute scores under different harnesses cannot be subtracted directly. The correct approach is to hold one factor fixed and compare the other.

    3. Core Finding: Weights and Harness Are Strongly Coupled

    Among the 35 system subsets that submitted trained weights, simply swapping in the reference harness produced a clear split: instruction-tuned weights rose on average from 30.2 to 37.8, while the researcher’s self-trained weights plummeted from 19.8 to 2.6. This suggests the self-trained weights likely overfit to the original harness’s calling patterns and context shapes.

    One interactive development cycle makes this concrete: the same set of weights solved 5 more problems under the old harness but 4 fewer after the switch, and only recovered to 4 more after adaptation retraining. When old training data does not match the new calling patterns, the gains are wiped out.

    4. Attribution: Coding Gains Came Mostly From the Harness

    All six coding development cycles attempted training and ultimately kept the better base weights under the same harness, but the system-level improvement far exceeded the increment from the weights alone. Other researchers did see positive training returns on some coding systems, and the three interactive domains benefited more from training. So the finding should not be written as “training is generally ineffective”; rather, the source of gains must be measured separately. Development analysis also showed that among the 28 runs that met the conditions and improved, 25 had their largest contribution from the first hop (the first change), indicating that early structural changes offer the best return on investment.

    5. Practice: Make Co-Optimization an Engineering Loop

    1. Fix the harness and test weights first, then fix the weights and test the harness, producing a two-dimensional gain matrix.
    2. After any harness change, re-evaluate training gains; old trajectory data must be replayed and validated.
    3. Under budget constraints, prioritize early structural changes before investing in offline fine-tuning.
    4. Build a reproducible experiment bench using general capabilities (for example, object storage for trajectories, a message queue for scheduling, and logging plus monitoring and alerting for attribution).
    5. State the experiment boundaries clearly: this evaluation covers only two classes of target models, a fixed budget, and offline fine-tuning; it does not validate reinforcement learning, and the development tools were not unified, so extrapolating the conclusions requires caution.

    When building such a loop on Baidu AI Cloud, you can use a container platform to host evaluation orchestration and monitoring and alerting to track metric drift, turning weight–harness co-optimization into a sustainable engineering process rather than one-off tuning.