Assessment of fine-tuned large language models for real-world chemistry and material science applications
The current generation of large language models (LLMs) has limited chemical knowledge. Recently, it has been shown that these LLMs can learn and predict chemical properties through fine-tuning. Using natural language to train machine learning models opens doors to a wider chemical audience, as field-specific featurization techniques can be omitted. In this work, we explore the potential and limitations of this approach. We studied the performance of fine-tuning three open-source LLMs (GPT-J-6B, Llama-3.1-8B, and Mistral-7B) for a range of different chemical questions. We benchmark their performances against "traditional" machine learning models and find that, in most cases, the fine-tuning approach is superior for a simple classification problem. Depending on the size of the dataset and the type of questions, we also successfully address more sophisticated problems. The most important conclusions of this work are that, for all datasets considered, their conversion into an LLM fine-tuning training set is straightforward and that fine-tuning with even relatively small datasets leads to predictive models. These results suggest that the systematic use of LLMs to guide experiments and simulations will be a powerful technique in any research study, significantly reducing unnecessary experiments or computations.
Authors
- K. J. Schmidt (ORCID: https://orcid.org/0000-0002-9373-0058)
- Guillaume Godin (ORCID: https://orcid.org/0000-0001-9828-386X)
- Andreas Züttel (ORCID: https://orcid.org/0000-0002-5708-1855)
- Clémence Corminbœuf (ORCID: https://orcid.org/0000-0001-7993-2879)
- Elena Simone (ORCID: https://orcid.org/0000-0003-4000-2222)
- Ruaraidh D. McIntosh (ORCID: https://orcid.org/0000-0002-7563-5655)
- M.V. Gil (ORCID: https://orcid.org/0000-0002-2258-3011)
- Hilal Daglar (ORCID: https://orcid.org/0000-0002-5820-2452)
- Jonathan K. Whitmer (ORCID: https://orcid.org/0000-0003-0370-0873)
- Xin Jin (ORCID: https://orcid.org/0000-0002-2618-9775)
- Sauradeep Majumdar (ORCID: https://orcid.org/0000-0002-2095-3082)
- D. C. Florian Wieland (ORCID: https://orcid.org/0000-0002-8594-8292)
- Mehrdad Asgari (ORCID: https://orcid.org/0000-0002-5427-1610)
- Amir Mohammad Elahi (ORCID: https://orcid.org/0009-0001-5907-101X)
- Kevin Maik Jablonka (ORCID: https://orcid.org/0000-0003-4894-4660)
- Beatriz Mouriño (ORCID: https://orcid.org/0000-0003-1670-3985)
- Ian Foster (ORCID: https://orcid.org/0000-0003-2129-5269)
- Matthew Garvin (ORCID: https://orcid.org/0000-0002-6605-6002)
- Ben Blaiszik (ORCID: https://orcid.org/0000-0002-5326-4902)
- Andy S. Anker (ORCID: https://orcid.org/0000-0002-7403-6642)
- D. Tolnai (ORCID: https://orcid.org/0000-0002-1139-4709)
- Tuomas P. J. Knowles (ORCID: https://orcid.org/0000-0002-7879-0140)
- Antonio Buffo (ORCID: https://orcid.org/0000-0002-4152-0593)
- Susana García (ORCID: https://orcid.org/0000-0002-3713-311X)
- Kadi L. Saar (ORCID: https://orcid.org/0000-0002-5926-3628)
- Regine Willumeit‐Römer (ORCID: https://orcid.org/0000-0002-6004-6946)
- Rubén Laplaza (ORCID: https://orcid.org/0000-0001-6315-4398)
- Seyed Mohamad Moosavi (ORCID: https://orcid.org/0000-0002-0357-5729)
- Jiale Shi (ORCID: https://orcid.org/0000-0002-5447-3925)
- Joren Van Herck (ORCID: https://orcid.org/0009-0005-5108-5061)
- Tanja Junkers (ORCID: https://orcid.org/0000-0002-6825-5777)
- Igor V. Tetko (ORCID: https://orcid.org/0000-0002-6855-0012)
- Berend Smit (ORCID: https://orcid.org/0000-0003-4653-8562)
- Lydia L. Good (ORCID: https://orcid.org/0000-0001-5308-8542)
- Hossein Mashhadimoslem (ORCID: https://orcid.org/0000-0001-9104-8138)
- Marco Taddei (ORCID: https://orcid.org/0000-0003-2805-6375)
- Dennis Svatunek (ORCID: https://orcid.org/0000-0003-1101-2376)
- Fahimeh Hooriabad Saboor (ORCID: https://orcid.org/0000-0001-7729-0673)
- Sahar Vahdatifar (ORCID: https://orcid.org/0000-0002-5415-4086)
- C. Pevida (ORCID: https://orcid.org/0000-0002-4662-8448)
- Morteza Sagharichiha
- Seda Keskın (ORCID: https://orcid.org/0000-0001-5968-0336)
- Francesca Nerli (ORCID: https://orcid.org/0009-0008-5932-4583)
- Leander Choudhury (ORCID: https://orcid.org/0009-0000-3226-3639)
- Alex Abrudan (ORCID: https://orcid.org/0009-0003-7142-4425)
- N.‐X. Hu (ORCID: https://orcid.org/0009-0000-9301-4505)
- Mahyar Rajabi Kochi (ORCID: https://orcid.org/0009-0000-6392-3994)
- Michele Lessona
- Neda Poudineh (ORCID: https://orcid.org/0000-0002-5773-967X)
- Jianan Gu (ORCID: https://orcid.org/0009-0003-0422-5610)
Institutions
- University of Notre Dame (US)
- University of Pisa (IT)
- Argonne National Laboratory (US)
- Helmholtz Institute Jena (DE)
- National Institutes of Health (US)
- Koç University (TR)
- TU Wien (AT)
- University of Waterloo (CA)
- Politecnico di Torino (IT)
- University of Toronto (CA)
- University of Tehran (IR)
- University of Cambridge (GB)
- Helmholtz Zentrum München (DE)
- Heriot-Watt University (GB)
- University of Oxford (GB)
- University of Chicago (US)
- National Institute of Diabetes and Digestive and Kidney Diseases (US)
- Instituto Nacional del Carbón (ES)
- Helmholtz-Zentrum Hereon (DE)
- Baxter (Germany) (DE)
- École Polytechnique Fédérale de Lausanne (CH)
- Monash University (AU)
- Massachusetts Institute of Technology (US)
- University of Mohaghegh Ardabili (IR)
- Friedrich Schiller University Jena (DE)
- Technical University of Denmark (DK)
Publication Details
- Journal
- Chemical Science
- Published
- 2024-11-22
- DOI
- https://doi.org/10.1039/d4sc04401k
- Citations
- 42
- Primary Topic
- Machine Learning in Materials Science
- Type
- article
- Field-Weighted Citation Impact
- 4.92
Funders
- National Science Foundation
- Carl-Zeiss-Stiftung
- Frances and Augustus Newman Foundation
- Grantham Foundation for the Protection of the Environment
- Government of the United Kingdom
- UK Research and Innovation
- European Commission
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
- Cambridge Trust
- University of Toronto
- Novo Nordisk
- Ministerio de Ciencia e Innovación
- Novo Nordisk Fonden
- National Institutes of Health
- Seventh Framework Programme
- HORIZON EUROPE Framework Programme
- European Research Council
- Consejo Superior de Investigaciones Científicas
- European Regional Development Fund
- National Center of Competence in Research Materials’ Revolution: Computational Design and Discovery of Novel Materials
- Agencia Estatal de Investigación
- National Institute of Diabetes and Digestive and Kidney Diseases
- H2020 European Research Council
- H2020 Marie Skłodowska-Curie Actions