In short
DiffDock treats molecular docking as generative modelling. It samples where and how a ligand sits in a protein by denoising its position, orientation and flexible bonds, and a second network ranks the samples by confidence.
Generating poses and choosing one are two separate problems. In the run shown here, none of the ten candidates lands within 2 Å of the crystal pose, and all of them collide with the protein. No ranking can fix that pool.
We built an auditable pipeline that measures the two failures separately, plus a frozen pilot comparing four ways of choosing among the same candidates. The pilot results are not in yet. For now this page shows the method on real outputs and states the protocol in advance.
The pose has three kinds of freedom
The protein is held rigid. For the ligand, what is left to decide is where its centre sits (a translation in ℝ³), how it is turned (a rotation in SO(3)), and how far each rotatable bond is twisted (one angle per torsion). DiffDock adds noise to all three and learns to remove it [1].
Below is 1A0Q’s ligand in its crystal pose. It is a phosphonate with 23 heavy atoms and 11 torsions in DiffDock’s sense, meaning bonds whose rotation moves more than one atom. Push it around and keep an eye on two numbers: how far it is from where it belongs, and whether it starts to overlap the protein.
Running the diffusion backwards
Sampling starts from a random pose. The ligand is dropped somewhere near the protein, turned and twisted at random. Over about twenty steps, a score network proposes small updates to the translation, rotation and torsions while the noise level shrinks. Atoms only ever move through those three kinds of update, so bond lengths and angles stay those of the input conformer.
The frames below were recorded during a real DiffDock-L run on a T4 GPU, for all ten candidates. Pick one and scrub through its steps.
Ten candidates, none of them right
A confidence model ranks the samples. It is trained to predict how close a pose is to the experimental one. It does not predict binding affinity, and it does not check physics. PoseBusters [3] does check physics: bond lengths, angles, flat rings, internal clashes, and clashes with the protein.
In this run, confidence puts a 5.2 Å pose first, and the closest candidate in the pool (3.7 Å) is ranked eighth. Every pose passes the internal chemistry checks and fails the two protein-contact checks. Since the crystal ligand passes them against the same prepared receptor, the validator is not to blame.
dock plus identity and stereochemistry against the input.So the run fails in two ways. The generator produced no near-native pose, and the poses it did produce are physically impossible. A filter that keeps only valid poses would keep none, and a better ranker would still pick a wrong one. The pilot is there to tell these two failures apart.
The pilot: four ways to choose
We wrote the protocol before any pilot result existed. It freezes a set of complexes from the 308-case PoseBusters benchmark and generates 20 DiffDock-L candidates per complex and seed. Four selectors are then compared on exactly the same candidates, and none of them ever sees the reference pose.
The primary outcome is a top-1 pose that is within 2 Å and also physically valid. We also report RMSD-only and validity-only success, top-5, the best pose in each pool (“oracle” quality), abstentions and errors. That way a selector cannot look good just by refusing the hard cases.
- There are 5 development and 20 evaluation complexes, with 3 seeds each. Seeds are repeated measurements of the same complex rather than new data, so uncertainty is bootstrapped by complex.
- The splits are PDB-disjoint but not protein-family-disjoint, and the checkpoint’s training overlap with the benchmark has not been audited.
- Receptors with metals or covalent links are excluded, and waters, ions and other heteroatoms are removed. Nothing here tells you anything about metal, covalent, cofactor or water-mediated binding.
- Filtering, rescoring and refinement are established methods, and DiffDock-Glide and Matcha already combine them with diffusion docking. What we add is a transparent comparison and failure analysis at a fixed generation budget.
What the original course project got wrong
The original course report is kept as a course artifact, with a revision note. The ligand it docked into 6AGT is not that structure’s crystal ligand. It also read the confidence score as if it measured affinity, and treated a physically plausible pose as a synthesizable one. Its plots cannot serve as a traceable baseline. The revised pipeline records, with hashes, the upstream commit, weights, inputs, seeds, effective parameters, GPU and timings of every run.
Run it yourself
The notebooks run in a Colab GPU runtime. DiffDock itself needs a separate pinned Python 3.9 / torch 1.13.1 environment; the docking notebook installs it.
- 01_geometryTranslations, rotations and bond-axis torsions, with numerical checks.
- 02_docking_colabPinned install, one complex, verified poses, manifest and export.
- 04_pose_inspectorSaved poses, reference overlay, validity checks and real sampler frames.
- 05_fixed_candidate_pilotThe PoseBusters pilot and its paired comparison.
- case.jsonThe data behind the figures above: receptor, crystal ligand, and the ten poses with their frames and checks.
python -m docking_tools.pilot_dataset --out /content/posebusters_pilot
python -m docking_tools.pilot --manifest /content/posebusters_pilot/pilot_manifest.json --split dev --out /content/pilot_dev
python -m docking_tools.pilot_summary /content/pilot_dev
References
- Gabriele Corso, Hannes Stärk, Bowen Jing, Regina Barzilay, Tommi Jaakkola. DiffDock: Diffusion Steps, Twists, and Turns for Molecular Docking. ICLR 2023.
- Gabriele Corso, Arthur Deng, Benjamin Fry, Nicholas Polizzi, Regina Barzilay, Tommi Jaakkola. Deep Confident Steps to New Pockets: Strategies for Docking Generalization. ICLR 2024.
- Martin Buttenschoen, Garrett M. Morris, Charlotte M. Deane. PoseBusters: AI-based docking methods fail to generate physically valid poses or generalise to novel sequences. Chemical Science, 2024.
- Andrew T. McNutt et al. GNINA 1.0: molecular docking with deep learning. Journal of Cheminformatics, 2021.