Research: An agent stopping on time does not equal productive use of its time budget
On MLE-Bench and Zork I, harnesses and GRPO improve timeliness, but extra budget does not improve task performance.
- Agents need to return within an explicit wall-clock budget and, on search-type tasks, trade more time for better solutions. The authors divide the requirement into adherence (returning on time) and productive use (more time improving results). When only written in the prompt, the model has no timing feedback and cannot reliably estimate action durations.
- Across five MLE-Bench (Qwen3.6-27B) and Zork I (Qwen3-4B), compare prompt budgets, clock harnesses that can truncate or refuse timed-out commands, and GRPO. Zork's reward adds a time term to the score, and exceeding 1.1x the budget can zero the entire segment.
- Table 2: Qwen3.6-27B, 15 minutes, prompt-only on-time rate 15%, refuse 88%, clock time used 99.7% of budget. Qwen3-4B, RL+Auto-Clock, 16 seconds at 46.4/350. The authors say it will stop, but adding time did not improve scores.
- The authors note that policy collapse, memorization, and evaluation scope remain open, and suggest exploring reward and environment changes. Experiments are five MLE-Bench tasks (Qwen3.6-27B) and Zork I; Table 6 has n=16 per cell. The paper does not report the number of episodes for Table 2.
- Evaluated models
- Qwen3.6-27BQwen3-4BQwen3.5-9BQwen3.8-27B
- Benchmarks
- MLE-Bench LiteZork I (Jericho)
- Metrics
- On budgetleaderboard percentileValidelapsed wall-clock timeZork score
The paper studies whether small LLM agents can both adhere to a runtime and allocate time productively under an explicit wall-clock budget; it evaluates Qwen3.6-27B on five tasks from MLE-Bench Lite and Qwen3-4B on Zork I (Jericho). When the budget is written only into the prompt, the agent cannot convert the budget into controlled time use, due to a lack of time perception, difficulty in estimating action durations, and no learned mapping from available time to policy. The authors test two types of intervention: exposing time information via a harness and enforcing deadlines, and reinforcement learning with budget-aware rewards. Harness-injected time information significantly improves budget adherence for Qwen3.6-27B without a measurable performance loss; enforcement hooks further improve adherence; GRPO reinforcement learning attains near-perfect budget adherence on Zork I and generalizes to budgets unseen during training, but it does not improve task performance on MLE-Bench.
Paper analysis
What problem does this paper attempt to solve?
Small model agents struggle to both return on time under a wall-clock budget and to turn extra time into better outcomes.
Can small-scale LLM agents, under an explicit wall-clock time budget, both return on time and convert extra time into better task outcomes.
- Scenario: The authors argue that when agents do long-horizon planning, tool use, and iterative improvement, time taken and answer quality are both behavioral dimensions. Users express a quality-time trade-off through budgets; agents embedded in larger systems must also meet deadlines to coordinate with other components.
- Existing gap: When the budget is only written in the prompt, agents cannot turn it into controlled time use. The authors believe reasons include the context lacking wall-clock time, an inability to reliably estimate action durations, and no mapping from remaining time to policy. Token counts depend on hardware and inference configuration, which the authors argue makes them an unreliable proxy for wall-clock time.
- The authors' distinction: adherence means returning within the allocated time. Hard interruption can enforce a deadline, yet the authors still want the agent to make it on its own. productive use means extra budget should improve quality, rather than stopping early or padding time with useless actions. The test is whether scores increase with budget.
- Approach: The environments are five MLE-Bench Lite competitions (Qwen3.6-27B) and Zork I from Jericho (Qwen3-4B etc.), where extra time can in principle change outcomes. Interventions fall into two categories: the harness exposes timing and can enforce deadlines; GRPO uses budget-related rewards. The authors say adherence is largely manageable in these settings, while productive use remains difficult.
What related research exists?
The authors compare token budgets with test-time scaling, instead comparing prompts, harnesses, and GRPO by wall-clock time.
Related work is organized into budget awareness, constrained reinforcement learning, and LLM reinforcement learning. The authors vary only when explicitly comparing to others.
Budget Awareness and Test-Time Scaling
- Lin et al. (2026) BAGEN: They write budget awareness as stepwise estimating the lower and upper bounds of remaining budget, and state that frontier agents are persistently overconfident about the remaining budget. Their SFT+RL improves early stopping, but precise calibration remains difficult. Comparison by the authors: they use token budgets and a single training method; this paper uses wall-clock and compares prompting, harness enforcement, and RL.
- Li et al. (2026), McCreary and Ghawaly (2026): The former proposes the training-free Budget-Aware Value Tree Search, shifting from exploration to exploitation when the budget shrinks. The latter measures the effects of search depth, retrieval strategy, and completion budget on accuracy under fixed constraints. The authors say both operate at the token or tool call level, and that token counting does not capture the stochastic action durations of wall-clock.
- Snell et al. (2024), Ma et al. (2026), Paglieri et al. (2025): Snell et al. state that compute-optimal test-time scaling can surpass a 14× larger model, but assume an unlimited budget. Ma et al. use Timely-Eval and Timely-RL to convert test-time scaling to wall-clock, and state that existing models cannot adjust reasoning to a time budget. Paglieri et al. use SFT and RL to teach agents when planning is worthwhile. Comparison by the authors: Ma et al. do only one kind of RL, while this paper treats prompting, harness, and RL as progressive; this paper wants the entire policy to change with the budget and states that RL learns when to stop, but not what different to do when there is more time.
Constrained RL with Budgets
- Altman (1999): Formulates reward maximization under cost constraints with constrained Markov decision processes.
- Carrara et al. (2019): Budgeted MDP lets a single policy be conditioned on the budget, avoiding retraining for each budget. The authors say they adopt this idea during the RL stage; their cost is stochastic wall-clock, whereas classical BMDP assumes known state–action costs.
- McMahan and Zhu (2024), Achille (2026): The former requires not exceeding the budget at any moment and states that Markov policies are insufficient under anytime constraints. The authors say this supports injecting remaining budget into context. Achille argues that time should be optimized when scaling reasoning models-mon, and warns that reward-driven models will brute-force solutions without obtaining transferable policies. The authors say their 'memory prefixes plus no-ops' matches this failure mode.
LLM RL and Experimental Baselines
- Shao et al. (2024) GRPO: Proposed for DeepSeek-Math and used in DeepSeek-R1 (Guo et al., 2025). A rollout group is sampled per task, rewards are normalized within the group, and no critic is trained. The authors adopt it, arguing that this normalization handles the multimodal rewards arising from training on multiple budgets simultaneously.
- Baselines and benchmarks: The comparison is against conditions on the same model, not other published systems: prompt-only, injected clock, clamp or refuse, and GRPO. The environment is five competitions selected from MLE-Bench Lite and Zork I from Jericho.
The authors place the distinctions at: targeting wall-clock rather than token budgets; comparing a progression of prompting, harness, RL rather than a single training method; and claiming that what is learned is when to stop, not how to spend more time on a different policy.
How does the paper address this problem?
Use clocks and deadline enforcement to fill in observations, and use budget-shaped GRPO to fill in planning about when to stop.
The authors break the failure into not seeing time, not being able to estimate action durations, and not mapping remaining time into a plan. The harness fills in the first category of observations, and GRPO handles the stop-versus-score trade-off with budget-related rewards. Both environments require that extra wall-clock time can in principle improve the graded score.
Task setup
- MLE-Bench Lite: 5 tasks selected from a 22-task subset: dog-breed identification, dogs-vs-cats, leaf classification, spooky-author identification, NOMAD 2018. The criterion is that policies should differ across time scales, and preliminary runs of 10 to 25 minutes show nontrivial score variance. The agent inspects data, runs modeling code, iterates, and submits. The model is Qwen3.6-27B, run via OpenCode.
- Zork I: A Jericho text game. Each step reads the state, generates an action, and receives an observation. Evaluation uses Qwen3-4B, Qwen3.5-9B, Qwen3.8-27B, with a lightweight loop and thinking disabled. Task score is game score divided by 350.
- Time use: t includes generation, tool, and harness overhead. The authors look at both tool latency and generation time. The model can in principle check the system clock itself; the authors report not observing this behavior.
Harness
- Information only (Table 3): write remaining time after each tool call; at fixed intervals report remaining time even if a command is still running; report how long generation took before that action. None of these dictate actions.
- Enforcement, not used simultaneously: clamp shortens a shell command's time limit before it runs, and the command is truncated if still running at the deadline; refuse blocks the command and returns the reason, letting the agent choose a shorter action instead. Commands without a written time limit count against the harness default timeout. The failure the authors give: with little time remaining, the agent still issues a tool call whose duration exceeds the remaining budget, with no opportunity to act during the call.
- Zork's clock: The Clock Tool is invoked by the model with time elapsed, returns elapsed time and budget, does not advance the game, and the check itself counts against the budget. Clock Tool++ is the same tool with added instructions and examples in the prompt about when to query. Auto-Clock has the harness append the same information each step. There is also Budget-Only, which writes only the budget, and No Budget, which does not mention time. The clock is made a text pseudo-tool rather than native function calling, to avoid different models using different parsers. The deadline is checked before each generation and cannot interrupt an ongoing generation. The appendix gives the full prompts for each condition.
Two types of GRPO rewards
For MLE-Bench, let B be the budget, t the elapsed time, and q∈[0,1] the normalized score of the submission. On time with a submission, the reward is q plus a positive constant ctime; overtime with a submission is αq minus p times the seconds over; no submission is −cfail. The authors require that, for equal quality, on time beats overtime, and no submission is worst. The main text writes
R(q,t)=q+ctime
covering only the first branch; the latter two are αq−p(t−B) and −cfail. Appendix Table 11 gives the constants and switches to another set at step 106; the quality term is also piecewise relative to chance and historical highs, with a submission bonus and an on-time speed term added.
For Zork, let s be the normalized score at the end and λ=0.1. The authors write
R(s,t)=[s+λ b(t;B)]· g(t;B)
where b is the time reward and g can zero out the entire reward. Four shapes change only b and g: Cutoff has only the gate; Linear and Gaussian give points near t=B; Step adds points by budget decile and zeroes the whole segment beyond 1.1B. The authors choose step-wise. Comparison numbers are in appendix Table 7, not expanded here.
Training and termination
- MLE-Bench: Starting from the released Qwen3.6-27B, learning rate 1×10^-6, KL coefficient 0.001. One GRPO group is one (task, budget). Scan over 5 tasks × 4 budgets (10, 15, 20, 25 minutes), 21 episodes per group, 20 groups per step. dogs-vs-cats is used to fill out 20 groups; the appendix says it is excluded from the tables. Trajectories are converted to TITO via internal tools before training. The Table 2 condition kills at 2B; RL later changes to B+30 seconds.
- Zork: Each GRPO step samples a budget uniformly from 0 to 16 seconds, trained for both Auto-Clock and Clock Tool++; the Figure 2 policy is 400 steps. Also uses budget mixes of {15, 30, 60, 90} seconds and {15, 90} seconds. The policy starts from the Qwen3-4B base, no warm start; 8 rollouts per prompt, temperature 1.0, thinking disabled, 512 training lines and 16 validation lines, 20 epochs for 640 steps total, 1 node with 8 H200s. When the agent does not quit on its own, the main text says it hits a 180-second hard termination or the episode cap; appendix Table 5 writes kill=2×B.
Evaluation
- MLE-Bench: on budget means t≤B. Table 2 quality is Kaggle leaderboard percentile on submissions that are both valid and on time, ties counted half, mean±s.e.m. Table 1 quality only requires a valid submission. Valid is the proportion of files that can be scored as valid submissions.
- Zork: Scores are read directly from the game, maximum 350. Short-budget evaluation uses 16 games per cell, terminated at 2× the budget. The appendix defines overrun as elapsed/cutoff and says cells with overrun≥1.5 should not be read as scores of timed games.
What experiments did the paper conduct?
Table 2's 15-minute on-time rate ranges from 15% to 88%; on Zork, RL+Auto-Clock scores 46.4 at 16 seconds.
Experimental setup
- Models: MLE-Bench uses Qwen3.6-27B, via OpenCode 1.17.4, SGLang with tensor parallelism 4, context 131072, max single generation 16384, one GPU per game. Zork's prompts and harness use Qwen3-4B, Qwen3.5-9B, Qwen3.8-27B, with thinking disabled. Zork's GRPO is trained from the Qwen3-4B base. The paper does not use LLM judges.
- Data and budgets: The five competitions in Section 3.1. Table 2 fixes 15 minutes (900 seconds) and merges the five. Figure 4 budgets are 10, 15, 20, 25 minutes. Zork short budgets are 0.5, 1, 2, 4, 8, 16 seconds; mixed training uses {15, 30, 60, 90} and {15, 90} seconds.
- Conditions: prompt-only, informative clock, clamp, refuse, GRPO. Zork additionally has Clock Tool, Clock Tool++, Auto-Clock, and two corresponding RL policies. All Zork conditions share the same budget statement and 2x budget cutoff.
- Metrics: on-time rate; time used; leaderboard percentile; Valid; turns; Zork raw score. In Table 2, quality only counts submissions that are both valid and on time, so denominators differ across rows; the RL row shows "–" in that cell.
- Sample sizes: Zork n=16 per cell. Table 9 n=9–20 per cell, with 54–67 of 80 probes yielding a parsed answer. MLE GRPO has 420 episodes per step. The paper does not report the number of episodes per condition for Table 1 or Table 2.
Main results
Per Table 2, Qwen3.6-27B, five competitions combined, 15-minute budget. Quality is mean±s.e.m.; turns and time are mean±s.d.
Swipe horizontally to read the table
Condition On budget Quality Turns Time (s) Valid Prompt only 15% 49.4±4.4 22.4±10.1 1453±454 78% +Harness (clocks) 62% 42.1±1.8 16.5±6.4 897±202 88% +Enforcement (clamp) 74% 46.8±1.8 17.0±6.5 847±165 90% +Enforcement (refuse) 88% 42.4±1.9 20.3±8.0 812±160 78% +RL (GRPO, refuse) 86% not reported 18.9±3.7 807±37 74% - Alongside the quality claims in the text: Section 4.1 says prompt-only on average uses 161% of the 15-minute budget, with 15% of runs finishing on time. Section 4.2 writes that time use drops from 161.4% to 99.7%, quality from the 47.5 to 47.0 percentile, within error, with no measurable change, and valid submissions from 78% to 88%. The introduction says the harness causes no measurable quality loss. The quality column in Table 2 is not the same set of numbers as 47.5 and 47.0.
- Enforcement and RL: The authors say the dominant failure is issuing longer tool calls when remaining time is insufficient. Clamp has the highest valid submission rate; refuse stays closer to budget, but the agent re-sends blocked commands with shorter time limits, increasing turns. For the GRPO row, the authors say it does not exceed the harness it was trained on, and quality is not reported.
- Extra time: The authors say that without RL, clocks also make time use scale with the written budget, but quality does not rise with budget (Figure 4). The caption says this; the text does not give the percentiles for each of the four budget levels.
Zork I on-time and scores
- What was tested: Figure 2 and Table 6 compare fixed-weight conditions and policies trained for 400 steps. Each cell is 16 games, thinking disabled, 2x budget hard cutoff.
- Qwen3-4B, 16 seconds: prompt-only takes 21.2±13.1 seconds, score 0.0±0.0; Auto-Clock takes 14.2±4.0 seconds, 0.0±0.0; RL+Clock Tool++ takes 15.4±0.2 seconds, 16.6±10.9; RL+Auto-Clock takes 15.8±0.1 seconds, 46.4±2.1. Figure 2 says fixed-weight conditions do not exceed 0.6 points at any budget, and the two RL policies get 46.4 and 16.6 at 16 seconds. In the same table, RL+Auto-Clock gets 42.8±7.5 at 8 seconds and 46.4±2.1 at 16 seconds.
- Authors' interpretation and counterexample: The authors say writing a budget alone does not reliably lead to on-time returns, often hitting the 2x cutoff; Clock Tool barely improves timeliness, Clock Tool++ improves after adding calls, and Auto-Clock is best. The authors say scores remain below 5 at all budgets; in Table 6, Qwen3.8-27B, prompt-only, 16 seconds averages 5.3±4.3. Qwen3.5-9B and Qwen3.8-27B with Auto-Clock at 16 seconds take 22.1±6.8 and 16.6±1.1 seconds, with scores 2.5±4.1 and 2.8±3.6. The authors attribute RL+Clock Tool++'s lower score to roughly half the turns being spent checking the clock. In mixed-budget training, the authors say time use separates by budget, score trends are similar, and the policy collapses to the behavior learned for the shortest budget (Figure 3). The conclusion says scores plateau at 45/350 on larger budgets.
Mid-course time estimation
- Probing: Truncate 15-minute MLE-Bench trajectories and ask for elapsed time, remaining budget, how much longer it will run, and total duration (Table 9, Figure 1 right). Whether a clock exists is determined by keeping or removing the harness timing line.
- Qwen3.6-27B mean signed error (predicted minus true, seconds): without clock, elapsed −69±110, remaining budget +43±381, time left to run −25±366, total −735±546; with clock, +46±187, −19±58, −53±214, −554±538.
- Authors' claim: The authors say with a clock, both models can accurately read elapsed time and remaining budget. Table 9 only lists Qwen3.6-27B, with a clock the elapsed error is +46±187 seconds. The authors say whether or not there is a clock, the model underestimates total duration by about ten minutes.
Other ablations and analysis
- Table 1 (dog-breed identification only, prompt-only; appendix says earlier runner, no plugins, no kill, episodes end when the agent exits): 8/15/60 minutes and no budget give on-time rates of 35%, 83%, 100%, –, time use 12.9±12.6, 9.7±10.6, 10.5±6.3, 12.2±11.4 minutes, and quality 50.3±2.9, 43.1±8.6, 54.8±7.2, 53.5±7.8. Not directly comparable to the 15% in Table 2.
- Table 7: linear / gaussian / step have on-target rates of 100.0% / 99.7% / 96.1%, scores 8.7 / 20.8 / 22.5, and steps to reach a score of at least 10 are – / 89 / 56.
- Table 8 (mean time elapsed calls per game, 16 games): Clock Tool, Qwen3-4B, 16 seconds is 0.00; Clock Tool++ in the same cell is 3.12. Qwen3.5-9B's Clock Tool is 0.00 in all six cells.
- MLE GRPO (Section 4.3.1): The authors say the fraction of budget used stays between 0.87 and 0.93 across settings; about a quarter of on-time submissions are no better than uniform guessing, and tripling the weight on q does not lower that fraction. The paper does not give the exact value of that fraction.
- Invalid actions (appendix, step 500 of a training run): padding commands appear in 127 of 128 games; with B=15 they make up 45% of turns, with B=90, 88%. The authors say budget error is within 0.2 seconds, but mostly comes from repeated commands rejected by the parser.
- Generation latency (appendix): under 16-way concurrency, a single generation for 4B takes about 0.2–0.4 seconds, and for 27B, 1.4–1.8 seconds; the fastest full game takes 0.233 seconds. The authors say budgets below about 2 seconds are at the score floor by construction and are only used to observe clock behavior. Qwen3.8-27B, Auto-Clock, 0.5-second budget takes 1.3±0.2 seconds (Table 6).
What are some points that can be further explored?
The authors note that policy collapse, memorization in fixed environments, and whether it generalizes to larger scales remain open.
Limitations and future directions noted by the authors
- Policy collapse (Section 5, conclusion): The policy keeps up with the written budget but does not plan differently for different budgets. In Zork, different budgets start with the same memory-action sequence accreting, scores are the same, and the budget only changes when padding actions are used to fill until exit. Mixed-budget training only helps generalize stopping across multiple budgets. On MLE-Bench, extra time leads to more training attempts but does not improve final scores.
- Memorization in fixed environments (Section 5): A single game with a fixed opening makes memorization a cheap path to extra points. The policy converges to a fixed-score walkthrough prefix. Replacing the model's own outputs with legal-action feedback lowers the same checkpoint's score substantially. Reward is given for time use, not exploration, and does not distinguish rejected actions from valid ones; remaining time is filled with repeated commands.
- Action-duration noise (Section 5, pointing to appendix): On MLE-Bench, the duration of the same training script varies with system load, reward noise is uncorrelated with decisions, and credit assignment becomes harder. The authors say harness-only budget utilization already reaches 99.7%, and duration variance may explain RL's negligible gains over the untrained harness.
- Evaluation scope (Section 5): The authors write that the experiments use two models, Qwen3-4B and Qwen3.6-27B, and two environments, and Zork RL is trained on only one game. Whether this generalizes to frontier-scale models and environments with richer policy spaces remains open. The five competitions limit the task structure seen in training.
- Future directions (conclusion): Give reward for new states rather than time used; use environment changes to prevent memorization from replacing search; add reward terms that distinguish repeated attempts from genuinely different strategies. The authors say the gap between adherence and productive time allocation is the central challenge for budget-conditioned agents.
Experiment coverage
- MLE-Bench's tested model is Qwen3.6-27B. Zork's prompt and harness tables cover Qwen3-4B, Qwen3.5-9B, Qwen3.8-27B. Zork's GRPO is trained from the Qwen3-4B base, and Figure 2's policies are at 400 steps.
- Environments are five competitions from MLE-Bench Lite and zork1 from Jericho. Table 2 is 15 minutes, five competitions merged; Figure 4 is 10, 15, 20, 25 minutes. Zork short budgets range from 0.5 to 16 seconds, and mixed-training budgets are the two sets stated in the text.
- Conditions include prompt-only, three types of information hooks, clamp, refuse, Clock Tool, Clock Tool++, Auto-Clock, and GRPO. Zork evaluations have thinking disabled. Judging uses leaderboard percentile, on-time rate, valid submission rate, and game score.
- Table 6 has n=16 per cell. Table 9's time probing only lists Qwen3.6-27B. The appendix compares linear, Gaussian, and step time rewards, and records clock call counts.
- The paper does not report the number of episodes for each condition in Table 1 or Table 2, nor does it list the specific values of the four held-out budgets mentioned in the conclusion. The conclusion says that on Zork, with budgets from 5 to 90 seconds, including these four unseen budgets, time use matches within 0.2 seconds.
Summarize the main content of the paper
The authors compare prompts, harnesses, and GRPO: timeliness improves, but extra time still does not turn into better solutions.
The authors study whether small-scale LLM agents can return on time under an explicit wall-clock budget, and whether they trade more time for better solutions.
- Problem: Both external deadlines and the quality–time trade-off require controllable budgets. The authors attribute failures to a lack of timing feedback, an inability to estimate action durations, and a failure to map remaining time into a policy. Requirements are divided into adherence and productive use.
- Method: Five tasks from MLE-Bench Lite with Qwen3.6-27B; Zork I with Qwen3-4B, Qwen3.5-9B, and Qwen3.8-27B under prompting conditions; RL is trained from Qwen3-4B. They compare prompt-only, injected remaining time, command-level clamp or refuse, and budget-shaping GRPO.
- On-time performance: At 15 minutes and five tasks combined, prompt-only has a 15% on-time rate; Section 4.1 states that on average 161% of the budget was used, and Section 4.2 writes 161.4%; after injecting clock, usage is 99.7% of the budget, and refuse has an 88% on-time rate (Table 2). On Zork, Auto-Clock is what the authors call the most effective harness intervention. The conclusion states that GRPO on budgets from 5 to 90 seconds, including four unseen budgets, aligns time usage within 0.2 seconds.
- Scores: Qwen3-4B, RL+Auto-Clock, 16 seconds, n=16, average score 46.4±2.1 (out of 350); the authors state that the same model with a fixed-weight condition does not exceed 0.6 (Figure 2). On MLE-Bench, Table 2 does not report GRPO quality; the authors state that it does not exceed their trained harness, with the fraction of budget used between 0.87 and 0.93.
- Authors' conclusions: Learning to stop is not the same as learning to allocate time. Multi-budget training tends to collapse to the shortest budget strategy stub and fill the remaining time with repeated or ineffective actions; at larger budgets, Zork scores saturate at 45/350. The authors argue that adherence and productive use differ in difficulty, the latter remaining the central problem for budget-conditioned agents.