English

Transformer-Based Approach for Automated Functional Group Replacement in Chemical Compounds

Machine Learning 2026-01-14 v1

Abstract

Functional group replacement is a pivotal approach in cheminformatics to enable the design of novel chemical compounds with tailored properties. Traditional methods for functional group removal and replacement often rely on rule-based heuristics, which can be limited in their ability to generate diverse and novel chemical structures. Recently, transformer-based models have shown promise in improving the accuracy and efficiency of molecular transformations, but existing approaches typically focus on single-step modeling, lacking the guarantee of structural similarity. In this work, we seek to advance the state of the art by developing a novel two-stage transformer model for functional group removal and replacement. Unlike one-shot approaches that generate entire molecules in a single pass, our method generates the functional group to be removed and appended sequentially, ensuring strict substructure-level modifications. Using a matched molecular pairs (MMPs) dataset derived from ChEMBL, we trained an encoder-decoder transformer model with SMIRKS-based representations to capture transformation rules effectively. Extensive evaluations demonstrate our method's ability to generate chemically valid transformations, explore diverse chemical spaces, and maintain scalability across varying search sizes.

Keywords

Cite

@article{arxiv.2601.07930,
  title  = {Transformer-Based Approach for Automated Functional Group Replacement in Chemical Compounds},
  author = {Bo Pan and Zhiping Zhang and Kevin Spiekermann and Tianchi Chen and Xiang Yu and Liying Zhang and Liang Zhao},
  journal= {arXiv preprint arXiv:2601.07930},
  year   = {2026}
}

Comments

The 2nd AAAI Workshop on Foundation Models for Biological Discoveries at AAAI 2025

R2 v1 2026-07-01T09:01:30.826Z