GainCtrl: Predicting Remaining Gains for Efficient LLM Agent Execution
Kangwen Zhao, Jianfeng Cai, Ruopei Sun, Mingxiao Feng, Peng Zhang, Wengang Zhou, Houqiang Li
Key points
From the paper's conclusion- We evaluate the controller through trajectory replay across three environments and three LLM actors.
Abstract
Large language models (LLMs) are widely used to power agents that interact with tools and environments to solve complex tasks. Repeated attempts improve the quality of tool-using agents, but continued execution incurs additional costs even when it is unlikely to improve the best result ultimately returned. This raises the question of when to stop an attempt to reduce execution cost while preserving task-level Best-of-N quality. To address this question, we introduce GainCtrl, a gain-based execution controller for LLMs. In GainCtrl, a lightweight CPU predictor uses interaction histories to estimate expected positive gains over retained scores, which are then used to guide stopping decisions with calibrated thresholds to limit the loss in mean Best-of-N task quality. We evaluate the controller through trajectory replay across three environments and three LLM actors. Comparisons of interpolated quality-cost Pareto frontiers show that GainCtrl generally uses fewer tokens than baselines at matched target quality. Fixed policies also achieve quality close to that of full execution while substantially reducing token consumption. The predictor runs at millisecond latency on a single CPU thread, supporting repeated monitoring without access to LLM internals.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CARE-PO: Controllable Tool-Call Efficiency for LLM AgentsarXiv · 2026
- Rewards for Budget-Aware Multi-Turn Agents That Adapt to Arbitrary Test-Time ConstraintsarXiv · 2026
- AgentPRO: Coordinating Compiler Optimizations for LLM Agent WorkflowsarXiv · 2026
- Reducing Batch Makespan for LLM Agent Workloads through Inference-Environment CoordinationarXiv · 2026
- RealControlBench: A Benchmark for Interpretability-Informed Fine-Grained Control of LLMs and AgentsarXiv · 2026
- LEAP: Learning Efficient Action Proposals For LLM AgentsarXiv · 2026