betaFeedback

WorksComputer Science

MFG: Multi-turn Feedback Guided Molecular Optimization

Abstract

Multi-objective molecular optimization is a critical process in drug discovery that aims to modify a given molecule to simultaneously improve multiple properties while maintaining a similar overall structure. This process often requires iterative modifications guided by computational or experimental feedback. Recent large language model (LLM)-based methods have begun to explore this iterative approach; however, these methods are not explicitly trained to leverage such feedback, while existing approaches primarily focus on single-turn molecular optimization. To address this gap, we introduce Multi-turn Feedback Guided (MFG) molecular optimization, a reinforcement learning framework that trains an LLM to progressively optimize molecules using feedback from previous turns. MFG introduces a feedback vector capturing both property improvements and source molecule similarity, alongside a feedback-aligned reward function that promotes progressive improvement across turns. We apply MFG over GeLLM3O\text{GeLLM}^{3}\text{O}, a state-of-the-art LLM model for multi-objective molecular optimization, evaluate GeLLM3O-MFG\text{GeLLM}^{3}\text{O-MFG} on ten multi-objective molecular optimization tasks. The results demonstrate that GeLLM3O-MFG\text{GeLLM}^{3}\text{O-MFG} achieves the highest average similarity-constrained success rate (81.5081.50%), outperforming the base model GeLLM3O\text{GeLLM}^{3}\text{O} (70.8170.81%).

Introduction

Multi-objective molecular optimization (MOMO) [17] is a critical process in drug discovery [5] that aims to modify a given molecule to simultaneously improve multiple properties while maintaining a similar overall structure. Such improvements are necessary because even promising molecules may suffer from poor solubility, insufficient selectivity, or toxicity that hinders their development into viable drugs.

Achieving these improvements often requires iterative structural modifications to balance multiple, potentially competing molecular properties. By iteratively reasoning on how to modify molecules, chemists can rely on not only their expert knowledge, but also computational Nicolau and Brown, 2013 or experimental feedback. Large language models (LLMs) have shown promise on similar iterative tasks through multi-turn reasoning Naveed et al., [13], providing a promising mechanism to mimic this approach to MOMO.

Recent efforts [19] (Zuo et al. 2025) have used LLMs for MOMO. Several methods [11, 7] incorporated iterative feedback at inference-time, prompting LLMs to modify molecules over multiple turns while incorporating feedback on the modified molecules of previous turns. However, these methods are not trained on how to leverage such feedback. Instead, they rely only on the LLMs’ general-purpose pre-training and basic reasoning capabilities. Other methods have used supervised finetuning methods [3] and reinforcement learning (RL) [12] to train models for MOMO. However, training is limited to non-iterative, single-turn generation, with no specialized training on multi-turn feedback.

Here, we introduce MFG, a Multi-turn Feedback Guided framework for MOMO. MFG formulates MOMO as a multi-turn problem with feedback, using RL to train an LLM to iteratively optimize molecules by leveraging feedback from previous turns. MFG introduces a feedback vector that captures both property improvements and similarity to the given source molecule at each turn, providing dynamically updated feedback to guide the LLM policy throughout the optimization process. MFG’s RL training is guided by a reward function that aligns with this feedback while also encouraging progressive improvement across turns. During inference, MFG can use its trained model to generate multiple candidate molecules at each turn and select the best molecule for further turns, carefully balancing property improvement and similarity. Together, MFG serves as a powerful new framework for MOMO with feedback.

To evaluate MFG, we instantiate GeLLM3^{3}O-MFG, using GeLLM3^{3}O, a state-of-the-art molecular optimization LLM, as the base model for MFG’s RL training. We compare GeLLM3^{3}O-MFG against GeLLM3^{3}O and other existing molecular optimization baselines on the MuMOInstruct dataset [3], a benchmark featuring diverse property combinations and both in-distribution and out-of-distribution MOMO tasks. Across all tasks, GeLLM3^{3}O-MFG achieves the highest average similarity-constrained success rate (81.50%), outperforming the best baseline (BioMedGPT-Mol, 77.81%) and GeLLM3^{3}O (70.81%). An ablation study shows that multi-turn feedback and RL training each contribute a distinct advantage to MFG. Additionally, a case study illustrates how GeLLM3^{3}O-MFG adapts its optimization strategy based on feedback. GeLLM3^{3}O-MFG is publicly available at https://anonymous.4open.science/r/MFG-85BD/.

Related Work

RL for Molecular optimization Existing molecular optimization LLMs such as GeLLM3^{3}O [3] have explored instruction tuning of general-purpose LLMs on large-scale MOMO tasks (see Appendix § 10.§ 1 for a summary of more related work). However, this supervised learning approach may limit model’s ability to explore chemical space beyond the distribution of training examples. Recent works have leveraged RL to further align molecular optimization LLMs with desired molecule properties. For example, DrugImproverGPT [12] employed reward-based RL to explore molecule modifications for improving multiple molecule properties. However, the sparsity of high-reward molecules in chemical space can make effective exploration challenging. To address this challenge, RePO [8] leveraged reference optimized molecules to provide LLMs with templates of successful optimization. Despite different designs of RL methods, existing works primarily optimize source molecules in a single turn, treating each optimization as an independent process. Our work considers a new setting in which molecules are iteratively optimized over multiple turns, and develops a novel multi-turn training framework for this setting. To the best of our knowledge, our work is the first to improve molecular optimization LLMs through multi-turn RL.

MFG Framework

Problem Formulation

Multi-objective molecular optimization (MOMO) seeks to modify a source molecule C0C_0 into a structurally similar molecule CC while improving mm properties P=(p1,p2,…,pm)\mathcal{P} = (p_1,p_2,\ldots,p_m). Existing LLM-based approaches commonly formulate this task as a single-turn problem, where an LLM directly generates CC in a single response when prompted with C0C_0 and P\mathcal{P}. However, this single-turn approach offers limited opportunity to adjust the optimization strategy. MOMO can be very challenging, as structural changes that improve one property may degrade another, and improvement patterns may not remain consistent across different C0C_0.

To address this challenge, we reformulate MOMO as a multi-turn problem with feedback, where an LLM iteratively generates optimized molecules for a given C0C_0 and P\mathcal{P}, adjusting its strategies based on previous turn’s property change and similarity to C0C_0. Under this formulation, we consider the LLM with parameters θ\theta as a policy πθ\pi_\theta that decides how to generate a molecule CtC_t at any turn tt given C0C_0, P\mathcal{P}, and the sequence of previous turns up to t−1t-1, denoted as τ1:t−1\tau_{1:t-1}. Each turn τt\tau_t is defined as τt=(Ct,ft)\tau_t = (C_t,\mathbf{f}_t), where ft∈Rm+1\mathbf{f}_t \in\mathbb{R}^{m+1} is a feedback vector measuring the quality of CtC_t, with the first mm entries indicating degradation or improvement in each property objective p∈Pp \in\mathcal{P}, and the final entry representing the similarity to C0C_0. This provides πθ\pi_\theta with valuable insight into each specific MOMO problem, allowing it to adjust its molecular optimization strategy through trial-and-error. An optimal πθ\pi_\theta leverages this feedback across all turns to maximize the average improvement on the property set P\mathcal{P} and maintain strong similarity to C0C_0.

To obtain such a policy, we formulate the following optimization problem:

max⁡πθEt,Ct∼πθ(⋅∣C0,P,τ1:t−1)[R(Ct)],(1)\max_{\pi_\theta}\mathbb{E}_{t,C_t\sim\pi_\theta(\cdot\mid C_0,\mathcal{P},\tau_{1:t-1})}\left[R(C_t)\right], \tag*{(1)}

where t∈{1,…,T}t \in\{1,\ldots,T\} is the number of turns up to maximum TT and R(Ct)R(C_t) is a reward function specifically designed for MOMO (defined in Section 3.2.2. This formulation distributes the optimization of multiple property objectives across turns, with reward signals guiding progressive improvement throughout the process. An overview of MFG is illustrated in Figure 1.

Figure 1. Overall figure of Multi-turn Feedback Guided (MFG) MOMO.

MFG Training

MFG trains πθ\pi_\theta to leverage feedback for multi-turn MOMO by maximizing an expected reward R(Ct)R(C_t) (§ 3.2.2). Specifically, we use group-relative policy optimization (GRPO) [16] to train πθ\pi_\theta by sampling multiple candidate molecules CtC_t at each turn tt conditioned on C0C_0, P\mathcal{P}, and τ1:t−1\tau_{1:t-1}, and updating πθ\pi_\theta based on their relative rewards. To optimize the expectation over tt in Eq. (1), MFG samples t∼Uniform⁡(1,T)t \sim\operatorname{Uniform}(1,T) during training, ensuring that πθ\pi_\theta is trained to leverage feedback at every turn in multi-turn MOMO. MFG employs on-policy training, where the previous turns τ1:t−1\tau_{1:t-1} are generated using the same πθ\pi_\theta that generates CtC_t. However, MFG treats τ1:t−1\tau_{1:t-1} as fixed conditioning context rather than optimizing its generation based on R(Ct)R(C_t). Together, these design choices allow πθ\pi_\theta to learn effective feedback-guided molecular optimization strategies by comparing candidate molecules generated under the same conditioning context. As πθ\pi_\theta is updated during training, the conditioning of previous turns τ1:t−1\tau_{1:t-1}, which are generated on-policy and used as conditioning context, also reflect the policy’s changing output distribution.

Candidate Advancement Criterion

To encourage progressive improvements across turns, MFG defines a candidate selection criterion Advance⁡(⋅)\operatorname{Advance}(\cdot) with two purposes: (1) during training, identifying the best molecule from previous turns as a reference for progressive improvement; and (2) during inference, selecting a promising molecule to carry forward, along with its feedback, to guide subsequent optimization. Specifically, Advance⁡(⋅)\operatorname{Advance}(\cdot) is a hierarchical selection criterion that balances improvements across multiple target properties with structural similarity to C0C_0 through prioritized comparisons. It prioritizes molecules satisfying a predefined similarity threshold δ\delta to C0C_0, followed by molecules that improve all target properties. When no candidate improves all properties, those improving more properties are preferred, preventing large gains in one property from outweighing broader improvements. Together, Advance⁡(⋅)\operatorname{Advance}(\cdot) prioritizes the breadth of property improvements over their magnitude while preserving structural similarity (see Appendix § 10.§ 2 for details).

Reward Function

MFG defines a reward function R(Ct∣C0,P,Ct−1∗)R(C_t \mid C_0,\mathcal{P},C^{*}_{t-1}) that encourages property improvement, structural similarity to C0C_0, and progressive improvements over the best molecule from the previous turns. The goal is to prioritize structural similarity as a prerequisite for rewarding property improvements, while encouraging the model to progressively generate better molecules across turns. Specifically, R(Ct)R(C_t) (with conditioning omitted for simplicity) is defined as:

R(Ct)={s−2,if s≤δ,Rbase(Ct)+Rbest(Ct),otherwise,(2)R(C_t) = \begin{cases} s - 2, & \text{if } s \le\delta, \\ R_{\mathrm{base}}(C_t) + R_{\mathrm{best}}(C_t), & \text{otherwise,} \end{cases} \tag*{(2)}

where s=Sim⁡(Ct,C0)s = \operatorname{Sim}(C_t,C_0) denotes the Tanimoto [1] similarity between CtC_t and C0C_0. As shown in Eq. (2), when s≤δs \le\delta, R(Ct)R(C_t) assigns a similarity-dependent penalty, without accounting for property improvements. This prevents large property gains from compensating for excessive structural deviations. Moreover, this penalty complements our algorithm choice, GRPO, which updates the policy based on relative rewards among candidates in a group. Even when all candidates within a group breach the similarity threshold, those with higher similarity to C0C_0 receive higher rewards, providing a learning signal that encourages the model to generate more structurally similar molecules.

For molecules that meet the similarity threshold, we introduce Rbase(⋅)R_{\mathrm{base}}(\cdot) to incentivize both property improvements and similarity to C0C_0, and is defined as follows:

Rbase(Ct)=λ(Ct)(G(Ct)+S(Ct)).(3)R_{\mathrm{base}}(C_t)=\lambda(C_t)\left(G(C_t)+S(C_t)\right). \tag*{(3)}

Here, G(⋅)G(\cdot) and S(⋅)S(\cdot) measure the average property improvement on P\mathcal{P} and the similarity to C0C_0, respectively, each normalized by the corresponding value of the reference optimized molecule (details in § 4.2). The normalization addresses differences in the numerical scales of different properties and encourages πθ\pi_\theta to generate molecules outperforming the reference molecule. λ(Ct)∈[1,2)\lambda(C_t) \in[1,2) amplifies the reward only when CtC_t improves all target properties over C0C_0, with a larger bonus for higher structural similarity. Unlike G(⋅)G(\cdot), which measures average property improvement, λ(⋅)\lambda(\cdot) encourages simultaneous improvement across competing properties rather than large gains in a few at the expense of others. Details of G(⋅)G(\cdot), S(⋅)S(\cdot), and λ(⋅)\lambda(\cdot) are provided in Appendix § 10.§ 3.

In addition to evaluating CtC_t with respect to C0C_0, Rbest(⋅)R_{\mathrm{best}}(\cdot) in Eq. (2) compares CtC_t with the best molecule Ct−1∗C^*_{t-1} from the previous t−1t-1 turns, identified using Advance⁡(⋅)\operatorname{Advance}(\cdot) described in § 3.2.1. Rbest(⋅)R_{\mathrm{best}}(\cdot) is defined as follows:

Rbest(Ct)=[Rbase(Ct)−Rbase(Ct−1∗)]+.(4)R_{\mathrm{best}}(C_t)=\left[R_{\mathrm{base}}(C_t)-R_{\mathrm{base}}(C^*_{t-1})\right]_+. \tag*{(4)}

where [⋅]+=max⁡(⋅,0)[\cdot]_+=\max(\cdot,0) denotes the positive-part operator. This sub-reward provides a bonus when CtC_t achieves a higher base reward than Ct−1∗C^*_{t-1}, encouraging progressive improvement across turns.

MFG Inference

At inference time, MFG performs iterative molecular optimization using the trained policy πθ\pi_\theta, conditioned on the source molecule C0C_0, target property set P\mathcal{P}, initially empty set of previous turns τ\tau. At each turn tt, MFG samples NN candidates and applies the selection criterion Advance⁡(⋅)\operatorname{Advance}(\cdot) introduced in § 3.2.1 to obtain Ct=Advance⁡({Ct1,…,CtN})C_t=\operatorname{Advance}(\{C_t^1,\ldots,C_t^N\}). The selected molecule and its feedback vector ft\mathbf{f}_t, capturing property changes and structural similarity relative to C0C_0, form the updated τ1:t=τ1:t−1∪{(Ct,ft)}\tau_{1:t}=\tau_{1:t-1}\cup\{(C_t,\mathbf{f}_t)\}. This process repeats until turn TT, with each selected molecule and its feedback incorporated into the conditioning context for the next turn. The final optimized molecule CTC_T is then selected from all T×NT\times N generated candidates according to the criteria described in § 4.3.

Unlike the final output selection, Advance⁡(⋅)\operatorname{Advance}(\cdot) contributes to feedback construction during inference by determining which intermediate molecule and its associated feedback are carried forward to subsequent turns. This selection aims to carry forward a promising intermediate molecule that provides a meaningful direction for subsequent optimization, allowing future turns to build on partial progress. Thus, Advance⁡(⋅)\operatorname{Advance}(\cdot) supports feedback-guided MOMO by limiting the propagation of unfavorable candidates and retaining informative feedback that helps the model adapt across turns.

Experimental Settings

GeLLM3O-MFG

We use MFG to train GeLLM3^3O-MFG, a multi-turn MOMO model based on GeLLM3^3O-P(6)Llama_{\mathrm{Llama}}, a state-of-the-art single-turn MOMO model. GeLLM3^3O-P(6)Llama_{\mathrm{Llama}} is particularly suitable for training with MFG because its previous training on single-turn MOMO has allowed it to acquire substantial knowledge of structure-property relationships. Implementation details of GeLLM3^3O-MFG are provided in Appendix § 10.§ 4.

Dataset

GeLLM3^3O-MFG is trained and evaluated using the MuMOInstruct benchmark dataset following the training/testing split established by GeLLM3^3O. MuMOInstruct includes multi-property optimization tasks on combinations of six target properties: blood-brain barrier permeability (B), dopamine receptor D2 binding affinity (D), human intestinal absorption (H), mutagenicity (M), penalized logP, a measure of lipophilicity (P), and quantitative estimate of drug-likeness (Q). The optimization objective is to increase the values of B, D, H, P, and Q, while decreasing that of M. Each task consists of a set of source molecules, paired with their corresponding reference optimized molecules that we use for reward normalization in Eq. (3). Specifically, the property improvements achieved by the reference optimized molecule relative to the source molecule are used to normalize G(⋅)G(\cdot), while its structural similarity to the source molecule is used to normalize S(⋅)S(\cdot) (details in Appendix § 10.§ 3).

The evaluation set consists of five in-distribution (IND) tasks (BDP, BDQ, BPQ, DPQ, and BDPQ) and five out-of-distribution (OOD) tasks (MPQ, BDMQ, BHMQ, BMPQ, and HMPQ). IND tasks evaluate the model’s optimization capability on property combinations seen during training, while OOD tasks assess its zero-shot generalization to unseen property combinations.

Evaluation Metrics

Following GeLLM3O^{3}\mathrm{O}, we evaluate optimization performance using three complementary metrics: (1) Success Rate (SRα\mathrm{SR}_{\alpha}), which is the proportion of source molecules successfully optimized to improve all property objectives while maintaining Tanimoto similarity of at least α\alpha to the source molecule; (2) Similarity (Sim\mathrm{Sim}) that is the average Tanimoto similarity between the optimized molecules and their corresponding source molecules; and (3) Relative Improvement (RI\mathrm{RI}) measuring the average relative change across the target properties with respect to the source molecules (Appendix § 10.§ 5). Higher SRα\mathrm{SR}_{\alpha}, Sim\mathrm{Sim} and RI\mathrm{RI} are desirable, indicating better overall optimization performance. For each source molecule C0C_0, we select the optimized molecule CC as the candidate with the highest RI\mathrm{RI} among those that improve all target properties and satisfy the similarity threshold α\alpha. If no such candidate exists, the optimization is considered unsuccessful.

Baselines

We evaluate GeLLM3O^{3}\mathrm{O}-MFG against the base model GeLLM3O^{3}\mathrm{O}-P(6)Llama_{\mathrm{Llama}}, and two categories of LLMs with different levels of chemistry-specific training: general-purpose LLMs and LLMs for chemistry which are trained on large-scale chemistry instruction tasks. We use GeLLM3O^{3}\mathrm{O}-P(6)Llama_{\mathrm{Llama}} to directly assess the improvement introduced by MFG while keeping the underlying model architecture fixed. In terms of general-purpose LLMs, we select two of the largest and most capable open-weight models available to us at the time of evaluation, Qwen3.5-9B (Qwen Team, [15]) and Ministral-3-8B (Liu et al., [10]). They serve as references for molecular optimization without adaptation to the chemistry domain. We choose LlaSMol (Yu et al., 2024) and BioMedGPT-Mol (Zuo et al., 2025) as LLMs for chemistry baselines due to their reported strong performance on MOMO tasks. For fair comparison, all baselines use identical inputs, inference settings (§ 4.5), and output processing procedures, with model and prompt details provided in Appendix § 10.§ 6.

Inference Settings

We evaluate all methods under both single-turn and multi-turn settings, denoted as ST and MT, respectively. For baselines originally designed for ST optimization, we extend them to the MT setting by applying iterative inference with the same feedback vector and selection criterion as MFG. This allows us to separate the contribution of MFG inference from MFG training.

Following the evaluation protocol of GeLLM3O^{3}\mathrm{O}, we generate a maximum of 20 molecules throughout the optimization process for each source molecule. For TT-turn optimization, we generate an equal number of candidates at each turn. To ensure a comprehensive evaluation, we independently evaluate each method with T∈{1,2,3,4}T \in\{1, 2, 3, 4\} turns. We report the results corresponding to the highest SR across the evaluated values of TT for each task. The full results for each value of TT are provided in Appendix § 10.7.

Results

Performance on MOMO tasks

Overall comparison with baselines

Tables 1 and 2 present a comprehensive comparison between GeLLM3O^{3}\mathrm{O}-MFG and all the baselines on IND and OOD MOMO tasks, respectively. Overall, GeLLM3O^{3}\mathrm{O}-MFG achieves the highest SR0.5\mathrm{SR}_{0.5} on 6 of the 10 tasks and highest RI on 9 tasks. Specifically, it achieves the highest SR0.5\mathrm{SR}_{0.5} (81.50% vs. 77.81%) and RI (2.63 vs. 2.08) than the strongest baseline, BioMedGPT-Mol. Given that the inference settings are consistent across all methods, the superior performance of GeLLM3O^{3}\mathrm{O}-MFG can be attributed to MFG’s training design, rather than the inference strategy alone. GeLLM3O^{3}\mathrm{O}-MFG also maintains an average Sim of 0.60, matching GeLLM3O^{3}\mathrm{O} (0.60) and BioMedGPT-Mol (0.60), indicating that stronger property optimization does not compromise average structural similarity. This further indicates that the similarity-sensitive reward assist the optimization process in preserving desired molecular structures.

ST denotes the original single-turn setting and MT denotes the multi-turn setting. ↑ denotes that a higher value of the metric is desirable. For each metric, the best performance is in bold and the second-best performance is <u>underlined</u>.

The metrics, notations and formatting have the same meanings as those in Table 1.

ModelSettingBDP SR0.5_{0.5}↑BDP Sim↑BDP RI↑BDQ SR0.5_{0.5}↑BDQ Sim↑BDQ RI↑BPQ SR0.5_{0.5}↑BPQ Sim↑BPQ RI↑DPQ SR0.5_{0.5}↑DPQ Sim↑DPQ RI↑BDPQ SR0.5_{0.5}↑BDPQ Sim↑BDPQ RI↑
General-purpose LLMs
Qwen3.5-9BST32.800.760.9818.800.730.5490.400.750.5815.600.720.5111.00<u>0.75</u>0.54
MT36.40<u>0.72</u>0.9521.60<u>0.70</u>0.6090.400.750.5819.80<u>0.69</u>0.3612.200.760.51
Ministral-3-8BST27.600.710.7424.000.670.4564.80<u>0.68</u>0.5212.800.680.288.600.720.56
MT37.600.680.7024.600.660.6966.000.650.6513.600.680.3611.600.700.47
LLMs for Chemistry
LlaSMolST5.000.650.661.600.560.7927.400.650.664.400.660.372.400.730.42
MT6.600.620.961.600.560.7930.000.620.725.000.630.373.600.640.48
BioMedGPT-MolST69.200.622.82<u>79.00</u>0.62<u>4.40</u>97.200.611.2347.800.631.5838.000.622.03
MT74.200.583.36<u>79.00</u>0.62<u>4.40</u>97.200.611.2347.800.631.5843.000.591.88
GeLLM3^{3}O
GeLLM3^{3}OST66.000.622.7765.000.643.8884.400.60<u>1.28</u>43.800.611.8439.000.602.26
MT66.000.622.7771.400.604.3784.400.60<u>1.28</u>43.800.611.8439.000.602.26
GeLLM3^{3}O-MFGST<u>83.20</u>0.62<u>3.62</u>73.000.634.3089.200.621.25<u>48.40</u>0.63<u>1.97</u><u>44.00</u>0.61<u>2.50</u>
MT84.200.614.2486.200.615.3291.200.601.3254.600.602.4953.400.593.19

Table 1. Overall Performance on IND Tasks

Comparison with GeLLM3^{3}O

As shown in Table 1 and Table 2, GeLLM3^{3}O-MFG consistently outperforms its base model, GeLLM3^{3}O, across all IND and OOD tasks. Under the MT setting, GeLLM3^{3}O-MFG outperforms GeLLM3^{3}O across all IND and OOD tasks, achieving an average increase of 10.69% in SR0.5_{0.5} and 0.47 in RI. Moreover, the gap between ST and MT performance is substantially larger for GeLLM3^{3}O-MFG than for GeLLM3^{3}O. Moving from ST to MT increases GeLLM3^{3}O-MFG’s average SR0.5_{0.5} by 5.27% (compared with only 0.76 for GeLLM3^{3}O) and improves RI on 9 tasks (compared with only 2 for GeLLM3^{3}O), while decreasing average Sim by only 0.02. As both models share the same backbone and are evaluated under identical inference settings, the larger gains from ST to MT setting suggest that MFG’s training better equips GeLLM3^{3}O-MFG to leverage intermediate molecules and their feedback to guide subsequent optimization. These findings are also consistent with MFG’s reward design, which promotes progressive improvement over previously generated molecules.

ModelSettingMPQ SR0.5_{0.5}↑MPQ Sim↑MPQ RI↑BDMQ SR0.5_{0.5}↑BDMQ Sim↑BDMQ RI↑BHMQ SR0.5_{0.5}↑BHMQ Sim↑BHMQ RI↑BMPQ SR0.5_{0.5}↑BMPQ Sim↑BMPQ RI↑HMPQ SR0.5_{0.5}↑HMPQ Sim↑HMPQ RI↑
General-purpose LLMs
Qwen3.5-9BST75.800.690.4117.00<u>0.76</u>0.4172.03<u>0.73</u>1.0375.390.710.4781.250.730.54
MT75.800.690.4123.40<u>0.71</u>0.4377.120.691.0375.390.710.4781.25<u>0.69</u>0.68
Ministral-3-8BST47.80<u>0.65</u>0.3715.400.660.5251.690.661.0747.12<u>0.65</u>0.4734.380.670.59
MT49.600.640.3923.200.640.7657.630.631.0356.54<u>0.65</u>0.4940.620.630.69
LLMs for Chemistry
LlaSMolST17.400.610.380.200.670.015.250.621.7815.710.610.5131.250.630.69
MT18.200.600.410.800.580.6820.340.631.0218.320.640.5031.250.630.69
BioMedGPT-MolST94.400.600.7465.600.612.4888.980.622.2591.100.600.8791.670.621.14
MT94.400.600.7465.600.612.4891.530.592.5391.620.600.9293.750.591.64
GeLLM3^{3}O
GeLLM3^{3}OST83.400.60<u>0.76</u>64.400.622.6682.200.60<u>2.81</u>84.820.59<u>0.96</u>87.500.591.51
MT83.400.60<u>0.76</u>65.600.59<u>3.06</u>82.200.60<u>2.81</u>84.820.59<u>0.96</u>87.500.591.51
GeLLM3^{3}O-MFGST<u>88.40</u>0.600.78<u>80.20</u>0.622.7780.510.602.7486.910.620.9288.540.601.37
MT<u>88.40</u>0.600.7883.600.613.50<u>90.68</u>0.572.8789.010.600.9993.750.58<u>1.62</u>

Table 2. Overall Performance on OOD Tasks

Comparison with other LLM baselines

Compared with LlaSMol, GeLLM3^{3}O-MFG achieves vastly higher SR0.5_{0.5} and RI across all tasks. Under MT, LlaSMol averages 13.57% and 0.66 for SR0.5_{0.5} and RI, whereas GeLLM3^{3}O-MFG achieves 81.50% and 2.63, respectively. This performance The metrics, notations and formatting have the same meanings as those in Table 1.

gap suggests that training on a broad collection of chemistry tasks alone may not develop strong molecular optimization capabilities or the ability to leverage property feedback and adapt optimization strategies accordingly.

GeLLM3^{3}O-MFG also substantially outperforms the general-purpose LLM baselines, achieving an average SR0.5_{0.5} of 81.50% under MT setting compared with 51.34% for Qwen3.5-9B, the strongest general-purpose LLM baseline. Moreover, GeLLM3^{3}O-MFG consistently achieves higher RI across all tasks, despite maintaining slightly lower but still substantial similarity to the source molecules. These results reinforce the importance of chemistry-specific or even task-specific training for developing strong MOMO capabilities.

Ablation Study

To investigate the contribution of MT feedback-guided training beyond single-turn RL training, we compare GeLLM3^{3}O-MFG with GeLLM3^{3}O-RL. Both models are initialized from GeLLM3^{3}O and trained using GRPO under identical settings. However, GeLLM3^{3}O-RL uses ST training (T=1T=1) without intermediate feedback. Because there are no intermediate molecules in this setting, we only maximize Rbase(⋅)R_{\mathrm{base}}(\cdot) (Eq. (3)) during GeLLM3^{3}O-RL’s training. To better study the differences between GeLLM3^{3}O-MFG and GeLLM3^{3}O-RL in terms of similarity-constrained optimization, we evaluate SR under two different similarity thresholds: 0.5 and 0.6, denoted as SR0.5_{0.5} and SR0.6_{0.6}, respectively.

Overall comparison of GeLLM3O-MFG and GeLLM3O-RL

As shown in Table 3, ST RL training alone leads to notable improvements in MOMO performance. Under ST inference, GeLLM3^{3}O-RL achieves a higher average SR0.5_{0.5} than the base model GeLLM3^{3}O (75.87% vs. 70.05%). Given that both models share the same backbone and inference setting, these results highlight the effectiveness of our reward function in guiding RL training. Specifically, as GeLLM3^{3}O-RL was trained with ST setting, it indicates that the RbaseR_{\mathrm{base}} component can provide a strong learning signal for MOMO.

ModelSettingBDP SR0.5_{0.5}BDP Sim↑BDP RI↑BDQ SR0.5_{0.5}BDQ Sim↑BDQ RI↑BPQ SR0.5_{0.5}BPQ Sim↑BPQ RI↑DPQ SR0.5_{0.5}DPQ Sim↑DPQ RI↑BDPQ SR0.5_{0.5}BDPQ Sim↑BDPQ RI↑
GeLLM3^{3}O-RLST79.000.613.6770.600.634.9490.600.601.3147.200.622.0041.800.622.28
MT79.400.584.1880.600.595.6790.600.601.3147.200.622.0049.200.593.14
GeLLM3^{3}O-MFGST83.200.623.6273.000.634.3089.200.621.2548.400.631.9744.000.612.50
MT84.200.614.2486.200.615.3291.200.601.3254.600.602.4953.400.593.19
ModelSettingBDP SR0.6_{0.6}BDP Sim↑BDP RI↑BDQ SR0.6_{0.6}BDQ Sim↑BDQ RI↑BPQ SR0.6_{0.6}BPQ Sim↑BPQ RI↑DPQ SR0.6_{0.6}DPQ Sim↑DPQ RI↑BDPQ SR0.6_{0.6}BDPQ Sim↑BDPQ RI↑
GeLLM3^{3}O-RLST64.600.672.9659.600.674.0379.600.671.0632.800.671.5828.000.691.25
MT64.600.673.1764.000.674.3479.600.671.0832.800.671.9330.200.691.90
GeLLM3^{3}O-MFGST68.600.672.9061.200.673.6578.600.671.0335.600.681.4329.600.681.65
MT69.200.673.4369.400.674.5678.600.671.0937.600.681.8032.400.682.00
ModelSettingMPQ SR0.5_{0.5}MPQ Sim↑MPQ RI↑BDMQ SR0.5_{0.5}BDMQ Sim↑BDMQ RI↑BHMQ SR0.5_{0.5}BHMQ Sim↑BHMQ RI↑BMPQ SR0.5_{0.5}BMPQ Sim↑BMPQ RI↑HMPQ SR0.5_{0.5}HMPQ Sim↑HMPQ RI↑
GeLLM3^{3}O-RLST88.800.590.8369.800.623.0188.140.592.8790.050.610.9992.710.591.44
MT88.800.590.8381.600.593.7788.980.583.1290.050.610.9995.830.561.75
GeLLM3^{3}O-MFGST88.400.600.7880.200.622.7780.510.602.7486.910.620.9288.540.601.37
MT88.400.600.7883.600.613.5090.680.572.8789.010.600.9993.750.581.62
ModelSettingMPQ SR0.6_{0.6}MPQ Sim↑MPQ RI↑BDMQ SR0.6_{0.6}BDMQ Sim↑BDMQ RI↑BHMQ SR0.6_{0.6}BHMQ Sim↑BHMQ RI↑BMPQ SR0.6_{0.6}BMPQ Sim↑BMPQ RI↑HMPQ SR0.6_{0.6}HMPQ Sim↑HMPQ RI↑
GeLLM3^{3}O-RLST71.200.660.7258.000.662.1568.640.672.2571.200.670.8372.920.651.25
MT71.200.660.7362.600.662.6968.640.672.2871.200.670.9072.920.651.25
GeLLM3^{3}O-MFGST75.200.660.6768.800.671.9763.560.682.3671.200.680.7871.880.671.13
MT75.200.660.7468.800.672.6468.640.682.3672.770.680.8671.880.671.14

Table 3. Ablation Study

Building on this improvement, GeLLM3^{3}O-MFG further outperforms GeLLM3^{3}O-RL under MT inference, achieving higher average SR0.5_{0.5} (81.50% vs. 79.23%) and SR0.6_{0.6} (64.45% vs. 61.78%). Moreover, moving from ST to MT increases SR0.5_{0.5} and SR0.6_{0.6} by approximately 5.27 and 2.03% for GeLLM3^{3}O-MFG, compared with smaller gains of 3.36 and 1.12 for GeLLM3^{3}O-RL, respectively. As both models were trained with GRPO and follow identical inference setting, these larger gains highlight the additional benefits of MFG’s multi-turn training, which incorporates intermediate feedback and the RbestR_{\mathrm{best}} reward component to encourage progressive improvements. Together, these findings suggest that while RbaseR_{\mathrm{base}} provides a useful foundation for RL-based molecular optimization, MFG’s multi-turn training design further enhances the model’s ability to leverage feedback and progressively refine molecules across turns.

Performance under different similarity thresholds

The advantage of MFG becomes more pronounced under a more stringent similarity threshold α=0.6\alpha= 0.6 as demonstrated in Table 3. In the ST setting, GeLLM{sup}3O-MFG improves over GeLLM{sup}3O-RL by only 0.37% on average at SR0.5\mathrm{SR}_{0.5}, but by 1.77% at SR0.6\mathrm{SR}_{0.6}. Under the MT setting, the corresponding advantage increases from approximately 2.28% at SR0.5\mathrm{SR}_{0.5} to 2.67% at SR0.6\mathrm{SR}_{0.6}. Both models use S(⋅)S(\cdot) (Eq. (3)) in their reward function to encourage structural similarity, thus the larger performance gains under stricter similarity constraints suggest that MFG’s multi-turn training enables the GeLLM{sup}3O-MFG to better leverage intermediate feedback to adjust its optimization strategies. The higher success rates also reflect GeLLM{sup}3O-MFG’s ability to better balance property improvement and structural similarity preservation.

Case Study

Figure 2 shows a successful two-turn optimization by GeLLM{sup}3O-MFG on four properties: B, D, P, and Q. In this optimization, the first turn substantially improves B, P, and Q, while the second turn focuses on improving D. The source molecule ({xref}Figure 2a) contains multiple polyphenolic esters that contribute to low lipophilicity and high molecular weight, both of which reduce B and Q. In the first turn, GeLLM{sup}3O-MFG reduces polarity by hydrolyzing one phenolic ester and replacing another with a 1,1,1-trifluoropropyl ester. These modifications also reduce the molecular weight from 718 to 461, which improves Q by aligning better with molecular weight guidelines for drug-like molecules, such as Lipinski’s Rule of Five [9]. However, the changes introduced in this turn change very little to improve the molecule’s predicted DRD2 activity, increasing from 0.03 to 0.05. Based on this feedback, GeLLM{sup}3O-MFG prioritizes D in the second turn, replacing the free dihydrobenzofuran carboxylic acid with a 4,4-difluoropiperidinyl group and hydrolyzing the 1,1,1-trifluoropropyl ester. This produces a substantial improvement on D, while also further improving B, P, and Q. The improvement on D may be driven in part by the introduction of a cyclic amine, which helps the molecule better resemble patterns in established drugs targeting DRD2. Taken together, this multi-turn optimization example illustrates how GeLLM{sup}3O-MFG shifts priorities across turns based on feedback, resulting in higher-quality candidate molecules after multiple turns.

Figure 2. An optimization case on BDPQ with T=2T = 2. (a) The source molecule. (b) The best optimized molecule at turn t=1t = 1. (c) The best optimized molecule at turn t=2t = 2. The modified fragments are highlighted.

Conclusion

In this work, we introduce MFG for molecular optimization, a multi-turn RL framework that trains LLMs to iteratively optimize molecules using previously generated candidates and their property feedback. By training a SOTA molecular optimization LLM, GeLLM{sup}3O, with MFG, we develop GeLLM{sup}3O-MFG. Across 10 MOMO tasks, GeLLM{sup}3O-MFG outperforms GeLLM{sup}3O and achieves competitive performance against existing baselines, improving molecular properties while preserving structural similarity. Extensive analyses demonstrate MFG’s effectiveness in leveraging multi-turn feedback for progressive molecular optimization. Together, these findings highlight the advantages of MFG in training LLMs to adapt their molecular optimization strategies across turns.

Acknowledgments

This project was made possible, in part, by support from the National Science Foundation grant no. IIS-2435819 (X.N.), the National Library of Medicine grant no. 1R01LM014385 (X.N.), and the Sanofi iDEA-TECH Awards North America (X.N.). Any opinions, findings, conclusions or recommendations expressed in this paper are those of the authors and do not necessarily reflect the views of the funding agency. The authors would like to thank Benjamin Burns for their proofreading of the manuscript.

Limitations

Despite the strong performance of MFG in multi-objective molecular optimization, several limitations remain. (1) Our experiments are conducted on MuMOInstruct, which includes MOMO tasks involving six target properties. Although GeLLM3^{3}O-MFG demonstrates strong generalization to out-of-distribution (OOD) tasks with unseen property combinations, its effectiveness on additional property objectives remains unexplored. (2) MFG relies on property oracles to provide intermediate property feedback and compute rewards for generated molecules. The reliability of this feedback depends on the accuracy of the property oracles, and the improvements observed in our evaluations have not been experimentally validated. (3) During training, the reward function uses the target molecule provided by MuMOInstruct to normalize property improvements and structural similarity. This requirement may limit the applicability of the current training framework to datasets without corresponding target molecules. (4) We apply MFG to GeLLM3^{3}O to develop GeLLM3^{3}O-MFG. Although the results demonstrate the effectiveness of MFG on this model, further evaluations on other molecular optimization LLMs are needed to establish the generalizability of our framework.

Ethical considerations

MFG for molecular optimization aims to improve multiple property objectives through iterative generation guided by intermediate property feedback. Although our framework is developed for molecular optimization rather than harmful applications, its ability to generate and optimize candidate molecules may also be used to produce potentially unsafe compounds. Moreover, improvements in target property objectives and structural similarity to the source molecule do not necessarily indicate that the generated molecules are safe for practical use. We therefore emphasize that molecules generated by MFG should undergo careful safety evaluation by expert chemists before being considered for synthesis or experimental testing. Any practical application of the framework and its generated molecules should also adhere to relevant safety regulations, ethical guidelines, and established professional practices.

Appendix

Molecular optimization. Computational methods for molecular optimization has been explored through a variety of paradigms, including molecule string translation and graph-based generation. Chemformer (Irwin et al., [6]) and Prompt-MolOpt (Wu et al., [18]) used transformer models to translate input molecule strings into optimized molecules. Modof (Chen et al., [2]) and MIMOSA (Fu et al., [4]) instead formulated molecular optimization as a graph modification problem and designed graph neural network-based methods to edit substructures. However, these methods are developed for specific objectives and may have limited generalizability across diverse optimization tasks. More recently, LLMs have shown the potential for molecular optimization by treating molecule string as a chemical language. For example, Chat-Drug (Liu et al., [11]) and Re2^{2}DF (Le et al., [7]) designed inference-time methods to iteratively refine molecules based on LLM dialogue with external domain feedback. DrugAssist (Ye et al., [19]) and GeLLM3^{3}O (Dey et al., [3]) further instruction-tuned general-purpose LLMs specifically for molecular optimization. BioMedGPT-Mol (Zuo et al., 2025) incorporated molecular optimization as one of multiple chemical tasks in a foundation chemical language model. Building on these ideas, our work finetunes a molecular optimization LLM via reinforcement learning (RL) so that it can be applied multiple times to generate progressively improved molecules.

Selection Criterion

Advance(⋅)(\cdot) ranks the intermediate candidates according to the criterion in Table A.1, listed in descending order of priority. Each criterion is considered only when higher-priority criteria cannot identify a unique candidate.

PrioritySelection Criterion
1Chemical validity
2Similarity to C0≥δC_0 \ge\delta
3Improvement on all properties in P\mathcal{P}
4Number of improved properties
5Similarity to C0≥δhC_0 \ge\delta_h
6Relative property improvement
7Similarity to C0C_0

Table A.1. Selection criteria of Advance(⋅)(\cdot) in descending order of priority.

Reward Function

Definition of G(⋅)\mathcal{G}(\cdot). For each source molecule C0C_0, we use the reference molecule CrefC_{\mathrm{ref}} provided by MuMOInstruct to normalize the improvement in each property p∈Pp \in\mathcal{P}:

G(Ct∣p)=clip⁡(dpΔyp(Ct,C0)dpΔyp(Ctarget,C0),−κ,κ)(5)\mathcal{G}(C_t \mid p)=\operatorname{clip}\left(\frac{d_p\Delta y_p(C_t,C_0)}{d_p\Delta y_p(C_{\mathrm{target}},C_0)},-\kappa,\kappa\right) \tag*{(5)}

where Δyp(A,B)=yp(A)−yp(B)\Delta y_p(A,B)=y_p(A)-y_p(B) denotes the difference in property pp between molecules AA and BB, dp∈{−1,1}d_p \in\{-1,1\} specifies the desired optimization direction, and κ\kappa is the clipping threshold.

We compute the average normalized improvement across all property objectives:

G(Ct)=1∣P∣∑p∈PG(Ct∣p).(6)\mathcal{G}(C_t)=\frac{1}{|\mathcal{P}|}\sum_{p\in\mathcal{P}}\mathcal{G}(C_t\mid p). \tag*{(6)}

By using CrefC_{\mathrm{ref}} for normalization, property improvements are scaled to balance the contributions of different property objectives.

Definition of S(⋅)\mathcal{S}(\cdot). We similarly normalize the structural similarity CrefC_{\mathrm{ref}}:

S(Ct)={1,Sim⁡(Ct,C0)≥δh,Sim⁡(Ct,C0)Sim⁡(Cref,C0),otherwise,(7)\mathcal{S}(C_t)= \begin{cases} 1, & \operatorname{Sim}(C_t,C_0)\ge\delta_h,\\ \frac{\operatorname{Sim}(C_t,C_0)}{\operatorname{Sim}(C_{\mathrm{ref}},C_0)}, & \text{otherwise}, \end{cases} \tag*{(7)}

where Sim⁡(A,B)∈[0,1]\operatorname{Sim}(A,B)\in[0,1] denotes the Tanimoto similarity between molecules AA and BB. The threshold-based design encourages structural similarity while preventing it from dominating the optimization objective.

Definition of λ(⋅)\lambda(\cdot). The scaling factor λt\lambda_t provides an additional bonus when CtC_t improves all target properties over C0C_0, as indicated by A(Ct)=I[dpΔyp(Ct,C0)>0,∀p∈P]A(C_t)=\mathbb{I}[d_p\Delta y_p(C_t,C_0)>0,\forall p\in\mathcal{P}]. We then define

λ(Ct)=1+A(Ct)Sim⁡(Ct,C0).(8)\lambda(C_t)=1+A(C_t)\operatorname{Sim}(C_t,C_0). \tag*{(8)}

Thus, λ(⋅)>1\lambda(\cdot)>1 only when CtC_t simultaneously improves all properties, with a larger λ(⋅)\lambda(\cdot) for higher similarity.

Validity Penalties. An output is considered invalid if it does not contain exactly one tagged SMILES string, fails RDKit parsing or kekulization, or duplicates the source molecule or any previously generated molecule. We assign a reward of −2-2 when CtC_t is invalid. For valid molecules, we set the minimum reward to −1-1 to prevent them from receiving penalties comparable to those for invalid generations, despite suboptimal property improvements.

Implementation Details

Training We use a group size of four for GRPO per prompt. For groups with uninformative rewards, we apply dynamic resampling with up to three attempts. We set the upper clipping parameter to 0.28, the KL coefficient to 0.1, and the maximum completion length to 96 tokens. Training uses fused AdamW with β1=0.9\beta_{1}=0.9, β2=0.95\beta_{2}=0.95, ϵ=10−8\epsilon=10^{-8}, weight decay of 0.1, and gradient clipping at 1.0. For the training data, we sample 100 source molecules for each tasks in MuMOInstruct, excluding the 5 OOD tasks. Training GeLLM3^{3}O-MFG took approximately 36 hours using two NVIDIA A100 GPUs.

For parameter-efficient training, we use LoRA with rank 16, scaling parameter 32, and dropout 0.05. We apply LoRA to the attention and Feed-Forward Network (FFN) projection layers in every Transformer block, while keeping all pretrained model parameters frozen. Training of GeLLM3^{3}O-RL follows the same setup as GeLLM3^{3}O-MFG, but excludes generated context, feedback, and the reward bonus (Eq. (4)). In terms of hyperparameters in reward function, κ\kappa in Eq. (5) is set to 1.25, δh\delta_h in Eq. (7) is 0.6 and δ\delta in Eq. (2) is 0.4.

Inference As we discussed in § 4.5, NN is set to 20/T20/T. Candidate selection criterion uses the same δ\delta and δh\delta_h values as training.

Evaluation Metrics

Definition of RI. Following GeLLM3^{3}O, RI is defined as follows,

RI=1∣P∣∑p∈PRIp(9)\mathrm{RI}=\frac{1}{|\mathcal{P}|}\sum_{p\in\mathcal{P}}\mathrm{RI}_{p} \tag*{(9)}

where RIp\mathrm{RI}_{p} is the relative improvement on property pp and is defined as follows,

RIp=dpyp(M)−yp(S)yp(S).(10)\mathrm{RI}_{p}=d_{p}\frac{y_{p}(M)-y_{p}(S)}{y_{p}(S)}. \tag*{(10)}

dpd_{p} is the direction coefficient and is set to +1 when property pp is optimized to increase and to −1 otherwise.

Prompt and Feedback Templates

All models receive the same initial prompt specifying the source molecule and target property objectives. The initial prompt follows the format:

Your task is to modify the given molecule
to adjust specific molecular properties while
keeping structural changes as minimal as possible.
Your response should only contain a valid
SMILES representation of the modified molecule
enclosed with <SMILES> </SMILES> tag.
%%%    Input:        <SMILES>[source
molecule]</SMILES>
%%% Adjust: [property objectives]

In the MT setting, each valid generation is followed by feedback on its structural similarity to the source molecule and improvements in each target property, as described in § 3.1. The feedback is structured as follows:

  • Similarity to input molecule: [value] ([band])

  • [property]: [source] -> [candidate] ([change], [status]; [direction])

Here, we categorize structural similarity into four bands: very high for similarity at least 0.6, high for [0.5, 0.6), moderate for [0.4, 0.5), and low below 0.4.

The feedback is also tailored based on whether a best molecule has been identified in previous turns. If no best molecule exists, the model is instructed to improve properties that have not yet improved while preserving previously achieved improvements and structural similarity to C0C_0. Otherwise, the best molecule Ct∗C_t^* is directly provided in the prompt as a tagged SMILES string, guiding the model to further improve upon Ct∗C_t^*.

For invalid generations, we provide corrective feedback specifying the reason for failure. This allows the model to identify generation errors and refine its molecular generation strategy in subsequent turns.

Additional Analysis of Experimental Results

Tables A.2 and A.3 provide detailed performance results across different numbers of TT, illustrating variations in the optimal TT across tasks and models. Overall, GeLLM3^{3}O-MFG has a higher average optimal TT across the 10 tasks (2.70), compared with GeLLM3^{3}O (1.30) and GeLLM3^{3}O-RL (1.80). This suggests that MFG trains GeLLM3^{3}O to effectively adapt its optimization strategies across turns, allowing improvements to accumulate over successive turns. From T=1T=1 to

ModelTTBDP SR0.5↑_{0.5}^{\uparrow}BDP Sim↑^{\uparrow}BDP RI↑^{\uparrow}BDQ SR0.5↑_{0.5}^{\uparrow}BDQ Sim↑^{\uparrow}BDQ RI↑^{\uparrow}BPQ SR0.5↑_{0.5}^{\uparrow}BPQ Sim↑^{\uparrow}BPQ RI↑^{\uparrow}DPQ SR0.5↑_{0.5}^{\uparrow}DPQ Sim↑^{\uparrow}DPQ RI↑^{\uparrow}BDPQ SR0.5↑_{0.5}^{\uparrow}BDPQ Sim↑^{\uparrow}BDPQ RI↑^{\uparrow}
General-purpose LLMs
Qwen3.5-9B132.800.760.9818.800.730.5490.400.750.5815.600.720.5111.000.750.54
236.400.720.9521.600.700.6088.600.710.6519.800.690.3612.200.760.51
335.400.710.9719.800.700.4481.800.710.6116.600.700.3511.600.720.51
434.600.701.0419.800.710.5175.800.710.6215.400.690.3311.800.710.60
Ministral-3-8B127.600.710.7424.000.670.4564.800.680.5212.800.680.288.600.720.56
233.600.680.8124.600.660.6966.000.650.6513.600.680.3611.600.700.47
336.600.670.8423.750.670.6260.600.650.6312.000.670.3511.200.680.53
437.600.680.7023.400.660.6557.400.650.6312.000.670.3211.000.680.56
LLMs for Chemistry
LlaSMol15.000.650.661.600.560.7927.400.650.664.400.660.372.400.730.42
26.400.640.810.800.540.6630.000.620.725.000.630.373.600.670.42
36.400.621.040.800.530.6828.780.630.655.000.630.373.600.640.48
46.600.620.960.800.530.6725.600.630.663.800.670.282.600.650.48
BioMedGPT-Mol169.200.622.8279.000.624.4097.200.611.2347.800.631.5838.000.622.03
273.800.593.1063.800.594.2096.600.591.2643.800.612.0743.000.591.88
374.200.583.3660.400.604.3195.400.591.2541.800.612.0542.000.591.91
473.600.583.2858.400.594.4694.800.581.2441.400.602.0442.000.592.06
GeLLM3^{3}O
GeLLM3^{3}O166.000.622.7765.000.643.8884.400.601.2843.800.611.8439.000.602.26
263.600.593.1071.400.604.1876.400.581.2841.000.582.2037.200.583.00
362.600.573.3771.400.604.3775.600.581.2642.600.582.2034.600.573.29
461.200.573.2170.800.594.3975.000.581.2340.600.572.4733.400.573.22
GeLLM3^{3}O-RL179.000.613.6770.600.634.9490.600.601.3147.200.622.0041.800.622.28
279.400.584.1879.400.605.8889.000.581.3546.800.592.7749.200.593.14
378.800.574.3480.400.585.8788.400.571.3644.800.582.8948.400.583.09
477.400.574.3080.600.595.6787.400.571.3644.400.582.6847.200.583.07
GeLLM3^{3}O-MFG183.200.623.6273.000.634.3089.200.621.2548.400.631.9744.000.612.50
284.200.614.2485.600.615.2291.200.601.3254.200.612.5551.400.592.84
383.200.613.9084.600.615.4089.600.591.3454.400.602.4753.400.593.19
483.000.613.9286.200.615.3289.400.601.3254.600.602.4951.800.593.16

Table A.2. Overall Performance on IND Tasks Across Turn Settings

The results with optimal TT for each model and task is highlighted in yellow. Other metrics, notations, and formatting follow Table 1.

T=4T = 4, the average SR of GeLLM3^{3}O decreases from 70.05% to 61.64%, while GeLLM3^{3}O-RL improves slightly from 75.87% to 75.94%. In contrast, GeLLM3^{3}O-MFG shows a more pronounced improvement from 76.24% to 79.89%, demonstrating greater benefits from additional optimization turns. These results suggest that MFG trains the model to better leverage multi-turn feedback for progressive molecular optimization, with a task-dependent optimal TT.

Artifact Sources and Licenses

Table A.4 summarizes the sources, licenses, and accessibility of the models, datasets, and implementation used in our experiments. We report the licenses specified by the respective artifact providers. For artifacts without an explicitly stated license, we indicate this accordingly.

ModelTTMPQ SR0.5↑SR_{0.5}^{\uparrow}MPQ Sim↑Sim^{\uparrow}MPQ RI↑RI^{\uparrow}BDMQ SR0.5↑SR_{0.5}^{\uparrow}BDMQ Sim↑Sim^{\uparrow}BDMQ RI↑RI^{\uparrow}BHMQ SR0.5↑SR_{0.5}^{\uparrow}BHMQ Sim↑Sim^{\uparrow}BHMQ RI↑RI^{\uparrow}BMPQ SR0.5↑SR_{0.5}^{\uparrow}BMPQ Sim↑Sim^{\uparrow}BMPQ RI↑RI^{\uparrow}HMPQ SR0.5↑SR_{0.5}^{\uparrow}HMPQ Sim↑Sim^{\uparrow}HMPQ RI↑RI^{\uparrow}
General-purpose LLMs
Qwen3.5-9B175.800.690.4117.000.760.4172.030.731.0375.390.710.4781.250.730.54
268.000.660.4623.400.710.4377.120.691.0373.820.670.5481.250.690.68
363.200.660.4321.200.690.4173.730.691.0362.830.660.5572.920.680.73
460.200.660.4521.400.690.4270.340.700.9859.160.670.5270.830.670.74
Ministral-3-8B147.800.650.3715.400.660.5251.690.661.0747.120.650.4734.380.670.59
249.600.640.3923.200.640.7657.630.631.0356.540.650.4940.620.630.69
343.000.630.3818.600.650.6246.610.630.8152.360.660.4440.620.640.58
442.400.630.3816.000.650.6938.980.630.8950.260.650.4335.420.660.54
LLMs for Chemistry
LlaSMol117.400.610.380.200.670.0015.250.621.7815.710.610.5131.250.630.69
218.200.600.410.600.590.3320.340.631.0218.320.640.5025.000.610.65
317.000.600.390.800.580.6815.250.631.3816.230.630.4929.170.620.70
415.800.610.360.600.630.5512.710.601.1413.610.630.5121.880.610.71
BioMedGPT-Mol194.400.600.7465.600.612.4888.980.622.2591.100.600.8791.670.621.14
281.000.590.8157.200.602.6491.530.592.5391.620.600.9293.750.591.64
379.000.590.8054.600.592.6589.830.582.6088.480.600.9486.460.581.42
478.200.590.8052.200.592.7987.290.592.4284.820.590.9286.460.581.47
GeLLM³O183.400.600.7664.400.622.6682.200.602.8184.820.590.9687.500.591.51
276.200.580.7665.600.593.0666.100.573.3370.160.581.0373.960.571.69
374.400.580.7562.800.583.1263.560.563.3767.020.571.0468.750.561.41
474.400.580.7461.000.583.2662.710.563.2166.490.580.9870.830.561.38
GeLLM³O-RL188.800.590.8369.800.623.0188.140.592.8790.050.610.9992.710.591.44
282.400.580.8881.600.593.7788.980.583.1287.430.571.1195.830.561.75
380.000.580.8781.200.583.8787.290.572.9584.820.561.1294.790.551.73
478.800.580.8779.600.583.8586.440.572.9583.770.561.0993.750.551.70
GeLLM³O-MFG188.400.600.7880.200.622.7780.510.602.7486.910.620.9288.540.601.37
287.200.600.8383.600.613.5087.290.592.7889.010.600.9990.620.581.70
385.000.590.8480.800.613.6088.140.582.8586.910.591.0293.750.581.62
485.000.590.8481.200.613.6990.680.572.8785.340.591.0491.670.581.42

Table A.3. Overall Performance on OOD Tasks Across Turn Settings. The results with optimal TT for each model and task is highlighted in yellow. Other metrics, notations, and formatting follow Table 1.

ArtifactSourceLicense TypeAccessibility
MuMOInstructhttps://huggingface.co/datasets/NingLab/MuMOInstructCC BY 4.0Dataset
Llama-3.1-8B-Instructhttps://huggingface.co/meta-llama/Llama-3.1-8B-InstructLlama 3.1 Community LicenseCheckpoint
GeLLM³O-P(6)Llamahttps://huggingface.co/NingLab/GeLLM-O-P6-LlamaCC BY-NC 4.0Checkpoint
Qwen3.5-9Bhttps://huggingface.co/Qwen/Qwen3.5-9BApache 2.0Checkpoint
Ministral-3-8B-Instruct-2512-BF16https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512-BF16Apache 2.0Checkpoint
LlaSMol-Mistral-7Bhttps://huggingface.co/osunlp/LlaSMol-Mistral-7BCC BY 4.0LoRA Adapter
BioMedGPT-Molhttps://huggingface.co/PharMolix/BioMedGPT-MolNot specifiedCheckpoint

Table A.4. Licenses and sources of artifacts used in our study.

References

  1. [1]Dávid Bajusz, Anita Rácz, and Károly Héberger. 2015. Why is tanimoto index an appropriate choice for fingerprint-based similarity calculations? Journal of cheminformatics, 7(1):20.DOI
  2. [2]Ziqi Chen, Martin Renqiang Min, Srinivasan Parthasarathy, and Xia Ning. 2021. A deep generative model for molecule optimization via one fragment modification. Nature machine intelligence, 3(12):1040–1049.DOI
  3. [3]Vishal Dey, Xiao Hu, and Xia Ning. 2025. GeLLM³O: Generalizing large language models for multi-property molecule optimization. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 25192–25221, Vienna, Austria. Association for Computational Linguistics.DOI
  4. [4]Tianfan Fu, Cao Xiao, Xinhao Li, Lucas M Glass, and Jimeng Sun. 2021. Mimosa: Multi-constraint molecule sampling for molecule optimization. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 125–133.arxiv.org/abs/2010.02318
  5. [5]JP Hughes, S Rees, SB Kalindjian, and KL Philpott. 2011. Principles of early drug discovery. British Journal of Pharmacology, 162(6):1239–1249.DOI
  6. [6]Ross Irwin, Spyridon Dimitriadis, Jiazhen He, and Esben Jannik Bjerrum. 2022. Chemformer: a pre-trained transformer for computational chemistry. Machine Learning: Science and Technology, 3(1):015022.DOI
  7. [7]Khiem Le, Ting Hua, and Nitesh V Chawla. 2024. Agentdrug: Utilizing large language models in an agentic workflow for zero-shot molecular editing. arXiv preprint arXiv:2410.13147.arxiv.org/abs/2410.13147
  8. [8]Xuan Li, Zongze Li, Jiangchao Yao, Yu Rong, Lu Zhang, Bo Han, and 1 others. 2026. Reference-guided policy optimization for molecular optimization via llm reasoning. In International Conference on Learning Representations, volume 2026, pages 65266–65297.arxiv.org/abs/2603.05900
  9. [9]Christopher A Lipinski, Franco Lombardo, Beryl W Dominy, and Paul J Feeney. 2001. Experimental and computational approaches to estimate solubility and permeability in drug discovery and development set- tings|pii of original article: S0169-409x(96)00423-1. the article was originally published in advanced drug delivery reviews 23 (1997) 3–25. Advanced Drug Delivery Reviews, 46(1):3–26. Special issue dedi- cated to Dr. Eric Tomlinson, Advanced Drug Deliv- ery Reviews, A Selection of the Most Highly Cited Articles, 1991-1998.
  10. [10]Alexander H Liu, Kartik Khandelwal, Sandeep Sub- ramanian, Victor Jouault, Abhinav Rastogi, Adrien Sadé, Alan Jeffares, Albert Jiang, Alexandre Cahill, Alexandre Gavaudan, and 1 others. 2026. Ministral 3. arXiv preprint arXiv:2601.08584.arxiv.org/abs/2601.08584
  11. [11]Shengchao Liu, Jiongxiao Wang, Yijin Yang, Cheng- peng Wang, Ling Liu, Hongyu Guo, and Chaowei Xiao. 2023. Chatgpt-powered conversational drug editing using retrieval and domain feedback. arXiv preprint arXiv:2305.18090.arxiv.org/abs/2305.18090
  12. [12]Xuefeng Liu, Songhao Jiang, Siyu Chen, Zhuoran Yang, Yuxin Chen, Ian Foster, and Rick Stevens. 2025. Drugimprovergpt: A large language model for drug optimization with fine-tuning via structured policy optimization. arXiv preprint arXiv:2502.07237.arxiv.org/abs/2502.07237
  13. [13]Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman, Naveed Akhtar, Nick Barnes, and Ajmal Mian. 2025. A com- prehensive overview of large language models. ACM Transactions on Intelligent Systems and Technology, 16(5):1–72.arxiv.org/abs/2307.06435
  14. [15]Qwen Team. 2026. Qwen3.5: Towards native multi- modal agents.
  15. [16]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, and 1 others. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.arxiv.org/abs/2402.03300
  16. [17]Duxin Sun, Wei Gao, Hongxiang Hu, and Simon Zhou. 2022. Why 90 Acta Pharmaceutica Sinica B, 12(7):3049–3062.
  17. [18]Zhenxing Wu, Odin Zhang, Xiaorui Wang, Li-Ni Fu, Huifeng Zhao, Ji-Ke Wang, Hongyan Du, Dejun Jiang, Yafeng Deng, Dongsheng Cao, Chang-Yu Hsieh, and Tingjun Hou. 2024. Leveraging language model for advanced multiproperty molecular opti- mization via prompt engineering. Nature Machine Intelligence, 6:1359 – 1369.DOI
  18. [19]Geyan Ye, Xibao Cai, Houtim Lai, Xing Wang, Junhong Huang, Longyue Wang, Wei Liu, and Xiangxiang Zeng. 2025. Drugassist: A large language model for molecule optimization. Briefings in Bioinformatics, 26(1):bbae693.

Paper details

vlnc:W_7cz6xn8h
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents