Measure Then Revise: Budgeted Compute Routers From a Harness Self-Improvement Loop
Abstract
Automated harness self-improvement for frozen language models can fail to generalize and exceed token budgets, but a measure-then-revise method that uses measured token consumption to adjust compute routers improves held-out performance and reduces budget violations.
Automated harness self-improvement modifies the prompts and code surrounding a frozen language model. However, reported improvements often overlook generalization, inference costs, and evaluation noise. We investigate these limitations across 75 full-loop runs, 966 harnesses, and over 445,000 τ-bench conversations using unseen tasks and a 2times executor output-token budget. Prompt guidelines and execution guards produce little improvement on unseen tasks (-3.0 to 0.2 percentage points). In contrast, Python-based compute routers that dynamically allocate reasoning effort generalize across five proposer models, with 95.6% (172/180) outperforming their initial harness. However, 60.6% (109/180) exceed the token budget. We introduce measure-then-revise, a method that uses measured token consumption at each reasoning level to revise expensive routers rather than discard them. Across six GLM-5.3 seeds per method under search-only selection, budget violations decrease from 38/72 to 2/72, and wasted search episodes decrease by 53%. All six revised seeds achieve positive held-out gains, averaging 11.6 pm 2.9 percentage points versus 5.4 pm 6.4 under discard-and-resample. Comparisons with uniform-effort baselines and three reimplemented compute allocators show that automated harness evolution can reach performance comparable to uniform medium effort without weight training.
Community
Hi everyone, sharing our paper on automated harness self-improvement around a frozen open-weight executor (openai/gpt-oss-120b) on tau-bench.
Most self-improving agent loops report gains without separating search tasks from unseen test tasks, tracking inference tokens, or running multiple full-loop seeds. We ran 75 full-loop runs (966 harnesses, >445k conversations) under unseen task splits and a strict 2x output-token cap, and found three main things:
- Prompt guidelines and pre-write guards don't transfer (-3.0 to 0.2 pp on unseen tasks) because rules written for search failures cause regressions on tasks the base model already solves.
- Two-stage Python compute routers transfer, but blow the token budget. Letting the proposer write a short
route(stage, info, ctx)function to allocate reasoning effort (low/medium/high) beats the starting harness on 172/180 candidates across 5 proposers, but 60.6% (109/180) exceed the 2x token cap. - Measure-then-revise fixes the budget bottleneck. Instead of discarding expensive routers and resampling, feeding measured per-tier token usage back to revise the router cuts search-cap violations from 38/72 to 2/72, reduces wasted search episodes by 53%, and reaches +11.6 ± 2.9 pp across 6 GLM-5.3 seeds (vs +5.4 ± 6.4 pp for discard-and-resample), matching uniform medium effort without weight training.
Happy to answer any questions or discuss details!
That 109 of 180 routers went over the token budget even though nearly all of them beat their starting harness is the kind of cost that stays invisible until someone measures it. Did the over-budget routers share a pattern, such as spending high reasoning effort on tasks the base model already solves?
Get this paper in your agent:
hf papers read 2611.39968 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper