Extracting Accurate Materials Data from Research Papers with Conversational Language Models and Prompt Engineering (2303.05352v3)
Abstract: There has been a growing effort to replace manual extraction of data from research papers with automated data extraction based on natural language processing, LLMs, and recently, LLMs. Although these methods enable efficient extraction of data from large sets of research papers, they require a significant amount of up-front effort, expertise, and coding. In this work we propose the ChatExtract method that can fully automate very accurate data extraction with minimal initial effort and background, using an advanced conversational LLM. ChatExtract consists of a set of engineered prompts applied to a conversational LLM that both identify sentences with data, extract that data, and assure the data's correctness through a series of follow-up questions. These follow-up questions largely overcome known issues with LLMs providing factually inaccurate responses. ChatExtract can be applied with any conversational LLMs and yields very high quality data extraction. In tests on materials data we find precision and recall both close to 90% from the best conversational LLMs, like ChatGPT-4. We demonstrate that the exceptional performance is enabled by the information retention in a conversational model combined with purposeful redundancy and introducing uncertainty through follow-up prompts. These results suggest that approaches similar to ChatExtract, due to their simplicity, transferability, and accuracy are likely to become powerful tools for data extraction in the near future. Finally, databases for critical cooling rates of metallic glasses and yield strengths of high entropy alloys are developed using ChatExtract.
- M. C. Swain and J. M. Cole, Chemdataextractor: A toolkit for automated extraction of chemical information from the scientific literature, Journal of Chemical Information and Modeling 56, 1894 (2016).
- C. Court and J. Cole, Magnetic and superconducting phase diagrams and transition temperatures predicted using text mining and machine learning, npj Comput Mater 6, 18 (2020).
- P. Kumar, S. Kabra, and J. Cole, Auto-generating databases of yield strength and grain size using chemdataextractor, Sci Data 9, 292 (2022).
- O. Sierepeklis and J. Cole, A thermoelectric materials database auto-generated from the scientific literature using chemdataextractor, Sci Data 9, 648 (2022).
- J. Zhao and J. M. Cole, Reconstructing chromatic-dispersion relations and predicting refractive indices using text mining and machine learning, Journal of Chemical Information and Modeling 62, 2670 (2022a).
- J. Zhao and J. Cole, A database of refractive indices and dielectric constants auto-generated using chemdataextractor, Sci Data 9, 192 (2022b).
- E. Beard and J. Cole, Perovskite- and dye-sensitized solar-cell device databases auto-generated using chemdataextractor, Sci Data 9, 329 (2022).
- Q. Dong and J. Cole, Auto-generated database of semiconductor band gaps using chemdataextractor, Sci Data 9, 193 (2022).
- J. E. Saal, A. O. Oliynyk, and B. Meredig, Machine learning in materials discovery: Confirmed predictions and their underlying approaches, Annual Review of Materials Research 50, 49 (2020).
- D. Morgan and R. Jacobs, Opportunities and challenges for machine learning in materials science, Annual Review of Materials Research 50, 71 (2020).
- J. Zhao and J. M. Cole, Reconstructing chromatic-dispersion relations and predicting refractive indices using text mining and machine learning, Journal of Chemical Information and Modeling 62, 2670 (2022c).
- Midjourney, https://www.midjourney.com, [Online; accessed 08-Feb-2023].
- M. P. Polak and D. Morgan, Extracting accurate materials data from research papers with conversational language models and prompt engineering, (2023a), arXiv:2303.05352 .
- M. P. Polak and D. Morgan, Datasets and Supporting Information to the paper entitled ’Using conversational AI to automatically extract data from research papers - example of ChatGPT’ 10.6084/m9.figshare.22213747 (2023b).