Papers › Byte Latent Transformer: Patches Scale Better Than Tokens

Byte Latent Transformer: Patches Scale Better Than Tokens

13 Dec 2024arXiv:2412.09871archive 2025-07-28

Artidoro Pagnoni, Ram Pasunuru, Pedro Rodriguez, John Nguyen, Benjamin Muller, Margaret Li, Chunting Zhou, Lili Yu, Jason Weston, Luke Zettlemoyer, Gargi Ghosh, Mike Lewis, Ari Holtzman, Srinivasan Iyer

We introduce the Byte Latent Transformer (BLT), a new byte-level LLM architecture that, for the first time, matches tokenization-based LLM performance at scale with significant improvements in inference efficiency and robustness. BLT encodes bytes into dynamically sized patches, which serve as the primary units of computation. Patches are segmented based on the entropy of the next byte, allocating more compute and model capacity where increased data complexity demands it. We present the first FLOP controlled scaling study of byte-level models up to 8B parameters and 4T training bytes. Our results demonstrate the feasibility of scaling models trained on raw bytes without a fixed vocabulary. Both training and inference efficiency improve due to dynamically selecting long patches when data is predictable, along with qualitative improvements on reasoning and long tail generalization. Overall, for fixed inference costs, BLT shows significantly better scaling than tokenization-based models, by simultaneously growing both patch and model size.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.09871")

Code

Syntology Ran 2 of 22 code samples harvested from 1 repository linked to this paper; 20 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/blt officialmentioned in paperpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 2 ran; 0 honoured the contract we drafted; 20 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
20unverified

Licence: 22 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from facebookresearch/blt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

attention_flops_per_token facebookresearch/blt/bytelatent/model/blt.py official repository ran no licence file found · pointer only · 26ff74d6538ab161 · report
get_num_flop_per_token facebookresearch/blt/bytelatent/model/blt.py official repository ran fingerprinted no licence file found · pointer only · 5e36da6fe12b04f3 · report
causal_mask facebookresearch/blt/bytelatent/model/blt.py official repository unverified licence not identified · pointer only · 09761695b9f13821 · report
consolidate_checkpoints facebookresearch/blt/bytelatent/checkpoint.py official repository unverified no licence file found · pointer only · f20a2b559a7b8775 · report
convert_to_bytes facebookresearch/blt/bytelatent/tokenizers/blt_tokenizer.py official repository unverified licence not identified · pointer only · 5a9d087d5195cea8 · report
cross_entropy facebookresearch/blt/bytelatent/base_transformer.py official repository unverified no licence file found · pointer only · 1d34daf1ab8748db · report
dist_max facebookresearch/blt/bytelatent/distributed.py official repository unverified no licence file found · pointer only · 75d20eeaeb19679a · report
dist_min facebookresearch/blt/bytelatent/distributed.py official repository unverified no licence file found · pointer only · f766bed8cc55159b · report
get_device_mesh facebookresearch/blt/bytelatent/distributed.py official repository unverified no licence file found · pointer only · ebf689175ca08206 · report
get_pydantic_default_args facebookresearch/blt/bytelatent/config_parser.py official repository unverified licence not identified · pointer only · c5734202cfd3e300 · report
get_rng_state facebookresearch/blt/bytelatent/args.py official repository unverified no licence file found · pointer only · 1d8b97adda18ea42 · report
matmul facebookresearch/blt/bytelatent/float8.py official repository unverified no licence file found · pointer only · 30e68c9cadfddd32 · report
named_replace facebookresearch/blt/bytelatent/float8.py official repository unverified no licence file found · pointer only · aaa4b37e564944fe · report
parse_file_config facebookresearch/blt/bytelatent/config_parser.py official repository unverified no licence file found · pointer only · 8751ebfdda7f9c83 · report
precompute_freqs_cis facebookresearch/blt/bytelatent/base_transformer.py official repository unverified no licence file found · pointer only · 1775c1f6cd5bd79c · report
recursively_parse_config facebookresearch/blt/bytelatent/config_parser.py official repository unverified no licence file found · pointer only · ff8e64af8f92c325 · report
repeat_kv facebookresearch/blt/bytelatent/base_transformer.py official repository unverified no licence file found · pointer only · 705c70c44ddc8080 · report
sample_tokens facebookresearch/blt/bytelatent/generate.py official repository unverified no licence file found · pointer only · 294621d07f3c12f0 · report
sample_top_k facebookresearch/blt/bytelatent/generate.py official repository unverified no licence file found · pointer only · 5b1313e8dd2cbcfa · report
sample_top_p facebookresearch/blt/bytelatent/generate.py official repository unverified no licence file found · pointer only · 2f2141ad0c4f3dbd · report
scale facebookresearch/blt/bytelatent/float8.py official repository unverified no licence file found · pointer only · 2848341791f9a450 · report
text2bytes_bpe_delims facebookresearch/blt/bytelatent/tokenizers/blt_tokenizer.py official repository unverified licence not identified · pointer only · 0febe46155d9d826 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections