TL;DR
This paper introduces eolas, a modular pipeline that leverages Large Language Models (LLMs) to automatically transform unstructured scientific text into fully connected knowledge graphs aligned with a domain-specific ontology. Applied to the challenging field of irradiated materials for nuclear fusion reactors, eolas cuts data extraction time from hours to minutes and introduces the first specialized benchmark dataset to systematically evaluate LLM-driven knowledge graph construction.
What Problem Does This Paper Address?
Designing materials capable of enduring the extreme temperatures and radiation inside a nuclear fusion reactor requires a deep understanding of atomic-scale defects (such as vacancies and interstitials, illustrated below).
Decades of simulation and experimental data detailing defect properties (like formation and migration energies) are trapped inside thousands of scientific papers as unstructured text and tables. Manually extracting this data is a grueling process, taking an expert 30 to 90 minutes per article.
While LLMs are increasingly used to automate data extraction, standard methods usually output simple, flat key-value pairs (like JSON objects). They struggle to capture the highly interconnected, multi-entity relationships common in complex scientific workflows without violating domain-specific rules and constraints.
Methods
The authors developed eolas (the Irish word for "knowledge"), a domain-agnostic, schema-driven pipeline that guides LLMs to build structured knowledge graphs directly from text.
The pipeline consists of six key steps:
- Ingestion & Pre-processing: Converts PDFs and parses document structures (sentences, paragraphs, tables) using tools like Docling and Deep Search.
- Filtering: Screens out irrelevant passages using lightweight, schema-driven heuristics to save compute costs.
- Annotation: Identifies named entities using dictionaries or zero-shot entity recognizers.
- Merging Annotations: Resolves ambiguities and removes duplicate entity tags.
- Knowledge Graph Extraction: Feeds the text and the target ontology schema into an LLM. The authors tested three distinct ways to serialize the ontology for the model: Turtle (TTL) triples, BAML (a compact type-definition language), and a simple text verbalization (VERB).
- Consolidation Heuristics: A critical post-processing step that uses fuzzy string matching (RapidFuzz) to merge duplicate nodes and applies semantic rules to prune hallucinations that violate the ontology's structure.
Datasets
To evaluate how well different LLMs follow complex schemas, the authors introduced the first benchmark dataset for knowledge graph extraction in the irradiated materials domain.
- The Core Dataset: Compiled by a team of five domain experts and three researchers, it contains 126 text passages extracted from five foundational materials science papers.
- Ground Truth: Each passage is meticulously paired with a human-validated, gold-standard knowledge graph.
- Train/Test Split: 15 passages are set aside as high-quality examples for few-shot prompting, leaving 111 passages strictly for evaluation.
- The Schema: The final ontology comprises 14 classes, 111 instances, 13 object properties, and 25 data properties, yielding 1,314 total triples across the dataset.
Key Insights and Ideas
- Few-Shot Prompting is Essential: Providing just a few high-quality examples of input text paired with its corresponding graph structure yielded up to a 200% improvement over zero-shot prompting. High-quality structural examples act as a far stronger inductive signal for LLMs than long, dry lists of dictionary instances.
- Ontology Serialization Matters: In zero-shot settings, presenting the ontology schema via BAML (a clean, programmer-friendly syntax) significantly outperformed standard semantic web formats like Turtle (TTL). However, when few-shot examples were available, TTL combined with highly detailed instructions took the lead.
- Ontologies as Guardrails: The formal axioms of an ontology function as automated quality control. By checking LLM outputs against domain/range constraints and functional properties (e.g., enforcing that a defect node can only have one specific type), the pipeline successfully flags and filters out structural hallucinations.
Key Results
The authors ran 168 experimental configurations across six open and commercial LLMs (including variants of GPT, Llama, Granite, and Mistral). To evaluate the models strictly, they used a Normalized Graph Edit Distance (NGED) metric, which measures the cost of turning the predicted graph into the human-validated ground truth.
- Strict Evaluation (NGED* = 0.1): The best zero-shot model achieved only a 15.3% success rate. Introducing few-shot examples boosted the top performance to 45.9% (using LLAMA_3).
- Moderate Evaluation (NGED* = 0.2): When allowing a minor tolerance for formatting variations, the top few-shot configuration (GPT_120) achieved a remarkable 67.6% success rate.
- Efficiency Gains: While a human expert spends up to an hour and a half parsing an article, eolas generates high-quality knowledge graphs in minutes. These are served to researchers via an intuitive tabular interface with faceted navigation for rapid human verification.
Limitations and Future Work
A primary limitation stems from the evaluation metric itself: the Graph Edit Distance relies on exact string matching. This means the pipeline penalizes an LLM for extracting valid synonyms, approximations, or even extra, factually correct information that happened to be missing from the human-curated ground truth.
Additionally, while eolas excels at extracting knowledge from individual paragraphs, seamlessly merging these localized sub-graphs into a single, coherent document-level or cross-document knowledge graph remains an open challenge. The authors point to interactive, multi-agent LLM systems as a promising next step to tackle cross-paragraph consolidation.
Summary updated