Explainability Techniques for Chemical Language Models

Stefan Hödl, William Robinson, Yoram Bachrach, Wilhelm Huck, Tal Kachman
5/25/2023
cs.LGcs.AIphysics.chem-ph

No official code found. Best implementation: KachmanLab/Chemical_Language_Model_Explainer (1 star, Apache-2.0, last commit 2024-05-28).

Abstract

Explainability techniques are crucial in gaining insights into the reasons behind the predictions of deep learning models, which have not yet been applied to chemical language models. We propose an explainable AI technique that attributes the importance of individual atoms towards the predictions made by these models. Our method backpropagates the relevance information towards the chemical input string and visualizes the importance of individual atoms. We focus on self-attention Transformers operating on molecular string representations and leverage a pretrained encoder for finetuning. We showcase the method by predicting and visualizing solubility in water and organic solvents. We achieve competitive model performance while obtaining interpretable predictions, which we use to inspect the pretrained model.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
11TeX, PythonMay 22, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{hdl2023explainability,
  title  = {Explainability Techniques for Chemical Language Models},
  author = {Stefan Hödl and William Robinson and Yoram Bachrach and Wilhelm Huck and Tal Kachman},
  year   = {2023},
  eprint = {2305.16192},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.16192v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.16192.svg)](https://codeofpaper.com/paper/2305.16192)

Discussion