Manuscript Offprint

arXiv:2610.19920

MolHop: Scaffold-Hopping Molecular Design with Agentic Reinforcement Learning

Yanyi Su, Chenyan Wang, Yulei Gong, Yeyun Chen, Xiaohui Yang, Jun Cheng

ABSTRACT

Molecular design is often formulated as an optimization problem over existing molecular spaces. However, molecular optimization and the discovery of structurally distinct replacement molecules represent two fundamentally different search problems. LLM-based molecular design agents typically perform the former, conducting local refinement within the neighborhood of existing structures to improve target properties through structural modifications. In contrast, the latter requires exploration of a broader chemical space to discover molecules with entirely different scaffolds while preserving the functional characteristics of reference molecules. We propose MolHop, an agentic framework for cross-scaffold molecular discovery that enables models to navigate and edit within a pre-organized chemical space. MolHop organizes approximately 1.6 million molecular scaffolds from commercial molecules into a coarse-to-fine hierarchical action space. The agent selects new exploration regions through scaffold navigation actions and adjusts candidate properties through molecular editing. The framework maintains historical trajectory memory to support long-horizon search processes. On drug molecule and commercial compound tasks, connecting Grok-4.6 and DeepSeek-Flash-V4.1 to the MolHop framework substantially improves their cross-scaffold joint success rates. We develop MolHop-9B through agentic reinforcement learning, and MolHop-9B outperforms generative baselines including GPT-5.6-sol, Claude-5-Opus, and Gemini-3.1-Pro, while generating candidate molecules with larger scaffold differences from the reference molecules. These results demonstrate that effective molecular discovery beyond the traditional optimization paradigm requires structured chemical and action spaces, enabling agents to explore new structural regions rather than merely refine existing molecules.

1 Introduction

Molecular discovery often starts from a reference compound that already possesses the target function. However, within the molecular discovery process, optimizing an existing molecule and finding a structurally distinct alternative molecule represent two fundamentally different search problems. Molecular optimization typically performs local editing within the neighborhood of the reference structure and optimizes specific properties. In contrast, many practical molecular discovery tasks require candidate molecules to leave the original scaffold family while maintaining multiple target properties. For example, applications including patent circumvention, restricted substance substitution, and toxicity mitigation require alternative molecules with different structures but matched multiple properties. Since a new scaffold starting point may simultaneously alter multiple physicochemical properties, the search process needs to continuously select new structural regions during long-horizon exploration and progressively recover property matching through multiple rounds of scaffold hopping and molecular editing.

In recent years, language model-based molecular design agents have introduced a new paradigm for molecular optimization through tool use. Existing methods (Yang et al., 2025; Li et al., 2026a;b; Zhou et al., 2026) primarily rely on local editing operations to iteratively optimize candidate molecules. Scaffold similarity constraints are further introduced to encourage the search process to preserve the core structure of the reference molecule. In such frame-

(a) Scaffold hopping across molecular space

Match properties · Lower SA · Change scaffold

Figure

(b) Hierarchical scaffold query ~1.6M scaffold leaves

(c) Agent-guided molecular editing

(d) Submit & evaluate

Figure 1: Overview of MolHop, a hierarchical scaffold navigation framework with memory-guided molecular editing. (a) Illustration of scaffold hopping across molecular space. (b) Hierarchical scaffold space and coarse-to-fine scaffold query. (c) Agent interaction with MolHop tools for molecular inspection and editing. (d) Joint success criteria for candidate evaluation. (e) Trajectory memory for long-horizon scaffold search.

works, scaffold hopping typically appears only as an incidental outcome of the optimization process. In contrast, cross-scaffold molecular discovery requires active exploration of broader chemical space. Therefore, scaffold hopping should be modeled as a search operation equally important as molecular editing, enabling agents to actively explore new structural regions.

We propose MolHop, an agentic framework for cross-scaffold molecular discovery. As shown in Figure 1, MolHop models scaffold hopping as a navigation problem in a hierarchical chemical space and integrates scaffold selection, molecular editing, and trajectory memory into a unified agent harness. We extract approximately 1.6 million molecular scaffolds from a commercial molecular library and organize them into a multi-scale action space using a coarse-to-fine hierarchical representation. Through hierarchical navigation actions, the agent can retrieve, filter, and select new exploration regions, and subsequently optimize candidate properties through editing actions. Cross-scaffold search naturally involves multiple rounds of continuous environment interactions. Therefore, MolHop explicitly maintains trajectory memory based on environment feedback to record explored scaffolds, historical actions, and property feedback. This memory serves as an explicit search state, enabling the agent to adjust subsequent navigation and editing strategies based on historical trajectories.

We evaluate MolHop on two tasks involving drug molecules and commercial compounds. Without additional training, directly deploying the MolHop framework with Grok-4.6 and DeepSeek-Flash-V4.1 improves their cross-scaffold joint success rates. Furthermore, we adopt an SFT warm-start followed by GRPO training strategy (Guo et al., 2025) and train LLMs with 2B, 4B, and 9B parameter scales using multi-objective optimization rewards. The training objectives include multi-property matching, lower synthetic accessibility (SA) scores (Ertl & Schuffenhauer, 2009), and satisfying scaffold transition requirements. After agentic reinforcement learning training, MolHop-9B outperforms generative baselines including GPT-5.6-sol, Claude-5-Opus, and Gemini-3.1-Pro on drug molecule and commercial molecule tasks, while discovering candidate molecules with more substantial scaffold differences from the reference molecules. These results demonstrate that combining structured action spaces with search environments that support chemical space navigation can effectively enhance the capability of LLMs for cross-scaffold molecular discovery tasks.

Our main contributions are as follows:

  1. Hierarchical scaffold action space. We organize approximately 1.6 million commercial molecular scaffolds into a multi-scale space and introduce explicit scaffold navigation actions, enabling agents to perform cross-scaffold search.

  2. MolHop harness for long-horizon chemical space exploration. We integrate scaffold navigation, molecular editing, and trajectory memory into a unified environment to support long-trajectory, multi-turn molecular design processes.

  3. Agentic reinforcement learning for cross-scaffold discovery. We train MolHop agents with multi-objective rewards, enabling them to coordinate scaffold selection and molecular editing under cross-scaffold constraints.

References (18)