Atom-anchored LLMs speak Chemistry: A Retrosynthesis Demonstration

Alan Kai Hassen, Andrius Bernatavicius, Antonius P. A. Janssen, Mike Preuss, Gerard J. P. van Westen +1 more
10/18/2025
cs.LGcs.AIq-bio.BM

No official code found. Best implementation: AlanHassen/atom-anchored-llms-speak-chemistry (2 stars, last commit 2025-11-05).

Abstract

Applications of machine learning in chemistry are often limited by the scarcity and expense of labeled data, restricting traditional supervised methods. In this work, we introduce a framework for molecular reasoning using general-purpose Large Language Models (LLMs) that operates without requiring labeled training data. Our method anchors chain-of-thought reasoning to the molecular structure by using unique atomic identifiers. First, the LLM performs a one-shot task to identify relevant fragments and their associated chemical labels or transformation classes. In an optional second step, this position-aware information is used in a few-shot task with provided class examples to predict the chemical transformation. We apply our framework to single-step retrosynthesis, a task where LLMs have previously underperformed. Across academic benchmarks and expert-validated drug discovery molecules, our work enables LLMs to achieve high success rates in identifying chemically plausible reaction sites ($\geq90\%$), named reaction classes ($\geq40\%$), and final reactants ($\geq74\%$). Beyond solving complex chemical tasks, our work also provides a method to generate theoretically grounded synthetic datasets by mapping chemical knowledge onto the molecular structure and thereby addressing data scarcity.

View on arXivView PDF

Code Implementations(1)

Atom-anchored LLMs speak Chemistry: A Retrosynthesis Demonstration

22CSS, PythonNov 5, 202511 months ago

Similar Papers

Cite this paper

@article{hassen2025atomanchored,
  title  = {Atom-anchored LLMs speak Chemistry: A Retrosynthesis Demonstration},
  author = {Alan Kai Hassen and Andrius Bernatavicius and Antonius P. A. Janssen and Mike Preuss and Gerard J. P. van Westen and Djork-Arné Clevert},
  year   = {2025},
  eprint = {2510.16590},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.16590v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.16590.svg)](https://codeofpaper.com/paper/2510.16590)

Discussion