Manuscript Offprint
arXiv:2610.41169ImplicitHop: Evaluating knowledge integration across context and memory
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
The ability to integrate new information and deduce its consequences is central to learning, understanding, and reasoning in large language models (LLMs). Whether information arrives during training or in-context, models must not only store local facts, but propagate their long-range implications globally. To explore information integration in LLMs, we introduce two complementary natural language benchmarks for large-scale evaluation of deductive reasoning as a function of inference depth. The first is a formal graph benchmark enabling controlled evaluation over a wide range of graph topologies and integration tasks; the second is a knowledge composition benchmark grounded in real-world knowledge graphs. We use these benchmarks to compare knowledge integration from information encoded in context versus information encoded in model weights during pretraining, evaluating a set of open models implicitly, without chain of thought. We find that accuracy decays sharply with increased composition length for both pretrained and in-context knowledge. Information presented in-context, however, substantially outperforms deduction over information encoded in weights. These results quantify a fundamental limitation of current models with direct implications for prompt-based control of agent behavior and for continual learning strategies, and they provide a foundation for developing training, prompting, and integration methods that support deeper reasoning.
1 Introduction
AI systems receive information from pretraining, prompts, tool outputs, and weight updates. To reason and act effectively, knowledge must not only be stored, but combined to infer new information. Models often fail at integrating information, even when they know the necessary facts. A model that learns that X has been elected president may recall the new fact, yet fail to answer “Who is the president's spouse?" even though it knows that X is married to Y [Zhong et al., 2023, Deng et al., 2026]. Models that answer two questions correctly also often fail the question that composes them [Press et al., 2023].
To measure knowledge integration we create two benchmarks over varied tasks that quantify integration by inference depth, measured in hops: the number of facts that must be integrated to reach an answer. In the first, a random graph is given in the prompt as a list of edges, and the model answers questions about the nodes exactly k hops from a start node. In the second, the model answers questions that compose k real Wikidata facts, such as "In what year was the director of Jaws born?" at k = 2. The facts are given in the prompt, stored only in the model's weights, or both, so we can compare how well models integrate knowledge from context and from memory.
Across 15 open models with reasoning off, accuracy falls sharply with hops. On graphs, models name a neighbor of the start node 99–100% of the time, but a node two hops away only 9–40% of the time. On Wikidata, models compose facts given in the prompt at up to , but facts in memory at only 37–64% at and from , although every fact is known. Models integrate information in context far better than information in their weights, and both only to shallow depth.
2.1 Synthetic Graph
Problem instances: A problem instance is defined by a finite, simple, undirected graph with a vertex set , , and edge set , , together with a question about and its answer . Note that the mean degree is . A hop is the traversal across a single edge in . The graph distance is the minimum number of hops on any path from to , with and when no path exists. For an anchor vertex and an integer , the exactly-k-hop shell of is
For example, is the neighborhood of , and contains the vertices reachable in two hops but not in fewer hops. Being exactly hops from refers to only the shortest path. A vertex that is adjacent to and can also be reached by a two-hop path from belongs in and not . Every vertex outside of the connected component of has distance and lies in no shell.
Random graph model: All graphs are generated using the Erdős–Rényi model, in which each of the possible edges is included independently with probability . Rather than fixing , we fix a target expected mean degree and set
(2) which keeps the expected degree fixed across graph sizes. For each graph, is drawn uniformly from an integer range , and is then set from the drawn . Vertices are given random labels: distinct two-character strings are generated from A through Z without I and O. Random labels ensure that neither the label order nor the label identity carries information about the structure. Each graph is generated from its own seed, derived from a global seed (fixed at 0) and its index in the graph pool, so every graph can be reproduced.
Connectivity is not a condition that is required. At the target expected mean degree , graphs need not be connected, and conditioning on connectivity would change the sampling distribution. Empty shells and unreachable vertices are part of the benchmark and have defined answers.
Sub-tasks: On each graph we have four operations at each hop level , giving a grid of sub-tasks . For , every operation is posed over the shell of an anchor :
Each column in the grid (one operation, varying ) would then isolate the scale, and each row (one , varying operation) would then isolate the level of output, ranging from one bit (verify) to an exact set (enumerate). The level requires a different approach because , making all four questions trivial. At the four operations are posed against the whole vertex set: whether a given label is in , , any element of , and all of .
Natural language representation: Each problem instance must be turned into text before it can be given to a language model. The prompt states that the graph is undirected, lists the vertices by their labels, then lists the edges (Edges: AB-CD, YE-LY, ...), and ends with the question.
2.2 Wikidata Graphs
A knowledge graph is a set of entities , a set of relations , and for each relation a set of directed edges , where states that is the of . A -hop chain is a path composed of local 1-hops with for .
We build the graph from Wikidata, using 30 single-valued relations (e.g. director, founder, father, birth year) between popular entities. We sample chains of hops by random walks, removing any chain that can be answered

Figure 1: Models receive graph adjacency in-context but integrate the information poorly, failing at long-range inferences. DeepSeek, Kimi, Nemotron, and 12 other models answer questions about a random graph of 50-60 nodes given in the prompt as a list of edges, with reasoning off. Each question concerns the nodes exactly hops from a start node, so questions require only direct-neighbor information. a) Verify: is a given node exactly hops away? Accuracy falls from 93–100% at to 49–56% at , close to chance. b) Count: how many nodes are exactly hops away? Models count correctly 43–69% of the time at and from . c) Name one: name a node exactly hops away. Models name a neighbor at 99–100%, but a node two hops away at only 9–40%. d) Enumerate: list every node exactly hops away. Models list all neighbors at 71–100%, but no model lists more than 12% of sets correctly from .
without composing: no two non-consecutive entities may be directly linked in Wikidata, and no entity may appear in the name of an earlier one. We keep 200 chains per length .
For each -chain, the required one-hop facts are retrieved from model weights, provided in context, or both. If the facts are in the weights, we ensure that the model correctly answers each 1-hop fact posed as a question; otherwise, the -chain is not used in the model's evaluation. For the in-context condition, the chain's facts are stated in the prompt with every entity given an invented name, so the model cannot rely on memory. Sixteen decoy chains with the same relations are mixed in, so the model must follow the chain from its start and cannot take semantic shortcuts.
3 Results
3.1 Synthetic Graphs
3.1.1 Accuracy collapses at two hops
Accuracy collapses when a question requires 2-hop reasoning. DeepSeek, Kimi, and Nemotron name a neighbor of the start node 99–100% of the time, but a node two hops away only 9–40% of the time and a node three hops

Figure 2: Models compose facts from the prompt far better than from memory. DeepSeek, Kimi, and Nemotron answer k-hop Wikidata questions with reasoning off and information given in context, in memory, or both. a) The chain's facts are given in the prompt under invented names, among 16 decoy chains with the same relations. All models compose at up to , but at , Kimi composes at 29%, while DeepSeek and Nemotron Ultra fall to chance. b) The facts are recalled from memory without supporting facts in the prompt. Composition reaches only 37–64% at and from , although every fact is known. c) The facts are given in the prompt under their real names, among 16 real decoy chains, so the model can use both the prompt and memory. Accuracy reaches 36–71% at .
away only 12–24% (Figure 1c). The same drop occurs across tasks: from , counting falls to and enumerating to , and verifying is near chance by (Figure 1a,b,d). The other 12 models, from 0.8B to 2.8T parameters, follow the same pattern.
3.2 Wikidata Graphs
3.2.1 Composition accuracy decreases sharply with number of hops
Composition accuracy decreases sharply as chains grow longer. When information is presented in context, Kimi composes 99% of chains at , 81% at , 58% at , and 29% at , while DeepSeek and Nemotron are indistinguishable from chance by and , respectively (Figure 2a). Similar accuracy decay with composition length occurs when information is in the weights or is available both in context and in memory. Even when every fact is known or given in the prompt, models struggle to compose information.
3.2.2 Models compose facts in context but not from memory
Models compose information given in context far better than information recalled from memory. At , every model composes 100% of chains in context but only 37–64% from memory, and from memory composition falls to (Figure 2b). Giving the facts in context under their real names, so models can use both prompt and memory, yields the highest composition accuracy, with accuracy reaching 36–71%, compared to 4–29% in context alone and 2–6% in memory alone (Figure 2c). These results suggest that models compose known facts reliably only when the information is in context.
References
Lingwen Deng, Yifei Han, Shijie Li, Yue Du, and Bin Li. Consistency-aware parameter-preserving knowledge editing framework for multi-hop question answering, 2026. URL https://arxiv.org/abs/2509.18655.
Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah A. Smith, and Mike Lewis. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5687–5711, Singapore, 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.findings-emnlp.378. URL https://aclanthology.org/2023.findings-emnlp.378.
Zexuan Zhong, Zhengxuan Wu, Christopher D. Manning, Christopher Potts, and Danqi Chen. MQuAKE: Assessing knowledge editing in language models via multi-hop questions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 15686–15702, Singapore, 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.971. URL https://aclanthology.org/2023.emnlp-main.971.