
blt-1b-hf (itazap)
Language379 ops5.2M params
A language model that reads raw bytes and groups them into variable-size patches instead of tokens.
Language · 379 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.blt:build_blt: build({}) About this model's family
The Byte Latent Transformer (BLT) is a byte-level language model architecture that is trained on raw bytes without a fixed vocabulary. It encodes bytes into dynamically sized patches, which serve as the primary units of computation. Patches are segmented by the entropy of the next byte, so more compute and model capacity go where the data is more complex.
BLT has three modules: a lightweight Local Encoder that encodes input bytes into patch representations, a computationally expensive Latent Transformer over patch representations, and a lightweight Local Decoder that decodes the next patch of bytes. In the encoder, a cross-attention layer after each transformer layer pools byte representations into patch representations. Hash n-gram embeddings map byte n-grams through a hash function to an index in an embedding table. The entropies come from a small byte-level auto-regressive language model.
The paper reports that BLT matches the training flop-controlled performance of Llama 3 while using up to 50% fewer flops at inference. Its scaling study covers byte-level models up to 8B parameters and 4T training bytes.
Key idea. BLT replaces fixed-vocabulary tokens with dynamically sized byte patches, segmented by next-byte entropy, as the primary units of computation in a language model.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{pagnoni2024bytelatenttransformerpatches,
title={Byte Latent Transformer: Patches Scale Better Than Tokens},
author={Artidoro Pagnoni and Ram Pasunuru and Pedro Rodriguez and John Nguyen and Benjamin Muller and Margaret Li and Chunting Zhou and Lili Yu and Jason Weston and Luke Zettlemoyer and Gargi Ghosh and Mike Lewis and Ari Holtzman and Srinivasan Iyer},
year={2024},
eprint={2412.09871},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2412.09871},
}