TL;DR
Answering multi-hop questions with standard vector search usually drowns the LLM in irrelevant text, while building custom knowledge graphs from scratch is expensive and noisy. This paper introduces a clever compromise: interleaving vector search with live lookups on Wikidata, guided by an LLM that writes SPARQL queries as plans rather than executable code. By parsing these plans into safe, single-hop steps, the system beats state-of-the-art GraphRAG baselines in accuracy without spending millions of tokens indexing a corpus graph.
What Problem Does This Paper Address?
Standard Retrieval-Augmented Generation (RAG) works by turning your question into a vector and grabbing the closest-matching text passages. That is great for simple trivia, but it falls apart on "multi-hop" questions—like finding the birthplace of the director of Inception. Vector similarity misses the "bridge" documents (like Christopher Nolan's bio) because they don't look like the surface question. Widening the search net boosts recall, but precision plummets (down to 32% on HotpotQA), forcing the LLM to wade through mostly distracting text.
Recent "GraphRAG" methods fix this by having an LLM read the entire text corpus beforehand to extract a custom knowledge graph (KG). However, this upfront extraction costs millions of tokens, produces fragmented graphs, and must be redone whenever documents change. Using a pre-existing, curated graph like Wikidata avoids this tax, but how do you get an LLM to traverse it adaptively? Having an LLM directly write and execute database queries (like SPARQL) notoriously leads to empty results due to hallucinated entity IDs or overly strict formatting.
Methods
Instead of choosing between vector search and knowledge graphs, the authors interleave them in an iterative, three-agent loop using standard dense retrieval (Contriever), Qwen3-32B, and live Wikidata.
Here is how the loop works:
- Seed: Standard dense retrieval (plus simple $n$-gram title matching) pulls an initial batch of candidate passages.
- Resolve & Refine: A resolution agent reads the passages in a single LLM call, confirms which ones actually lie on the reasoning path, extracts useful facts, and rewrites the original question to include newly discovered entities.
- Plan ("Parse, Don't Execute"): This is the core novelty. If information is still missing, a plan agent writes a SPARQL query to find the next hop. Because LLMs are great at planning in code—and Wikidata schemas are well-represented in pretraining—SPARQL serves as an ideal reasoning medium. However, the system never executes the raw query. Instead, a deterministic parser strips out hallucinated IDs and complex constraints, breaking the query into safe
(entity, property, direction)tuples. It resolves entity names via Wikidata’s search API and runs instant, single-hop lookups.
Discovered bridge entities are matched back to text passages and fed into the resolver, sharpening the query for the next round of vector search. Once enough facts are gathered, a reader generates the final answer strictly from the confirmed text passages. The authors test two configurations: an unbounded setting for maximum accuracy, and a token-saving bounded setting matched to competitor budgets.
Datasets
The system is evaluated (training-free) on 1,000-question splits across three standard multi-hop QA benchmarks, using identical retrieval corpora from prior GraphRAG studies:
- HotpotQA (9,811 passages; mostly 2-hop questions).
- 2WikiMultiHopQA (6,119 passages; mixes comparison and compositional 2-hop questions).
- MuSiQue (11,656 passages; tough 2-to-4-hop compositional chains).
Key Insights and Ideas
- LLMs fail at SPARQL semantics, not syntax: When the authors tried executing the LLM's raw SPARQL queries directly, syntax errors were rare (<2.4%). Yet 58–77% of queries returned zero results because of mislinked entity IDs, slight label mismatches, or over-constrained multi-hop joins. Parsing the query into independent single-hop lookups prevents total failure and preserves up to 11.4 Exact Match (EM) points.
- Vector search and KGs cover each other's blind spots: Vector search supplies high recall and handles fuzzy phrasing, while KG traversal acts as a high-precision filter (jumping from ~32% to >80% precision on HotpotQA and 2Wiki) and surfaces exact bridge entities that vector similarity misses.
- Zero corpus-construction tax: Because Wikidata already exists, upfront indexing requires 0 LLM tokens, whereas baselines like HippoRAG2 and LightRAG burn 8.1M to 33.8M tokens just building graphs for a tiny 6,119-passage corpus.
Key Results
Under a strictly controlled setup (same Qwen3-32B LLM, retriever, and corpus across all reproduced baselines), the unbounded method takes first place across every benchmark:
- HotpotQA: 62.5 EM / 75.1 F1 (beating the strongest baseline, IRCoT, at 57.7 EM, and HippoRAG2 at 53.5 EM).
- 2WikiMultiHopQA: 73.5 EM / 81.0 F1 (well ahead of T²RAG's 55.2 EM).
- MuSiQue: 37.1 EM / 50.0 F1 (surpassing HippoRAG2's 28.6 EM).
In the bounded setting (~3,082 tokens/query), the system matches T²RAG's query-time token budget while beating it on HotpotQA (57.2 vs. 48.4 EM) and 2Wiki (67.7 vs. 55.2 EM). Notably, on HotpotQA and 2Wiki, 75–84% of remaining errors happen despite 100% retrieval recall, meaning reader comprehension—not retrieval—has become the primary bottleneck.
Limitations and Future Work
- External KG dependency: Avoiding upfront graph construction relies entirely on Wikidata covering the domain. For private or specialized corpora (like internal financial reports), a custom graph would still need to be built, erasing the offline cost advantage.
- Entity anchoring & title alignment: The KG planner needs named entities to anchor its hops (struggling on MuSiQue when a starting entity is only described indirectly) and assumes corpus passage titles align cleanly with Wikidata labels. Unaligned text would require an extra entity-linking step.
- Single backbone: All experiments use Qwen3-32B; sensitivity to different reader or planner models was not explored, and explicit future work directions are otherwise not discussed in the paper.
Summary updated