Tokenization

Transformer components · component · 2016 · text

What it is

Byte-pair encoding, WordPiece or Unigram turn text into subword tokens — the model's actual alphabet.

When to use it

Every language model. Vocabulary size and segmentation quality quietly set a ceiling on what a model can do.

Caveats

The vocabulary is fixed once the model is trained and is tied to that model. Subword splits make character-level tasks (spelling, counting letters, arithmetic) harder, and languages under-represented in the tokenizer's training data need more tokens for the same text.

Key ideas

  • Tokenization is where multilingual unfairness and arithmetic failures start
  • Byte-latent (BLT) and multi-token prediction are the current rethink

Related architectures

Original paper

Neural Machine Translation of Rare Words with Subword Units (2015, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted