Read the paper
Ontology-RAG: Zero-LLM-Index Subject-Document Ontologies and Receiver-Typed VirtualSet Traversal for Multi-Hop Reasoning
on GitHub
A retrieval system that links passages through rule-extracted subjects, with no LLM at indexing. Its LLM-free mode nearly matches a 70B-indexed graph system on three Wikipedia benchmarks. If it holds, multi-hop retrieval gets much cheaper.
| MuSiQue | 2WikiMultiHopQA | HotpotQA | 3-Bench Macro | |||||||||||
| System / Mode | Enc. | Idx/Qry | R@2 | R@5 | F1 | R@2 | R@5 | F1 | R@2 | R@5 | F1 | R@2 | R@5 | F1 (EM) |
| Published single-step dense, tree, zero-LLM graph, and OpenIE Graph-RAG baselines (Llama-3.3-70B or GPT-4o-mini⋄) | ||||||||||||||
| BM25 / Contriever (best) [13] | 110M | 0 / 0 | 37.4 | 49.1 | – | 60.2 | 67.9 | – | 59.3 | 75.3 | – | 52.3 | 63.6 | – |
| GTE-Qwen2 / GritLM (best) [13] | 7B | 0 / 0 | 49.7 | 65.9 | – | 67.3 | 76.0 | – | 79.2 | 92.4 | – | 65.4 | 78.1 | – |
| NV-Embed-v2 [16, 13] | 7B | 0 / 0 | 52.7 | 69.7 | 45.7 | 67.1 | 76.5 | 61.5 | 84.1 | 94.5 | 75.3 | 68.0 | 80.2 | 60.8 (51.7) |
| RAPTOR [33, 13] | 7B | /0 | 49.1 | 61.0 | 39.2⋄ | 58.4 | 66.0 | 48.4⋄ | 78.6 | 90.2 | 64.7⋄ | 62.0 | 72.4 | 50.8⋄ (39.3) |
| LightRAG / GraphRAG [11, 10] | API | 152M tok | – | – | 38.5 | – | – | 58.6 | – | – | 68.6 | – | – | 55.2 (44.6) |
| HippoRAG (Llama-70B) [12, 13] | 7B | 27.6K / 1 | 41.2 | 53.2 | 35.1 | 71.9 | 90.4 | 71.8 | 60.4 | 77.3 | 63.5 | 57.8 | 73.6 | 56.8 (47.9) |
| LinearRAG (ICLR’26) [17] | MPNet | 0 / 0 | – | 58.7 | 45.1⋄ | – | 89.2 | 67.3⋄ | – | 90.8 | 72.0⋄ | – | 79.6 | 61.5⋄ (51.2) |
| HippoRAG 2 (GPT-4o-mini) [13] | 7B | 27.6K / 1 | 53.5 | 74.2 | 49.3⋄ | 74.6 | 90.2 | 69.7⋄ | 80.5 | 95.7 | 71.1⋄ | 69.5 | 86.7 | 63.4⋄ (50.6) |
| HippoRAG 2 (Llama-70B) [13] | 7B | 27.6K / 1 | 56.1 | 74.7 | 48.6 | 76.2 | 90.4 | 71.0 | 83.5 | 96.3 | 75.5 | 71.9 | 87.1 | 65.0 (55.0) |
| Published multi-round iterative / agentic Graph-RAG baselines | ||||||||||||||
| IRCoT + HippoRAG [27, 12] | 7B | 27.6K / 3–8 | – | 59.9 | 39.8 | – | 93.0 | 74.9 | – | 89.8 | 68.5 | – | 80.9 | 61.1 (49.7) |
| IRCoT + LinearRAG [17] | MPNet | 0 / 3–5 | – | 67.2 | 53.7⋄ | – | 92.6 | 76.4⋄ | – | 93.4 | 75.8⋄ | – | 84.4 | 68.6⋄ (57.9) |
| Pure-Entitir Zero-Query-LLM VirtualSet + Controlled Fixed-Top-5 Reader QA (; 0 idx LLM, 0 qry LLM) | ||||||||||||||
| Flat Dense (chunks.nearest) | 109M | 0 / 0 | 42.19 | 54.98 | 39.01† | 59.17 | 68.27 | 53.31† | 66.75 | 83.70 | 66.66† | 56.04 | 68.98 | 52.99 (44.83)† |
| Hybrid (nearest + fts) | 109M | 0 / 0 | 43.21 | 55.93 | – | 61.68 | 69.70 | – | 67.10 | 84.00 | – | 57.33 | 69.88 | – |
| Flat Dense + Rerank | 109+568M | 0 / 0 | 47.74 | 59.72 | – | 66.15 | 71.03 | – | 81.35 | 89.50 | – | 65.08 | 73.42 | – |
| Light Mode w/o rerank | 109M | 0 / 0 | 46.26 | 62.27 | 45.30† | 75.00 | 94.65 | 73.99† | 79.50 | 93.55 | 76.15† | 66.92 | 83.49 | 65.15 (55.60)† |
| Light Mode (Listing 1) | 109+568M | 0 / 0 | 50.64 | 69.45 | 49.53† | 76.45 | 93.90 | 73.50† | 86.85 | 96.10 | 77.87† | 71.31 | 86.48 | 66.97 (57.47)† |
| Pure-Entitir Multi-Round Traversal, Same-LLM Flat-Agent Controls (), & Global- Routing ( paired; 0 idx LLM) | ||||||||||||||
| Light Mode (paired , 0% esc.) | 109+568M | 0 / 0 | – | 69.84 | 49.88† | – | 95.95 | 75.00† | – | 96.85 | 78.05† | – | 87.55 | 67.64 (58.42)† |
| Same-LLM Hyb+RR (No Think)‡ | 109+568M | 0/r | – | 67.50 | 61.19† | – | 92.50 | 77.88† | – | 97.00 | 80.78† | – | 85.67 | 73.28 (64.67)† |
| Same-LLM Hyb+RR (Thinking)‡ | 109+568M | 0/r | – | 77.83 | 70.17† | – | 100.00 | 74.67† | – | 98.00 | 79.94† | – | 91.94 | 74.93 (66.33)† |
| Heavy Mode (paired ) | 109+568M | 0/r | – | 84.33 | 68.87⋆ | – | 100.00 | 84.07⋆ | – | 99.50 | 81.85⋆ | – | 94.61 | 78.26 (68.67)⋆ |
| Auto Router (40%, ) | 109+568M | 0/ | – | 82.26 | 61.40 | – | 97.07 | 74.96 | – | 98.05 | 78.61 | – | 92.46 | 71.66 (61.61) |
| Dual Router (40%, RRF) | 109+568M | 0/ | – | 72.46 | – | – | 96.47 | – | – | 97.45 | – | – | 88.79 | – |
| Heavy Mode (Alg. 1, ) | 109+568M | 0/r | 67.12 | 85.40 | 64.52⋆ | 87.61 | 99.62 | 79.87⋆ | 96.10 | 99.40 | 78.68⋆ | 83.61 | 94.81 | 74.36 (62.71)⋆ |
†Controlled Single-Turn Fixed-Top-5 Reader QA (deepseek-v4.1-flash-1017, temp , thinking: disabled, 0.9K tok/q, 0 rds; Light beats Flat on all 3 datasets, ). ⋆Heavy Mode thinking-planner grounded QA F1/EM. ‡Paired () full-passage multi-round controls without ontology edges: non-thinking (6.2K tok/q; 60.42 raw / 73.28 Reader† F1) and thinking-enabled (8.4K tok/q, 12.7K MuSiQue; 67.16 raw / 74.93 Reader† F1; 82.33% AG@5) vs. paired Heavy (34.1K tok/q, 49.8K MuSiQue; 88.33% AG@5; 78.26 planner⋆ F1): Heavy gains +2.67 pp R@5 () and +6.00 pp AG@5 () over thinking-enabled search, beating raw agent F1 () while the gap over Reader† F1 is not significant at ().
Going deeper
You want to know where the director of a film was born. One library card mentions the director by name in passing. Another card, the director's own, gives the birthplace. Your question never names the director, so a search on your words finds the first card and misses the second.
The usual fix pays a large language model to read every card and write a map of who links to whom, which costs tens of thousands of model calls. This paper does it with simple rules instead: note every name on every card, mark the card that is about that name, and walk from a passing mention to the card that owns the name.
When sorting the cards found, the checker is also shown the sentence that led there, so the director's card is not thrown out for failing to mention your film. On Wikipedia puzzles this nearly matches the expensive map. On news questions that already name everything, plain search does a little better.
The abstract, word for word, with the six densest phrases unpacked.
Multi-hop retrieval-augmented generation confronts a sharp cost–accuracy dilemma: flat retrieval misses cross-document bridges, OpenIE Graph-RAG invokes tens of thousands of indexing LLM calls1, parent-boosted containment trees monopolize single documents, and standard cross-encoders demote unstated second-hop passages. We present Ontology-RAG, a generic retrieval architecture built purely on Entitir’s executable OntologyWorld and receiver-typed Outline VirtualSet algebra. With zero offline LLM calls2, raw repositories compile into a normalized 12-definition subject–document ontology whose sentence-scoped SubjectMention incidences raise complete gold-chain connectivity to 88.1%, 69.1%, and 88.9%3 on MuSiQue, 2WikiMultiHopQA, and HotpotQA. Over this single ontology, Ontology-RAG exposes two modes: Light Mode evaluates one fixed VirtualSet expression across every corpus with zero query LLM calls via residual-gated bipartite propagation and lazy edge-sentence provenance in VirtualSet.rerank; Heavy Mode performs multi-round receiver-typed VirtualSet traversal with pre-execution Generic Constraints Projection (GCP) self-type (~this) inference and member-guided repair. Across 3,000 Wikipedia queries, Light Mode reaches 86.48% macro Recall@54 (+12.64 pp EM / +13.98 F1 in same-reader QA) and Heavy Mode reaches 94.81% Recall@5 (74.36 F1, 1,000 queries)5; on 2,255 MultiHop-RAG news queries, Light Mode transfers zero-shot at 78.45% Hits@4 (leading Inference at 83.33%) while ontology-free Entitir Hybrid+Rerank+Div. leads explicit-clause queries at 80.71%6.
Two lines of work lead here: graph-based retrieval and the benchmarks that measure multi-hop recall.
Read four parts, in this order.
Skip Section II and the typing rules unless you use Entitir.
Three places decide how much the headline means.
Table IV establishes two primary findings (because published rows use Llama-3.3-70B or GPT-4o-mini readers without a 568M cross-encoder whereas our controlled block uses deepseek-v4.1-flash-1017, cross-system comparisons rest on reader-independent R@2/R@5—with Light w/o rerank at 109M providing the direct encoder-only point—while F1/EM comparisons hold strictly within our controlled block):
1. Zero-LLM Light Mode outperforms Flat+Rerank, 7B encoders, and LinearRAG, matching 70B+7B HippoRAG 2 within 0.6 pp. Adding bge-reranker-v2-m3 to flat dense retrieval without ontology structure (Flat Dense + Rerank) reaches 73.42% macro Recall@5—still missing unstated Hop-2/3 bridges. Conversely, Light Mode w/o rerank (109M bi-encoder alone, zero cross-encoder) reaches 83.49% macro Recall@5, surpassing 7B NV-Embed-v2 (80.2%), LinearRAG (79.6%), and 70B HippoRAG (73.6%). Full Light Mode reaches 86.48% macro Recall@5 (+13.06 pp over Flat+Rerank; 86.39% on the disjoint 2,850 held-out test split, ruling out calibration overfitting), surpassing 70B+7B HippoRAG 2 on 2Wiki R@5 (93.90% vs. 90.4%) and HotpotQA R@2 (86.85% vs. 83.5%) and matching its macro R@5 (87.1%) within 0.6 pp at zero LLM cost, while lifting controlled same-reader QA from 52.99 F1 (44.83% EM) to 66.97 F1 (57.47% EM). 2. Thinking-matched multi-round ablation isolates where OntologyWorld edges are irreplaceable—and discloses token/F1 trade-offs. Across 1,000 queries, Heavy Mode lifts macro Recall@5 from 87.55% to 94.81% (74.36 F1, 62.71% EM). On paired n=300, deepseek-v4.1-flash-1017 without ontology edges (≤5 rounds, full untruncated passages) scores 85.67% R@5 (73.28 Reader F1) with thinking: disabled and 91.94% R@5 / 82.33% AllGold@5 (67.16 raw / 74.93 Reader F1 at 8.4K tok/q, 12.7K on MuSiQue) with thinking: enabled, saturating 2-hop search on 2Wiki (100.00%) and HotpotQA (98.00%) yet stalling on hidden-bridge MuSiQue (77.83% R@5, 51.00% AllGold@5). Paired Heavy Mode lifts MuSiQue to 84.33% R@5 (+6.50 pp, p=0.0031) and 66.00% AllGold@5 (+15.00 pp, p=0.0007), raising macro R@5 to 94.61% (p=0.0012) and AllGold@5 to 88.33% (p=0.0008). Two caveats warrant transparency: (i) paired Heavy Mode consumes 34.1K tok/q (49.8K on MuSiQue, ∼4× the flat baseline due to schema/Listing 1 context and multi-hop graph observations), making the Global- τ Router (14.8K tok/q at 40% budget, 92.46% R@5) the cost-controlled operating point; and (ii) Heavy Mode’s planner F1 (78.26) significantly beats the baseline’s raw agent F1 (67.16, p=0.0001), whereas against the baseline’s single-turn Fixed-Top-5 Reader F1 (74.93, including 70.17 vs. 68.87 on MuSiQue) the macro difference is not statistically significant (p=0.0807).
| System / Pipeline | Qry LLM | Hits @4 | Hits @10 | SF @4 | SF @10 | AD @10 | MAP @10 |
|---|---|---|---|---|---|---|---|
| Published MultiHop-RAG chunk-overlap baselines () | |||||||
| COLM’24 bge-large / voyage+CE [6] | 0 | 66.25 | 74.67 | – | – | – | – |
| ACL’25 QD+RR (18.9s decomp.) [26] | 76.30 | 87.20 | – | – | – | – | |
| Multi-Meta-RAG (bge / voyage) [25] | 79.20 | 90.42 | – | – | – | 33.88 | |
| Pure-Entitir Generic Execution across All Answerable Queries (0 LLM) | |||||||
| Entitir Flat Dense (nearest) | 0 | 54.06 | 74.24 | 53.39 | 73.79 | 24.75 | 23.82 |
| Parent-Boosted Tree (, Prop. 1) | 0 | 51.22 | 69.76 | 50.69 | 69.18 | 16.76 | 21.46 |
| Entitir Hybrid (nearest+fts) | 0 | 77.87 | 90.51 | 77.87 | 90.47 | 41.15 | 44.21 |
| Entitir Hybrid+Rerank+Div. (No Onto.) | 0 | 80.71 | 88.47 | 80.58 | 88.38 | 66.34 | 48.62 |
| Light Mode w/o rerank (109M) | 0 | 64.52 | 80.44 | 64.48 | 80.40 | 47.98 | 30.33 |
| Ontology-RAG Light Mode (Lst. 1) | 0 | 78.45 | 87.36 | 78.23 | 87.32 | 53.57 | 43.58 |
| Stratified slice (seed=42; paired Light: 76.67% SF@4, 54.67% AD@10) | |||||||
| Heavy + Dual RRF (Eq. (10), )⋆ | 77.33 | 87.67 | 77.33 | 87.67 | 51.00 | 43.06 | |
⋆News-world Heavy planner ( rds, raw Heavy 65.67% Hits@4, 80.00% DocHits@4) fused with Light via Eq. (10) (94.00% DocHits@4).
| Panel A: Sequential VirtualSet Latency ( Trials, 8-vCPU Xeon CPU) | ||||
| Outline VirtualSet Expression | Mean (ms) | p50 (ms) | p95 (ms) | LLM |
| chunks.fts(...)(q).take(10) | 157.6 | 149.2 | 237.0 | 0 |
| chunks.nearest(...)(q).take(10)§ | 27.4 | 26.2 | 34.2 | 0 |
| zc.blend(nearest)(0.75).blend(fts)(0.25) | 260.9 | 257.4 | 287.5 | 0 |
| Light Mode w/o rerank (2–3 hop + mmr)§ | 646.8 | 634.1 | 735.3 | 0 |
| Full Light Mode (2-pass CPU ONNX rerank) | 6638.9 | 7294.6 | 9902.0 | 0 |
| Panel B: Heavy () & Cold-Start GCP Stress Audit (: 0.0%61.7% R@5) | ||||
| Benchmark () | Avg Rds | p50 (s) | Avg Tok/q | R@5 / F1 |
| MuSiQue () | 3.64 | 96.5 | 42.9K | 85.40 / 64.52 |
| 2WikiMultiHopQA () | 2.69 | 56.0 | 26.2K | 99.62 / 79.87 |
| HotpotQA () | 2.40 | 50.7 | 21.0K | 99.40 / 78.68 |
| 3-Bench Macro (, 3.83 expr/q) | 2.91 | 67.7 | 30.0K | 94.81 / 74.36 |
| Panel C: Vector Pushdown Scale-Up (PostgreSQL 15 + pgvector HNSW vs. Uncached SQLite) | ||||
| Haystack Scale (Chunk rows, 768d) | HNSW Bld | PG p50 | SQLite p50 | PG R@5 |
| chunks (MuSiQue base) | 2.5 s | 37.0 ms | 937.8 ms | 51.17 |
| chunks ( synth. haystack) | 7.9 s | 133.6 ms | 2770.4 ms | 51.17 |
| chunks (100K synth. haystack) | 27.9 s | 209.8 ms | 8179.6 ms | 48.83 |
§Panel A uses warm in-RAM vector matrices (– s/q under 6-worker batching). ¶Schema-blind cold-start member-discovery stress audits (, vs. opaque runtime errors): (i) syntax repair (202 errors): 99.5% (201/202, mean 1.59 rds) vs. 87.6% (); (ii) strict pre-DB RAG gating (450 chains): compiled chains rise and R@5 rises 0.0% () / 0.0% (opaque) 61.7% (; AG@5: 0.0%32.0%).
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all