cd /news/natural-language-processing/where-to-cut-how-deep-bpe-and-unigra… · home topics natural-language-processing article
[ARTICLE · art-50471] src=arxiv.org ↗ pub= topic=natural-language-processing verified=true sentiment=· neutral

Where to cut, how deep: BPE and Unigram-LM on chemistry SMILES

A controlled comparison of byte-pair encoding (BPE) and Unigram-LM tokenizers on chemistry SMILES reveals that the two algorithms build near-disjoint subword vocabularies across all 22 tested conditions, with cross-algorithm Jaccard overlap never exceeding 0.161. Unigram-LM segments molecules into 29-41% more tokens than BPE, and BPE's segmentation is a strict coarsening of Unigram-LM's on 80-99% of molecules. The findings indicate that subword algorithm choice is a critical modeling decision for chemical language models, not a free default.

read1 min views1 publishedJul 8, 2026

arXiv:2607.05691v1 Announce Type: new Abstract: 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.

── more in #natural-language-processing 4 stories · sorted by recency
── more on @bpe 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/where-to-cut-how-dee…] indexed:0 read:1min 2026-07-08 ·