Uncommon

Byte-pair encoding

Adjacent characters (tokens) merge-based compression algorithm

Byte-pair encoding

Uncommon card · No. 113714

In computing, byte-pair encoding (BPE), or digram coding, is an algorithm, first described in 1994 by Philip Gage, for encoding strings of text into smaller strings by creating and using a translation table. A slightly modified version of the algorithm is used in large language model tokenizers. The original version of the algorithm focused on compression. It replaces the highest-frequency pair of bytes with a new byte that was not contained in the initial dataset. A lookup table of the replacements is required to rebuild the initial dataset. The modified version builds "tokens" (units of recognition) that match varying amounts of source text, from single characters (including single digits or single punctuation marks) to whole words (even long compound words).

Read on Wikipedia

Open boosters, collect cards and trade them. Free to play.

Play for free
Byte-pair encoding – Uncommon Wikipedia card | Wikiverse TCG