Abstract Three-dimensional molecular similarity methods such as ROCS (Rapid Overlay of Chemical Structures) provide high-quality retrieval for scaffold-hopping drug discovery, but they compare the query against every database molecule individually, so screening time grows in direct proportion to library size and becomes impractical for the largest catalogs. Learned embeddings instead represent each molecule as a single vector that is indexed once and searched almost instantly regardless of library size, but they have historically traded accuracy for speed. Here we introduce the Heisenberg fingerprint (HFP), a 256-dimensional molecular embedding read out from the hidden representations of pretrained neural network potentials (NNPs): per-atom features from a density functional theory (DFT)-trained NNP backbone are pooled by multihead attention and trained to reproduce three-dimensional shape, electrostatic, and pharmacophore similarity simultaneously from two million molecular pairs, making computable at scale the electronic and steric similarity that medicinal chemists weigh by intuition. Benchmarked against 11 established 2D and 3D similarity methods under a single protocol, HFP performs on par with the strongest methods on overall virtual-screening ranking, while topological fingerprints, by design, remain better at early enrichment of close analogs. HFP is built for a different task, and its distinctive strength is recognizing scaffold hops: molecules that act on the same target despite very different chemical scaffolds, which topological fingerprints cannot detect by construction. Across 147 documented scaffold-hop cases, HFP places the true partner at the top of the ranked list more often than any other method tested, about twice as often as Morgan fingerprints and several times more often than the rest, a lead that is statistically significant against the other baselines and, with a five-conformer ensemble, against Morgan as well. A controlled analysis confirms the benefit is specific to recognizing curated scaffold hops rather than a general screening advantage. Because each molecule becomes a single indexed vector, HFP matches an open single-conformer 3D shape baseline (Open3DAlign, O3A) on retrieval accuracy while searching billion-compound libraries in under a second, work that would take pairwise methods months to years; the approach is backbone-agnostic (validated on Egret-1 and MACE-OFF23) and is built entirely from openly available models.
Why it mattersThe authors read 256-dimensional molecular embeddings from hidden states of DFT-trained neural network potentials, pooling per-atom features with multihead attention and training on two million pairs to reproduce 3D shape, electrostatic and pharmacophore similarity. HFP matched the strongest methods in overall virtual screening and led on 147 scaffold-hop cases, enabling sub-second billion-compound searches.
The authors read 256-dimensional molecular embeddings from hidden states of DFT-trained neural network potentials, pooling per-atom features with multihead attention and training on two million pairs to reproduce 3D shape, electrostatic and pharmacophore similarity. HFP matched the strongest methods in overall virtual screening and led on 147 scaffold-hop cases, enabling sub-second billion-compound searches.