Qianxiang Ai, Fanwang Meng, Jiale Shi, Brenden Pelkie and Connor W. Coley
{"title":"使用微调大语言模型从有机合成程序中提取结构化数据","authors":"Qianxiang Ai, Fanwang Meng, Jiale Shi, Brenden Pelkie and Connor W. Coley","doi":"10.1039/D4DD00091A","DOIUrl":null,"url":null,"abstract":"<p >The popularity of data-driven approaches and machine learning (ML) techniques in the field of organic chemistry and its various subfields has increased the value of structured reaction data. Most data in chemistry is represented by unstructured text, and despite the vastness of the organic chemistry literature (papers, patents), manual conversion from unstructured text to structured data remains a largely manual endeavor. Software tools for this task would facilitate downstream applications such as reaction prediction and condition recommendation. In this study, we fine-tune a large language model (LLM) to extract reaction information from organic synthesis procedure text into structured data following the Open Reaction Database (ORD) schema, a comprehensive data structure designed for organic reactions. The fine-tuned model produces syntactically correct ORD records with an average accuracy of 91.25% for ORD “messages” (<em>e.g.</em>, full compound, workups, or condition definitions) and 92.25% for individual data fields (<em>e.g.</em>, compound identifiers, mass quantities), with the ability to recognize compound-referencing tokens and to infer reaction roles. We investigate its failure modes and evaluate performance on specific subtasks such as reaction role classification.</p>","PeriodicalId":72816,"journal":{"name":"Digital discovery","volume":" 9","pages":" 1822-1831"},"PeriodicalIF":6.2000,"publicationDate":"2024-07-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://pubs.rsc.org/en/content/articlepdf/2024/dd/d4dd00091a?page=search","citationCount":"0","resultStr":"{\"title\":\"Extracting structured data from organic synthesis procedures using a fine-tuned large language model†\",\"authors\":\"Qianxiang Ai, Fanwang Meng, Jiale Shi, Brenden Pelkie and Connor W. Coley\",\"doi\":\"10.1039/D4DD00091A\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p >The popularity of data-driven approaches and machine learning (ML) techniques in the field of organic chemistry and its various subfields has increased the value of structured reaction data. Most data in chemistry is represented by unstructured text, and despite the vastness of the organic chemistry literature (papers, patents), manual conversion from unstructured text to structured data remains a largely manual endeavor. Software tools for this task would facilitate downstream applications such as reaction prediction and condition recommendation. In this study, we fine-tune a large language model (LLM) to extract reaction information from organic synthesis procedure text into structured data following the Open Reaction Database (ORD) schema, a comprehensive data structure designed for organic reactions. The fine-tuned model produces syntactically correct ORD records with an average accuracy of 91.25% for ORD “messages” (<em>e.g.</em>, full compound, workups, or condition definitions) and 92.25% for individual data fields (<em>e.g.</em>, compound identifiers, mass quantities), with the ability to recognize compound-referencing tokens and to infer reaction roles. We investigate its failure modes and evaluate performance on specific subtasks such as reaction role classification.</p>\",\"PeriodicalId\":72816,\"journal\":{\"name\":\"Digital discovery\",\"volume\":\" 9\",\"pages\":\" 1822-1831\"},\"PeriodicalIF\":6.2000,\"publicationDate\":\"2024-07-31\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://pubs.rsc.org/en/content/articlepdf/2024/dd/d4dd00091a?page=search\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Digital discovery\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://pubs.rsc.org/en/content/articlelanding/2024/dd/d4dd00091a\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"CHEMISTRY, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Digital discovery","FirstCategoryId":"1085","ListUrlMain":"https://pubs.rsc.org/en/content/articlelanding/2024/dd/d4dd00091a","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CHEMISTRY, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
摘要
数据驱动方法和机器学习(ML)技术在有机化学领域及其各个子领域的普及提高了结构化反应数据的价值。化学领域的大多数数据都是非结构化文本,而且由于有机化学文献(论文、专利)浩如烟海,从非结构化文本到结构化数据的手动转换仍然主要是人工操作。完成这项任务的软件工具将有助于下游应用,如反应预测和条件推荐。在本研究中,我们利用经过微调的大型语言模型(LLMs)的强大功能,按照开放反应数据库(ORD)模式从有机合成过程文本中提取反应信息,并将其转换为结构化数据,这是一种专为有机反应设计的综合数据结构。经过微调的模型能生成语法正确的 ORD 记录,对 ORD "信息"(如完整的化合物、工作步骤或条件定义)的平均准确率为 91.25%,对单个数据字段(如化合物标识符、质量数)的平均准确率为 92.25%,并能识别化合物参考标记和推断反应作用。我们对其故障模式进行了研究,并对特定子任务(如反应角色分类)的性能进行了评估。
Extracting structured data from organic synthesis procedures using a fine-tuned large language model†
The popularity of data-driven approaches and machine learning (ML) techniques in the field of organic chemistry and its various subfields has increased the value of structured reaction data. Most data in chemistry is represented by unstructured text, and despite the vastness of the organic chemistry literature (papers, patents), manual conversion from unstructured text to structured data remains a largely manual endeavor. Software tools for this task would facilitate downstream applications such as reaction prediction and condition recommendation. In this study, we fine-tune a large language model (LLM) to extract reaction information from organic synthesis procedure text into structured data following the Open Reaction Database (ORD) schema, a comprehensive data structure designed for organic reactions. The fine-tuned model produces syntactically correct ORD records with an average accuracy of 91.25% for ORD “messages” (e.g., full compound, workups, or condition definitions) and 92.25% for individual data fields (e.g., compound identifiers, mass quantities), with the ability to recognize compound-referencing tokens and to infer reaction roles. We investigate its failure modes and evaluate performance on specific subtasks such as reaction role classification.