Think or Remember: The Exchange Rate of Agentic Inference
Juan Wisznia, Santiago Luis Groba Alonso, Mat\'ias G\'omez Taddeo, Gonzalo Zabaleta, Joaqu\'in Cullen, Luciano Del Corro
Key points
From the paper's conclusion- We define a cost model whose counts match an instrumented engine exactly; the architecture charges $c$ per token processed and $\beta$ per pair attended.
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 $c$ per token processed and $\beta$ per pair attended. Their ratio $P^*=c/\beta$ 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Thinking Before Thinking: Scaling Agentic Inference Through Meta-ReasoningarXiv · 2026
- Why Pay for Long Reasoning When Rewrite Do Trick? Causal Effects of Reasoning History Compaction on Future Generation and Agent CostarXiv · 2026
- Deletion Sensitivity Is a Property of the Model: A Three-Condition Measurement across Seven Open Reasoning ModelsarXiv · 2026
- Whose turn is it? Context-guided model routing for stateful agentsarXiv · 2026
- RATIO: Reasoning Analysis and Token-level Inference Optimization for Quantized Reasoning ModelsarXiv · 2026
- CPU-ARC: Agentic Reasoning Caching for on-CPU Reasoning ReusearXiv · 2026