Language models for molecular design have scaled to hundreds of millions of parameters, yet how they learn chemical grammar is poorly understood. We train SMolLM, a 53K-parameter weight-shared transformer, to generate novel SMILES with 95% validity on the ZINC-250K drug-like-molecule benchmark, outperforming a standard GPT with 10 times more parameters. Mechanistically, the same block resolves SMILES constraints across passes in a fixed hierarchy: brackets first, rings second, and valence last, as shown by error classification and linear probing, with ablation isolating the bracket-matching head. Together, these results yield a compact, mechanistically interpretable molecular generator and a testbed for studying iterative computation in formal-language domains.
What Does a Chemical Language Model Know About Molecules?
Department of Systems Biology, Columbia University(哥伦比亚大学系统生物学系);Computational Drug Discovery (CDD), Division of Medicinal Chemistry, Leiden University(莱顿大学药物化学系计算药物发现(CDD))
DecompOpt: Controllable and Decomposed Diffusion Models for Structure-based Molecular Optimization
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Center for Research on Intelligent Perception and Computing (CRIPAC)(智能感知与计算研究中心);State Key Laboratory of Multimodal Artificial Intelligence Systems (MAIS)(多模态人工智能系统国家重点实验室);Institute of Automation, Chinese Academy of Sciences (CASIA)(中国科学院自动化研究所);ByteDance Research(字节跳动研究部);Halıcıoğlu Data Science Institute, University of California San Diego(加州大学圣迭戈分校哈利西奥格鲁数据科学学院)
Recent advances in the Self-Referencing Embedding Strings (SELFIES) library
University of Toronto(多伦多大学);Stanford University(斯坦福大学);University of Rochester(罗切斯特大学);Max Planck Institute for the Science of Light(马克斯·普朗克光科学研究所);Vector Institute for Artificial Intelligence(向量人工智能研究所);Canadian Institute for Advanced Research(加拿大高等研究院)