Rewards for Budget-Aware Multi-Turn Agents That Adapt to Arbitrary Test-Time Constraints
Summary
Asks whether a multi-turn LLM agent can learn to allocate an inference budget itself — across turns and resource types — instead of leaving enforcement to an external harness, and which reward teaches it best. Framework (budget-augmented POMDP): total budget B0 and remaining budget bt are written in natural language into the observation at every turn (bt decremented by each action's realised cost — step = 1, token cost = emitted length incl. reasoning, API cost = executed calls), so the policy conditions directly on allowance left; budgets are sampled uniformly per episode from a six-value training grid, and overspending is permitted during training so the policy learns from it. Two metrics at each stated budget b: budget utility U(b) = probability of solving the task with the rollout finishing within budget (the practical cutoff setting), and natural compliance Comp(b) = probability the rollout terminates within budget on its own, regardless of success, with no external cutoff. Training: Dr. GRPO from post-trained Qwen3.5-4B and 9B checkpoints, one separate policy per environment × resource type, each trained across budget values. Eleven objectives compared in the shared pipeline, organised in four families — hard boundary (Trunc: rollouts halted at B0, reward = task success within it, the only method with an enforced cutoff; Gate: overspend ⇒ return 0; Gate-Neg: overspend ⇒ fixed −1, adapted from Kimi K3's step-function shaping), within-budget cost pressure (Sigmoid: return R − σ(2(C̄−1)), penalising before the boundary; Linear-Cost: linear cost penalty from the first action), gradual post-budget magnitude shaping (Sigmoid-Gate: sigmoid penalty on overspend only, in-budget return untouched; Linear-Mag: DAPO's soft-overlong penalty generalised to normalised cost; Exp-Mag: success reward decays exponentially in overspend), and learned per-budget violation prices (Rate: Lagrangian step price per budget tracking the overspend frequency, price capped at 1; Dual: learned frequency price + DAPO linear magnitude price, each capped at 0.5). Baselines: Base (untrained, same budget feedback) and GRPO-Std (binary task reward only). Results (AppWorld test-normal under step/token/API-call budgets; BabyAI gridworld under turn budgets): prompting alone fails — at step budget B=36, Base budget utility is 37% (9B) and 19% (4B), and 9B Base complies on fewer than half of episodes across the token range; GRPO-Std improves task success but keeps weak compliance. The stronger budget-shaped objectives beat both baselines on both metrics, and behaviour is genuinely budget-responsive: spend rises with the stated allowance and with task difficulty, and under step budgets budget-aware policies learn to batch API calls (≈1.9 calls/turn at B=10 vs ≈1.5–1.6 at B=32; GRPO-Std stays ≈1.0) — batching is an emergent allocation strategy. Objective trade-offs (Table 2, pooled over the eight experiments): Sigmoid-Gate most often has the highest utility at an individual budget (20.1% win rate); Dual has the smallest mean regret to the per-budget best (2.92pp; Gate 3.33pp despite having no explicit overspend penalty); Gate-Neg generally attains the highest natural compliance but pays for it in utility (6.00pp regret — the strong penalty makes the policy hesitant near the boundary); Linear-Mag is worst (14.01pp). Two design lessons: Gate beats Trunc on all pooled metrics — retaining overspending rollouts in training (they earn negative advantage against in-group successes) teaches more than cutting them off; and magnitude penalties are not required for small overruns (Gate/Gate-Neg have comparatively small conditional overspend without one). Generalisation: gains hold at interpolated and extrapolated unseen budgets (9B utility keeps rising past the largest training step budget of 29 on shifted tasks), persist zero-shot on the distribution-shifted AppWorld test-challenge split, and transfer zero-shot to the new benchmark ASTRA (Xiu et al. 2026; personal-assistant tasks, same Python-REPL interface, step budgets only). Limitations/failure modes (authors'): one resource type at a time (no joint token+call+step budgets); budgets fixed at episode start; natural compliance is imperfect — a strict deployment budget still requires an external cutoff; most comparisons use one training seed (extra seeds cover two objectives in one setting), so ordering among the leading methods is not reliable; prompts bundle budget feedback with resource-specific advice (incl. batching hints) with no ablation, so gains are attributable to the combined prompt+training procedure; evidence is two scales of one model family in simulated environments.
- Venue
- arXiv cs.LG, v1 submitted 20 Oct 2026
- Source
- arxiv
- Access
- free
- Language
- en
- Added
- Oct 21, 2026
- Verified
- Oct 21, 2026
- Found via
- #Hudson
Research notes
- Discovery: Hudson shared a bare t.co link 2026-10-21 resolving to the arXiv abs page. Relevance: (1) Agent app — the paper moves budget enforcement from the harness into the policy: the agent internalises cross-turn allocation from budget feedback alone, no external budget-allocation controller. A complement/counterpoint to the harness cluster (#67 Harness² "hooks > prompts", #7 Harness Evolution): some control surfaces can be trained in rather than scaffolded, though the authors concede a hard deployment cutoff is still needed since natural compliance is imperfect. (2) RLVR reward design — eleven objectives in one shared Dr. GRPO pipeline is a reward-shaping reference: hard gates vs within-budget pressure vs magnitude shaping vs learned Lagrangian prices, with the frequency+magnitude combination (Dual) as the most robust default and the retain-overspending-rollouts result as a general training-data lesson; cluster with #51 (Fail Gracefully log-barrier shaping), #25 (Gottlieb, good RL tasks), #58 (CoPE). (3) Launch Helm-adjacent: budgets denominated in tokens, API calls, and steps map directly onto real agent cost accounting (cost per solved task was the harness digest's key metric) — this is the training-side counterpart to measuring it. Caveat: Apple/Oxford authorship with the paper's own disclaimer that all experiments are research-only simulated environments, not a deployed product; single-seed headline comparisons.
- License: paper CC BY 4.0 (verified from abs-page license icon); code: none released/linked — flag at insert
Similar entries
- Paper PivotOPD: Learning to Recover from Pivotal Mistakes in Multi-Turn Agents
- Paper When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis
- Paper Adaptive Reward Routing: Dynamic Multi-Reward Optimization for Joint Audio-Video Diffusion via Forward-Process RL
- Paper Sentry: Learning to Recover from LLM Agent Failures at Test Time
- Paper Harness Learning Enables Generalizable Test-Time Adaptation
- Post Introducing Adapt-1 Preview: A Pretraining-Free Substrate for Test-Time Learning