Journal Article
Large Language Models

Structured information extraction from scientific text with large language models

John M. Dagdelen(Lawrence Berkeley National Laboratory), Alexander Dunn(Lawrence Berkeley National Laboratory), Sang‐Hoon Lee(Lawrence Berkeley National Laboratory), Nicholas Walker(Lawrence Berkeley National Laboratory), Andrew Rosen(Lawrence Berkeley National Laboratory), Gerbrand Ceder(Lawrence Berkeley National Laboratory), Kristin Aslaug Persson(Lawrence Berkeley National Laboratory), Anubhav Jain(Lawrence Berkeley National Laboratory)
February 15, 2024Nature Communications756 citations

756

Citations

0

Influential Citations

Nature Communications

Venue

2024

Year

Abstract

Extracting structured knowledge from scientific text remains a challenging task for machine learning models. Here, we present a simple approach to joint named entity recognition and relation extraction and demonstrate how pretrained large language models (GPT-3, Llama-2) can be fine-tuned to extract useful records of complex scientific knowledge. We test three representative tasks in materials chemistry: linking dopants and host materials, cataloging metal-organic frameworks, and general composition/phase/morphology/application information extraction. Records are extracted from single sentences or entire paragraphs, and the output can be returned as simple English sentences or a more structured format such as a list of JSON objects. This approach represents a simple, accessible, and highly flexible route to obtaining large databases of structured specialized scientific knowledge extracted from research papers.

Analysis

Why This Paper Matters

Extracting structured knowledge from scientific text is a long-standing challenge in machine learning and natural language processing. Traditional approaches to named entity recognition and relation extraction often require complex, task-specific pipelines and extensive feature engineering. This paper demonstrates that pretrained large language models, when fine-tuned, can perform joint named entity recognition and relation extraction in a simple and unified manner, achieving useful structured extraction from scientific text in materials chemistry.

The significance lies in the accessibility and flexibility of the approach. By leveraging models like GPT-3 and Llama-2, the authors show that practitioners can obtain structured records—such as lists of JSON objects—from research papers without building elaborate custom architectures. This lowers the barrier to entry for domain scientists who wish to construct large databases of specialized knowledge, potentially accelerating research in materials science and beyond.

Moreover, the paper's focus on practical extraction tasks—linking dopants and host materials, cataloging metal-organic frameworks, and extracting composition/phase/morphology/application information—highlights the immediate utility of LLMs for real-world scientific knowledge management. As the volume of scientific literature continues to grow, such automated extraction methods become increasingly essential.

Technical Contributions

  • Joint NER and Relation Extraction: The authors propose a simple approach that jointly performs named entity recognition and relation extraction using a single fine-tuned LLM, avoiding the need for separate models or complex pipelines.
  • Fine-tuning of Pretrained LLMs: They demonstrate that both GPT-3 and Llama-2 can be fine-tuned for scientific information extraction, showing the versatility of different LLM families.
  • Flexible Output Formats: The method can return extracted information as simple English sentences or as structured JSON objects, accommodating different downstream use cases.
  • Paragraph-Level Extraction: Unlike many approaches limited to sentence-level processing, this method can extract records from entire paragraphs, capturing more context and enabling richer information extraction.
  • Domain-Specific Application: The approach is validated on three representative tasks in materials chemistry, demonstrating its applicability to specialized scientific domains.

Results

The paper reports that fine-tuned LLMs successfully extract structured records from scientific text in materials chemistry. The authors demonstrate extraction from both single sentences and entire paragraphs, with outputs formatted as English sentences or JSON objects. While the abstract does not provide quantitative metrics such as precision, recall, or F1 scores, the qualitative results indicate that the approach is effective for the three tested tasks. The ability to handle paragraph-level input and produce structured JSON output is a notable practical advantage. The paper emphasizes the simplicity, accessibility, and flexibility of the method rather than benchmarking against state-of-the-art extraction systems.

Significance

This work has broader implications for the AI and scientific communities. It shows that large language models can be effectively fine-tuned for structured information extraction in specialized domains, reducing the need for bespoke NLP pipelines. The approach is highly accessible, enabling domain experts to build large-scale structured knowledge bases from scientific literature. This could accelerate discovery in materials science and other fields by making vast amounts of published knowledge machine-readable and queryable. Furthermore, the demonstrated flexibility in output formats and input granularity suggests that similar methods could be adapted to other scientific disciplines, paving the way for more automated and scalable knowledge extraction from text.