14 Examples of How LLMs Can Transform Materials Science and Chemistry: A Reflection on a Large Language Model Hackathon

Kevin Maik Jablonka, Qianxiang Ai, Alexander Al-Feghali, Shruti Badhwar, Joshua D. Bocarsly, Andres M. Bran, Stefan Bringuier, L. Catherine Brinson, Kamal Choudhary, Defne Circi, Sam Cox, Wibe A. de Jong, Matthew L. Evans, Nicolas Gastellu, Jerome Genzling, María Victoria Gil, Ankur K. Gupta, Zhi Hong, Alishba Imran, Sabine Kruschwitz, Anne Labarre, Jakub Lála, Tao Liu, Steven Ma, Sauradeep Majumdar, Garrett W. Merz, Nicolas Moitessier, Elias Moubarak, Beatriz Mouriño, Brenden Pelkie, Michael Pieler, Mayk Caldas Ramos, Bojana Rankovic, Samuel G. Rodriques, Jacob N. Sanders, Philippe Schwaller, Marcus Schwarting, Jiale Shi, Berend Smit, Ben E. Smith, Joren Van Heck, Christoph Völker, Logan T. Ward, Sean Warren, Benjamin Weiser, Sylvester Zhang, Xiaoqi Zhang, Ghezal Ahmad Zia, Aristana Scourtas, K. J. Schmidt, Ian T. Foster, Andrew D. White, Ben Blaiszik

TL;DR

This paper chronicles a hackathon where researchers explored the transformative potential of Large Language Models (LLMs) in materials science and chemistry. The projects demonstrate LLMs' ability to accelerate discovery, automate complex tasks, and create novel interfaces, suggesting a profound impact on scientific research and education.

What Problem Does This Paper Address?

The paper addresses the challenges of integrating machine learning into materials science and chemistry. Traditional ML models often require rigid, well-defined input formats and custom development for each task, contrasting with the inherently "fuzzy" and context-dependent nature of experimental science. This leads to a constant need for new tools, interfaces, and conversion programs, making it difficult for researchers to keep up. Furthermore, extracting nuanced information from unstructured text, like experimental procedures, often results in information loss. LLMs offer a potential solution by enabling more flexible, natural language-based interactions with scientific tools and data.

Methods

The hackathon participants explored various applications of LLMs, primarily leveraging the "Language-Interfaced Fine-Tuning" (LIFT) framework. This framework allows LLMs to process information through text prompts, often incorporating "in-context learning" (ICL) where examples are provided within the prompt itself. Key methods include:

  • Predictive Modeling: Using LLMs to predict molecular properties (e.g., atomization energies) and material properties (e.g., concrete strength) by converting structured data (like SMILES strings or tabular data) into text prompts.
  • Automation and Novel Interfaces: Developing LLM-powered agents that can interact with external tools (APIs, software) via natural language, automating workflows and creating user-friendly interfaces for complex software.
  • Knowledge Extraction: Employing LLMs to extract structured information from unstructured scientific text, such as creating knowledge graphs from research papers or parsing organic synthesis procedures into structured JSON.
  • Education: Using LLMs to create personalized educational content, such as generating questions from lecture transcripts or summarizing scientific literature.

Datasets

The paper mentions the use of several datasets:

  • QM9-G4MP2 dataset: Used for predicting molecular atomization energies.
  • G4MP2-Heavy dataset: Also used for predicting molecular atomization energies.
  • Concrete formulation data: A dataset of 240 sustainable concrete formulations and their compressive strengths, sourced from Rao and Rao [51].
  • Polymer nanocomposite abstracts: 200 abstracts used for knowledge graph extraction.
  • Open Reaction Database (ORD): Used for extracting structured data from organic synthesis text.
  • arXiv condensed-matter physics (cond-mat) data: Used for text summarization and generation tasks.

Key Insights and Ideas

  • LLMs as a Universal "Glue": Natural language, powered by LLMs, can act as a universal interface, connecting diverse tools and data without requiring new formats or standards.
  • Leveraging "Fuzzy" Domain Knowledge: LLMs can incorporate and leverage qualitative, "fuzzy" domain knowledge (e.g., design principles) that is difficult to encode in traditional ML models.
  • Democratizing Access to Complex Tools: LLMs can significantly lower the barrier to entry for using sophisticated scientific tools and algorithms (like Bayesian optimization or advanced visualization software) by providing natural language interfaces.
  • Accelerated Prototyping: The hackathon format, combined with LLMs, enabled the rapid development of functional prototypes in a very short timeframe, highlighting the efficiency gains.
  • LLMs Don't Need to "Understand" Chemistry: The success of the projects relied on LLMs' general reasoning abilities and their ability to process provided context, rather than inherent chemical knowledge.

Key Results

  • Molecular Energy Predictions: LLMs fine-tuned with LIFT achieved good predictions for atomization energies, reaching chemical accuracy for Δ-ML schemes.
  • Concrete Strength Prediction: LLMs with ICL, incorporating "fuzzy" domain knowledge, outperformed baseline models like Random Forests (RF) in predicting concrete compressive strength.
  • Molecule Discovery: An LLM-based approach screened potential hydrogen carrier molecules significantly faster (3000x speedup) than traditional quantum chemistry methods.
  • Organic Synthesis Parsing: A fine-tuned LLM extracted 93% of reaction components from free-text descriptions into valid JSON.
  • Table Data Extraction: LLMs, particularly with the jsonformer approach, demonstrated high accuracy (up to 100%) in converting tabular data from scientific papers into structured JSON.
  • Educational Tools: Prototypes for an interactive lecture summarizer and question generator were developed, showcasing LLMs' potential in education.

Limitations and Future Work

  • Robustness and Interpretability: LLMs currently have limited interpretability and can exhibit fragile behavior, requiring further investigation into robustness and systematic benchmarking.
  • Context Length Limitations: The limited context window of current LLMs can restrict the amount of data that can be processed, necessitating approaches like retrieval-augmented generation.
  • Special Characters and Schema Adherence: LLMs can struggle with generating valid outputs containing special characters or strictly adhering to complex JSON schemas, requiring careful prompting or specialized decoding strategies.
  • Fine-tuning vs. Few-Shot Learning: While fine-tuning can improve performance, few-shot learning (ICL) offers a powerful way to leverage LLMs without extensive training, especially in low-data regimes.
  • Need for Community Effort: Realizing the full potential of LLMs in science requires a collaborative effort involving chemists, computer scientists, philosophers, and ethicists.

Summary updated

Abstract

Large-language models (LLMs) such as GPT-4 caught the interest of many scientists. Recent studies suggested that these models could be useful in chemistry and materials science. To explore these possibilities, we organized a hackathon. This article chronicles the projects built as part of this hackathon. Participants employed LLMs for various applications, including predicting properties of molecules and materials, designing novel interfaces for tools, extracting knowledge from unstructured data, and developing new educational applications. The diverse topics and the fact that working prototypes could be generated in less than two days highlight that LLMs will profoundly impact the future of our fields. The rich collection of ideas and projects also indicates that the applications of LLMs are not limited to materials science and chemistry but offer potential benefits to a wide range of scientific disciplines.
BibTeX
@inproceedings{jablonka2023examples,
  author = {Kevin Maik Jablonka and Qianxiang Ai and Alexander Al-Feghali and Shruti Badhwar and Joshua D. Bocarsly and Andres M. Bran and Stefan Bringuier and L. Catherine Brinson and Kamal Choudhary and Defne Circi and Sam Cox and Wibe A. de Jong and Matthew L. Evans and Nicolas Gastellu and Jerome Genzling and María Victoria Gil and Ankur K. Gupta and Zhi Hong and Alishba Imran and Sabine Kruschwitz and Anne Labarre and Jakub Lála and Tao Liu and Steven Ma and Sauradeep Majumdar and Garrett W. Merz and Nicolas Moitessier and Elias Moubarak and Beatriz Mouriño and Brenden Pelkie and Michael Pieler and Mayk Caldas Ramos and Bojana Rankovic and Samuel G. Rodriques and Jacob N. Sanders and Philippe Schwaller and Marcus Schwarting and Jiale Shi and Berend Smit and Ben E. Smith and Joren Van Heck and Christoph Völker and Logan T. Ward and Sean Warren and Benjamin Weiser and Sylvester Zhang and Xiaoqi Zhang and Ghezal Ahmad Zia and Aristana Scourtas and K. J. Schmidt and Ian T. Foster and Andrew D. White and Ben Blaiszik},
  title = {{14 Examples of How LLMs Can Transform Materials Science and Chemistry: A Reflection on a Large Language Model Hackathon}},
  booktitle = {Digital},
  year = {2023},
  doi = {10.1039/d3dd00113j},
}
Figure