Skip to content
AI-generated research idea🟡Fairly easy💡Moderate InnovationNo close match found

Throughput-Aware Trajectory Filtering for Resource-Constrained Coding Agents

Filter and truncate agent execution trajectories based on deployment hardware token throughput to prevent budget timeouts during evaluation.

Time

several weeks

Compute level

Multiple GPUs

Resources

Standard GPU for throughput measurement, multi-GPU setup (4x L4 or equivalent) for evaluation on SWE-bench tasks.

What the paper used

130 A100 80GB GPU hours for training and candidate scoring; evaluation ran on Kaggle using 4x L4 GPUs with vLLM tensor parallel 4 under an 8-minute time budget.

Prerequisites

transformer architectures, agent frameworks, LLM inference profiling

Scope

modify existing code

The Gap

In Section 5.3, student model Gemma 4 E4B was fine-tuned on Kimi K3 trajectories that took a median of 15 tool calls on a fast commercial API within an 8-minute budget. When evaluated on 4xL4 GPUs, the 4B model generated ~50 tokens per second per task, causing 54 to 60 of 78 development tasks to exceed the 8-minute execution limit.

“A trajectory that fits in 8 minutes on a fast API does not fit on 4×L4.”
From the paper, Section 6, page 11. Matched against the PDF text.

Limitation

Training student agents on trajectories generated by high-throughput API models causes them to imitate an aggressive exploration pace that systematically leads to timeouts on resource-constrained target evaluation hardware.

Proposed Solution

Estimate per-token and per-tool latency on the target deployment hardware during data preprocessing, and prune trajectory steps whose predicted execution time exceeds the hardware budget. Additionally, condition the agent on explicit dynamic budget tokens in the system prompt so it scales back exploration tool calls as available execution time diminishes.

The paper’s authors list this direction as future work, so they may already be pursuing it.

Why This Matters

Expected to substantially reduce task timeouts from ~55 out of 78 tasks down to manageable levels, allowing small 4B agents to focus compute on patch generation rather than running out of time.

How to Get Started

How to test it: Evaluate whether throughput-pruned S1 and S3 fine-tuned models resolve more tasks within the 8-minute budget compared to baseline S1/S3r1 models. The main metric is resolved tasks and timeout counts; the stopping criterion is when pruned models fail due to insufficient context exploration.

  1. Profile Gemma 4 E4B token generation and tool response execution latency on target 4xL4 hardware.
  2. Script a trajectory filter in the release codebase to compute estimated execution time and drop turns exceeding 480 seconds.
  3. Fine-tune the S1 single-agent model on the throughput-filtered trajectory dataset.
  4. Run evaluation on the 78 development set tasks and log task completion times versus Table 4 baselines.

Suggested by AI. Adapt it to your setup.

Has This Been Done?

No close match in 10 results

None of the listed papers address hardware-aware latency estimation and trajectory pruning or dynamic budget tokens for resource-constrained software engineering coding agents. While works like SWE-fficiency discuss code optimization and RE-Bench or SWE-Stream focus on agent benchmarks and streaming, none propose throughput-aware trajectory filtering or explicit execution budgets in system prompts.

We searched OpenAlex and arXiv for “language model agent context budgeting throughput SWE-bench execution time limit” and “Throughput-Aware Trajectory Filtering for Resource-Constrained Coding Agents” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

Let the Fixer Decide: Training a Code Localizer from the Fixer's Likelihood

Khalil Hennara, Muhammad Hreden, Zeina Aldallal +2 more · 2026

This paper presents Fixer-Guided Localization (FGL), an expectation-maximization framework for training a code localizer sub-agent based on the likelihood assigned to verified patches by a frozen code fixer. By using weighted supervised fine-tuning instead of expensive reinforcement learning with test execution, FGL optimizes localized context size and utility. While offline signal tests show FGL provides 27.5% smaller context windows with equal patch accuracy, end-to-end evaluations on Gemma 4 E4B demonstrate that overall agent performance is primarily bottlenecked by execution timeouts, repetition loops, and edit quality rather than localization quality alone.

Related Ideas

Is this a good idea?

Share onXLinkedIn