Skip to main content
QUICK REVIEW

[Paper Review] Structured information extraction from complex scientific text with fine-tuned large language models

Alexander Dunn, John Dagdelen|arXiv (Cornell University)|Dec 10, 2022
Machine Learning in Materials ScienceMaterials Science65 citations
TL;DR

The paper introduces a simple seq2seq approach using GPT-3 fine-tuned on ~500 prompt–completion pairs to perform document-level joint NER and relation extraction for complex hierarchical information in scientific text, enabling structured outputs like JSON from abstracts and passages.

ABSTRACT

Intelligently extracting and linking complex scientific information from unstructured text is a challenging endeavor particularly for those inexperienced with natural language processing. Here, we present a simple sequence-to-sequence approach to joint named entity recognition and relation extraction for complex hierarchical information in scientific text. The approach leverages a pre-trained large language model (LLM), GPT-3, that is fine-tuned on approximately 500 pairs of prompts (inputs) and completions (outputs). Information is extracted either from single sentences or across sentences in abstracts/passages, and the output can be returned as simple English sentences or a more structured format, such as a list of JSON objects. We demonstrate that LLMs trained in this way are capable of accurately extracting useful records of complex scientific knowledge for three representative tasks in materials chemistry: linking dopants with their host materials, cataloging metal-organic frameworks, and general chemistry/phase/morphology/application information extraction. This approach represents a simple, accessible, and highly-flexible route to obtaining large databases of structured knowledge extracted from unstructured text. An online demo is available at http://www.matscholar.com/info-extraction.

Motivation & Objective

  • Motivate the need to extract and link complex scientific information from unstructured text in materials science.
  • Develop a flexible, end-to-end NERRE approach that handles hierarchical and multi-entity relations.
  • Show that fine-tuning a large language model on structured prompt–completion pairs can yield accurate information extraction across multiple tasks.
  • Demonstrate outputs in both natural English and structured JSON formats for easy integration into databases.

Proposed method

  • Fine-tune GPT-3 on ~100–500 document-completion examples to perform document-level NERRE with a predefined output schema.
  • Use a human-in-the-loop workflow to rapidly expand training data and pre-fill annotations with a partially trained model.
  • Provide outputs as either English sentences or structured JSON (or nested JSON) per task schema.
  • Evaluate with sequence reconstruction metrics (exact match, Jaro-Winkler, parsability) and information extraction metrics (entity triplets with strict word-level matching).
  • Optional post-processing can convert completions into hierarchical knowledge graphs.

Experimental results

Research questions

  • RQ1Can a fine-tuned LLM perform joint named entity recognition and relation extraction on complex, hierarchical scientific information?
  • RQ2How well does the approach generalize to different domains within materials science (doping, MOFs, general materials) using task-specific schemas?
  • RQ3What are the practical gains in annotation efficiency using an in-the-loop training workflow?
  • RQ4What formats best support downstream use (natural language vs JSON vs graph structures) for extracted information?

Key findings

  • The method enables accurate extraction of complex knowledge from abstracts and passages across three materials science tasks: solid-state doping, MOFs, and general materials information.
  • Fine-tuning GPT-3 with ~100–500 prompt–completion examples yields high-quality structured outputs in JSON or English sentences.
  • An in-the-loop annotation approach reduces abstract-level annotation time from ~100 seconds to ~40 seconds per abstract.
  • Compared against seq2rel and MatBERT-based baselines, the LLM-NERRE approach demonstrates robust ability to capture entities and relations in a flexible, schema-driven way.
  • The framework supports downstream decoding into hierarchical graphs and can be used with publicly available APIs for broad accessibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.