SIGNAL//DESK
AI/MLsrc: Roost FA glossary v2

Tokenisation

The step before inference — your text gets chopped into tokens the model recognises. Because the model doesn't read words or letters, it must first translate your input into this numeric format.

Tokenisation is the preprocessing step where raw input text is segmented into discrete units called tokens, which are then mapped to unique integer IDs from a model's vocabulary; this numeric representation is the mandatory format required for the model to perform inference.

Tokenisation is the deterministic mapping of a character sequence into a sequence of discrete tokens via a specific algorithm (e.g., Byte Pair Encoding or WordPiece), which are subsequently indexed into a fixed-size vocabulary; this transformation into integer embeddings is a prerequisite for the model's input layer to process the data through its neural architecture.

evolution

  1. 1960 · history
    Early Lexical Analysis

    The concept of tokenization emerged in early compiler design to convert source code strings into meaningful symbols for parsing.

  2. 2016 · history
    Byte Pair Encoding (BPE)

    Sennrich et al. introduced BPE to NLP, allowing models to handle rare words by breaking them into subword units.

  3. 2017 · history
    Transformer Tokenization

    The 'Attention Is All You Need' paper popularized fixed-vocabulary subword tokenization as the standard input method for Transformer architectures.

  4. 2020 · history
    Byte-level BPE

    GPT-2 and GPT-3 popularized byte-level BPE, which eliminates out-of-vocabulary issues by tokenizing at the byte level rather than the character level.

  5. 2023 · history
    Token-free Architectures

    Emerging research into 'token-free' models like CANINE and ByT5 began exploring direct processing of raw bytes or characters to bypass traditional tokenization bottlenecks.


← all terms