Question Answering models for information extraction from perovskite materials science literature

Miikka Sipilä, Farrokh Mehryary, Sampo Pyysalo, Filip Ginter, Milica Todorović

Abstract

Scientific text is a promising source of data in materials science, with ongoing research into utilising textual data for materials discovery. In this study, we developed and tested a Question Answering (QA) approach to extract material-property relationships from scientific publications. QA performance was evaluated for information extraction of perovskite bandgaps based on a human query. We observed considerable variation in results with five different large language models fine-tuned for the QA task. Best extraction accuracy was achieved with the QA MatSciBERT and F1-scores improved on the current state-of-the-art. QA also outperformed three latest generative large language models on the information extraction task, except the GPT-4 model. This work demonstrates the QA workflow and paves the way towards further applications. The simplicity and versatility of the QA approach all point to its considerable potential for text-driven discoveries in materials research.

Introduction

The "data bottleneck" remains a significant hurdle in materials discovery. While millions of scientific papers contain valuable experimental results, this data is often trapped in unstructured text. Traditionally, researchers have relied on rule-based systems or complex Named Entity Recognition (NER) and Relation Extraction (RE) pipelines. However, rule-based systems are brittle, and NER/RE requires massive amounts of manually labeled data. While generative Large Language Models (LLMs) show promise, their tendency to "hallucinate" data makes them risky for scientific databases.

This study presents a robust Question Answering (QA) framework designed to mine scientific literature for material-property relationships. By fine-tuning domain-specific BERT models, the researchers successfully extracted thousands of perovskite bandgap values, outperforming traditional tools while significantly reducing hallucination risks.

Methods: Extractive Question Answering

The authors treated information extraction as a Reading Comprehension task. Instead of complex relation extraction, they asked the model a direct question: "What is the numerical value of the bandgap of material X?"

The workflow involved building a corpus of ~238,000 publications and identifying "snippets" (7-sentence windows) where a specific material, the property ("bandgap"), and units ("eV") appeared together. Five "encoder-only" models (BERT, SciBERT, MatBERT, MaterialsBERT, and MatSciBERT) were tested. These models are extractive, meaning they select a span of text already present in the source, virtually eliminating hallucination.

Illustration of the extractive Question Answering (QA) workflow where the model identifies the answer directly from the text snippet.

Key Results and Performance

The study evaluated the models using a "gold standard" set of 600 manually annotated snippets (PV600). The results showed that domain-specific pre-training is essential; MatSciBERT significantly outperformed the base BERT model.

Performance comparison (F1-score, Precision, and Recall) of various fine-tuned BERT models against the rule-based baseline (CDE2) across different confidence thresholds.

Key findings include:

  • Top Performer: QA MatSciBERT achieved the best F1-score (61.3) among extractive models.
  • Beating the Baseline: All five QA models outperformed the state-of-the-art rule-based tool, ChemDataExtractor2 (F1 = 45.6).
  • Hallucination Control: Because BERT-style models are extractive, they had a hallucination count of zero, whereas generative models like Llama3 and Mixtral hallucinated dozens of values in the same test set.
  • LLM Comparison: QA MatSciBERT outperformed Mixtral-8, Llama3, and GPT-3.5. Only GPT-4 achieved a higher F1-score (68.6), though it is closed-source and computationally expensive.

Discussion and Future Outlook

The QA approach offers significant advantages in versatility; the same model can be used to query different properties simply by changing the question. Furthermore, the use of multi-sentence snippets allowed the model to capture relationships where the material and property value were in different sentences—a scenario found in ~60% of cases.

However, limitations remain. The system still relies on keyword-based snippet generation and struggles with data in tables or figures. Future work will focus on handling complex experimental conditions and integrating multi-modal data extraction.

Reference: Sipilä, M., et al. (2025). Question Answering models for information extraction from perovskite materials science literature. Communications Materials, 6:260. https://doi.org/10.1038/s43246-025-00979-w

Summary updated

BibTeX
@inproceedings{sipila2025question,
  author = {Miikka Sipilä and Farrokh Mehryary and Sampo Pyysalo and Filip Ginter and Milica Todorović},
  title = {{Question Answering models for information extraction from perovskite materials science literature}},
  booktitle = {Communications},
  year = {2025},
  doi = {10.1038/s43246-025-00979-w},
}
Figure