GraphXForm: Graph transformer for computer-aided molecular design

Jonathan Pirnay, Jan G. Rittig, Alexander B. Wolf, Martin Grohe, Jakob Burger +2 more
11/3/2024
cs.LGphysics.chem-phq-bio.BM

No official code found. Best implementation: grimmlab/graphxform (11 stars, MIT, last commit 2026-02-26).

Abstract

Generative deep learning has become pivotal in molecular design for drug discovery, materials science, and chemical engineering. A widely used paradigm is to pretrain neural networks on string representations of molecules and fine-tune them using reinforcement learning on specific objectives. However, string-based models face challenges in ensuring chemical validity and enforcing structural constraints like the presence of specific substructures. We propose to instead combine graph-based molecular representations, which can naturally ensure chemical validity, with transformer architectures, which are highly expressive and capable of modeling long-range dependencies between atoms. Our approach iteratively modifies a molecular graph by adding atoms and bonds, which ensures chemical validity and facilitates the incorporation of structural constraints. We present GraphXForm, a decoder-only graph transformer architecture, which is pretrained on existing compounds and then fine-tuned using a new training algorithm that combines elements of the deep cross-entropy method and self-improvement learning. We evaluate GraphXForm on various drug design tasks, demonstrating superior objective scores compared to state-of-the-art molecular design approaches. Furthermore, we apply GraphXForm to two solvent design tasks for liquid-liquid extraction, again outperforming alternative methods while flexibly enforcing structural constraints or initiating design from existing molecular structures.

View on arXivView PDF

Code Implementations(1)

grimmlab/graphxformCommunity100%
MIT

Official code for the paper "GraphXForm: Graph transformer for computer-aided molecular design"

114Python, DockerfileOct 16, 20247 months agoMIT
drug-designgumbeldoremolecule-designself-improvementsolvent-design

Similar Papers

Cite this paper

@article{pirnay2024graphxform,
  title  = {GraphXForm: Graph transformer for computer-aided molecular design},
  author = {Jonathan Pirnay and Jan G. Rittig and Alexander B. Wolf and Martin Grohe and Jakob Burger and Alexander Mitsos and Dominik G. Grimm},
  year   = {2024},
  eprint = {2411.01667},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.01667v2}
}

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/2411.01667.svg)](https://codeofpaper.com/paper/2411.01667)

Discussion