MG-DIFF: A novel molecular graph diffusion model for molecular generation and optimization

X Xiaochen Zhang (Key Laboratory for Advanced Materials and Joint International Research Laboratory of Precision Chemistry and Molecular Engineering, Feringa Nobel Prize Scientist Joint Research Center, Frontiers Science Center for Materiobiology and Dynamic Chemistry, School of Chemistry and Molecular Engineering, East China University of Science and Technology, 130 Meilong Road, Shanghai 200237, China) S Shuangxi Wang Y Ying Fang Q Qiankun Zhang

Abstract

Recent advancements in denoising diffusion models have revolutionized image, text, and video generation. Inspired by these achievements, researchers have extended denoising diffusion models to the field of molecule generation. However, existing molecular generation diffusion models are not fully optimized according to the distinct features of molecules, leading to suboptimal performance and challenges in conditional molecular optimization. In this paper, we introduce the MG-DIFF model, a novel approach tailored for molecular generation and optimization. Compared to previous methods, MG-DIFF incorporates three key improvements. Firstly, we propose a mask and replace discrete diffusion strategy, specifically designed to accommodate the complex patterns of molecular structures, thereby enhancing the quality of molecular generation. Secondly, we introduce a graph transformer model with random node initialization, which can overcome the expressiveness limitations of regular graph neural networks defined by the first-order Weisfeiler-Lehman test. Lastly, we present a graph padding strategy that enables our method to not only do conditional generation but also optimize molecules by adding certain atomic groups. In several molecular generation benchmarks, the proposed MG-DIFF model achieves state-of-the-art performance and demonstrates great potential molecular optimization.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 10
Published October 16, 2025
Pages e0331450
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (4)

X

Xiaochen Zhang

Key Laboratory for Advanced Materials and Joint International Research Laboratory of Precision Chemistry and Molecular Engineering, Feringa Nobel Prize Scientist Joint Research Center, Frontiers Science Center for Materiobiology and Dynamic Chemistry, School of Chemistry and Molecular Engineering, East China University of Science and Technology, 130 Meilong Road, Shanghai 200237, China

S

Shuangxi Wang

Y

Ying Fang

Q

Qiankun Zhang