Manuscript Offprint

arXiv:2610.37121

Prospector: learning a compact graph traversal policy for scientific reasoning

Haiqian Yang, Markus J. Buehler

ABSTRACT

Scientific reasoning in specialized engineering fields depends on knowledge scattered across the literature, often proprietary and absent from frontier LLM training data. In such domains, frontier models tend to give generic answers. Knowledge graphs (KGs) can ground LLM reasoning. Because a graph is too large to provide in full, typical LLM+KG systems preselect a portion, deciding relevance before reasoning begins. Here we train a compact model, Prospector, to reason over a domain knowledge graph by traversing it step by step, seeking evidence in light of what it has already found. Prospector calls a small set of tools one at a time to progressively build its context, and answers with a chain of evidence that can be checked edge by edge against what its tools retrieved from the graph. On a knowledge graph built from the semiconductor-manufacturing literature, Prospector approaches the strongest off-the-shelf models given the same graph and tools, and it far exceeds off-the-shelf models answering closed-book or from a pre-selected portion of the graph. Although trained only on the semiconductor graph, Prospector transfers to unseen knowledge graphs from three other distinct fields: bio-inspired materials, per- and polyfluoroalkyl substances (PFAS) and materials properties. Served on a single GPU, Prospector answers faster and at a fraction of the cost of a hosted service, while keeping proprietary data on the owner's hardware. We find that the policy's latent state is indicative of its next move on both seen and unseen graphs, and modulating the latent state can steer the policy from one behavior mode to another. These results suggest a practical LLM + KG paradigm for scientific and engineering reasoning over private data, in which a compact model trained on a graph from published literature transfers its traversal to unseen graphs that stay with their owners.

A

Figure

B Example episode

Q In gas-assisted focused electron beam and ion beam processing used in semiconductor manufacturing, identify the system responsible for transferring particles to the region of the wafer involved in that processing.

1 find "FEB/FIB processing"

6 name matches, no edges · 19 calls left

2 expand FEB/FIB processing

-[used for]→ fabrication, and two bibliographic edges

3 new edges · 3 seen · 18 calls left

3 find "transfer"

10 name matches, among them transfer chamber · 17 left

4 expand transfer chamber

-[contains]→ wafer-holding system, transport system, ...

10 new edges · 13 seen · 16 calls left

5 expand transport system

<-[increases]- wafer-holding system, -[affects]→ wafer, ...

9 new edges · 22 seen · 15 calls left

6 expand wafer-holding system

-[transfers particles to]→ wafer back side, ...

18 new edges · 40 seen · 14 calls left

7 connect FEB/FIB processing, wafer-holding system

PATH, 3 hops; the edge the expansions had not reached:

wafer back side -[is_part_of]→ fabrication

1 new edge · 41 seen · 13 calls left

ANSWER wafer-holding system

Figure 1. One episode of Prospector on the semiconductor graph. A, the region of the graph the policy retrieved, one tool call at a time, with the chain of edges its answer cites. Gray nodes and edges stand schematically for the part of the graph the episode never retrieved. B, the same episode as tool calls and the observations they returned. A sampled episode of Prospector-4B on a held-out question, reproduced in full in Appendix B.

1 Introduction

Automating scientific reasoning has become a concrete engineering goal, and several groups have reported systems that read and synthesize the literature, propose hypotheses, and run experiments and report the results [1–6]. These systems rest on large language models that internalize knowledge together with reasoning, and ever larger models are trained to serve as both reasoner and encyclopedia [7, 8]. This approach is effective while the knowledge is public. On facts that rarely entered the public domain, an off-the-shelf model often answers from general priors instead [9, 10], so its answer is fluent and plausible but lacks grounding. In semiconductor manufacturing, for example, the process data that would make a model useful stays private to the company that owns it, so it is largely absent from the data off-the-shelf models are trained on [11].

Augmenting a language model in context is an effective way to ground its reasoning, and one popular method is LLM + knowledge graphs, where the graph supplies the detailed evidence the model lacks [12, 13]. An answer to an engineering question rests on a chain of relations among materials, mechanisms and process conditions, and these relations are usually scattered across various sources of proprietary documents. A graph stores each relation as an edge with its source, so the chain an answer rests on can be written down and checked against the graph. Because a chain can join edges extracted from different documents, reasoning through the graph can combine evidence spread across sources (Section 3).

A knowledge graph is typically too large for a model to read at once, so a graph reasoning system must choose which part to read. The usual approach selects the evidence before reasoning begins: a fixed procedure links the entities the question names, retrieves what lies around them in the graph as edges, passages or community summaries, and places the result in the prompt [14–17]. The selection is therefore a commitment made before the question has been reasoned about, when least is known about which evidence will matter. When the answer lies several relations away, the entities in between are not necessarily named in the question, which could be easily missed by a selection keyed on the question's entities. The selection is commonly treated as a fix for the context-length problem [18, 19], but a longer context window enlarges the selection without removing the commitment, and models use long contexts unreliably [20]. In contrast, avoiding the commitment means retrieving evidence from the graph a step at a time, each step conditioned on what the previous steps returned, and existing systems do so by prompting a frozen model at each step [21, 22]. Nevertheless, the choice of what to read next at each step can instead be trained into a model that is presumably much smaller 1^{1} and easier to serve in proprietary situations, and training this choice has been demonstrated on curated benchmark graphs such as Freebase and Wikidata [23–29]. While these methods supply components that a working system can build on, such a system has yet to be demonstrated on real scientific and engineering questions, where it needs to reason over graphs extracted from the literature of different fields and answer with evidence that can be checked. Moreover, where the data are proprietary, it is also preferable for the system to run on the owner's hardware, so that neither the questions nor the graph are sent to a third party.

In this work, we report Prospector, a compact language model post-trained into a traversal policy for scientific knowledge graphs extracted from literature (Section 6.5). Traversal is the capability of autonomously choosing what to examine next in light of what the policy has already read. The policy answers by traversing the graph through three tools and asserting a chain of cited edges (Figure 1). We find that

  1. Selecting a subgraph before reasoning is costly (Section 3.1). Off-the-shelf models answer most questions incorrectly without the graph. They answer better when handed a pre-selected subgraph built around the entity the question is about, but still lose many correct and supported answers they reach with the traversal tools.

  2. The graph-traversal capability is compact (Section 3.1). Our post-trained 4B model comes close to the strongest frontier model, matches the second and exceeds the other six off-the-shelf models we evaluate, given our graph traversal tools.

  3. The graph-traversal capability transfers zero-shot to unseen domains (Section 3.4). Our 4B policy trained on the semiconductor graph also approaches the frontier models on three graphs from other fields: bio-inspired materials, per- and polyfluoroalkyl substances (PFAS) and materials properties.

  4. Prospector is cheap to serve and can run privately (Section 3.5). Prospector-4B answers faster and at a much lower cost per question than any of the off-the-shelf models driving the same tools. The

1^{1}The encyclopedia is the knowledge graph, which is external to the model, so the model needs only the cognitive ability to traverse the graph instead of using its weights to memorize all the facts.

same model runs on a laptop without a network connection, so questions and graph data can stay entirely on the owner's machine.

  1. The latent state predicts the next move, transfers with the policy and can be steered (Section 3.6). The state from which the policy chooses its next move separates three behaviors: following, backtracking and answering, both on the training graph and on unseen graphs. Modulating the latent state can steer the policy from one behavior mode to another.

References (67)