arXiv:2611.09891cs.AINov 2026

Manuscript Offprint

arXiv:2611.09891

CPU-ARC: Agentic Reasoning Caching for on-CPU Reasoning Reuse

Peter Belcak, Greg Heinrich, Saurav Muralidharan, Shizhe Diao, Pavlo Molchanov

Peter Belcak, Greg Heinrich, Saurav Muralidharan, Shizhe Diao, Pavlo Molchanov

Abstract. Large language models re-invent the wheel all the time. They conflate task-solving with the execution of the solutions, which forces them to solve every problem from scratch. We show that once a task has been reasoned through, the application of its solution to a new problem instance can be done very efficiently and with little involvement from language models. We introduce agentic reasoning caching, a method for constructing robust CPU-executable agentic reasoning caches (ARCs) from LLM reasoning traces. ARCs show on-par performance with frontier LLMs across a range of difficult mathematical and scientific tasks, are fully explainable, continually trainable, robust to input perturbations, and 16-291x cheaper to invoke than the source model.

Links: Lab | Project Moonshot: Local Frontier Intelligence

1. Introduction

Language models solve every problem from scratch, no matter how common. However, many of their solutions apply not just to the exact problems posed but extend to entire classes of problems in which the individual problem instances vary in their phrasing or some of their parameters. Table 1 illustrates this on an example drawn from a popular mathematical benchmark.

OriginalRephrasedReparameterized
QuestionHow many positive whole-number divisors does 196 have?Find how many positive integers evenly divide 196.How many positive whole-number divisors does 144 have?
ReasoningI need to find the prime factorisation of 196 first. 196=4×49=22×72196 = 4 \times 49 = 2^2 \times 7^2. For a number with prime factorisation p1a1×p2a2×…p_1^{a_1} \times p_2^{a_2} \times \dots, the number of divisors is (a1+1)(a2+1)⋯(a_1+1)(a_2+1)\cdots. For 196=22×72196 = 2^2 \times 7^2: (2+1)(2+1)=3×3=9(2+1)(2+1) = 3 \times 3 = 9.I need to find the prime factorisation of 144 first. 144=16×9=24×32144 = 16 \times 9 = 2^4 \times 3^2. For a number with prime factorisation p1a1×p2a2×…p_1^{a_1} \times p_2^{a_2} \times \dots, the number of divisors is (a1+1)(a2+1)⋯(a_1+1)(a_2+1)\cdots. For 144=24×32144 = 2^4 \times 3^2: (4+1)(2+1)=5×3=15(4+1)(2+1) = 5 \times 3 = 15.

Table 1 | A MATH-500 problem, its rephrasing while keeping all the parameters the same, its reparametrization while keeping the phrasing the same, and the corresponding reasoning traces. The rephrased variant changes only the wording; the reparameterized variant substitutes the numerical parameter and adjusts the arithmetic accordingly. Note how neither the rephrasing nor the reparametrization change even a single word in the reasoning steps leading to the final answer, not to mention their substance.

AI agents and AI-enabled software more broadly often rely on repetitive queries to LLMs featuring the same instructions and plans but different payloads. The LLMs comprehending the same prompts and subsequently reasoning through their tasks from scratch for each new query often results in a significant amount of work being done repeatedly across separate inference instances.

System-level caching (SLC) methods aim to address such inefficiencies by recognizing repetitive patterns in LM conversations and caching them at the level of the serving system as a whole rather than within any single inference instance. Maintained at the system level, an SLC's entries are shared across all of the system's inference instances and remain reusable beyond the instance in which they were born. SLC methods usually bring one or more of the following benefits:

  • Cost and latency reduction. SLC methods can reduce the cost and/or the latency of LLM calls by re-using partial or complete results of earlier LLM calls.

© 2026 NVIDIA. All rights reserved.

  • Improved correctness. SLCs can be reviewed asynchronously by humans or a committee of judge agents to ensure that the responses or steps of the most popular queries are correct.

  • Improved explainability or interpretability. SLCs can be inspected by humans to understand the reasoning process and the final answer or result, providing explanation or at the very least an interpretation of responses to popular queries.

When choosing or designing an SLC method, the following considerations are important:

  • Local robustness. How well does the SLC method cover the class of queries it is supposed to cover? How robust is the SLC method to small perturbations of the queries?

  • Correctness upon hit. If the cache is hit, is the result correct? How much confidence can one have in the correctness of the cached result given a hit from the query neighbourhood it covers?

  • Explainability or interpretability. How much can one learn by inspecting the caches? How good are the guarantees of correctness provided by the cache entries? Can they be inspected by an authority (e.g., a regulatory body) to provide a guarantee on behavior?

  • Cost. How expensive is it to build, maintain, and use the SLC?

Existing work on SLC falls into two broad categories:

  • Monolithic caching. Methods such as ephemeral prefix caching [1], programmatic conversation caching [2, 3], and semantic query matching [4] look up transcripts of previous conversations on the basis of input prefix overlaps, programmatically supplied conversation IDs, and semantic similarities between different queries. They store entire conversations and their corresponding intermediate generation states (e.g., KV caches or Mamba hidden states) and aim to re-use the largest possible contiguous portion of the query's generation states wherever possible. Monolithic caches are usually not robust to even the slightest perturbations of the conversation, and when they are (e.g., when employing semantic similarity search), it is often at the expense of their correctness. Monolithic caches of responses can be inspected to guarantee absolute correctness. They are usually compute-cheap to build, maintain, and use but are memory- and bandwidth-expensive to maintain and use.

  • Modular caching. Instead of storing the entire conversational transcripts and their generation artifacts, modular SLC methods first perform a mechanical form of decomposition of the existing contexts and their generation states or a distillation of the context into critical logical steps [5, 6, 7]. Later, when encountering an apparently similar problem, the decomposed artifacts are re-supplied to the language model to accelerate their reasoning process. Only parts of the response are cached, and even in the case of a perfect cache hit, a full new generation (though accelerated) of the response is still required. This makes their coverage more robust to parametric perturbations of the inputs but makes it impossible to guarantee correctness upon review. Modular caches sometimes offer interpretable insights into the reasoning process of the underlying models. They are considerably more compute-expensive to build and use than monolithic caches but tend to be more memory- and bandwidth-efficient to maintain and use.

We introduce agentic reasoning caching, a (see below) hybrid SLC method that produces agentic reasoning caches (ARCs) that are robust in coverage, can be asynchronously ensured to be correct, are fully explainable, and are cheap to build, maintain, and use. We call them agentic reasoning caches because their elements are small, specialized fractional agents that can be re-used on new parameters. Our approach rests on two observations:

O1 Once a particular problem has been reasoned through and the solution has been found, the execution of the solution – the computation or data manipulation behind the problem – can be performed with little involvement from language models. In other words, the search for a solution can be decoupled from the execution of the solution found.

O2 Much of LM's reasoning about a particular problem instance can be reused for a set of problems extending beyond the singleton instance.

Leveraging Observation O1, we choose to convert LM conversation transcripts to code, and allow that code to make use of only small language models to perform semantic similarity search and elementary natural language processing tasks such as value extraction, format conversion, classification, or summarization, and only where needed. Leveraging Observation O2, we choose to parametrize the code in a way that allows it to be re-used for all problems that are equirational to the problem solved in the original transcript (i.e., can be solved using the same reasoning). Further, we choose to produce code in such a manner that does not rely on fixed variable, parameter, and function names but on their natural language descriptions and examples, thus allowing for a liberal re-use of all logical components of previously cached logic in all semantically equivalent scenarios, no matter how phrased, structured, or parameterized.

Agentic reasoning caching is a hybrid of monolithic and modular SLC because it decomposes the logic of an LLM conversation into a network of modules – semantic functions – that can be re-used individually and also provides their composition into a single function that can be used to solve the problem cached. Because of the semantic functions' wide parametrization, ARCs are robust to logically valid parametric perturbations of the problem. Since every ARC entry is stored as code, ARCs are fully explainable and correctible upon human or AI inspection. Since ARCs are stored as code using only SLMs, they are cheap to maintain and use since they rely mostly on CPU execution. They are further relatively cheap to build, coming at 12-84x the cost of the original reasoning.

Agentic reasoning caching is particularly suitable for agentic systems that repeatedly use the same prompts with variable payloads. In an agentic system, using an ARC can be attempted before forwarding the request to the cloud LLM, allowing for a significant reduction in the latency and cost in the case of a cache hit. Owing to their reliance on simple CPU execution and SLMs, agentic reasoning caches are so resource-efficient that they can be brought to edge devices, reducing the cost further. Figure 1 briefly illustrates the gated use of an agentic reasoning cache in an AI system where the cache re-use is attempted before forwarding the request to the full LLM.

Our contributions are:

def serve(request):
    try:
        result = cache.use(request)
        if result is not False:
            return result
    except CacheInvocationError:
        pass
    return llm(request)

Figure 1 | Gated use of an agentic reasoning cache. The cache is tried first; on a miss or error, the request falls through to the full LLM.

C1 The introduction of agentic reasoning caching, a hybrid SLC method that is robust in its coverage, can be asynchronously ensured to be correct by human or AI inspection, is fully explainable, and is cheap to build, maintain, and use.

C2 The evaluation of agentic reasoning caching on a range of challenging mathematical and science benchmarks, including its success rates, correctness, robustness, and cost-saving capabilities.

C3 A brief discussion of the intended placement and implications of this work.

Our long-term goal is to bring ARC to real production agents to help lower their cost. In this initial, exploratory work, we deliberately focus on the hardest case: rather than agentic workloads of varied difficulty, we test whether ARCs can match frontier-level model performance on difficult mathematical and scientific benchmarks that are commonly used to measure intelligence. Succeeding at that (as we show we do) indicates that the method is not capped by the ability of models to produce these small ARCs, and that, by extension, the broader class of agentic tasks currently driven by frontier-level models is plausibly cacheable as well.