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.
Source paper
Khalil Hennara, Muhammad Hreden, Zeina Aldallal, Sara Chrouf, Safwan AlModhayan
Generated by AI. The paper’s authors did not write these.
Filter and truncate agent execution trajectories based on deployment hardware token throughput to prevent budget timeouts during evaluation.
Enforce dynamic directory-tree grammar constraints during localizer decoding to eliminate hallucinated non-existent repository file paths.
Train code localizers and fixers through multiple alternating expectation-maximization rounds to enable mutual adaptation beyond single-round fine-tuning.
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.
The methodology divides a software engineering agent into two LoRA adapters on a single base model: a localizer that proposes relevant repository files/symbols and a fixer that writes the final patch. Candidate localizations sampled from cross-validation fold localizers are scored via a single forward pass of the frozen fixer using the log-probability of the verified patch's added lines, subject to size and extra request penalties. The localizer is then updated via supervised fine-tuning on softmax-weighted candidates combined with an anchor loss on teacher trajectories, avoiding reinforcement learning or runtime test execution.