Skip to main content
QUICK REVIEW

[Paper Review] Extracting human interpretable structure-property relationships in chemistry using XAI and large language models

Geemi P. Wellawatte, Philippe Schwaller|arXiv (Cornell University)|Nov 7, 2023
Machine Learning in Materials ScienceMaterials Science6 citations
TL;DR

XpertAI is a novel framework that integrates explainable AI (XAI) with large language models (LLMs) and scientific literature to generate human-interpretable, natural language explanations of structure-property relationships in chemistry. By combining XAI-driven feature importance with LLM-generated, scientifically grounded explanations, XpertAI delivers specific, accessible, and accurate interpretations of molecular data across five case studies, demonstrating its ability to bridge the gap between black-box ML models and non-expert users.

ABSTRACT

Explainable Artificial Intelligence (XAI) is an emerging field in AI that aims to address the opaque nature of machine learning models. Furthermore, it has been shown that XAI can be used to extract input-output relationships, making them a useful tool in chemistry to understand structure-property relationships. However, one of the main limitations of XAI methods is that they are developed for technically oriented users. We propose the XpertAI framework that integrates XAI methods with large language models (LLMs) accessing scientific literature to generate accessible natural language explanations of raw chemical data automatically. We conducted 5 case studies to evaluate the performance of XpertAI. Our results show that XpertAI combines the strengths of LLMs and XAI tools in generating specific, scientific, and interpretable explanations.

Motivation & Objective

  • To address the opacity of machine learning models in chemistry by generating human-readable explanations of structure-property relationships.
  • To overcome the limitations of traditional XAI methods, which are often technical and not user-friendly for non-experts.
  • To integrate scientific literature with XAI outputs using large language models (LLMs) to ensure explanations are scientifically accurate and contextually relevant.
  • To develop a generalizable, adaptable framework capable of generating tailored natural language explanations for any dataset requiring input-output relationship interpretation.
  • To enhance trust and usability of ML models in experimental and computational chemistry by delivering specific, interpretable, and accessible explanations.

Proposed method

  • Train a surrogate machine learning model (XGBoost with scikit-learn API) on featurized molecular data, including molecular descriptors and MACCS keys.
  • Apply XAI methods (e.g., SHAP, LIME) to identify the most influential molecular features for predicting target properties.
  • Use a fine-tuned LLM to generate natural language explanations (NLEs) by integrating XAI-identified features with evidence from scientific literature.
  • Ensure explanation specificity by grounding each explanation in the dataset’s unique features and relevant references, rather than general literature.
  • Validate explanations through case studies on solubility, flammability, and other chemical properties, comparing LLM outputs with domain-specific knowledge.
  • Design the framework to be modular and generalizable across domains requiring input-output relationship interpretation.
Figure 1: Overview of XpertAI. The proposed tool combines XAI with LLMs to uncover human interpretable structure-property relationships from raw data.
Figure 1: Overview of XpertAI. The proposed tool combines XAI with LLMs to uncover human interpretable structure-property relationships from raw data.

Experimental results

Research questions

  • RQ1Can XAI and LLMs be combined to generate scientifically accurate, human-interpretable explanations of structure-property relationships in chemistry?
  • RQ2How can LLMs be guided to produce specific, dataset-tailored explanations rather than generic summaries?
  • RQ3To what extent do LLM-generated explanations align with established chemical principles and scientific literature?
  • RQ4Can the integration of XAI and LLMs improve the accessibility and trustworthiness of ML models for non-technical users in chemistry?
  • RQ5What molecular features are most predictive of properties like solubility and flammability, and how can their roles be clearly communicated in natural language?

Key findings

  • XpertAI successfully generated specific, scientifically accurate, and interpretable natural language explanations for five distinct chemical structure-property relationships, including solubility and upper flammability limits.
  • The framework produced explanations that correctly linked molecular features—such as HOMO energy, dipole moment, and structural symmetry—to target properties, consistent with known chemical principles.
  • Explanations were grounded in scientific literature, citing relevant studies (e.g., Yuan et al., 2019) to support claims about molecular behavior and reactivity.
  • The LLM-generated explanations demonstrated adaptability, tailoring content to the specific features identified by XAI for each dataset, rather than relying on generic templates.
  • XpertAI outperformed baseline methods in interpretability, accessibility, and scientific relevance, as validated through case studies and comparison with LLM-only or XAI-only approaches.
  • The framework proved generalizable, with potential applications beyond chemistry in any domain requiring interpretable input-output relationship extraction.
Figure 2: Attributes of XpertAI explanations in comparison to baseline methods.
Figure 2: Attributes of XpertAI explanations in comparison to baseline methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.