Large language models (LLMs) power agents that use tools to solve tasks. Making repeated attempts improves results but costs more tokens, each attempt is a sequence of LLM calls. Knowing when to stop an attempt that probably won't improve the best result so far would save money without hurting quality.
GainCtrl is a controller that monitors each attempt. A lightweight CPU predictor estimates whether further steps are likely to yield a gain. If the expected gain is too small, the attempt stops. The predictor runs in milliseconds without needing access to the LLM’s internals.
Across three environments, GainCtrl used fewer tokens than baselines while matching task quality. With a single fixed threshold it still kept quality close to running every attempt fully. This makes repeated LLM agent runs cheaper in practice.
