Think or Remember: The Exchange Rate of Agentic Inference
Juan Wisznia, Santiago Luis Groba Alonso, Matías Gómez Taddeo, Gonzalo Zabaleta, Joaquín Cullen, Luciano Del Corro
Abstract
Agents built on reasoning models resend their growing transcript at every call. Two transacting parties, not the model, decide what that costs: the client keeps or edits messages; the server decides whether earlier reasoning returns in the prompt and what its cache reuses. We define a cost model whose counts match an instrumented engine exactly; the architecture charges per token processed and per pair attended. Their ratio is an exchange rate between thinking and remembering: per token, processing dominates below this context length, a thinking regime, and attention above it, a memory regime. A policy change has a mechanical cost, incurred even if the agent writes the same tokens, and a behavioral one: it writes different tokens, changing cost and outcome. Serving alone can flip which policy is cheaper: on recorded Qwen3-8B ScienceWorld runs, dropping earlier reasoning costs 1.74 times keeping it when the server reuses generated states and 0.34 times when it reuses nothing. In live reruns, dropping it cuts correct HotpotQA answers by 9-23 percentage points on four models, at lower point-estimate cost. Comparing context policies means comparing systems: architecture and serving set the cost of the history kept and the work it induces.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
ContextFact: Remembering Facts in Context for Long-Term Conversational Agents
Shared title terminologycs.CLJiayu Huang, Yichao Cai, Xinyu Li et al.
Hibana: Fast Agentic Inference on Unified-Memory Devices
Shared title terminologycs.CLYahya Emara, Chi-Chih Chang, Anthony Fei et al.
Who Remembers What? Multi-Granularity Memory Extraction for Multi-User, Multi-Agent Interaction
Shared title terminologycs.CLYunzhe Wang, Mesut Erhan Unal, Sheng Zhang et al.
Seeing Is Not Acting: WARD Diagnoses the Evidence-to-State-to-Action Gap in Longitudinal Clinical Agents
Shared title terminologycs.CLChao Ding, Yidong Jiang, Junzhi Ning et al.
Edit-Induced Dependency Mismatch: Propagation Omissions, Recovery, and Evaluation Blind Spots in Coding Agents
Shared title terminologycs.CLFei Ding
HyperHarness: Learning to Generate Personalized Agent Harnesses from User Histories
Shared title terminologycs.CLZhaoxuan Tan, Jiachen Zhao, Jingbo Yang et al.