A Tree-Transformer based VAE with fragment tokenization for large chemical models

24 June 2024, Version 2
This content is a preprint and has not undergone peer review at the time of posting.

Abstract

Chemical language model (CLM), a molecular generation model, leverages large language models by utilizing SMILES, a string representation of compounds. Chemical variational auto-encoder (VAE), which explicitly constructs a latent space, demonstrates their strength in molecular optimization and generation on a continuous space. We propose the Fragment Tree-Transformer based VAE (FRATTVAE), which treats molecules as tree structures with fragments as nodes. This method allows for fragment tokens, unmanageable with SMILES, and effectively handles large molecules, including salts and solvents. Utilizing tree positional encoding and Extended Connectivity Fingerprints (ECFP) for fragment token embedding, and applying the Transformer architecture, FRATTVAE achieves superior molecule generation accuracy and computational speed. Distribution learning across various benchmark datasets, from small molecules to natural compounds, showed that FRATTVAE consistently achieved high accuracy in all metrics while balancing reconstruction accuracy and generation quality. In molecular optimization tasks, FRATTVAE generated high-quality, stable molecules with desired properties, avoiding structural alerts.

Keywords

Chemical space
Tree Transformer
Distribution learning
Variational autoencoder (VAE)
Molecular generation
Fragment token

Supplementary materials

Title
Description
Actions
Title
Supplementary Materials
Description
Supplemental Methods, Supplemental Tables, and Supplementary Figures.
Actions

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.