NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Harmonic Torsional Diffusion for Flexible Protein-Ligand Docking

Maksim Zhdanov, Pavel Strashnov, Vladislav KurenkovNeurIPS 2026

TL;DR

Molecules aren’t rigid Lego bricks—when a drug binds to a protein, both twist and flex around rotatable chemical bonds. Most generative AI docking models predict these rotations using standard linear math, ignoring the simple geometric reality that angles wrap around a circle. Harmony fixes this by translating rotational diffusion into Fourier space, treating molecular twisting like heat flowing around a ring—and massively boosting flexible docking accuracy without needing messy post-processing cleanup.

What Problem Does This Paper Address?

To design new drugs, we need to predict how a small molecule (ligand) fits into a protein's binding pocket—a task called molecular docking. Historically, computational methods cheated by freezing the protein solid, even though real proteins are dynamic: their amino acid side chains wiggle and snap into discrete, preferred angular states (called rotamers) to accommodate a binding drug.

Recent deep learning models tackle flexible docking using diffusion, gradually denoising random molecular configurations into a bound 3D structure. However, they typically predict bond rotations (torsional angles) using generic Euclidean neural network heads. Because an angle of $-\pi$ is the exact same physical state as $+\pi$, treating circular angles like a flat, infinite number line creates a geometric mismatch. Furthermore, because side chains and ligands prefer discrete, multi-modal angular states due to steric clashes, neural networks struggle to learn these sharp, periodic landscapes from scratch.

Methods

The authors introduce Harmony (Harmonic Torsional Diffusion), a pocket-based flexible docking framework that keeps the protein backbone fixed while allowing the ligand's position, orientation, and rotatable bonds—along with the protein's pocket side-chain bonds—to move freely.

What’s standard: Harmony uses an $SE(3)$-equivariant graph neural network (built with e3nn and accelerated via OpenEquivariance CUDA kernels) over a multi-scale graph of ligand atoms, protein residues, and pocket atoms. Like prior work, it uses a Variance-Exploding Stochastic Differential Equation (VE-SDE) to add Gaussian noise to the system, along with a lightweight confidence head to rank sampled poses.

Figure 1: Overview of Harmony. Starting from a representation produced by any graph-based neural backbone, Harmony replaces direct torsion regression with a structured periodic parameterization. Instead of predicting a single angular update, the model learns harmonic coefficients that define a Fourier potential, whose derivative yields the torsional score field for ligand and flexible side-chain dihedrals. This construction makes periodicity explicit and enables the model to naturally represent difficult torsional configurations. See more in Section 4.3.

What’s new: Harmony aligns the neural network's output directly with the physics of diffusion on a circle ($\mathbb{T}$). Adding wrapped Gaussian noise to an angle via a VE-SDE is mathematically identical to heat flow on a circle, governed by the heat equation. And the natural eigenfunctions of heat flow on a circle are simply sines and cosines—the Fourier basis!

Instead of predicting a raw angular nudge, Harmony’s network predicts $K$ pairs of Fourier coefficients ($a_k, b_k$) for every rotatable bond. These define a smooth, periodic harmonic potential on the circle. Because heat flow acts diagonally in Fourier space, the exact effect of diffusion noise $\sigma(\lambda)$ is known analytically: each frequency mode $k$ is multiplied by a heat-semigroup damping factor, $\exp(-\frac{1}{2}k^2\sigma^2(\lambda))$. Harmony differentiates this damped Fourier series with respect to the angle to get an exact, periodic score field.

Figure 2: Frequency damping effect of VE noising. As noise level increases high-frequency components saturate faster, but low-frequency modes remain. Thus, Harmony learns torsional motion naturally by filtering out different scales of molecular motion during train- ing.

Datasets

  • PDBBind: Used for training and evaluating flexible docking. To mimic realistic unbound (apo) starting states rather than cheating with bound crystal structures, the authors evaluate on protein structures predicted by ESMFold.
  • PoseBusters: Used both as a suite of physical and chemical plausibility checks (testing for steric clashes, bond lengths, etc.) on the PDBBind test set, and as a standalone benchmark set (evaluated in the appendix with OpenMM relaxation).

No new datasets are introduced.

Key Insights and Ideas

  • Built-in multi-scale frequency filtering: Because of the $k^2$ term in the analytical damping factor, high-frequency angular wiggles vanish rapidly at high noise, leaving only coarse, low-frequency directional signals. As noise approaches zero during generation, fine rotameric details naturally re-emerge. When the authors ablated this analytical damping term, docking success plummeted from 64.2% to 53.3%.
  • Conformational dynamics are intrinsically low-frequency: Varying the number of Fourier modes $K$ showed that $K=8$ is optimal, and even $K=2$ beats prior state-of-the-art models. Pushing to higher frequencies ($K=12$) actually hurts performance because fine modes are weakly supervised at high noise and prone to overfitting.
  • Co-adaptation is a two-way street: Applying the harmonic head only to the ligand still improved protein side-chain accuracy over the baseline, and applying it only to side chains jumped ligand docking success from 41.6% to 57.9%. Giving one component a better geometric representation helps the shared network reason about the entire binding interface.

Key Results

Crucially, Harmony achieves its main results without post-hoc energy relaxation (like OpenMM or learned refinement networks), isolating the true quality of the generative model:

  • Ligand Pose Accuracy: On the PDBBind ESMFold benchmark, Harmony achieves 64.2% top-1 success (ligand heavy-atom RMSD $< 2\text{\AA}$), outperforming FlexDock (39.7%, a +24.5 percentage point jump), DiffDock-Pocket (41.8%), and DiffBindFR (51.0%).
  • Pocket Reconstruction: Harmony reconstructs pocket all-atom geometry within $1\text{\AA}$ RMSD 47.3% of the time, beating FlexDock (41.7%) and FIGRDock (44.3%).
  • Physical Validity: Without relaxation, Harmony achieves 13.7% on strict PoseBusters validity + accuracy (PB-Valid & L-RMSD < 2Å), beating unrelaxed DiffDock-Pocket (10.3%) and FlexDock (9.4%).
Figure 3: PoseBusters validity on the PDBBind test set with no relaxation.
  • Speed & Case Studies: Inference takes 5 seconds per complex using OpenEquivariance kernels (cutting 8xH100 training time from ~4.5 days to 2 days). On tough, therapeutically relevant targets like EBNA1 (a broad polar site with an enclosing loop) and KRAS G12D (notoriously shallow and exposed), Harmony accurately recovers crystal poses where FlexDock fails (e.g., $1.90\text{\AA}$ vs. $5.05\text{\AA}$ ligand RMSD on KRAS).

Limitations and Future Work

  • Tied to Gaussian priors: Harmony’s exact Fourier-mode damping relies on the heat-kernel math of Variance-Exploding diffusion, which starts from a Gaussian/uniform prior. Adapting this to arbitrary endpoint distributions—like Riemannian flow matching, which maps directly from apo to holo distributions—only yields moderate gains right now because the exact analytical damping doesn't transfer.
  • Rigid protein backbone: Harmony keeps the protein's $C_\alpha$ backbone fixed. If a target undergoes massive backbone rearrangements upon drug binding, side-chain flexibility alone won't cut it.
  • Next steps: The authors highlight extending harmonic formulations to flow-based interpolants for full-backbone flexible docking, and testing harmonic score heads in standalone molecular conformer generation, protein design, and materials discovery.

Summary updated

BibTeX
@inproceedings{zhdanov2026harmonic,
  author = {Maksim Zhdanov and Pavel Strashnov and Vladislav Kurenkov},
  title = {{Harmonic Torsional Diffusion for Flexible Protein-Ligand Docking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=JgekVKyVaW},
}
Figure