mej7.comHow AI Works

Byte-pair encoding

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

A subword algorithm that starts from characters (or bytes) and repeatedly merges frequent pairs (Sennrich et al., 2016).

In one paragraph. A subword algorithm that starts from characters (or bytes) and repeatedly merges frequent pairs (Sennrich et al., 2016).

Used in

Related terms

Full glossary