Byte-pair encoding adapts lossless compression to tokenization: start with characters, repeatedly merge the most frequent adjacent symbol pair, and grow a vocabulary of subwords. section 14.2.2
A worked merge
Split words such as “brown” into “b r o w n”, count adjacent pairs across word frequencies, and merge the most frequent pair. “o w” becomes “ow”; later merges can turn it into “low”. Repeating the process produces entries such as “the”, “brown”, and “fox”. section 14.2.2










