TL;DR
The authors introduce SynthKG, a pipeline that uses large language models (LLMs) to generate high-quality synthetic training data for building Knowledge Graphs (KGs) from text. By distilling this complex, multi-step process into a smaller 8-billion parameter model (Distill-SynthKG), they achieve KG construction quality that surpasses models eight times its size, reducing inference costs to just 3% of the original pipeline.
What Problem Does This Paper Address?
Knowledge Graphs are becoming essential for "GraphRAG"—a technique that combines retrieval-augmented generation with structured data to improve reasoning and summarization. However, building these graphs at scale presents a "Goldilocks" problem:
- Large models (like GPT-4o) are accurate but prohibitively expensive for processing massive document corpora.
- Small models are cheap but produce "noisy," incomplete, or inconsistent graphs because they haven't been specifically trained on document-to-KG tasks.
The authors argue that this isn't a lack of model capability, but a data gap. There simply aren't enough high-quality, large-scale datasets of documents paired with their corresponding "ontology-free" (open-schema) knowledge graphs to train smaller models effectively.
Methods
The researchers developed a two-phase approach to bridge this data gap and streamline KG generation.
- SynthKG (The Teacher): A multi-step pipeline that uses a powerful model (Llama-3.1-70B) to create a "gold standard" dataset. It involves:
- Systematic Chunking: Breaking long documents into manageable pieces.
- Decontextualization: A clever step where the LLM rewrites chunks to resolve pronouns (e.g., changing "he" to "John Doe") based on previous context, making each chunk self-contained.
- Structured Extraction: Extracting entities, relations, and—crucially—propositions (full-sentence factual statements).
- Distill-SynthKG (The Student): They fine-tuned a Llama-3-8B model on 30,000 of these high-quality document-KG pairs. This allows the smaller model to perform the entire complex extraction process in a single forward pass, bypassing the expensive multi-step pipeline.
- Proposition-Entity Graph Retriever: They propose a new RAG framework that treats "propositions" as primary nodes in a bipartite graph. This provides more semantic context than raw (subject, predicate, object) triplets during retrieval.
Datasets
- Training: The authors synthesized a new dataset of 100,000 document-KG pairs using documents from the IndustryCorpus (covering politics, medicine, tech, etc.). They plan to release this publicly.
- Evaluation: They repurposed three existing multi-hop Question Answering (QA) datasets—MuSiQue, 2WikiMultiHopQA, and HotpotQA—into KG benchmarks by converting the questions and answers into ground-truth relation triplets.
Key Insights and Ideas
- The "Data over Scale" Hypothesis: The most striking insight is that a specialized 8B model can outperform a general-purpose 70B model. This suggests that for structured extraction, high-quality synthetic data is a more powerful lever than raw parameter count.
- Decontextualization is Critical: Standard chunking often breaks the "chain of thought" in a document. By explicitly rewriting chunks to be self-contained before extraction, the authors ensured the resulting KG was globally consistent rather than a collection of fragmented local graphs.
- Propositions as the "Missing Link": Traditional KGs use sparse triplets which are hard for embedding models to "understand." By including full-sentence propositions as nodes, the authors created a graph that is much easier for RAG systems to navigate and retrieve from.
Key Results
- Superior Quality: The distilled 8B model (D-SynthKG-8b) achieved higher "Triplet Coverage" and F1 scores than the Llama-3-70B baseline across all datasets.
- Massive Efficiency: Processing a 1,000-word document originally required 12 LLM calls in the SynthKG pipeline. The distilled model does it in one, representing a 97% reduction in inference cost.
- RAG Performance: In retrieval tasks, the proposed framework improved Hits@2 (the probability that the correct info is in the top 2 results) by an average of 28.27 points over pre-trained models. It even performed comparably to (and sometimes better than) GPT-4o-based RAG systems.
Limitations and Future Work
- Cross-Page Dependencies: The current chunking strategy (fixed at 1K tokens) might still struggle with very long-range dependencies that span dozens of pages, as the decontextualization only looks at the immediately preceding chunk.
- Teacher Dependency: The quality of the distilled model is ultimately capped by the "teacher" model (Llama-70B/GPT-4o) used to generate the synthetic data.
- Ontology-Free Constraints: While "ontology-free" extraction is flexible, it can lead to "synonym bloat" (e.g., having separate nodes for "United States" and "USA"). Future work could involve integrating entity resolution directly into the distillation process.
Summary updated