mlsanityData to 13 Oct 2026

Incremental BPE Tokenization

arXiv 2605.30813 ↗First posted 29 May 2026cs.CL cs.DScited by 1

Not on the map. Why?

Abstract (arXiv)

We propose a novel algorithm for incremental Byte Pair Encoding (BPE) tokenization. The algorithm processes each input byte in worst-case O(log2 t) time, leading to an overall complexity of O(n log2 t), where n is the input length and t is the maximum token length. The algorithm incrementally maintains BPE tokenization results for every prefix of the input text, implementing the standard BPE merge procedure defined by a fixed set of merge rules. This enables efficient partial tokenization in streaming settings. Functioning as a drop-in replacement for standard BPE, our approach achieves a speedup of up to ~3× over Hugging Face's tokenizers, and demonstrates significant latency reductions over OpenAI's tiktoken on pathological inputs. We further introduce an eager output algorithm that enables streaming output, emitting tokens as soon as token boundaries are determined during incremental tokenization. Overall, our results demonstrate that BPE tokenization can be performed incrementally with strong worst-case guarantees, while providing practical latency benefits in modern large language model pipelines. Code: https://github.com/ModelTC/mtc-inc-bpe

Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 9 of its 36 references that are in the map. First posted on arXiv 29 May 2026.

Builds on

9 of 36 references.

References · 9

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
  2. 2024The Llama 3 Herd of Modelscited by 14,486
  3. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,910
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,130
  5. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,979
  6. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 784
  7. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 637
  8. 2025Scaling Latent Reasoning via Looped Language Modelscited by 153
  9. 2022Engineering faster double-array Aho-Corasick automatacited by 1

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 1.

1 paper.