TL;DR
C-MORAL is a reinforcement learning post-training framework designed to align Large Language Models (LLMs) for controllable multi-objective molecular optimization. By combining group-relative policy updates with non-linear reward aggregation, it allows LLMs to successfully satisfy competing drug-design constraints without sacrificing the core molecular structure.
What Problem Does This Paper Address?
Lead optimization in drug discovery is a delicate balancing act. When chemists modify a "hit" molecule to turn it into a viable drug, they rarely want to optimize every property indiscriminately. Instead, they need controllable optimization: selectively improving a few deficient attributes (like binding affinity or synthetic feasibility) while strictly preserving properties that already meet target thresholds, all while keeping the core chemical scaffold intact.
Existing approaches using Supervised Fine-Tuning (SFT) treat these constraints as soft instructions, frequently resulting in "implicit sacrifice"—improving one metric by completely destroying another. Standard Reinforcement Learning (RL) methods also struggle because they rely on linear scalarization (arithmetic means) to combine multiple rewards. Mathematically, optimizing a linear objective over competing, non-linear chemical properties pushes solutions toward extreme corner cases, causing catastrophic "reward collapse" where the model over-optimizes easy goals and violates hard constraints.
Methods
The authors introduce C-MORAL (Controllable Multi-Objective Molecular Optimization with Reinforcement Alignment), an RL post-training pipeline featuring three core innovations:
- Property Score Sigmoid Alignment: To handle heterogeneous metrics existing on vastly different numerical scales, C-MORAL maps raw property values into a unified $[0, 1]$ preference space. It uses a standard sigmoid for sub-optimal properties and a customized Double Sigmoid for near-optimal properties, creating a high-reward "plateau" that heavily penalizes any boundary violations.
- Non-Linear Reward Aggregation: Instead of a standard arithmetic mean, the framework aggregates scores using either a Geometric Mean (in the GRPO variant) or a Smooth Minimum via Log-Sum-Exp (in the GDPO variant). These act as continuous, differentiable "AND" operators, ensuring that if even a single property fails, the overall reward drops drastically.
- Group-Based Policy Optimization: C-MORAL adapts Group Relative Policy Optimization (GRPO) and Group reward-Decoupled Normalization Policy Optimization (GDPO). Instead of relying on a memory-heavy critic network to estimate value, it samples a group of candidate molecules for the same prompt and scores them relative to their peers, significantly enhancing training efficiency.
Datasets
The framework was evaluated on the C-MuMOInstruct benchmark, which contains 10 distinct molecular optimization tasks. The tasks are split into two categories to test robustness:
- In-Domain (IND): Tasks evaluating property combinations close to the training distribution.
- Out-of-Domain (OOD): Tasks testing the model on entirely unseen property constraints and scaffold conditions.
For RL post-training, the authors constructed a balanced dataset of 100,000 molecules (10,000 per task) and evaluated performance on a uniform test set of 500 molecules per task. Computational oracles like RDKit and ADMET-AI were utilized to provide property feedback.
Key Insights and Ideas
- The Flaw of the Arithmetic Mean: The paper clearly demonstrates that linear arithmetic means are fundamentally incompatible with multi-objective molecular optimization. They allow a model to achieve a high average reward by maximizing an easy property while completely neglecting a difficult one.
- Enforcing Hard Constraints Softly: By utilizing non-linear aggregation functions, the reward design transforms soft natural language instructions into strict optimization boundaries. The geometric mean ensures that property bottlenecks dictate the gradient updates.
- Memory-Efficient Alignment: Shifting away from traditional Actor-Critic RL setups (like PPO) to group-relative architectures allows 7B-scale molecular LLMs to be aligned efficiently on consumer-grade hardware without a separate value network.
Key Results
C-MORAL was evaluated using Mistral-7B and LLaMA-3-8B backbones, consistently outperforming strong SFT baselines:
- In-Domain Mastery: On IND tasks, C-MORAL achieved a Success Optimized Rate (SOR) of 48.9% (compared to 33.7% for the SFT baseline) and nearly doubled the Strict Success Optimized Rate (SSOR) from 14.4% to 25.1%.
- Robust Generalization: On OOD tasks, the framework maintained its edge, achieving a 39.5% SOR against the baseline's 24.4%.
- Scaffold Preservation: Crucially, these property improvements did not come at the cost of structural integrity; the models maintained a high Tanimoto scaffold similarity (~0.59-0.60), proving that edits were localized and deliberate.
As shown in the training trajectories below, standard linear methods quickly suffer from reward collapse, while C-MORAL's non-linear approaches successfully keep all properties within safe boundaries:
Limitations and Future Work
While promising, the authors note several limitations:
- Benchmark Specificity: The empirical gains are currently tied to the specific property combinations defined within the C-MuMO benchmark.
- Scale and Architecture Limits: The evaluation was restricted to two 7B-scale models; how these multi-objective dynamics behave in larger frontier models remains unexplored.
- Oracle Dependency: The framework relies on computational predictors (oracles) for reward signals, which can introduce inaccuracies compared to true wet-lab synthesis and biological testing.
Future directions include validating C-MORAL on broader datasets, integrating more reliable molecular evaluation tools, and exploring alternative post-training strategies like chain-of-thought reasoning for molecular edits.
Summary updated