Search arXiv⌕ Search

arXiv · 2611.10315

Repeating Work Can Lower Energy per Successful Goal in LLM Agents

Abstract

When a temporary call failure interrupts a tool-using LLM agent, the framework must choose how much completed work to repeat. Repeating less completed work intuitively saves computation, but recovery mechanisms also change subsequent execution and the chance of success. We compare recovery mechanisms by energy per successful goal (EpG), which divides the energy of all task runs (including failed runs) by the number that finish correctly. In controlled vLLM experiments on one node, we measure board energy above idle for eight recovery options on reliably solved multi-turn tasks, with selected comparisons across three model families. For the model tested across all eight options, with the prefix cache retained, starting over has 22 percent lower EpG than continuing after early failures. Under the same cache condition, continuing has 24 percent lower EpG than starting over after late failures. Among all eight recovery options, repeating only the interrupted turn has the lowest observed EpG after early and late tool failures on this model. Holding recovery fixed, retaining the prefix cache reduces prompt tokens needing fresh computation by 86 percent but reduces recovery energy by only 8 percent at contexts up to 7,333 tokens. These measurements and a condition relating recovery energy and success show when repeating work lowers EpG, helping framework developers choose how their agents recover on their intended models and tasks.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Deepak Panigrahy, Stephen Abkin, Aakash Tyagi, David Kebo Houngninou, Rabi Mahapatra. 2026-11-06. Repeating Work Can Lower Energy per Successful Goal in LLM Agents. https://searcharxiv.org/abs/2611.10315

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Held While Waiting: What LLM Agent Sessions Reserve on Serverless and Agent Runtimes

LLM agents spend nearly all their time waiting for the model. On Amazon Bedrock AgentCore, our agents waited a median of 2.7 seconds for each model reply, then computed for an estimated 5 to 40 milliseconds. AgentCore does not charge for CPU during the wait. But it reserves a separate environment, a virtual machine with its own memory, for every conversation, and keeps it reserved until the conversation is closed. So 1,000 conversations reserve 1,000 environments to do the work of 2 to 15 processor cores. A service runs out of environments long before it runs out of processing power. The shortage has two causes, and each has a fix. An environment stays reserved after its conversation ends: in the customer-service benchmark we ran, a conversation lasts 33 seconds on average, but its environment is held for 15 minutes more unless the client closes it. And an environment serves only one conversation, which is mostly waiting: in our simulation, 64 conversations sharing one environment need 59 times fewer environments, and 99 of every 100 replies are delayed by at most 40 milliseconds. The milliseconds are an estimate because they are hard to measure: a stubbed model, a timer around the model call, and steps run back to back each gave a plausible number that was too low. We show how to avoid all three. Of the two fixes, closing needs only the client. Sharing needs the platform, and of the agent runtimes we surveyed only one allows it, in part. They keep conversations apart because an agent runs tools, and sometimes code, chosen by a model. The open problem is to keep them apart without reserving an environment for each while it waits.

cs.PF↗

Recovering Parallelism under Fixed Numerical References in Quantized LLM Decoders

Preserving a quantized decoder's complete output scores and committed state can constrain projection arithmetic and attention views at different query granularities. Applying attention's finest partition to the entire decoder then fragments projection work that is already compatible with the numerical reference. We implement local lowering that retains admitted projection groups, refines physical views inside attention, and rejoins outputs in logical query order. Owned output rows, state commit, and guarded graph reuse carry the result into successive transactions. Complete-vector and active-state comparisons match the bound references in the exercised cases. At a selected 32B A5000 crossing with frozen proposals, local lowering reduces verification-through-commit time by 21.56% across 12 paired time blocks (95% CI [20.21%, 22.83%]). Independent complete-request studies evaluate few-column execution and prefill packing under their own controls. Few-column execution reduces RTX request time by 15.80% relative to grouped scalar execution in a descriptive comparison; packing admitted groups accelerates both target-only and speculative requests. Scalar regrouping alone has verification savings offset by prefill costs. Natural-workload studies further show that sparse opportunities, sampling, drafting, and setup can limit or reverse the service benefit. These results support enforcing each numerical obligation at its required operator and state boundary, then evaluating the retained work over the complete request and deployment lifetime.

cs.PF↗

Measuring and Charging for Retained Context in Long-Context LLM Services

Long-context large language model (LLM) services charge for repeated context, yet billing weights need not reflect its contribution to answer quality. We present a three-layer framework separating content relevance, observable proxies and auditable positional weights. Context-ablation experiments show that relevance dominates position and that distance-decay families do not outperform a relevance-only baseline. A measured serving stack shows that cache hits reduce repeated-prefix compute cost by over two orders of magnitude at 65,536 tokens, while cold resends constrain sustainable discounts. Cross-provider measurements separate cache value from tokenisation and list-price differences. Calibrated simulations reduce the 99th percentile of session charges by 31-42%, although revenue-matched nonlinear tariffs achieve similar reductions and median charges increase. The framework provides a bounded per-token accounting rule and measured deployment constraints, rather than a validated utility estimator.

cs.PF↗