Tunable Approximations to Control Time-to-Solution in an HPC Molecular Docking Mini-App

Davide Gadioli, Gianluca Palermo, Stefano Cherubin, Emanuele Vitali, Giovanni Agosta, Candida Manelfi, Andrea R. Beccari, Carlo Cavazzoni, Nico Sanna, Cristina SilvanoarXiv 2019

TL;DR

This paper introduces tunable software approximations to GeoDock-MA, a high-performance computing (HPC) mini-app for molecular docking, allowing researchers to trade minor accuracy losses for massive computational speedups. By modeling time-to-solution as a function of both software configuration and input data features, the application automatically self-tunes to maximize docking accuracy within a user-specified time budget. This approach enables virtual screening campaigns to process up to an order of magnitude more candidate molecules under strict time constraints.

What Problem Does This Paper Address?

In drug discovery, identifying a new drug requires screening billions of small candidate molecules (ligands) against target protein binding sites (pockets) to see if they fit together—a process called in silico virtual screening. Molecular docking simulates this interaction by evaluating the three-dimensional "pose" of a ligand inside a pocket.

However, ligands are highly flexible, possessing numerous degrees of freedom due to rotatable chemical bonds. Exploring the entire space of possible shapes and orientations is computationally impossible. While state-of-the-art tools use heuristic sampling to find good solutions within reasonable timeframes, they lack flexibility. Pharmaceutical companies operate under strict time and financial budgets, yet traditional docking software does not allow users to dynamically trade off calculation accuracy to fit a specific time window. Consequently, researchers often arbitrarily shrink their candidate molecule databases, potentially missing life-saving discoveries.

Methods

The authors address this by modifying GeoDock-MA, an HPC mini-app derived from the state-of-the-art LiGenDock application. GeoDock-MA utilizes a geometric approach, scoring how well a ligand fits a pocket based on shape and volume overlap.

Fig. 1. 3D visualization of a docked ligand (connected structure) inside a PASS version of the target pocket (dark spots).

The authors analyzed the application's most computationally expensive kernel, MatchProbesShape, which rotates fragments of the ligand to maximize the geometric overlap score. They introduced five tunable "software knobs" to control the approximation level:

  1. HIGH-PRECISION STEP: The fine-grained angle step size for fragment rotation.
  2. LOW-PRECISION STEP: A coarse-grained angle step size used for less critical fragments.
  3. THRESHOLD: The relative fragment size below which the low-precision step is applied.
  4. REPETITIONS: The number of times the greedy optimization loop is repeated.
  5. ENABLE REFINEMENT: A toggle for an iterative refinement technique based on loop tiling and grid-based peeling.

To automate the selection of these knobs, the authors integrated the mARGOt autotuning framework. They built a predictive time-to-solution model using multivariate linear regression. This model takes into account the software knobs as well as input data features, such as the number of 3D points in the pocket, the average number of atoms in the ligand, and the average number of rotatable bonds.

Datasets

The methodology was evaluated using:

  • A massive chemical library containing 113,000 (113K) ligands, with sizes ranging from 28 to 153 atoms and flexibility ranging from 2 to 53 rotatable bonds (rotamers).
  • 6 protein-ligand complexes from the RCSB Protein Data Bank (PDB): 1b9v, 1c1v, 1cvu, 1c2, 1dh3, and 1fm9. Pockets were represented using the PASS (Putative Active Sites with Spheres) format.

Key Insights and Ideas

  • Fragment Size vs. Impact: Small ligand fragments have a negligible impact on the final overall overlap score. This justifies using a THRESHOLD knob to aggressively skip fine-grained rotations on small fragments without significantly hurting accuracy.
  • Smooth Overlap Landscapes: Plotting the overlap score against the rotation angle reveals that the "peaks" containing the optimal scores are generally quite wide (a median width of 68°).
Fig. 3. Changes in the overlap score by rotating a fragment of the ligand. The x-axis represents the angle of the rotation, while the y-axis represents the overlap score of the ligand.

Because the landscape is smooth, the application can safely use loop tiling—evaluating only the center element of a tile first and refining only if it looks promising.

  • The Power of Repetition: Because the baseline docking algorithm is greedy, the authors discovered a counter-intuitive truth: running multiple fast, aggressively approximated optimization passes (REPETITIONS) often yields better final poses than a single, slow, high-precision pass.

Key Results

  • Massive Speedups with Low Error: Enabling the iterative refinement knob alone achieved a 7.4× throughput speedup while introducing a mere 2.3% overlap score degradation compared to the exact baseline.
  • Pareto Dominance: The multi-knob approximation space consistently outperformed traditional "flat" loop perforation techniques across all test cases.
  • Highly Accurate Performance Modeling: The predictive time-to-solution model achieved an average adjusted $R^2$ of 0.977, keeping the average execution time prediction error below 1%.
  • Real-World Impact: In a simulated 24-hour screening campaign on 8 nodes of the Galileo supercomputer, the autotuned adaptive version successfully processed a target database of up to $850 \times 10^6$ ligands by dynamically lowering precision. Under the same constraints, the baseline version's completion rate plummeted, requiring more than 20 days to finish the same workload.

Limitations and Future Work

While highly effective for geometric filtering, GeoDock-MA only evaluates shape and volume compatibility. It does not capture complex chemical and physical interactions (pharmacophoric properties), meaning a secondary, more expensive pharmacophoric docking phase is still required for final pose verification. Additionally, the performance model is platform-dependent and must be retrained whenever the underlying HPC hardware architecture changes. Future work points toward extending this autotuning approximation framework to encompass full pharmacophoric docking workflows.

Summary updated

BibTeX
@misc{gadioli2019tunable,
  author = {Davide Gadioli and Gianluca Palermo and Stefano Cherubin and Emanuele Vitali and Giovanni Agosta and Candida Manelfi and Andrea R. Beccari and Carlo Cavazzoni and Nico Sanna and Cristina Silvano},
  title = {{Tunable Approximations to Control Time-to-Solution in an HPC Molecular Docking Mini-App}},
  year = {2019},
  eprint = {1901.06363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.06363},
}
Figure