GainCtrl: Predicting Remaining Gains for Efficient LLM Agent Execution
Kangwen Zhao, Jianfeng Cai, Ruopei Sun, Mingxiao Feng, Peng Zhang, Wengang Zhou, Houqiang Li
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.
Create a lesson
Related papers
RefinementGuard: Counterexample-Directed Semantic Qualification for Hidden Agent-Tool Execution
Shared title terminology · Adhyayan Veer Singh, Fanjiang Ye, Yuke Wang
ARISE: Practical Self-Evolving Memory for Accurate and Cost-Efficient Enterprise Agents
Shared title terminology · Jiangyun Zhang, Zhou Tang, Kristen Surrao et al.
GRAFT: Execution-Guided Genetic Recombination for Agent Design
Shared title terminology · Sevda Ebrahimi, Mohammed Saidul Islam, Xiaodan Zhu et al.
ConfGuard: a physics-grounded reference monitor for predictive-maintenance large-language-model agents
Shared title terminology · Arunkumar V, Gangadharan G. R., S. Senthilkumar
WebAgents: Unbundling Agent Creation, Hosting, and Execution for an Agent-Native Web
Shared title terminology · Dario Fenoglio, Martin Gjoreski, Marc Langheinrich et al.
Learning to Reason with Predictive Gains for Generative Recommendation
Shared title terminology · Zhuoyang Li, Teng Shi, Jiakai Tang et al.