Manuscript Offprint

arXiv:2609.10237

The Answer Path and the Grounding Instruction in LLM Question Answering over Knowledge Graphs

Arquimedes Canedo

Arquimedes Canedo

Siemens Digital Industries Software

Princeton, NJ, USA

arquimedes.canedo@siemens.com

Abstract—A graph retrieval-augmented generation pipeline chooses which triples to put in the prompt, a syntax to write them in, an order to write them in, and a sentence telling the model what to do with them. We vary all four over six large language models and two knowledge-graph question answering benchmarks. Two of the four choices move the answer and the other two are flat.

The first is whether the answer path, the triples needed to reach the answer, is in the prompt at all. Holding the number of triples fixed and replacing every triple that is not on the chain with material from an unrelated entity changes answer accuracy by +0.003 F1, while removing the chain costs most of what the graph was worth. Retrieval budget belongs on recall, and precision in the range we can test buys nothing. There is no retriever in this study: subgraphs are constructed from gold SPARQL, so precision here names a property of the context we build rather than a setting on a system.

The second is the grounding instruction. With no facts in the prompt, telling a model to answer using only the provided facts drops F1 from 0.299 to 0.035, a factor of 8.63. That figure describes an evaluation with an empty context arm rather than a working pipeline, and an experiment that applies the instruction to its context arm but not to its no-context baseline manufactures a spurious finding that graph context hurts at depth. We found one in our own results and retract it. Because a wrong subgraph goes undetected by the model, the write path into the knowledge base is an attack surface with the reach of prompt injection and none of its visible signature.

Syntax, triple order and subgraph size produce no effect we can measure at multi-hop depth. The comparison that would price the grounding instruction against correct context turns out not to be measurable with a format-sensitive answer scorer, because the instruction determines the response format, and we report it as an open contrast rather than a number.

Index Terms—knowledge graphs, large language models, GraphRAG, retrieval precision, retrieval recall, grounding instructions, parametric knowledge, graph serialization, evaluation methodology, experimental artifacts

I. INTRODUCTION

Graph retrieval-augmented generation (GraphRAG) pipelines retrieve subgraphs from a knowledge base, initialize them as text, and place them in the context window of a large language model (LLM) [1]. A pipeline therefore makes four choices: which triples to include, how to initialize them, how to order them, and what the system prompt tells the model to do with them. This paper evaluates all four using the same corpus, models, and scorer to identify where practitioner effort has measurable value.

The results support investment in the first and last choices. The intermediate choices produce no measurable effect under the conditions tested.

Terms. Parametric knowledge is the knowledge a model draws from its weights when no facts are supplied; parametric recall is the act of drawing on that knowledge. An arm is one condition in a comparison evaluated over the same questions as the other conditions. Most comparisons have two arms, while the subgraph-size experiment has three. In a no-context condition, the facts block in an otherwise identical prompt is replaced by “No facts are available,” isolating the presence of graph context. Matched prompts means that both conditions use the same system prompt, including the same grounding instruction.

The answer path contains the triples traversed by a question's gold SPARQL query to reach its answer. We also refer to these as chain triples, matching the terminology used in our analysis code. A distractor triple is a genuine triple from the question's entity neighbourhood that does not lie on the answer path. Answers are evaluated by token-level F1 against gold labels, defined as the harmonic mean of token precision and recall on a zero-to-one scale. Unless stated otherwise, intervals are ninety-five% bootstrap intervals over questions.

Two prompt regimes recur throughout the study. The strict prompt, common in research and production pipelines, tells the model to “answer using only the provided facts” and to quote the triples it used. The permissive prompt removes that restriction and allows the model to combine the supplied information with its existing knowledge.

Retrieval precision. An inexpensive retriever commonly returns the answer chain together with unrelated material. Returning only relevant material is more costly and motivates reranking and threshold tuning. The precision experiment holds each prompt at 50 triples, retains the chain in every condition, and replaces an increasing share of the remaining triples with material from an unrelated question's subgraph. Across the full sweep, answer F1 changes by only +0.003. The null holds at every reasoning depth and among questions that the model could not answer without graph context. Removing the chain produces a large loss in accuracy. These results separate retrieval quality into two components with different consequences: preserving the answer path has substantial value, while improving the provenance of surrounding triples does not within the tested range.

The grounding instruction. With no facts available, the strict prompt scores F1 = 0.035, compared with 0.299 under the permissive prompt, for a difference of 0.264. Models follow the restriction even when the prompt supplies no facts. This result characterizes an evaluation with an empty-context arm; it does not characterize a working pipeline whose retriever returns evidence. If the context arm receives the strict prompt while the no-context baseline receives a different prompt, the resulting contrast combines the effects of context and instruction while attributing both to the graph. An initial experiment built this way made context appear harmful at three and four hops, and that result is retracted here. When both arms use the strict prompt, context helps at one, two, and three hops. Its four-hop effect is non-negative but inconclusive.

What is flat. Once reasoning is required, serialization syntax, triple order, and subgraph size produce no measurable effects. Syntax appears to matter only for one-hop parsing, where the observed difference tracks whether the serializer provides a human-readable predicate name.

What we cannot measure. The remaining practical question is how much the strict instruction costs when the context is correct. The present apparatus cannot answer it. The strict prompt requires a structured evidence block, while the permissive prompt permits free-form answers. Prompt regime therefore determines response format, and the answer scorer is sensitive to that format. Changing the scorer's fallback reverses the sign of the contrast, with both estimates rejecting the null. We consequently report this contrast as unmeasurable with the current apparatus. Four results in earlier drafts depended on it.

Table I lists the variables varied by the experiments. The design makes them orthogonal, allowing each to change while the others remain fixed. Reasoning depth is the exception because it is a property of the question, not an experimental setting. In this corpus, depth is also perfectly aliased with the source benchmark.

The paper makes four contributions based on 16 experiments comprising 30,841 trials across six models from three vendors.

  1. For a retrieved subgraph, what matters is whether it contains the answer. With the chain present and the prompt fixed at 50 triples, reducing context precision from 1.00 to 0.51 changes answer F1 by +0.003 (95% CI [-0.019, +0.031], permutation p = 0.812). Removing the chain lowers F1 to 0.231 under the permissive prompt and 0.005 under the strict prompt. For a pipeline operating under a fixed budget, these results support prioritizing recall. The conclusion also holds when the analysis is restricted to questions the model could not answer unaided.

  2. The nine-fold grounding figure applies to the no-context condition and characterizes an evaluation,

TABLE I VARIABLES VARIED IN THE STUDY AND THE CORRESPONDING SUMMARY FINDINGS. DEPTH IS MEASURED; ALL OTHER VARIABLES ARE SET EXPERIMENTALLY.

VariableLevelsEffect
Retrieval precision0–100% wrongNone at constant volume; recall is the lever
Contextcorrect, wrong, noneLarge when the answer is absent. Suppression itself is small and model-dependent
Promptstrict, permissiveLargest lever with no context; not measurable with it
Format7 serializationsParsing only, aliased with labelling
Triple order5 ordersNone
Subgraph size0–200 triplesNone
Model6, in 2 tiersModulates format
Reasoning depth1–4+ hopsGoverns the rest, and is aliased with benchmark

not a pipeline. The 8.63-fold suppression occurs in an empty-context arm. It is the largest effect measured in this study and is especially easy to misattribute to the graph. Any experiment that changes prompt regime together with context will assign the combined effect to context, as the retracted comparison did.

  1. The raw comparison substantially overstates how much a wrong subgraph suppresses parametric recall. Replacing the correct subgraph with an unrelated one reduces F1 from 0.627 to 0.231, but almost all of this change reflects the loss of correct facts. Relative to a no-context baseline, which isolates suppression, the effect is -0.068 (95% CI [-0.098, -0.039]). Moreover, 2 of the six models show no suppression. The performance that remains under a poisoned subgraph is parametric recall surviving the supplied context; a graph the model has never encountered offers no such reserve.

  2. Four nulls and one unmeasurable contrast. Subgraph size, triple ordering, serialization and retrieval precision are not levers. After matching question sets, size has no effect from chain-only to two hundred triples, and ordering has no effect at either tested scale. The serialization spread decreases from 0.234 at one hop to 0.036 at three hops. Separately, the strict-versus-permissive contrast with correct context is not measurable with a format-sensitive answer scorer, because the prompt regime also determines the response format.

References (29)