TL;DR
Proposing a new molecule is only half the battle; chemists still have to figure out how to actually make it—and large language models (LLMs) are surprisingly bad at spotting when a recipe is doomed to fail. ReaXpert tackles this by evolving readable, human-editable instructions for a frozen LLM (no weight training required) and breaking reaction reasoning down into six inspectable chemistry factors. With explicit calibration rules to curb the model's "optimism bias," it boosts low-yield failure recall from a dismal 7.9% to 48.3%, matching fine-tuned open models in accuracy while letting chemists see—and edit—the exact reasoning behind every verdict.
What Problem Does This Paper Address?
In materials discovery and pharmaceutical synthesis, knowing what molecule you want is just the start. You still need a workable recipe: the right combination of catalyst, ligand, base, solvent, temperature, and stoichiometry. Searching this combinatorial space eats up a huge chunk of a self-driving laboratory's experimental budget.
While machine learning models can predict a scalar reaction yield, a single number isn't enough for a synthesis agent—chemists need to know which chemical factor is driving the outcome and how to fix it. Worse, when you ask a frozen LLM (here, Claude Sonnet 4.5) to directly classify a Suzuki–Miyaura coupling reaction as low, mid, or high yield, it suffers from severe optimism bias: it catches only 7.9% of true low-yield reactions, cheerfully assigning the rest to mid or high. In a lab, that's the most expensive mistake possible—wasting materials and instrument time on conditions that should have been flagged as risky.
Methods
Instead of fine-tuning model weights, ReaXpert adapts a frozen LLM using GEPA (Genetic-Pareto), an evolutionary prompt optimizer. GEPA runs a candidate instruction on a minibatch of reactions, records the execution trace, and asks a reflection LLM to diagnose errors and propose revisions. Crucially, it keeps candidates on a Pareto front over individual examples rather than optimizing only the average score, preserving strategies that handle chemically distinctive edge cases.
To make the reasoning auditable, the authors pair this with:
- Six chemist-defined factors: Every prompt evaluates (1) electrophile/leaving group, (2) catalyst–ligand match, (3) sterics, (4) catalyst poisoning, (5) reactive functional groups, and (6) procedure/workup before assigning a yield category.
- Calibration and distillation: Because the evolved prompt still inherited optimism bias, the authors added explicit downgrade triggers (e.g., for free amines or ortho,ortho-disubstitution) and used an editor model to clean up corner-case rules into a structured format.
- Retrieval grounding: In the deployed agent, queries are encoded as 2048-bit differential reaction fingerprints (DRFP) to fetch nearest-neighbor precedents from a historical corpus, though the offline classification harness evaluates the factor prompts without online retrieval.
Datasets
- The Process Corpus: 98,316 internal reactions across Suzuki–Miyaura coupling (33.3k), Buchwald–Hartwig amination (32.8k), and $\text{S}_\text{N}\text{Ar}$ (32.3k), used as the fingerprint retrieval index.
- Lit-Suzuki (Literature Comparison Panel): 918 evaluation records (from 6,122 filtered literature records), split into low ($\le 40\%$), mid ($41\text{--}75\%$), and high ($> 75\%$) yields (242/378/298). Note that 331 rows overlap GEPA's training split and 59 overlap its validation split, making this a retrospective checkpoint comparison rather than an untouched test.
- Prod-Suzuki (Production Evaluation Set): A 300-row stratified sample from an internal medicinal-chemistry campaign (75.9% low, 23.7% mid, 0.45% high yield overall). It provides only substrate and product structures—no reaction conditions—making it a strict structure-only distribution-shift test.
Key Insights and Ideas
- Prompts as editable scientific artifacts: Because the learned artifact is plain text rather than opaque neural weights, a chemist can directly read, contest, and edit every rule.
- Evolution alone didn't fix optimism bias: Interestingly, the GEPA-evolved prompt by itself didn't beat zero-shot accuracy. The big leap in catching failing reactions came from explicit calibration rules layered on top.
- Literature success bias vs. production reality: Literature data is heavily skewed toward successful reactions, whereas real-world medicinal chemistry campaigns fail often (75.9% low yield in Prod-Suzuki). When reaction conditions are stripped away in the structure-only production test, the calibrated variants over-predicted low yields and lost their macro-F1 edge.
Key Results
- Offline Literature Classification (Lit-Suzuki): The cleaned + calibrated prompt achieved 0.456 accuracy and 0.455 macro-F1 (up from 0.417 accuracy and 0.353 macro-F1 for zero-shot). Low-yield recall jumped from 7.9% to 48.3%, and class-recall spread (max minus min recall) shrank from 52.5 to 5.4 percentage points. Without any weight training, this sits within 0.4 points of the strongest evaluated LoRA reference (Qwen-3.6-27B LoRA at 0.460 accuracy, 0.433 macro-F1).
- Structure-Only Production (Prod-Suzuki): The GEPA-evolved prompt achieved the highest macro-F1 (0.363), while archived calibration and cleaner variants dropped to 0.309 and 0.291.
- Retrospective Bayesian Optimization (BO) Warm Starts: On a 3,696-reaction Suzuki grid, a chemistry-informed warm start (historically labeled "GEPA") reached 80.5% mean best yield at round 5, compared to 74.2% for zero-shot, 70.0% for standard BO, and 63.5% for random search.
- Factor Output Quality: A proxy LLM judge on 50 queries found 100% recommendation specificity (50/50) and precedent citation (42/42), 90% avoidance of a yield verdict (45/50), and 75.5% structure grounding (37/49).
Limitations and Future Work
The authors are candid about what this paper does not prove yet:
- Retrospective and overlapping splits: Because Lit-Suzuki overlaps GEPA's development data and uses reported procedures that may contain post-experiment cues, these numbers are descriptive checkpoints, not untouched-test generalization.
- Unisolated components: The evaluation doesn't cleanly separate the individual contributions of GEPA, factor decomposition, retrieval, and calibration.
- No expert chemical validation yet: The 50-query audit used a proxy LLM judge, not human chemists, and the BO handoff remains a retrospective benchmark rather than an integrated, prospective lab run.
- Next steps: Clean held-out evaluations, matched component ablations, testing across broader model backbones, expert chemist studies, and closed-loop prospective BO.
Summary updated