Perplexity-Based Molecule Ranking and Bias Estimation of Chemical Language Models

Michael Moret, Francesca Grisoni (Corresponding author), Paul Katzberger, Gisbert Schneider (Corresponding author)

Research output: Contribution to journalArticleAcademicpeer-review

17 Citations (Scopus)
346 Downloads (Pure)

Abstract

Chemical language models (CLMs) can be employed to design molecules with desired properties. CLMs generate new chemical structures in the form of textual representations, such as the simplified molecular input line entry system (SMILES) strings. However, the quality of these de novo generated molecules is difficult to assess a priori. In this study, we apply the perplexity metric to determine the degree to which the molecules generated by a CLM match the desired design objectives. This model-intrinsic score allows identifying and ranking the most promising molecular designs based on the probabilities learned by the CLM. Using perplexity to compare "greedy"(beam search) with "explorative"(multinomial sampling) methods for SMILES generation, certain advantages of multinomial sampling become apparent. Additionally, perplexity scoring is performed to identify undesired model biases introduced during model training and allows the development of a new ranking system to remove those undesired biases.

Original languageEnglish
Pages (from-to)1199-1206
Number of pages8
JournalJournal of Chemical Information and Modeling
Volume62
Issue number5
DOIs
Publication statusPublished - 14 Mar 2022

Bibliographical note

Funding Information:
This study was financially supported by the Swiss National Science Foundation (grant no. 205321_182176 to G.S.) and by the RETHINK initiative at ETH Zurich.

Funding

This study was financially supported by the Swiss National Science Foundation (grant no. 205321_182176 to G.S.) and by the RETHINK initiative at ETH Zurich.

Fingerprint

Dive into the research topics of 'Perplexity-Based Molecule Ranking and Bias Estimation of Chemical Language Models'. Together they form a unique fingerprint.

Cite this