SmileyLlama: modifying large language models for directed chemical space exploration

Here we show that large language models (LLMs) can be transformed via supervised fine-tuning of engineered prompts into SmileyLlama for exploring the chemical space of drug molecules. We benchmark SmileyLlama against pretrained LLMs and chemical language models trained from scratch for generating valid and novel drug-like molecules, and use direct preference optimization to both improve SmileyLlama's adherence to a prompt and as part of the iMiner reinforcement learning framework to predict molecules with optimized three-dimensional conformations and high binding affinity to drug targets. By training an LLM to speak directly as a chemical language model, while retaining most of its natural language capabilities, we show that SmileyLlama can reliably generate molecules with user-specified properties rather than acting only as a chatbot with knowledge of chemistry or as a virtual assistant. While SmileyLlama is geared toward drug discovery, the supervised fine-tuning/direct preference optimization/LLM framework can be extended to other chemical, biological and materials applications.

Authors

Institutions

Publication Details

Journal
Nature Computational Science
Published
2026-05-11
DOI
https://doi.org/10.1038/s43588-026-00986-y
Citations
3
Primary Topic
Space Exploration and Technology
Type
preprint
Field-Weighted Citation Impact
153.10

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

SmileyLlama: modifying large language models for directed chemical space exploration

Andrew Gritsevskiy, Teresa L. Head-Gordon, Kunyang Sun, Thomas D. Bannister et al.
3 citations
Nature Computational Science
Space Exploration and Technology
153.10
preprint

SmileyLlama: modifying large language models for directed chemical space exploration

Andrew Gritsevskiy, Teresa L. Head-Gordon, Kunyang Sun, Thomas D. Bannister, Dorian Bagni, Joseph M. Cavanagh
preprint en
3 citations

Abstract

Here we show that large language models (LLMs) can be transformed via supervised fine-tuning of engineered prompts into SmileyLlama for exploring the chemical space of drug molecules. We benchmark SmileyLlama against pretrained LLMs and chemical language models trained from scratch for generating valid and novel drug-like molecules, and use direct preference optimization to both improve SmileyLlama's adherence to a prompt and as part of the iMiner reinforcement learning framework to predict molecules with optimized three-dimensional conformations and high binding affinity to drug targets. By training an LLM to speak directly as a chemical language model, while retaining most of its natural language capabilities, we show that SmileyLlama can reliably generate molecules with user-specified properties rather than acting only as a chatbot with knowledge of chemistry or as a virtual assistant. While SmileyLlama is geared toward drug discovery, the supervised fine-tuning/direct preference optimization/LLM framework can be extended to other chemical, biological and materials applications.

Nature Computational Science
Lawrence Berkeley National Laboratory (US), Prometheus Biosciences (United States) (US), The Herbert Wertheim UF Scripps Institute for Biomedical Innovation & Technology, University of California, Berkeley (US)
U.S. Department of Energy, National Institutes of Health, Office of Science, Basic Energy Sciences
Openalex Percentile: Top 0%
Space Exploration and Technology
153.10
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

SmileyLlama: modifying large language models for directed chemical space exploration — Andrew Gritsevskiy, Teresa L. Head-Gordon, et al. · Nature Computational Science (2026) | TGRS Research Map | TGRS