Knowledge Graph Extraction from Total Synthesis Documents

Andres M Bran, Zlatko Jončev, Philippe SchwallerAI4Science @ ICML 2024

Abstract

Knowledge graphs (KGs) have emerged as a powerful tool for organizing and integrating complex scientific information. However, translating scientific knowledge into KGs is challenging due to the diverse styles and elements used in data presentation. Existing benchmarks for KG extraction (KGE) often lack a focus on scientific information and suffer from ambiguity in ground-truth representations. We propose the Graph of Organic Synthesis Benchmark (GOSyBench), which leverages the native KG-like structure of synthetic routes in organic chemistry. We evaluate KGE algorithms based on Large Language Models (LLMs) and Vision-Language Models (VLMs), finding that while GPT-4o reaches 73% recovery accuracy, significant room for improvement remains in precision.

Introduction

Scientific knowledge is currently trapped in unstructured formats—primarily PDFs filled with domain-specific jargon, varied formatting, and complex diagrams. While Knowledge Graphs (KGs) offer a way to organize this data into machine-readable networks of entities and relations, extracting them automatically (Knowledge Graph Extraction, or KGE) is notoriously difficult.

Organic chemistry serves as an ideal testbed for this task because synthetic routes possess a "native" graph structure: chemical substances (nodes) are transformed into other substances via reactions (edges). However, information in "total synthesis" papers is often spread across text, tables, and supporting information (SI) files, making reconstruction a non-trivial conversion.

The GOSyBench Dataset

The core contribution of this research is GOSyBench, the first benchmark specifically designed to evaluate how well AI can extract complex knowledge graphs from full organic chemistry papers. Unlike previous datasets that focus on isolated, short sentences, GOSyBench captures the entire synthetic strategy of a research project.

  • Source: 24 manually curated "Total Synthesis" papers from the Journal of the American Chemical Society (JACS).
  • Scale: The dataset includes 1,041 synthetic products.
  • Complexity: The mean longest synthetic path is approximately 19.6 steps, with some routes extending up to 33 steps.
Summary statistics of the GOSyBench dataset, showing the distribution of products, targets, and path lengths.

Methodology

The researchers developed a multi-stage pipeline to transform raw PDFs into structured KG representations:

  1. Preprocessing: A rule-based method identifies "Experimental Methods" sections by detecting high densities of special characters (e.g., NMR data).
  2. Parsing: Two approaches were compared for splitting text into reaction blocks: a rule-based text parser and a vision-based approach using GPT-4o to interpret the document layout.
  3. Extraction: An LLM identifies the product, reactants, and their specific roles within each reaction block.
  4. Graph Wiring: Individual reactions are stitched together into a "backbone" graph based on shared substance keys.
The KG extraction algorithm pipeline, illustrating the transition from PDF to a systematic KG representation.

Evaluation is conducted using a path recovery metric. Instead of merely checking if individual nodes are correct, this metric measures whether the AI correctly reconstructed the sequence of the synthesis, which is critical for chemical utility.

Key Results and Insights

The evaluation of state-of-the-art models like GPT-4o, Claude, and Mistral yielded several significant findings:

  • The Precision Gap: The top-performing model (GPT-4o) achieved a 73% recovery accuracy but only 59% precision. This indicates that models are "noisy"—they find most real synthetic steps but frequently "hallucinate" extra nodes and edges.
  • Model "Honesty": Smaller models (e.g., Mistral-7b, GPT-3.5) were surprisingly better at rejecting incorrect inputs. When presented with non-reaction text, they tended to error out, whereas larger models like GPT-4 often attempted to be "helpful" by hallucinating chemical entities.
  • Vision vs. Text: Despite the visual nature of chemistry, vision-based parsing (VLMs) did not provide a massive leap in performance over optimized text-based parsing, suggesting that the primary bottleneck is the extraction logic rather than document layout interpretation.

Conclusion and Future Work

GOSyBench serves as a valuable resource for advancing KGE methods in the scientific domain. Current results highlight that while AI is increasingly capable of tracing synthetic routes, significant challenges remain in precision and handling non-standardized naming schemes. Future work should focus on integrating SMILES strings for unique molecule identification, developing better hallucination filters, and expanding the ontology to include reaction yields and conditions.

Summary updated

BibTeX
@inproceedings{bran2024knowledge,
  author = {Andres M Bran and Zlatko Jončev and Philippe Schwaller},
  title = {{Knowledge Graph Extraction from Total Synthesis Documents}},
  booktitle = {AI4Science @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=KDWLjtoJqc},
}
Figure