Extracting ontology-compliant knowledge from scientific text describing irradiated materials using large language models

Marco Luca Sbodio, Marcos Martínez Galindo, Vanessa Lopez, Blanca Biel, Pablo Canca, Pedro Delgado, Jesús I. Mendieta-Moreno, Raphael Tack, Maria J. CaturlaarXiv 2026

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).

Figure 1: Illustration of some of the most representative defects observed in materials under irradiation conditions: vacancies, where an atom is missing from a lattice site; self-interstitial (SIA) or foreign interstitials, where an atom occupies a site between the perfect crystal lattice sites; Frenkel pair, a vacancy and its corresponding interstitial atom; dumbbells, where two atoms share the same lattice site; or bigger defect structures, such as clusters or grain boundaries.

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:

  1. Ingestion & Pre-processing: Converts PDFs and parses document structures (sentences, paragraphs, tables) using tools like Docling and Deep Search.
  2. Filtering: Screens out irrelevant passages using lightweight, schema-driven heuristics to save compute costs.
  3. Annotation: Identifies named entities using dictionaries or zero-shot entity recognizers.
  4. Merging Annotations: Resolves ambiguities and removes duplicate entity tags.
  5. 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).
  6. 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.
Figure 2: Screenshots of the eolas User Interface. (a) The interface displays the knowledge graph extracted from a document [22] (left) as tabular data (right). This table can be queried and filtered according to user needs. (b) Users can explore extraction results at a finer level by viewing tabular data corresponding to specific text fragments, with an optional visualization of the underlying knowledge graph (c). This semantically-rich knowledge graph captures measurements from multiple defect types, sizes and geometries for a material of interest, extracted from a text passage containing numerous interrelated entities and relations. The visualization shows relations between intermediate entities (grey nodes), the ontology classes they instantiate (pink nodes), and their associated values or leaf entities (blue nodes). These relationships describe: (1) materials and their crystal structure (eg., bcc Iron) (2) measurements (e.g., relaxation volume) for the different defect types and geometries for a given material; and (3) the methodology and parameters used to compute these values (e.g, Molecular Dynamics). The extracted knowledge for that passage is presented into a table ((b) top right), where leaf properties appear as columns and the connected intermediate nodes are represented within the same row. This detailed view allows for more precise analysis and understanding of individual components within the extracted data.

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

Abstract

The quest for new materials increasingly relies on predictive models and comprehensive simulations that span scales from atomic to macroscopic levels. However, essential data necessary for these models and simulations are often embedded in scientific literature as unstructured text, limiting reusability and posing challenges for researchers seeking to leverage existing knowledge effectively. While extracting structured data from unstructured text using large language models is gaining popularity, traditional methods typically generate key-value pairs data with straightforward schemas. In contrast, we introduce eolas, a modular pipeline that uses large language models to automatically transform scientific documents into knowledge graphs aligned with a specified ontology. We demonstrate eolas effectiveness in extracting useful information for scientists studying materials designed to endure the extreme temperatures and radiation levels found in fusion reactors. While a human expert might spend between thirty to ninety minutes extracting relevant data from an article, eolas can generate high-quality knowledge graphs in just a few minutes. These are presented in a tabular format with faceted navigation for easy human validation. Additionally, we introduce the first benchmark dataset designed to assess large language models capabilities in constructing knowledge graphs within the domain of irradiated materials. The analysis of 168 experiments using our dataset, various large language models and prompting techniques provides key insights that we summarize into practical guidelines for effectively extracting knowledge graphs aligned with an input ontology.
BibTeX
@misc{sbodio2026extracting,
  author = {Marco Luca Sbodio and Marcos Martínez Galindo and Vanessa Lopez and Blanca Biel and Pablo Canca and Pedro Delgado and Jesús I. Mendieta-Moreno and Raphael Tack and Maria J. Caturla},
  title = {{Extracting ontology-compliant knowledge from scientific text describing irradiated materials using large language models}},
  year = {2026},
  eprint = {2609.17291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.17291},
}
Figure