LLM-to-Flow Distillation: Teaching Natural Language Goals to Scientific Generators
AuthorsRiccardo De Santi, Federico Di Gennaro, Angelo Gnazzo, Sophia Tang, Pranam Chatterjee, Fanny Yang, İsmail İlkan Ceylan, Michael M. Bronstein, Andreas Krause
AffiliationsTechnische Universität Wien 4 5 AITHYRA University of Pennsylvania · University of Oxford https://llm-to-flow-distillation.github.io/
An LLM guides scientific generators toward discovery goals by breaking them into achievable steps and teaching from its preferences.
Key results
LFD peptide designs’ held-out score.
LFD peptide designs’ held-out score.
LFD’s mean docking score, reported in pK.
LFD’s mean docking score, reported in pK.
Fraction of generated molecules passing RDKit validity checks.
What the paper found
LLM-to-Flow Distillation, or LFD, teaches scientific generators to follow natural-language goals without task-specific proxy rewards. A frozen LLM observes each generator’s samples and scientific descriptors, proposes attainable intermediate goals, then labels candidates positive, negative, or uncertain. Positive–negative preferences are distilled into the generator with Direct Preference Optimization, and the curriculum tightens as the generator improves. This uses relative judgments rather than unreliable absolute scores: tests with GPT 5.6 Terra, Claude Opus 5, and Gemini 3.7 Flash found that rankings were informative across peptides, crystals, and molecules. In the design experiments, Gemini 3.1 Pro generated curricula and Gemini 3.7 Flash judged candidates; LFD adapted PepDFM for peptides and FlowMol3 for molecules. On held-out peptide evaluation, cell-penetrating activity reached 69.06% on pLM4CPPs, while anticancer activity reached 53.54% on AntiCP2-alt. For small molecules, LFD achieved 6.54 pK on D2-receptor GNINA scoring and 6.77 pK on GSK3β GNINA scoring, outperforming the tested reward-guided baselines. D2 designs retained 98% RDKit validity. These are computational evaluations, not experimental confirmation; the central advance is an adaptive, interpretable route for steering generators toward goals that begin outside their sampling distribution.
Original abstract
Generative discovery in science requires coupling high-level scientific reasoning with the ability to generate samples respecting the structure of a design space. Yet these capabilities remain largely separated: foundation LLMs encode broad chemical and biological knowledge, while domain-specific flow- and diffusion-based generators capture the priors needed to produce valid sequences and geometries. We study how to align such scientific generators to high-level natural-language discovery goals without requiring an explicit proxy reward, which is often unavailable or poorly captured by learned predictors in experimental sciences. We introduce LLM-to-Flow Distillation (LFD), where a frozen LLM acts as an adaptive teacher for a domain-specific generator. Given a goal such as 'generate peptides with promising anticancer activity', the teacher constructs a curriculum of intermediate sub-goals aware of the flow's current capabilities, and progressively directs them toward the original discovery goal. At each round, the LLM judges sampled candidates under the current objective. These judgments induce preferences that are iteratively distilled into the generator through DPO. This procedure provides dense learning signals even when the initial model places negligible probability on designs satisfying the final goal, enabling adaptation toward poorly covered, out-of-distribution regions. Experiments on therapeutic peptides and small-molecule structure design demonstrate that LFD enables a new form of generative control: aligning arbitrary domain-specific scientific generators to scientific discovery tasks expressed via high-level natural-language goals.
Read the original paperMore in AI for Science
Browse all 46 papers →DiscoveryRSI: Recursively Learning to Discover Valuable Hypotheses
Jianyuan Zhong, Chenwei Wu, Zhaochen Yu, Xixian Jiang, Xuewei Li, Hao Xiao, Xilin Dai, Junyang Wang, Jiaru Zou, Zhiqing Cui, Boyuan Zheng, Jing Xiong, Zhen Zhang, Qiang Gao, Michael Morley, Luis Nakayama, Qiang Xu, Liyue Shen, Tao Gui, Leo Anthony Celi, James Zou, Zhenfei Yin, Yingcheng Wu, Ling Yang
DiscoveryRSI aims to make AI research agents better at proposing testable scientific hypotheses by learning from their own investigations.
Scaling Parameter-Efficient Fine-Tuning for Brain Encoding
Zhuofan Josh Ying, Guanglong Sun, Nolan Ho, Kieran Liu, Rui Yang, Andrew Chen, Nikolaus Kriegeskorte, Pony Ma, Hossein Adeli
BrainLoRA adapts massive multimodal models to predict brain activity efficiently, with strong results on a major neuroscience challenge.
AI-guided high-throughput discovery of iridium- and ruthenium-free palladium-oxide catalysts for durable acidic oxygen evolution
Ken J. Jenewein, Faezeh Habib Zadeh, Xiaoxiao Wang, Gustavo Malkomes, Huafan Zhang, Natalie Page, Jae Jin Bang, Peter J. Santiago, Karla V. Contreras, Katherine K. Li, Allison Perna, Lorena M. Britton, Fahrettin Kilic, Kevin J. Cruse, Armin Taheri, Krishnanand Mallayya, Harley Quinn, Rebecca A. Durr, Peter A. Beaucage, John M. Gregoire, Rafael Gómez-Bombarelli
An AI-guided robotic lab discovered palladium-based catalysts that could make acidic water electrolysis more durable while reducing dependence on scarce iridium and ruthenium.