Text-guided multi-property molecular optimization with a diffusion language model

Yida Xiong, Kun Li, Jiameng Chen, Hongzhi Zhang, Di Lin, Yan Che, Wenbin Hu · DOI

TL;DR

This paper introduces TransDLM, a novel diffusion language model for optimizing molecules to meet multiple industrial requirements. By using text descriptions and IUPAC names to guide a diffusion process, TransDLM effectively balances structural similarity with property enhancement, outperforming existing methods.

What Problem Does This Paper Address?

Drug discovery involves optimizing molecules to satisfy various industrial requirements, a process known as molecular optimization (MO). Traditional MO methods often rely on external property predictors, which can introduce errors and noise, leading to suboptimal results. Furthermore, these methods can struggle to retain the core structure of the original molecule while improving its properties. The vastness of chemical space makes it impossible to train predictors for every possible molecule, exacerbating these issues. This paper addresses the challenge of achieving accurate and efficient multi-property molecular optimization while preserving structural integrity.

Methods

The core of this work is the TransDLM (Transformer-based Diffusion Language Model). It leverages a diffusion language model framework, which has shown great success in generative tasks. Here's a breakdown of its key components:

  • Textual Guidance: Instead of relying solely on numerical property predictors, TransDLM uses textual descriptions of desired properties. These descriptions are enriched by using IUPAC names for molecular fragments, which provide more semantic clarity than SMILES strings.
  • Diffusion Language Model: The model operates in a continuous latent space. It starts with an encoded representation of a source molecule and iteratively "denoises" it over several steps, guided by the textual description. This process aims to transform the initial molecule into one that meets the specified criteria.
  • SMILES Tokenization: A specialized tokenizer is used to represent SMILES strings, preserving semantic groups (e.g., [CH3-]) rather than treating each character individually. This helps maintain the integrity of molecular representations.
  • Core Scaffold Retention: To ensure that the optimized molecule retains the essential structure of the original, TransDLM samples from the encoded representation of the source molecule rather than starting from pure noise. This is a key differentiator from standard diffusion models.
  • Error Suppression: By directly embedding property requirements into the diffusion process via text, TransDLM mitigates the error propagation issues common in methods that rely on external predictors.

Datasets

The paper uses the MMP (Matched Molecular Pair) dataset for evaluation. This dataset contains 198,558 source-target molecule pairs with associated ADMET (Absorption, Distribution, Metabolism, Excretion, and Toxicity) properties. The dataset was split into training, validation, and testing sets. No new benchmark datasets were introduced.

Key Insights and Ideas

  • Text as a Powerful Optimizer: Using natural language descriptions of desired properties, enriched with IUPAC names, proves to be a more effective and interpretable way to guide molecular optimization than relying solely on numerical predictors.
  • Diffusion Models for Structure-Property Balance: The diffusion framework, when combined with text guidance and source molecule encoding, offers a powerful mechanism for simultaneously optimizing chemical properties and maintaining structural similarity.
  • IUPAC Names Enhance Semantics: Employing IUPAC nomenclature for molecular fragments provides richer semantic information compared to SMILES strings, leading to more precise generation.
  • Error Mitigation is Crucial: The paper theoretically and experimentally demonstrates that TransDLM significantly reduces error propagation, a major bottleneck in traditional MO methods.

Key Results

TransDLM demonstrated superior performance across various metrics compared to several baseline methods:

  • Structural Similarity: Achieved the best BLEU score (0.74) and Levenshtein distance (14.838), indicating better alignment with target molecule structures and higher sequence accuracy. It also outperformed baselines on MACCS, RDK, and Morgan FTS criteria.
  • ADMET Properties: Showed significant improvements in optimizing LogD (57% increase), Solubility (2.4% increase), and Clint (0.3% increase), leading to a 46.7% increase in molecules meeting all ADMET criteria.
  • Generalization: The case study on XAC, optimizing ligand-receptor binding affinity (an out-of-distribution task for the model trained on ADMET data), highlights TransDLM's strong generalization capabilities.
  • Validity: Achieved a high validity rate of 0.993, with the few invalid cases attributed to the stochastic nature of continuous generation.

Limitations and Future Work

  • Multi-stage Pipeline: The current TransDLM framework involves several sequential steps (RECAP, IUPAC parsing, embedding), increasing system complexity and reliance on external tools. Future work aims to streamline this into a more integrated or end-to-end trainable system.
  • Computational Cost: Diffusion models, including TransDLM, require iterative denoising, which is computationally more expensive than single-step generative methods like GANs or VAEs. The authors suggest techniques like knowledge distillation or Denoising Diffusion GANs for acceleration.
  • Broader Applications: The authors plan to extend TransDLM to optimize non-biological properties (QED, SA) and affinity towards specific protein targets. They also aim to improve generalizability by training on larger and more diverse molecular libraries.

Summary updated

BibTeX
@article{xiong2025text,
  author = {Yida Xiong and Kun Li and Jiameng Chen and Hongzhi Zhang and Di Lin and Yan Che and Wenbin Hu},
  title = {{Text-guided multi-property molecular optimization with a diffusion language model}},
  journal = {Information Fusion},
  year = {2025},
  url = {https://openreview.net/forum?id=Z1nkouVkmI},
}
Figure