TRANSMISSION // 2608.07954v2

KGCache lets graph-reasoning AI reuse its work

Source published

KGCache stores graph neighborhoods so question-answering systems can avoid repeating some database lookups. Tests show faster retrieval, but modest end-to-end gains in the evaluated setup.

AI-generated conceptual illustration for KGCache lets graph-reasoning AI reuse its work
AI-generated conceptual illustration; not documentary evidence.

When an AI system answers questions by exploring a knowledge graph, it may look up the same entities again and again. KGCache tests whether keeping those graph neighborhoods in memory can save time—and where that shortcut helps, or falls short.

Knowledge graphs organize information as connected entities and relationships: a person may work for an organization, which is based in a country. AI systems can use these structures as evidence when answering questions that require several linked facts. But exploring a graph means repeatedly asking a database for nearby connections. If many questions touch the same entities, some of that work may be duplicated.

In KGCache: Amortized Subgraph Retrieval for KG Reasoning with LLMs, Uros Stanic and colleagues examine that possibility. Their central question is practical: can a cache—fast memory that stores results for reuse—reduce the cost of retrieving graph evidence without changing how the AI reasons?

Two ways to reuse information

The researchers built KGCache as a layer between a question-answering system and its knowledge-graph database. Its main cache stores an entity’s one-hop neighborhood: the triples directly connected to that entity. When the system requests the same neighborhood again, it can retrieve the stored copy instead of querying the database. This is intended for a fixed graph snapshot; changes to the underlying graph would raise the separate question of how to keep cached entries current.

The team also tested a semantic-context cache. Instead of matching entity IDs, it compares question embeddings—numerical representations of text—and can reuse graph context from a sufficiently similar earlier question. A semantic hit skips graph traversal and some intermediate reasoning steps, but the system still asks the language model to generate an answer to the new question. Similarity is only a signal, not proof that two questions need identical evidence.

Experiments used the WebQSP and ComplexWebQuestions (CWQ) benchmarks, the Freebase knowledge graph, two graph databases and two language models. The authors tested Least Recently Used (LRU) and Least Frequently Used (LFU) cache policies, as well as an offline, trace-aware policy called Oracle. The Oracle knows which entities are frequent in the evaluated request trace, so it is a reference comparison rather than a policy available in ordinary live use. The paper also tests both iterative graph traversal and plan-then-retrieve approaches.

Faster lookups, bounded overall gains

The authors report substantial repeated entity access in both benchmarks, including entities encountered during traversal. In one runtime experiment with a cache capacity of 1,000 entity neighborhoods, LFU reduced graph-retrieval time by a factor of 1.35 on WebQSP and 1.91 on CWQ. These are speedups for the graph-retrieval component, not for the complete question-answering system. The Oracle policy produced larger retrieval speedups in that experiment, but depends on advance knowledge of the trace.

Semantic caching produced hit-rate gains in the evaluated configurations, with a reported maximum full-system speedup of 1.08. The authors found that answer-quality results depended on the similarity threshold: at the selected thresholds, F1 scores differed from the uncached baselines by at most 1.1 percentage points on WebQSP and 1.2 on CWQ in their tests. A looser threshold reduced performance in some configurations. These findings make the trade-off clear: accepting more “similar” questions may save work, but risks reusing context that does not fit as well.

Why doesn’t faster graph retrieval translate into a much faster overall system? Because database lookup is only one part of the job. Language-model calls and other processing still take time, and entity caching does not shorten the sequence of reasoning calls. The authors therefore argue that caching is most useful when graph access is a large or slow part of runtime, such as with remote or larger-scale backends. Their experiments, however, used dataset-specific Freebase subgraphs and local database containers, so they do not directly establish the gains for every deployment.

There are other limits. The main cache stores one-hop neighborhoods, and the study evaluates two benchmarks rather than a broad range of question-answering workloads. The semantic cache’s results also show why embedding similarity needs careful thresholds and accuracy checks, particularly where cached and freshly retrieved contexts differ. The paper describes future work on larger or higher-latency deployments and more adaptive caching approaches.

KGCache is an efficiency technique, not a method for making answers more accurate by itself. Its contribution is to identify repeated retrieval as avoidable work and measure when memory-based reuse helps. The paper is listed as appearing in the Proceedings of the Fifth Learning on Graphs Conference (LoG 2026); the supplied version is an arXiv paper, and its results should be read in the context of the specific benchmarks, systems and configurations tested. Independent evaluation across other graphs and real-world workloads would help clarify how broadly the reported speedups apply.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.