Saved in:
Bibliographic Details
Main Authors: Jindal, Akhil, Ju, Harang
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.06322
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914609373380608
author Jindal, Akhil
Ju, Harang
author_facet Jindal, Akhil
Ju, Harang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_06322
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle SMolLM: Small Language Models Learn Small Molecular Grammar
Jindal, Akhil
Ju, Harang
Machine Learning
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.
title SMolLM: Small Language Models Learn Small Molecular Grammar
topic Machine Learning
url https://arxiv.org/abs/2605.06322