Docking by denoising

DiffDock-L places a drug-like molecule in its protein pocket by running a diffusion backwards, from noise to a pose. It proposes ten of them. This project asks what to do with those ten.

Step0 / 18
Distance to the crystal pose—
Closest protein atom—
Mayeul Ricard, Nassim Arifette (PhD student, École polytechnique)
Master MVA, ENS Paris-Saclay
DiffDock-L, PoseBusters

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.

Figure 1. Translation along a fixed direction, rotation about a fixed axis through the ligand’s centre, and one torsion at a time. Moving atoms of the chosen torsion are drawn larger. Distances are heavy-atom RMSD to the crystal pose in the same atom order, and the closest protein heavy atom.

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.

Figure 2. Reverse diffusion of one candidate. Green ghost: the crystal pose. The upper curve is the symmetry-aware RMSD to it; the lower one is the closest protein heavy atom, with a line at 2.2 Å. Step 0 of the sampler is not recorded by upstream DiffDock, so the first frame is the random start.

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.

Figure 3. Click a candidate. Red atoms are closer than 2.2 Å to a protein heavy atom; the closest crystal-ligand atom is 2.69 Å away. The dashed line is the 2 Å success threshold. Checks are PoseBusters 0.6.5 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.

Figure 4. The four selectors. C and D need GNINA, a CNN-based scoring and minimisation program. An empty filtered pool counts as failure; there is no fallback to A.

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.

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.

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

  1. Gabriele Corso, Hannes Stärk, Bowen Jing, Regina Barzilay, Tommi Jaakkola. DiffDock: Diffusion Steps, Twists, and Turns for Molecular Docking. ICLR 2023.
  2. Gabriele Corso, Arthur Deng, Benjamin Fry, Nicholas Polizzi, Regina Barzilay, Tommi Jaakkola. Deep Confident Steps to New Pockets: Strategies for Docking Generalization. ICLR 2024.
  3. 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.
  4. Andrew T. McNutt et al. GNINA 1.0: molecular docking with deep learning. Journal of Cheminformatics, 2021.