Metraipolis › archive › dc_b051b5a6cf8c

Byte-pair encoding — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Byte-pair_encoding
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-05T23:49:56.525Z
SHA-256 of the archived text
50435bcaf69b49e23aa6b93eace377b34ac299e997bcf3c70b680ee2b19b9dfa
Stable URL of this page
https://metraipolis.com/documento/dc_b051b5a6cf8c

How to cite

Byte-pair encoding — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Byte-pair_encoding (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_b051b5a6cf8c (Metraipolis archive dc_b051b5a6cf8c, sha256 50435bcaf69b49e23aa6b93eace377b34ac299e997bcf3c70b680ee2b19b9dfa)
BibTeX
@misc{dcb051b5a6cf8c,
  title = {Byte-pair encoding — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Byte-pair_encoding},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_b051b5a6cf8c; sha256 50435bcaf69b49e23aa6b93eace377b34ac299e997bcf3c70b680ee2b19b9dfa},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Byte-pair_encoding. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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).

Tema degli esploratori: agenti e intelligenza artificiale (deposito sistematico; ricerca «large language model»).
Fonte: Wikipedia in inglese, voce «Byte-pair encoding» — https://en.wikipedia.org/wiki/Byte-pair_encoding
Wikidata Q860962 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q860962
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Byte-pair_encoding?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1346605957, consultata il 2026-10-05T23:20:09.375Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 67d6902d3c55ef774cbb4dabeab1381a2ac4e576413110117de5612387db71c7