MODA: A Unified 3D Diffusion Framework for Multi-Task Target-Aware Molecular Generation

Dong Xu, Zhangfan Yang, Sisi Yuan, Jenna Xinyi Yao, Jiangqiang Li, Junkai JiarXiv 2025

TL;DR

This paper introduces MODA, a novel unified 3D diffusion framework for molecular generation that tackles multiple design tasks (fragment growing, linker design, scaffold hopping, side-chain decoration) with a single model. By employing a multi-task learning strategy with a clever masking approach, MODA learns shared chemical and geometric priors, significantly outperforming existing single-task and pretrain-finetune methods, especially in zero-shot scenarios.

What Problem Does This Paper Address?

Designing new molecules for drug discovery and materials science is a complex, multi-faceted problem. Current 3D molecular generators, while impressive in their ability to generate accurate molecular structures, are often specialized for a single task. This leads to a fragmented landscape where different models are needed for tasks like growing a molecule from a fragment, designing a linker between two parts, changing the core structure (scaffold hopping), or modifying a peripheral part (side-chain decoration). This "one-task-one-model" approach is inefficient, costly, and hinders knowledge transfer between tasks. Furthermore, many existing methods rely on 1D representations like SMILES, which fail to capture crucial 3D stereochemistry and spatial arrangements, leading to poor performance in tasks requiring precise interactions with biological targets. Two-stage pretrain-finetune pipelines can also suffer from misalignment between the pretraining and downstream tasks.

Methods

MODA tackles these challenges by proposing a unified 3D diffusion framework. The core idea is to treat various molecular editing tasks as a single "masked reconstruction" problem.

  • Unified 3D Diffusion: Instead of relying on 1D SMILES strings, MODA operates directly on 3D atomic coordinates and types, leveraging SE(3)-equivariant neural networks to preserve stereochemistry and spatial relationships.
  • Masked Reconstruction: During training, a contiguous spatial fragment of a molecule is masked out. The model is then trained to denoise and reconstruct this masked portion in a single pass. This "mask once, design all" approach allows the model to learn shared geometric and chemical priors across different tasks.
  • Bayesian Multi-Task Mask Scheduler: A Bayesian policy intelligently samples different masking schemes for each molecule, corresponding to the four main editing tasks (fragment growing, linker design, scaffold hopping, side-chain decoration). This enables a single model to handle diverse generation intents.
  • Single-Stage Training: Unlike traditional pretrain-finetune pipelines, MODA uses a single-stage training objective. This avoids potential misalignment issues and model collapse, promoting more stable learning.
  • Initialization Strategy: For inference, MODA employs task-specific initialization strategies to ensure consistency and avoid biases, guiding the diffusion process effectively.

Datasets

The primary dataset used is CrossDocked [22], which contains protein-ligand binding pairs. This dataset is used to construct training data for various molecular generation tasks. The paper does not introduce a new benchmark dataset but rather a novel training paradigm applied to existing data.

Key Insights and Ideas

  • Unified Generative Chemistry: The most significant insight is that diverse molecular editing tasks can be unified under a single masked 3D diffusion framework. This breaks down the traditional silos of molecular generation.
  • Shared Priors are Powerful: By training on multiple tasks simultaneously, MODA learns robust, shared geometric and chemical priors that generalize exceptionally well, especially to unseen tasks (zero-shot learning).
  • Masking as a Universal Editor: The clever use of spatial masking and denoising effectively transforms the diffusion model into a versatile molecular editor, capable of performing complex edits without explicit task-specific modules.
  • Single-Stage Efficiency: Eliminating the pretrain-finetune gap simplifies the workflow and appears to lead to more stable and effective models.

Key Results

MODA demonstrates superior performance across various molecular generation tasks:

  • Overall Performance: Model-C (multi-task training and evaluation) consistently outperforms single-task (Model-A) and pretrain-finetune (Model-B) variants across metrics like Vina docking scores, improvement rates (IMP), and chemical properties (QED, SA).
  • Zero-Shot Capabilities: MODA shows remarkable zero-shot performance on de novo design and lead optimization tasks, achieving negative Vina scores and high improvement rates without requiring force-field refinement.
  • Geometric and Chemical Fidelity: Multi-task training significantly reduces ligand-protein clashes and substructure divergences while maintaining Lipinski compliance. It also internalizes chemical priors, leading to better substructure consistency across tasks.
  • Efficiency: The unified framework reduces data and engineering costs by replacing multiple task-specific models with a single, versatile one.

Limitations and Future Work

  • Negative Score Threshold: While MODA achieves negative Vina scores, end-to-end docking still has room for improvement beyond the current negative-score threshold.
  • Model-B vs. Model-C: Model-B (multi-task training, single-task evaluation) sometimes preserves similarity better than Model-C, though Model-C generally leads in novelty and binding affinity. This suggests a trade-off that might be further explored.
  • Future Directions: The authors suggest that this unified, multi-task diffusion approach can serve as a foundation for more general-purpose molecular generators, potentially extending to more complex tasks and larger molecular spaces. The ability to learn shared priors also opens avenues for more efficient knowledge distillation into smaller student models.

Summary updated

Abstract

Three-dimensional molecular generators based on diffusion models can now reach near-crystallographic accuracy, yet they remain fragmented across tasks. SMILES-only inputs, two-stage pretrain-finetune pipelines, and one-task-one-model practices hinder stereochemical fidelity, task alignment, and zero-shot transfer. We introduce MODA, a diffusion framework that unifies fragment growing, linker design, scaffold hopping, and side-chain decoration with a Bayesian mask scheduler. During training, a contiguous spatial fragment is masked and then denoised in one pass, enabling the model to learn shared geometric and chemical priors across tasks. Multi-task training yields a universal backbone that surpasses six diffusion baselines and three training paradigms on substructure, chemical property, interaction, and geometry. Model-C reduces ligand-protein clashes and substructure divergences while maintaining Lipinski compliance, whereas Model-B preserves similarity but trails in novelty and binding affinity. Zero-shot de novo design and lead-optimisation tests confirm stable negative Vina scores and high improvement rates without force-field refinement. These results demonstrate that a single-stage multi-task diffusion routine can replace two-stage workflows for structure-based molecular design.
BibTeX
@misc{xu2025moda,
  author = {Dong Xu and Zhangfan Yang and Sisi Yuan and Jenna Xinyi Yao and Jiangqiang Li and Junkai Ji},
  title = {{MODA: A Unified 3D Diffusion Framework for Multi-Task Target-Aware Molecular Generation}},
  year = {2025},
  eprint = {2507.07201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.07201},
}
Figure