Source-linked AI summary

ReMedI: Inference-Time Refinement and Self-Distillation for Controllable Molecular Optimization

Jia Yi Zhang, Shivanshu Shekhar, Allison McLevige, Tong Zhang

arXiv:2610.32103v1cs.LGcs.AI

TL;DR

Lead optimization must improve competing molecular properties while preserving lead similarity, yet existing approaches may require costly task-specific adaptation. ReMedI uses frozen molecular language models for sequential edits, Metropolis–Hastings refinement, and distillation of search traces. It improves optimization across benchmarks and achieves approximately 2.8× C-MORAL’s strict-success coverage on matched leads.

  • Problem

    Lead optimization seeks to improve multiple properties while preserving satisfactory properties and lead similarity, but current CLMs do not reliably meet all targets without scaffold drift.

    Source: §1 · p. 1
  • Method

    ReMedI uses a pretrained CLM to propose edits, guides sequential search with a lead-relative Metropolis–Hastings objective, and distills successful search traces into the proposal.

    Source: §1 · p. 2
  • Results

    Across C-MuMOInstruct and SMDD, refinement improves success across three backbones, and ReMedI achieves approximately 2.8× C-MORAL’s strict-success coverage on matched GeLLMO-Mistral leads, including held-out property combinations.

    Source: §1 · p. 2
  • Takeaways & Limitations

    A shared proposal adapter trained on 500 lead–task instances achieves performance comparable to C-MORAL’s five policies trained on 3,883 prompts.

    Source: §1 · p. 2

    The authors identify a scope limitation: discoveries remain limited to in silico settings.

    Source: §7 · p. 9

Abstract

from arXiv · show

In drug development, lead optimization must improve competing properties, such as increasing permeability and reducing toxicity, while limiting scaffold changes that could compromise the lead's potency. RL-based post-training, such as C-MORAL, addresses this problem by fine-tuning molecular language models to directly optimize molecular leads for objectives of interest, which relies on expensive task-specific datasets and faces challenges in achieving multi-objective optimization (MOO). We argue a pre-trained model may already contain useful molecular edits that zero-shot generation cannot efficiently reach. Motivated by the limited search capabilities of zero-shot generation, we develop an efficient Metropolis-Hastings search strategy to better explore the proposal distribution. We propose ReMedI, which uses the molecular language model as a base proposer for inference-time alignment. Given a lead and a set of multi-objective tasks, the model proposes edits conditioned on the current molecule, while Metropolis--Hastings refinement guides sequential edits under an objective for property improvement, preservation, and lead similarity. On both C-MuMOInstruct and SMDD benchmarks, refinement improves frozen base models across three backbones, reaching significantly higher multi-objective optimization success rates compared to baselines. These search traces can then distilled into the base model which improves zero-shot generation and subsequent search using approximately 7.8 times less training molecular leads than that of C-MORAL. ReMedI achieves approximately 2.8 times the strict-success coverage of RL baseline C-MORAL, including on out-of-distribution tasks, with matched lead-relative similarity.

1 INTRODUCTION

Lead optimization seeks property improvements while preserving satisfactory properties and lead similarity, but current models do not reliably satisfy all targets without scaffold drift. ReMedI combines frozen-model edit proposals with inference-time search and distills successful search traces back into the model.

1 INTRODUCTION

  • The central challenge is improving multiple properties while preserving satisfactory properties and lead-relative similarity, which current CLMs do not reliably achieve without scaffold drift.Task-specific RL adapters and editing data can be costly and limit transfer to new objective combinations.Source: §1 · p. 1
  • ReMedI uses a pretrained CLM to propose local edits and Metropolis–Hastings refinement to guide search under an objective balancing property improvement, preservation, and lead similarity.The priorities can be changed at inference time without retraining the model.Source: §1 · p. 2
  • A shared proposal adapter trained on 500 lead–task instances achieves performance comparable to C-MORAL’s five task-specific policies trained on 3,883 prompts.Search traces include successful endpoints and intermediate states, avoiding a separate specialized editing dataset.Source: §1 · p. 2
  • Search-discovered endpoints, intermediate states, and improving transitions become supervised pairs that are distilled into the base CLM to improve zero-shot generation and later refinement.The refinement trajectories are conditioned on the lead and search state.Source: §1 · p. 2, Figure 1 · p. 2
  • ReMedI achieves approximately 2.8× the strict-success coverage of C-MORAL on matched GeLLMO-Mistral leads, while MH raises frozen-model SOR by 66–143% on C-MuMOInstruct and 12–50% on SMDD.The C-MuMOInstruct gains span three backbones and IND/OOD splits.Source: §1 · p. 2

2 RELATED WORKS

Prior work aligns molecular language models through post-training or inference-time optimization. ReMedI combines inference-time refinement with search-derived supervision to improve the proposal itself.

2 RELATED WORKS

  • Post-training methods, including C-MORAL and RePO, adapt molecular models through specialized training, whereas ReMedI keeps the CLM fixed during refinement and sets the improvement–similarity trade-off at inference time.The related work also situates these methods among supervised fine-tuning, preference optimization, and reinforcement learning approaches.Source: §2 · p. 3
  • ReMedI uses a CLM as a state-dependent proposal in a Metropolis–Hastings loop, then trains a shared proposal adapter on successful endpoints and intermediate states to test transfer to unseen objective combinations.This combines inference-time refinement with proposal improvement.Source: §2 · p. 3

3 PRELIMINARY

The preliminary material introduces Metropolis–Hastings sampling and Nash bargaining, then outlines focused refinement as an iterative search procedure. The proposal guides exploration, while the target distribution determines what the chain favors.

3 PRELIMINARY

  • Metropolis–Hastings proposes a candidate from the current state and accepts it probabilistically; the Hastings correction accounts for asymmetric state-dependent proposals, while the target’s normalizing constant cancels in the ratio.The proposal controls exploration and the target determines the distribution being sampled.Source: §3 · p. 3
  • The Nash bargaining solution maximizes the product of objective gains over a reference point, favoring balanced gains rather than a weighted-sum objective.If any objective remains at its reference value, the product is zero regardless of gains on other objectives.Source: §3 · pp. 3–4
  • Focused refinement iterates over chains from the incumbent, ranks candidates, updates the incumbent, and shifts focus to the least-satisfied unmet requirement or to similarity when none remain.The procedure returns both the incumbent and a transition log.Source: §3 · p. 4

4 METHOD

ReMedI scores candidates by improvement, preservation of guarded properties, and lead similarity, then uses focused prompts and Metropolis–Hastings refinement to guide edits. It distills search traces into the proposal model for both direct generation and subsequent refinement.

  • The improvement score multiplies per-property satisfactions, so gains on one objective cannot fully mask poor satisfaction on another.Penalties activate when guarded properties decline beyond their allowed margins or lead similarity falls below τs.Source: §4 · p. 4
  • Metropolis–Hastings refinement accepts or rejects proposed edits using the step-specific target and proposal probabilities in both directions.Target ratios require oracle scores for the current and proposed states.Source: §4 · p. 5
  • Search traces train the proposal model on lead-conditioned endpoints, chain-conditioned endpoints, and some accepted transitions that do not meet every requirement.Seed- and chain-conditioned examples support direct generation and refinement; weighted examples favor higher-scoring targets according to βdist.Source: §4 · p. 5
  • For each state, ReMedI focuses on the least-satisfied unmet improvement requirement, or on similarity when none remain.The focused task clause guides which edits the model proposes.Source: §4 · p. 5

5 EXPERIMENTS

Across C-MuMOInstruct and SMDD-Bench, inference-time refinement improves multi-objective optimization, including under lead-similarity constraints. Distilling search traces also strengthens zero-shot generation and subsequent refinement.

5.1 SETUP

  • Evaluation covers ten C-MuMOInstruct property-combination tasks, split into five IND and five OOD, plus 314 SMDD-Bench Task 4 instances; success metrics assess requested improvements and near-optimal joint satisfaction.For SMDD, SOR requires every requested objective to improve by its instance-specific threshold, while SSOR captures simultaneous near-optimal satisfaction.Source: §5.1 · pp. 5–6

5.2 MAIN RESULTS

  • MH improves q0 SOR by ≈80% and SSOR by ≈90% on average across three model families and IND/OOD splits.After distillation, q1-MH outperforms q1-base on every backbone and split.Source: §5.2 · pp. 6–7, Table 1 · p. 6
  • ReMedI maintains higher strict-success coverage than C-MORAL across evaluated lead-similarity requirements, including pooled and held-out OOD tasks.Figure 2’s SSOR–similarity frontier indicates the advantage is not simply from larger structural changes.Source: Figure 2 · p. 7, §5.2 · p. 7
  • On GeLLMO-Mistral, one distillation round raises zero-shot base SOR by 33% on IND (0.354 →0.472) and 23% on OOD (0.271 →0.332).It also raises MH SOR by 20% on IND (0.590 →0.706) and 18% on OOD (0.467 →0.552).Source: Table 1 · p. 6, §5.2 · p. 7
  • On 314 SMDD-Bench instances, ReMedI-MH improves SOR by 0.13–0.29 and clearance-target success on every backbone versus pooled C-MORAL, while C-MORAL retains higher similarity.The comparison uses a shared adapter per backbone for pooled C-MORAL at the same 20-candidate inference budget.Source: §5.2 · p. 7, Table 2 · p. 7
  • ReMedI’s shared adapter uses trajectories from 500 lead–task instances, about 7.8× fewer than C-MORAL’s 3,883 RL training prompts.Source: §5.2 · p. 8
  • For Evobrutinib, ReMedI reduces AMES (0.858 →0.050), DILI (0.826 →0.546), and PGP (0.648 →0.474) together while retaining similarity 0.738.C-MORAL improves PGP but worsens DILI and AMES, with similarity 0.707; ReMedI finds one candidate improving all three liabilities.Source: §5.2 · p. 8, Figure 3 · p. 8

6 ABLATIONS

Sequential editing outperforms one-shot sampling, and MH gives the strongest success–similarity tradeoff among the tested sequential strategies. One round of distillation captures the largest simultaneous gains in SOR and SSOR; ablations show that successful endpoints are especially important for refined SSOR.

Effect of search strategy

  • At K = 20, MH reaches SOR 0.41 versus 0.39 for unguided editing and 0.38 for greedy feedback, while preserving similarity 0.44 versus 0.39 for unguided editing.Sequential strategies outperform independent best-of-K sampling, and MH has the highest SOR at every tested candidate budget.Source: §6 · p. 8, Figure 4 · p. 8

Choosing the distillation round

  • From q0 to q1, SOR rises from approximately 0.45 to 0.63 and SSOR from 0.12 to 0.16, with similarity decreasing from 0.47 to 0.43.Later rounds provide diminishing returns: q2 improves SOR but not SSOR, while q3 raises SSOR as similarity falls to approximately 0.36; q1 is used as the primary proposal.Source: §6 · p. 8, Figure 5 · p. 9

Effect of distillation sources

  • Removing successful-endpoint supervision causes the largest SSOR drop: q1-Base falls from 0.115 to 0.070, and q1-MH from 0.160 to 0.090.Without endpoints, similarity rises from 0.30 to 0.505 for q1-Base and from 0.23 to 0.414 after MH refinement. Removing intermediate states or improving transitions also lowers refined SSOR while reducing similarity; the full mixture gives the highest refined SSOR, 0.160.Source: §6 · p. 9, Figure 6 · p. 9

7 LIMITATIONS & CONCLUSION

ReMedI combines inference-time refinement with distillation of successful search trajectories, improving frozen proposals and their subsequent search. The authors note that its discoveries remain limited to in-silico predictions, which do not establish in-vitro or in-vivo efficacy.

7 LIMITATIONS & CONCLUSION

  • ReMedI uses a CLM to propose sequential edits, MH to select them under a lead-relative objective, and successful search trajectories to train the proposal.Across C-MuMOInstruct and SMDD-Bench, this improves frozen proposals and yields a stronger strict-success–similarity tradeoff; one distillation round further improves direct generation and subsequent search.Source: §7 · p. 9

AI USE STATEMENT

  • Generative AI tools assisted with prose editing and routine code and analysis; the authors say they verified claims, figures, and references before submission.Source: AI USE STATEMENT · p. 10

A.1 BENCHMARK METRICS

The appendix distinguishes relative optimization success from meeting absolute near-optimal property thresholds. Its example shows that an output can pass SOR while failing SSOR.

SOR

  • SOR requires every targeted property to improve by its prescribed margin and every protected property to stay within its prescribed tolerance.The metric compares output properties with the lead, using the preferred direction for each property.Source: §A.1 · p. 13

SSOR

  • SSOR checks whether all relevant properties meet their prescribed near-optimal thresholds.Unlike SOR's lead-relative test, SSOR uses absolute property thresholds.Source: §A.1 · p. 13

Metric example

  • An output with permeability 0.6 and unchanged toxicity passes SOR but fails SSOR, while permeability 0.85 with unchanged toxicity passes both.The example uses a lead with permeability 0.4 and toxicity 0.1, requiring at least a 0.1 permeability increase and preservation of toxicity.Source: §A.1 · p. 13

A.2 PERFORMANCE ACROSS BACKBONES.

Across three C-MuMOInstruct backbones and IND/OOD splits, refinement consistently improves frozen proposals, and one round of distillation combined with refinement gives the highest SOR and SSOR in nearly all settings.

C-MuMOInstruct results

  • q1-MH increases both SOR and SSOR over q1-base for every backbone and split.Distillation further strengthens proposals on the GeLLMO backbones; combining one distillation round with refinement yields the highest SOR and SSOR in nearly all settings.Source: §A.2 · p. 13

OOD generalization

  • Gains extend to OOD property combinations, where trajectories distilled from IND tasks improve optimization beyond the training combinations.Source: §A.2 · p. 13

Interpretation and scope

  • Similarity generally decreases as optimization becomes more aggressive, so success and similarity are interpreted together through the main-text similarity-constrained coverage analysis.RI is included only as a within-method diagnostic because its scale is not comparable to the C-MORAL implementation.Source: §A.2 · p. 13

A.3 TRAJECTORY DEPTH ABLATION

At a fixed budget of 80 proposals per lead, 10 trajectories of eight sequential steps double overall SSOR from 0.070 to 0.140. Sequential conditioning allows multiple edits to compose into solutions meeting stringent multi-property constraints.

A.3 TRAJECTORY DEPTH ABLATION

  • Overall SSOR doubles from 0.070 to 0.140 when 80 independent proposals are replaced by 10 trajectories of eight steps.The comparison uses the same 80 proposals per lead in each configuration.Source: §A.3 · p. 13
  • Sequential conditioning lets multiple edits compose into solutions satisfying stringent multi-property constraints, unlike independent proposals, which rarely reach the target.Because each configuration evaluates the same number of proposals, the gain is not attributable to additional sampling.Source: §A.3 · p. 13
  • All trajectory-depth configurations use 80 proposals per lead and aggregate IND and OOD results on frozen GeLLMO-Mistral.Source: Table 4 · p. 14
Loading 2610.32103v1…