Pierre Jourlin
7 min
This paper by Pierre Jourlin introduces SYNSYNTH, a fully reproducible zero-shot pipeline for building and querying knowledge graphs (KGs) using quantized large language models (LLMs) that run entirely on consumer hardware like a single RTX 3090 GPU. No training is needed, and the entire system completes in ~5 hours with a tiny carbon footprint of 0.09 kg CO₂eq—making it 'frugal AI' that democratizes KG construction beyond cloud-dependent labs.
Traditional KGs provide verifiable structure to ground LLMs' hallucination-prone outputs, but building them usually requires massive supervised training on specialized hardware. SYNSYNTH flips this: it uses local LLMs for document-level relation extraction, text-to-query translation, and multi-hop reasoning, evaluated on real benchmarks like DocRED (F1=0.70 zero-shot vs. 0.80 supervised), WebQuestionsSP (80% accuracy), and HotpotQA (46% exact match, 96% RAGAS faithfulness).
The key insight? Diversity mechanisms like self-consistency and cross-model ensembling unlock performance on hard tasks, revealing counterintuitive behaviors akin to human crowds.
SYNSYNTH extracts relations across full documents (not just sentences), identifying entity links separated by intervening text—a challenging 'document-level relation extraction' task. On DocRED's 500 relations, it hits 70% F1 using prompts with synonyms and semantic constraints, closing 87% of the gap to supervised state-of-the-art like DREEAM (80% F1).
Quantized LLMs (e.g., Phi-4, GPT-OSS via Ollama) enable this on consumer GPUs. The pipeline then converts natural language questions to graph queries (e.g., Cypher/SPARQL) with 80% accuracy on synthetic WebQuestionsSP data, enabling KGQA without semantic parsers.
Multi-hop QA (HotpotQA) requires chaining facts across the KG. Base zero-shot hits 46% exact match (EM). Self-consistency—sampling multiple outputs (k=5, T=0.7 temperature) and voting—recovers 23% of the 181 'unsolvable' zero-temperature questions using a single Mixture-of-Experts model.
Wisdom of Artificial Crowds ensembles across architectures (3 models × 5 samples), reaching 46.4% EM oracle. But here's the twist: an agreement paradox emerges—strong sample consensus often flags collective hallucination, not truth, mirroring human crowd dynamics where overconfidence signals error.
The best result? A confidence-routing cascade: Start with fast Phi-4 (self-consistency k=5). If low confidence, reroute 45% of questions to stronger GPT-OSS, boosting full-pipeline EM to 55% (+9 pts over zero-shot, +11 over voting). This adaptive routing exemplifies efficient LLM orchestration.
Prompt engineering matters: V3 prompts (synonyms + constraints) drive gains, but model-specific interactions mean tricks don't transfer universally (e.g., Gemma-4 unique).
Frugal KG-LLM coupling (LLM-enhanced KG) counters LLM hallucinations with verifiable structure, runnable anywhere. The multi-task framework (DocRED + HotpotQA + RAGAS) sets a local-inference baseline, open-sourced under Hypocratic license. Insights on diversity paradoxes inform scalable reasoning, while carbon efficiency highlights sustainable AI paths.
This paper presents an empirical study of a multi-model zero-shot pipeline for knowledge graph construction and exploitation, executed entirely through local inference on consumer-grade hardware. We propose a reproducible evaluation framework integrating two external benchmarks (DocRED, HotpotQA), WebQuestionsSP-style synthetic data, and the RAGAS evaluation framework in an automated pipeline. On 500 document-level relations, our system achieves an F1 of 0.70 $\pm$ 0.041 in zero-shot, compared to 0.80 for supervised DREEAM. Text-to-query achieves an accuracy of 0.80 $\pm$ 0.06 on 200 samples. Multi-hop reasoning achieves an Exact Match (EM) of 0.46$\pm$0.04 on 500 HotpotQA questions, with a RAGAS faithfulness of 0.96 $\pm$ 0.04 on 50 samples. Beyond the pipeline, we study diversity mechanisms for difficult multi-hop reasoning. On 181 questions unsolvable at zero temperature, self-consistency (k=5, T =0.7) recovers up to 23% EM with a single Mixture-of-Experts (MoE) model, but the cross-model oracle (3 architectures x 5 samples) reaches 46.4%. We highlight an agreement paradox: strong consensus among samples signals collective hallucination rather than a reliable answer, echoing the work of Moussa{ï}d et al. on the wisdom of crowds. Extending to the full pipeline (500 questions), self-consistency (k=3) raises EM from 0.46 to 0.48 $\pm$ 0.04. A confidence-routing cascade mechanism (Phi-4 $\rightarrow$ GPT-OSS, k=5) achieves an EM of 0.55 $\pm$ 0.04, the best result obtained, with 45.4% of questions rerouted. Finally, we show that V3 prompt engineering applied to other models does not reproduce the gains observed with Gemma-4, confirming the specific prompt/model interaction. The entire system runs in $\sim$5 h on a single RTX 3090, without any training, for an estimated carbon footprint of 0.09 kg CO2 eq.
Alex: That assembly line makes sense for dividing work. What makes the relation-finding step reliable enough for that F1 score?
Sam: A big part comes from careful instructions, or what they term prompt engineering. They give the model a full list of 96 specific connection types from a standard like DocRED's Wikidata, and ban guesses like "no relation" to force decisions. They also add rules grouped by topic, say for family ties or locations. Then, to handle the model's word choices, they use flexible matching: it checks for synonyms in 25 meaning clusters, like treating "spouse" and "married to" the same. This softens the judgment so close-enough answers count right. Without these tweaks, the same Gemma model scores just 0.04 F1 raw—prompts alone boost it over 17 times to 0.70.
Alex: Huh, so the instructions and synonym flexibility turn a weak performer into something competitive. And that beats zero-shot cloud models like GPT-3 at around 30%?
Sam: Yes, the paper shows SYNSYNTH at 70% F1 zero-shot on consumer hardware, topping those cloud baselines while supervised methods like DREEAM hit 80% but need multi-GPU training. High precision means few wrong links, though recall lags a bit on misses.
Alex: Okay, so text-to-query works reliably for chaining facts in the graph. But how does the full system do on actually answering those multi-step questions, like on HotpotQA?
Sam: On 500 HotpotQA samples, the baseline pipeline hits an exact match score of 0.46, meaning full answers match perfectly about 46% of the time. This confirms it handles multi-hop reasoning by chaining relations effectively. RAGAS checks further: faithfulness at 0.96 means answers stick closely to graph facts, with just 4% hallucination risk.
Alex: Right, so it's faithful to the graph but not perfect on exact answers. They mention self-consistency and the cascade helping close that gap—what's the effect there?
Sam: Those boost exact match to 0.55 by rerouting uncertain cases. The paper maps out a trade-off between performance and cost across setups on the full 500 questions—what they call a Pareto frontier. The confidence cascade edges ahead to 0.55—best overall—with just two models and modest memory use.
Alex: So voting flops where you'd expect gains. Why does too much agreement hurt more than help?
Sam: When a single model generates multiple answers with some randomness—like varying word choices or reasoning paths—high agreement across them often means they're all confidently wrong together, echoing shared blind spots in the model's training. Medium agreement, around 40 to 80 percent match, proves more reliable because the differences reveal useful variety the model can vote on productively. This mirrors human groupthink, where uniform opinions signal bias over truth; the paper terms it the agreement paradox.
Alex: Huh. Like friends all picking the same wrong trivia answer from the same rumor. And self-consistency on those 181 tough ones?
Sam: Sampling five answers per model at a mild randomness level boosts scores notably—yet still trails cross-model oracles that hit 46 percent by blending types.
Alex: That tight variance across runs really underscores the method's reliability. But no approach is without limits—what are the main caveats here?
Sam: The paper openly notes several. Sample sizes for text-to-query and RAG evaluations are modest at 200 and 50, leading to wider uncertainty ranges. More critically, much of that data is synthetic—mostly generated by the models themselves—which risks circular bias where performance looks better because the test matches the training style. Exactly 68% of the hardest 181 multi-hop cases stay unsolvable across even larger models, mainly due to knowledge gaps on obscure facts—over half—or numerical reasoning like exact dates and counts.
Alex: A grounded step toward frugal, verifiable AI reasoning without clouds. Thanks for breaking it down, Sam. Thanks for listening to ResearchPod.