3DMolFormer: A Dual-channel Framework for Structure-based Drug Discovery

Xiuyuan Hu, Guoqing Liu, Can Chen, Yang Zhao, Hao Zhang, Xue Liu

3DMolFormer is a unified, dual-channel transformer framework that bridges the gap between two pillars of drug discovery: predicting how a drug binds to a protein (docking) and designing new drugs from scratch. By representing 3D molecular structures as parallel sequences of discrete chemical tokens and continuous numerical coordinates, it achieves state-of-the-art performance in both tasks, significantly outperforming existing specialized models.

What Problem Does This Paper Address?

Structure-Based Drug Discovery (SBDD) typically involves two distinct challenges:

  1. Protein-Ligand Docking: A predictive task where researchers try to find the optimal 3D "pose" of a known drug within a protein's binding pocket.
  2. Pocket-Aware 3D Drug Design: A generative task where a model must invent a new molecule that fits perfectly into a specific protein target.

Historically, these tasks have been treated separately. However, they are inherently "dual": if a model understands how to dock a molecule, it should theoretically be better at designing one. Current methods struggle to leverage this duality and face two major technical hurdles:

  • Data Modality Mismatch: It is difficult to combine discrete data (like atom types and chemical bonds) with continuous data (3D spatial coordinates) in a single architecture.
  • Data Scarcity: High-quality, experimentally verified 3D protein-ligand complexes are rare, making it hard to train robust deep-learning models from scratch.

Methods: A Dual-Channel Approach

To overcome these hurdles, the authors introduce 3DMolFormer, which treats 3D molecular complexes as a "language" with two synchronized dialects.

Overview of the 3DMolFormer framework, including its dual-channel architecture and training pipeline.
  • Dual-Channel Architecture: Based on the GPT-2 architecture, the model uses two parallel channels. The Token Channel processes discrete chemical information (SMILES strings and atom types), while the Numerical Channel handles the continuous XYZ coordinates.
  • Unified Representation: Instead of "binning" coordinates into discrete tokens (which loses precision), 3DMolFormer multiplies token embeddings by their corresponding coordinate values. This allows the model to maintain the continuity of 3D space.
  • Training Pipeline:
    • Large-scale Pre-training: The model is first trained on a massive dataset of 3.2 million protein pockets and 209 million ligand conformations (from Uni-Mol and CrossDocked2020) to learn general molecular patterns.
  • Supervised Fine-tuning (Docking): It is then refined using high-quality experimental data (PDBbind v2020) to predict precise binding poses.
  • Reinforcement Learning (Design): For drug design, the model uses an RL agent. Crucially, it leverages the weights learned during the docking phase to ensure that the 3D coordinates of the "invented" drugs are physically plausible and energetically favorable.

Key Insights

  • Exploiting Duality: The most significant breakthrough is the realization that docking and design should share the same "brain." By using the docking-refined weights to guide the 3D placement of atoms during the generative design process, the model produces molecules that are much more likely to actually bind to the target.
  • Continuous Coordinates over Tokenization: Many previous transformers tried to turn coordinates into text-like tokens. 3DMolFormer shows that keeping coordinates as floating-point numbers in a dedicated channel preserves the spatial "logic" of chemistry much better.
  • Implicit Equivariance: While many 3D models use complex "equivariant" architectures to ensure the model understands that rotating a molecule doesn't change its identity, 3DMolFormer achieves similar results through data augmentation (random rotations) and coordinate normalization, proving that a standard transformer can learn these symmetries if given enough data.

Key Results

3DMolFormer was rigorously evaluated on standard benchmarks (CASF-2016 for docking, PoseBusters for physical reliability, and a diverse subset of CrossDocked2020 for design).

Comparison of docking performance showing 3DMolFormer achieving state-of-the-art RMSD.
  • Docking Superiority: 3DMolFormer achieved an average RMSD (Root Mean Square Deviation) of 1.29 Å, outperforming the previous state-of-the-art, Uni-Mol (1.62 Å). In the world of docking, an RMSD under 2.0 Å is generally considered a "successful" pose.
  • Design Breakthrough: In the drug design task, 3DMolFormer reached a Success Rate of 85.3% in meeting multi-objective criteria (binding affinity, drug-likeness, and synthesizability). This is a massive leap over previous models like DecompDiff, which sat at 24.5%.
  • Efficiency: The model can predict a binding pose in approximately 0.8 seconds on a single A100 GPU, making it highly suitable for large-scale virtual screening.

Limitations and Future Work

Despite its impressive performance, the authors note several areas for future improvement:

  • Rigid Pockets: The model currently treats protein pockets as rigid structures. In reality, proteins are flexible and "wiggle" when a drug binds to them.
  • Static Nature: Docking is treated as a static snapshot, whereas binding is a dynamic process.
  • Environmental Factors: The model does not yet account for external factors like pH or temperature, which can significantly alter how a drug behaves in the body.
  • RL Optimization: More advanced multi-objective reinforcement learning techniques could further refine the drug design process.

Summary updated

BibTeX
@inproceedings{hu2025dmolformer,
  author = {Xiuyuan Hu and Guoqing Liu and Can Chen and Yang Zhao and Hao Zhang and Xue Liu},
  title = {{3DMolFormer: A Dual-channel Framework for Structure-based Drug Discovery}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=RgE1qiO2ek},
}
Figure