Manuscript Offprint

arXiv:2609.35623

RIDE: Reference-Anchored Inference-Time Diffusion Editing for Scaffold Hopping

Ruoxi Gao, Frazier N. Baker, Trieu Nguyen, Xia Ning

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Scaffold hopping is a critical task in drug discovery, which seeks to discover new, structurally distinct molecules that share key functional groups and similar 3D shape with a reference binding ligand. Existing diffusion-based scaffold hopping methods formulate the problem as conditional generation of scaffolds given the functional groups. However, they lack a principled mechanism to jointly enforce 2D structural novelty and preserve the 3D shape of the reference ligand. Here, we introduce RIDE, a Reference-anchored Inference-time Diffusion Editing framework for scaffold hopping. RIDE recovers the reference diffusion noise trajectory conditioned on the binding pocket and functional groups, selects an optimal trajectory segment for editing via noise perturbation, and conducts a value-guided scaffold sampling to generate new scaffolds. Extensive experimental results demonstrate that, compared to baselines, RIDE consistently generates scaffolds with lower 2D similarity and higher 3D similarity to the reference, with an average improvements of 11.7% and 7.3%, respectively. Further analysis reveals that RIDE can accommodate various reward functions, and can preserve 3D similarity even when this is not explicitly included in the reward. Two case studies illustrate RIDE's ability to generate distinct scaffolds with different structures and properties, and its ability to introduce substantial 2D variation while maintaining very high 3D similarity. RIDE is publicly available at https://anonymous.4open.science/r/RIDE-C8A0.

1 INTRODUCTION

Scaffold hopping is a critical task in drug discovery, which seeks to discover new, structurally distinct molecules that share key functional groups and similar 3D shape with a reference binding ligand (Böhm et al., 2004). Effective scaffold hopping increases the success rate of drug discovery by exploring a variety of molecule structures with similar binding but different properties, synthesizability, and patentability (Böhm et al., 2004). Recently, generative AI methods have opened new avenues for scaffold hopping (Zheng et al., 2021; Torge et al., 2023; Yoo et al., 2024; Yang et al., 2026). These methods provide the ability to sample new molecular structures from distributions learned from vast datasets, enabling the exploration of chemical spaces beyond those familiar to domain experts and expanding opportunities to discover novel molecular scaffolds.

Among generative AI methods, diffusion models are particularly promising for scaffold hopping, as their iterative denoising process enables flexible and fine-grained control over generation. Several efforts (Torge et al., 2023; Adams et al., 2025; Yang et al., 2026) have applied diffusion to scaffold hopping, formulating the problem as the conditional generation of scaffolds given the functional groups. While these methods can generate new scaffolds, they rely on sampling stochasticity to diversify their generated results, and lack a principled mechanism to promote structural novelty, leaving the extent of structural divergence from the original scaffold largely to chance. While scaffold hopping based on diffusion models for structure-based drug design (SBDD) (Guan et al., 2023; 2024; Huang et al., 2024) can leverage protein-ligand binding information, it lacks explicit guarantees of substantial 2D structural novelty relative to known ligands. Conversely, approaches based on diffusion for ligand-based drug design (LBDD) (Chen et al., 2025; Adams et al., 2025) can explore structurally distinct scaffolds but lack explicit guidance from protein-ligand binding.

We introduce RIDE, a Reference-anchored Inference-time Diffusion Editing framework for scaffold hopping. RIDE reformulates scaffold hopping as a diffusion editing process that transforms the reference scaffold into new scaffolds. As shown in Figure 1, it operates in three steps: (1) recovery of the reference diffusion noise trajectory conditioned on the binding pocket and functional groups, (2) selection of an optimal trajectory segment for editing via noise

Figure

Figure 1: Overview of RIDE. a, RIDE generates new scaffolds based on a reference scaffold, fixed functional groups, and protein pocket; b, RIDE recovers the noise trajectory for the reference ligand from a diffusion-based molecule generation model adapted to scaffold hopping; c, RIDE identifies a reference-optimal noise trajectory segment for editing; and d, RIDE performs a value-guided transition within the reference-optimal trajectory segment for a controlled editing of the noise trajectory, thus sampling a set of new scaffolds.

perturbation, and (3) value-guided scaffold sampling to generate new scaffolds. RIDE leverages a reward function measuring 2D structural novelty and 3D shape similarity to guide noise perturbation and scaffold sampling, jointly enforcing 2D structural novelty and preserving the 3D shape of the reference ligand. As a framework for inference-time editing, RIDE can adapt pre-trained diffusion-based molecular generative models for controllable scaffold hopping without retraining.

We rigorously evaluate RIDE with state-of-the-art baseline models on 60 scaffold hopping tasks for protein-ligand complexes related to major human diseases. Compared to baselines, RIDE consistently generates scaffolds with lower 2D similarity and higher 3D similarity to the reference, with an average improvements of 11.7% and 7.3%, respectively. Further analysis reveals that RIDE can accommodate various reward functions, and can preserve 3D similarity even when this is not explicitly included in the reward. RIDE can be applied iteratively to explore even more structurally distinct scaffolds, where a RIDE-generated molecule is used as a new “reference” to RIDE for further scaffold hopping. Experiments reveal a trade-off in multiple hops between progressively improving the similarity profile and preserving binding. Additionally, two case studies illustrate RIDE’s ability to generate distinct scaffolds with different structures and properties, and its ability to introduce substantial 2D variation while maintaining very high 3D similarity. RIDE is publicly available at https://anonymous.4open.science/r/RIDE-C8A0.

References (42)