q-bio.QMOct 13, 2026

STAMP as a topology-aware molecular language for fragment-level learning and editing

Authors: Yuxuan Ren, Jiatong Li, Ziqiao Meng, Yatao Bian

Organizations: National University of Singapore

Abstract

Molecular fragments provide chemically meaningful units, but existing molecular languages rarely make their locations and connections explicit for editing. Here we introduce STAMP (Sequential Tree Attachment-based Motif-Preserving representation), a topology-aware molecular language that connects fragment-level representation learning with precise structural editing. STAMP separately encodes motif identity, attachment sites and tree topology, making fragments reusable across contexts and subtrees directly accessible. Learned representations capture motif similarity and recurring transformations, and lower activity-cliff prediction error on 23 of 30 targets versus a matched SMILES encoder. Compatible subtree operations support scaffold-preserving optimization, ranking first among six methods on 15 of 23 benchmark objectives. A deterministic compiler enables frozen language models to act on indexed fragments, improving molecular editing, optimization, transformation transfer and change identification by 9 to 56 percentage points over plain SMILES. Together, these results establish an executable molecular language in which learned chemical units remain directly operable during design.

Figures & tables

Explore similar work

CardsList
  1. FORGE: Fragment-Oriented Ranking and Generation for Context-Aware Molecular Optimization

    May 11, 2026Qingchuan Zhang, He Cao, Hao Li +6Molecular OptimizationLarge Language Model-Guided Optimization

  2. Augmenting Molecular Language Models with Local nn-gram Memory

    Jun 10, 2026Xinni Zhang, Zijing Liu, He Cao +2Memory-Augmented Language ModelsLanguage Modeling

  3. SLIM: Sparse Latent Steering for Interpretable and Property-Directed LLM-Based Molecular Editing

    May 11, 2026Mingxu Zhang, Yuhan Li, Lujundong Li +3Molecular OptimizationLLM Interpretability