bpe-tokenization-procedure
IN premise — entries/2026/06/21/wiki-Large_language_model-chunk-1.md
Created 2026-06-21T09:50:09+00:00
Byte-pair encoding (BPE) tokenization starts with all unique characters as unigrams, repeatedly merges the most frequent adjacent pair into a new token, and continues until the vocabulary reaches a prescribed size.
Summary
Text gets broken into chunks for a language model by starting with single characters and repeatedly gluing together whichever neighboring pieces show up most often, stopping once the set of all possible chunks hits a target size. This matters because it determines what counts as an atomic unit the model can learn from and reason about, so the choice of target vocabulary size directly shapes how fine-grained or coarse the model's view of language will be.
Dependents
These beliefs depend on this one:
- IN subword-tokenization-bridges-lexical-and-neural-worlds — Subword tokenization (BPE, WordPiece) occupies a unique position between classical lexical analysis and neural processing — it uses statistical merging rules rather than linguistic grammars, producing variable-granularity tokens that differ fundamentally from both compiler tokens and word-level NLP tokens.