Where to cut, how deep: BPE and Unigram-LM on chemistry SMILES
Not on the map. Why?
Abstract (arXiv)
Every chemical language model reading SMILES begins with a tokenizer, yet the field has inherited byte-pair encoding (BPE) from natural language with little scrutiny. In natural language, BPE's principal alternative, Unigram-LM, is known to build structurally different vocabularies. Whether that contrast survives in chemistry was open. We report a controlled comparison of BPE and Unigram-LM over a fixed 165-token chemistry base, at the small vocabulary sizes where token embeddings are learnable, across three corpus typologies (diverse, drug-like, natural-products) and both pre-tokenization boundary policies. The two do not converge. In all 22 matched conditions they build near-disjoint subword vocabularies: cross-algorithm Jaccard overlap on the learned pieces never exceeds 0.161, and at most 0.05 once weighted toward the high-frequency pieces a model updates most. Unigram-LM also segments held-out molecules into 29-41% more tokens; the arms largely agree on where to cut but not how deeply, so BPE's segmentation is a strict coarsening of Unigram-LM's on 80-99% of molecules. The separation holds across corpus, boundary, and vocabulary size, persisting even at eight times that scale. The subword algorithm is therefore a modeling decision, not a free default. The study trains no language models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 27 of its 55 references that are in the map. First posted on arXiv 6 Jul 2026.
Builds on
27 of 55 references.
References · 27
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2017MoleculeNet: A Benchmark for Molecular Machine Learningcited by 1,051
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2020ChemBERTa: Large-Scale Self-Supervised Pretraining for Molecular Property Predictioncited by 337
- 2020How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Modelscited by 318
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
- 2020Byte Pair Encoding is Suboptimal for Language Model Pretrainingcited by 192
- 2023Tokenizer Choice For LLM Training: Negligible or Crucial?cited by 108
- 2024Tokenization Is More Than Compressioncited by 89
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 72
- 2025SuperBPE: Space Travel for Language Modelscited by 63
15 more
- 2023Tokenization and the Noiseless Channelcited by 59
- 2017"Found in Translation": Predicting Outcomes of Complex Organic Chemistry Reactions using Neural Sequence-to-Sequence Modelscited by 55
- 2024Fishing for Magikarp: Automatically Detecting Under-trained Tokens in Large Language Modelscited by 46
- 2025Boundless Byte Pair Encoding: Breaking the Pre-tokenization Barriercited by 32
- 2025Hierarchical Autoregressive Transformers: Combining Byte- and Word-Level Processing for Robust, Adaptable Language Modelscited by 22
- 2022BARTSmiles: Generative Masked Language Models for Molecular Representationscited by 18
- 2024Scaffold-BPE: Enhancing Byte Pair Encoding for Large Language Models with Simple and Effective Scaffold Token Removalcited by 16
- 2025How Much is Enough? The Diminishing Returns of Tokenization Training Datacited by 15
- 2023ReactionT5: a large-scale pre-trained model towards application of limited reaction datacited by 13
- 2024Two Counterexamples to Tokenization and the Noiseless Channelcited by 13
- 2025Tokenization is Sensitive to Language Variationcited by 13
- 2024Linguistic Laws Meet Protein Sequences: A Comparative Analysis of Subword Tokenization Methodscited by 6
- 2026Stop Taking Tokenizers for Granted: They Are Core Design Decisions in Large Language Modelscited by 6
- 2024Tokenization for Molecular Foundation Modelscited by 5
- 2025The Tokenization Bottleneck: How Vocabulary Extension Improves Chemistry Representation Learning in Pretrained Language Modelscited by 1
Built on by
Not cited yet.