Research
Smirk shows common molecular tokenizers silently erase rare chemistry, and closes the gap with 165 tokens
Evidence 2/5: ComputedJ. Chem. Inf. Model. ↗University of Michigan · Carnegie Mellon University


Research
Evidence 2/5: ComputedJ. Chem. Inf. Model. ↗University of Michigan · Carnegie Mellon University
Auditing 35 tokenizers, Michigan and Carnegie Mellon find closed atom vocabularies turn valid but rare bracket atoms into [UNK]; Smirk's 165 base tokens cover all of OpenSMILES by construction.
A model's ceiling starts with what its input preserves; the gains are the same team's computation, not isolated to the tokenizer.
Alexius Wadell, Anoushka Bhutani and Venkatasubramanian Viswanathan, in mechanical engineering at the University of Michigan and Carnegie Mellon University, audited tokenization, the step that cuts a molecule's SMILES text into pieces a Transformer reads. OpenSMILES puts square brackets round any atom outside the organic subset (B, C, N, O, S, F, Cl, Br, I), and round any atom written with an isotope, chirality marker, hydrogen count, charge or class. The regular expression most chemistry models share treats a bracketed atom as one indivisible token. Counting every permutation, the grammar allows more than 28 trillion bracketed atoms; current atom-wise vocabularies hold fewer than three thousand tokens. Whatever is missing comes back as [UNK], and training does not fail.
Smirk splits a bracketed atom into the glyphs OpenSMILES defines, so [C@@H] becomes [, C, @@, H and ]. The 165-token vocabulary needs no training corpus and writes any OpenSMILES molecule back exactly. Two stages are needed to keep Sc, a sulfur to carbon bond, apart from [Sc], the element scandium, an ambiguity the authors count over half a million times in PubChem. The cost is longer sequences, and since attention cost grows with the square of length, doubling it roughly quadruples training and inference. Smirk-GPE therefore learns merges over glyph token ids on 262,035,601 molecules from Enamine REAL Space, where the target vocabulary of 50,000 ran out of merges at 2,300.
The losses are measured three ways. SPE and APE emit [UNK] for 18.9% of their tokens on MoleculeNet and about 50% on tmQM, a set of 108,000 transition-metal complexes. Against a character 5-gram reference, MoLFormer loses 0.1 nats of information per molecule on MoleculeNet and 40.3 on tmQM. As an outside check the team pretrained 18 RoBERTa-style encoders from scratch across 11 tokenizers and three encodings, 25 million parameters each, then fine-tuned them on six regression and seven classification tasks. Smirk helps pretraining quality and tmQM performance, and matches atom-wise tokenization on MoleculeNet; SPE and APE hurt both.
The authors draw their own boundaries. This is a single-point evaluation that may understate what tuning would give, and vocabulary and corpus size were not varied. Coverage is of the grammar, not of chemistry: their corpus of 2.1 billion molecules contains no quadruple bond, 54% of tmQM molecules cannot be transcoded to SELFIES at all because of enhanced stereochemistry, and [te] in MoleculeNet's HIV set is invalid OpenSMILES, the one unknown token Smirk met. Benchmarks covering the whole periodic table, isotopes and charged species are absent. Where the loss lands is concrete: bracketed atoms carry what separates cisplatin, an effective chemotherapy drug, from its ineffective stereoisomer, and they encode radiolabelled tracers, industrial catalysts and electrolyte materials.
The result exists in software: a benchmark score, prediction, proof, generated candidate or simulated outcome. A benchmark that scores models belongs here even when its tasks are built from real measurements: ranking models on existing data is computing, not checking. So is a new benchmark or dataset released with models' scores on it, and a speed or accuracy measured by running software on ordinary computers: running code is computing.
Who evaluated it Internal: Evaluated by the originating team.
Public research university in Ann Arbor, Michigan, founded in 1817.
Private research university in Pittsburgh, Pennsylvania.