TL;DR
The authors introduce MedKGent, an LLM agent framework that constructs a massive, temporally evolving medical Knowledge Graph (KG) from over 10 million PubMed abstracts spanning 1975 to 2023. By utilizing specialized agents for extraction and incremental graph construction, MedKGent effectively tracks how medical knowledge accumulates, reinforces, and conflicts over time, resulting in the largest LLM-derived medical KG to date that significantly boosts medical RAG performance.
What Problem Does This Paper Address?
The explosion of medical literature makes it incredibly difficult for researchers and clinicians to keep up with new discoveries, let alone reconcile conflicting evidence. While Knowledge Graphs (KGs) help structure this unstructured text into machine-readable "triples" (Subject-Predicate-Object), traditional construction methods fall short. They are typically static, ignore when a paper was published, and fail to capture the dynamic nature of medical science—where new evidence constantly refines, reinforces, or contradicts old findings.
Furthermore, existing LLM-based KG construction methods rarely estimate confidence or handle temporal progression, often resulting in a rigid, brittle snapshot of knowledge rather than a living, evolving representation.
Methods
MedKGent solves this by using a multi-agent framework built on the open-source Qwen2.5-32B-Instruct model, processing literature sequentially as a daily time series. The framework splits the workload into two specialized agents:
- The Extractor Agent: Instead of forcing the LLM to do everything at once, entity extraction is decoupled. It first uses
PubTator3(a specialized biomedical tool) to identify and normalize entities across six categories (e.g., Genes, Diseases, Chemicals). The LLM then focuses purely on inferring relationships between these entities based on 12 core biomedical relation types. To ensure reliability, it uses a sampling-based confidence estimation strategy: it runs 50 parallel stochastic inferences per prompt, filtering out any triples that appear in less than 60% of the outputs. - The Constructor Agent: This agent incrementally integrates the high-confidence triples into a
Neo4jgraph database. If a piece of knowledge is re-encountered in a later paper, a mathematical enhancement function monotonically increases its confidence score. If a new triple contradicts an existing one (same entities, different relation), the agent prompts the LLM to resolve the conflict by weighing their respective confidence scores and timestamps.
Datasets
- Source Corpus: 10,014,314 PubMed abstracts published between January 1, 1975, and December 31, 2023, filtered for quality and length (100–300 words).
- Downstream Evaluation Benchmarks: Seven medical question-answering datasets were used to test the KG's utility in Retrieval-Augmented Generation (RAG):
- Standard benchmarks:
MMLU-Med,MedQA-US,PubMedQA*, andBioASQ-Y/N. - Differential diagnosis benchmarks:
MedDDx-Basic,MedDDx-Intermediate, andMedDDx-Expert. - Baseline KG:
SemMedDBwas used as the standard biomedical KG baseline for comparison.
Key Insights and Ideas
- Decoupling is Key: Separating entity normalization (via PubTator3) from relation extraction (via LLM) drastically reduces the cognitive load on the language model, leading to cleaner, more accurate graph nodes.
- Knowledge as a Stream: By treating the literature as a chronological daily stream rather than a static corpus, the graph naturally mimics the real-world scientific process—allowing facts to grow stronger with replication or get replaced when superior counter-evidence emerges.
- Self-Consistency as Confidence: Utilizing parallel LLM sampling runs acts as an effective, automated proxy for epistemic uncertainty, successfully weeding out hallucinations before they ever hit the database.
Key Results
- Scale: The resulting graph contains 156,275 nodes and 2,971,384 distinct triples, making it the largest LLM-derived medical knowledge graph to date.
- High Accuracy: Both automated evaluations (via GPT-4.1 and DeepSeek-v3) and manual blind reviews by PhD-level medical experts showed triple-validity rates approaching 90%, with strong inter-rater agreement (Cohen's kappa > 0.6).
- RAG Performance Boost: Integrating MedKGent-KG into RAG pipelines across five leading LLMs (including GPT-4-turbo and DeepSeek-v3) consistently outperformed both direct answering and SemMedDB-based RAG. For instance, it boosted
MedQA-USaccuracy by up to 8.4 percentage points over direct answering.
Limitations and Future Work
The primary limitation is the abstract-first design. While abstracts are information-dense and highly scalable, they lack the granular details found in full-text bodies, tables, and figures (such as specific drug dosages or clinical trial subgroup demographics).
Moving forward, the authors plan three major extensions:
- Ingesting full-text articles from PubMed Central (PMC), which will require specialized HTML/PDF parsers capable of section-aware extraction.
- Aligning the graph with real-world clinical terminologies (like SNOMED CT, RxNorm, and LOINC) to enable integration with Electronic Health Records (EHR).
- Conducting dedicated, quantitative drug-repurposing experiments to validate the graph's predictive utility.
Summary updated