Skip to main content
Back

KET-RAG Audit Finds 84% of AI Errors Happen After Retrieval

Retrieval nails the facts, but reasoning fumbles them. Two cheap inference-time tricks let an 8B model beat an unaugmented 70B at 12x lower cost.

  • Graph-RAG retrieval is strong (77-91% gold-answer coverage) but reasoning accuracy lags at 35-78% on three multi-hop benchmarks.
  • SPARQL chain-of-thought prompting decomposes questions into triple patterns, adding +2 to +14 pp accuracy.
  • Graph-walk BFS compression cuts context ~60% (10k to 4k tokens) with zero LLM calls.
  • Augmented Llama-8B with question-type routing matches unaugmented Llama-70B at ~12x lower cost.
  • SPARQL CoT transfers to LightRAG; graph-walk compression does not.
  • Code and evaluation harness released at thomouvic/graph-rag-qa-pub.

A new EACL paper audits KET-RAG and finds that its retriever often surfaces answer-bearing context, yet the language model fails to connect the evidence. For developers, the results shift attention toward prompt structure and context construction once retrieval coverage is high.

Graph-RAG systems convert documents into entities and relationships so a retriever can follow connections across sources. The KET-RAG audit evaluates that approach on HotpotQA, MuSiQue, and 2WikiMultiHopQA, three benchmarks whose questions require combining multiple facts.

The Gap Appears After Retrieval

The audit compares gold-answer coverage with end-to-end accuracy, then classifies the errors that remain.

Measurement Reported result Meaning
Gold-answer coverage 77% to 91% The retrieved context contains the expected answer.
End-to-end accuracy 35% to 78% The final answer remains wrong for many questions with useful context.
Reasoning share of errors 73% to 84% The authors attribute most failures to evidence synthesis and answer generation.

Gold-answer coverage does not prove that every supporting fact was retrieved. Even with that limitation, the high coverage and error classification place much of the measured loss in the inference stage.

KET-RAG supplies roughly 10,000 tokens of entity and relationship material for each question. The model must locate relevant facts, discard unrelated branches, and connect evidence across several hops. The paper tests two inference-time changes that require neither retraining nor re-indexing.

SPARQL Makes the Hops Explicit

SPARQL, a query language for RDF graph data, expresses requests as subject-relation-object patterns. The proposed prompt asks the model to decompose each question into SPARQL-style triples before generating an answer, giving it an explicit sequence of entities and relationships to match against KET-RAG’s context.

  • Accuracy: SPARQL chain-of-thought prompting raises benchmark scores by 2 to 14 percentage points.
  • Syntax validity: The 8B model produces valid SPARQL in 87.4% of cases on average, compared with 93.4% for the 70B model.
  • Largest validity gap: HotpotQA shows a 10.8-point difference between the two models.

Generated syntax directly affects the scaffold’s usefulness. A production implementation can parse the SPARQL output and route malformed results to a generic chain-of-thought prompt or another fallback.

Graph Walks Cut 60% of the Context

Graph-walk compression starts with entities found in the question and runs breadth-first search over the retrieved graph. Breadth-first search expands immediate neighbors before moving to more distant nodes, allowing the compressor to group evidence by hop and remove disconnected material.

Breadth-first graph walk from question-linked seed entities, with results grouped by hop level
Breadth-first search collects connected evidence from question-linked seed entities and organizes it by hop level.

Compression reduces the average context from about 10,000 tokens to roughly 4,000 without an additional language-model call. Its standalone accuracy gains are modest. When paired with SPARQL prompting on smaller models, it adds about six percentage points on average beyond structured prompting alone.

An 8B Model Reaches the 70B Baseline

The full Llama-3.1-8B configuration combines graph-walk compression with a question-type router that selects either SPARQL chain-of-thought or a generic chain-of-thought prompt. It matches or exceeds an unaugmented Llama-3.3-70B across all three benchmarks at roughly one-twelfth the per-token cost.

Augmentation also improves the larger model. The 70B configuration with SPARQL reaches 61.0% accuracy on 2WikiMultiHopQA and 80.2% on HotpotQA, the strongest reported results for those benchmarks in the study. The cost comparison covers per-token pricing; total request cost and latency still depend on prompt length, output length, and deployment infrastructure.

LightRAG Reverses the Compression Result

Replication on LightRAG separates the transferable prompting result from the retriever-specific compression result:

  • SPARQL prompting transfers: It improves multi-hop question answering on both KET-RAG and LightRAG when the retrieved context exposes entity-relation triples.
  • Graph-walk compression does not transfer: It reduces accuracy on LightRAG across every tested configuration.
  • Model capacity still matters: Smaller models generate malformed SPARQL more often, limiting the value of the scaffold on harder questions.

The reversal ties graph-walk performance to graph construction, edge quality, and seed-entity selection. SPARQL prompting depends more directly on the structure of the supplied triples, which helps explain its broader transfer across the two systems.

Deployment Checklist

Teams operating a Graph-RAG pipeline can test the paper’s findings without rebuilding their index:

  1. Measure retrieval coverage separately from final accuracy. A large gap indicates room for inference-stage improvements.
  2. Use SPARQL prompting when context contains triples. The method relies on explicit entities and relationships.
  3. Validate generated SPARQL. Syntax checks and fallback prompts can contain failures from smaller models.
  4. Benchmark graph-walk compression per retriever. Its KET-RAG gains did not reproduce on LightRAG.
  5. Track tokens, latency, and answer quality together. Compression reduces input size, while routing and output generation shape total cost.

The authors released a code repository containing both augmentations and the evaluation harness for HotpotQA, MuSiQue, and 2WikiMultiHopQA. The study covers Graph-RAG systems with entity-relation structure; it does not establish equivalent gains for passage-only retrieval pipelines.