arXiv:2609.00189cs.LGAug 2026

Manuscript Offprint

arXiv:2609.00189

Elite-Weighted Supervised Fine-tuning for Goal-Directed Molecular Optimization

Shiyun Wa, Yifei Wang, Anna G. Green, Simone Sciabola, Ye Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Goal-directed optimization is essential for steering molecular generators to propose candidates with desired properties. However, it is often implemented with policy-gradient reinforcement learning, which requires a generation-trajectory log-probability whose form depends on the model architecture and generation procedure. This makes an optimizer difficult to reuse across architectures and conditional generative designs. Supervised fine-tuning needs none of that machinery, but its update is driven by a fixed dataset, so the reward never enters the update. We introduce Elite-Weighted Supervised Fine-tuning (EW-SFT), which uses reward to guide elite selection of high-scoring molecules, and updates the model by its own pretraining loss on that set. Ablations show that reward information is passed primarily through elite selection, rather than through continuous weighting within the selected set. Because the update consumes only scored molecules and the model's native loss, the same rule applies across autoregressive, masked-diffusion, and discrete-flow generators, and across de novo, motif-extension, and linker-design tasks. Under a fixed budget of 3D shape alignment oracle calls on two kinase reference compounds, EW-SFT consistently outperforms the corresponding native optimizers. It further improves goal-directed optimization under a 2D similarity oracle on four held-out references and achieves comparable performance on a sample-efficiency benchmark without a trajectory-level RL formulation. These results demonstrate that EW-SFT is a unified and effective optimizer across molecular generators, design constraints, references, and oracles.

1 INTRODUCTION

Generative models can propose novel small molecules directly with desired structures and properties rather than screening predefined libraries. Recent work has moved toward general-purpose molecular generators (Noutahi et al., 2024; Lee et al., 2025; Kaech et al., 2026) that support both de novo generation (Brown et al., 2019), where a complete molecule is built from scratch, and fragment-constrained generation (Fialková et al., 2021; Tan et al., 2022; Guo et al., 2023; Rossen et al., 2025), where a fixed substructure is retained and only the remainder is designed. However, optimizing such a generator toward a design objective is commonly done with policy-gradient reinforcement learning (RL) (Guo & Schwaller, 2024), which requires the log-probability assigned to the generation trajectory of each sampled molecule. This quantity depends on the architecture and generation procedure, so a policy-gradient objective must be specified for each architecture. For some two-pass generation procedures, the released implementation does not provide a joint policy over the complete generation trajectory. Meanwhile, keeping the policy-gradient update well behaved requires machinery whose settings have to be tuned (Engstrom et al., 2020; Andrychowicz et al., 2020). In contrast, supervised fine-tuning updates the model through the same likelihood-based pretraining objective and needs none of this machinery. Its update is driven by given data samples, so the reward never reaches the model.

To fill this gap, we introduce Elite-Weighted Supervised Fine-tuning (EW-SFT), which lets the reward enter a supervised update through the composition of its training set. Each generator's ge-

*Corresponding author: ye.wang@biogen.com

Figure

Figure 1: The workflow of EW-SFT. Three representative molecular generators first sample under task constraints to initialize a genetic population. Each model then acts as a genetic operator to regenerate new molecules, calling oracle to score and updating the population. Oracle scores determine which genetically evolved molecules are selected for the training set, and the chosen emphasis determines their weights in the native-loss update.

netic operator proposes molecules under its own unconditional or fragment-conditioned interface, a rolling elite buffer retains the highest-scoring molecules discovered so far, and the model takes one weighted fine-tuning step on the selected set using its native pretraining loss (Figure 1). Prior molecular hill-climbing and GEGL methods also learn from selected high-scoring molecules (Neil et al., 2018; Ahn et al., 2020), but their original formulations target de novo optimization with exact-likelihood model refitting. EW-SFT instead extends this selection-based update across heterogeneous architectures and constrained generation procedures through each generator's native loss. We find that once elite selection has been applied, the emphasis on each selected molecule can be reduced from a continuous advantage to a binary indicator. Because EW-SFT operates directly on completed, scored molecules, it requires neither a generation-trajectory log-probability nor PPO-style importance ratios, critics, or ratio clipping. It applies across autoregressive, masked-diffusion, and discrete-flow generators, and also enables optimization for SAFE-GPT two-pass linker generation without defining a joint policy over the two sampling passes.

We evaluate EW-SFT in ligand-based molecular design, where the objective is to generate molecules with good 3D similarity towards a known reference compound. This is based on the premise that molecules with similar 3D shape and pharmacophore arrangements can bind the same target and exhibit similar biological effects. Under a fixed budget of 3D similarity oracle calls on two kinase references, EW-SFT runs in all nine architecture-task combinations and consistently improves Top-1k similarity over the corresponding native optimizers. It further improves optimization under a 2D similarity oracle on the fragment-constrained generation benchmark (Noutahi et al., 2024), which recent generators have used only for frozen sampling. Finally, on the de novo Practical Molecular Optimization (PMO) benchmark (Gao et al., 2022), EW-SFT achieves performance comparable to a tuned policy-gradient method that carries more RL machinery. Our contributions are summarized as follows:

  • We propose EW-SFT, a general goal-directed update rule that applies across architectures and tasks using only scored molecules and each model's native pretraining loss.
  • We show that elite selection, rather than continuous within-set weighting, is the effective channel through which reward reaches the update.
  • We show that EW-SFT transfers to fragment-constrained design, where policy-gradient RL requires a task-specific formulation or a joint policy is not provided by the released

generation procedure, and report the first goal-directed optimization results for generalist molecular generators under motif and linker constraints.

References (52)