Sampling from Your Language Model One Byte at a Time
Not on the map. Why?
Abstract (arXiv)
Tokenization is used almost universally by modern language models, enabling efficient text representation using multi-byte or multi-character tokens. However, prior work has shown that tokenization can introduce distortion into the model's generations, an issue known as the Prompt Boundary Problem (PBP). For example, users are often advised not to end their prompts with a space because it prevents the model from including the space as part of the next token. While this heuristic is effective in English, the underlying PBP continues to affect code generation and languages such as Chinese, where tokens often do not line up with word and syntactic boundaries. In this work, we present an inference-time method to convert any autoregressive LM with a BPE tokenizer into a character-level or byte-level LM. Our method efficiently solves the PBP and is also able to unify the vocabularies of language models with different tokenizers, allowing one to ensemble LMs with different tokenizers at inference time or transfer the post-training from one model to another using proxy-tuning. Code is available at https://github.com/SewoongLab/byte-sampler .
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 82 of its 121 references that are in the map. First posted on arXiv 17 Jun 2025.
Builds on
82 of 121 references.
References · 82
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2025Qwen3 Technical Reportcited by 8,820
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2023Qwen Technical Reportcited by 3,344
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2024Qwen2 Technical Reportcited by 2,120
38 more
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2025Gemma 3 Technical Reportcited by 1,824
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
- 2024Yi: Open Foundation Models by 01.AIcited by 719
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2024Phi-4 Technical Reportcited by 711
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2023Textbooks Are All You Needcited by 569
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 335
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 232
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
- 2023MADLAD-400: A Multilingual And Document-Level Large Audited Datasetcited by 181
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 160
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 146
- 2024Nemotron-4 340B Technical Reportcited by 144
- 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 101
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 100
- 2024Decoding-Time Language Model Alignment with Multiple Objectivescited by 94
- 2021WECHSEL: Effective initialization of subword embeddings for cross-lingual transfer of monolingual language modelscited by 89
- 2024Tuning Language Models by Proxycited by 89
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemblecited by 86
- 2022Efficient Transformers with Dynamic Token Poolingcited by 76
- 2024Ensemble Learning for Heterogeneous Large Language Models with Deep Parallel Collaborationcited by 67
50 most cited of 82 All 82 (JSON)
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 17
- 2025Bolmo: Byteifying the Next Generation of Language Modelscited by 9
- 2026SpecSteer: Synergizing Local Context and Global Reasoning for Efficient Personalized Generationcited by 6
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillationcited by 5
- 2026Transducing Language Modelscited by 5
- 2026Proxy Compression for Language Modelingcited by 3
- 2025Lossless Vocabulary Reduction for Auto-Regressive Language Modelscited by 2
- 2026SpecSteer: Synergizing Local Context and Global Reasoning for Efficient Personalized Generation17 Mar 2026
- 2026Transducing Language Models5 Mar 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Bolmo: Byteifying the Next Generation of Language Models17 Dec 2025
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillation16 Dec 2025
- 2025Lossless Vocabulary Reduction for Auto-Regressive Language Models9 Oct 2025
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations23 Jun 2025