BlockBPE: Parallel BPE Tokenization
Not on the map. Why?
Abstract (arXiv)
Tokenization is a critical preprocessing step in large language model pipelines, yet widely-used implementations remain CPU-bound and suboptimal for batch inference workflows on GPU. We present BlockBPE, a parallel GPU implementation of byte-pair encoding (BPE) that achieves near linear-time complexity under realistic assumptions and is optimized for high-throughput, batch inference. Unlike existing Rust-based tokenizers such as HuggingFace Tokenizers or OpenAI's tiktoken-whose runtimes are dominated by Regex pre-tokenization and exhibit O(n log n) runtime-BlockBPE eliminates the Regex pre-tokenization which leads to small loss in generation quality, but enables highly parallelized token merges within thread blocks, reducing overall complexity to O(nd) where d ll n. On high-batch inference workloads, BlockBPE achieves up to 2x higher throughput than tiktoken and 2.5x over HuggingFace Tokenizers.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 9 of its 16 references that are in the map. First posted on arXiv 16 Jul 2025.
Builds on
9 of 16 references.
References · 9
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2026GPUTOK: GPU Accelerated Byte Level BPE Tokenizationcited by 3
- 2025LoPT: Lossless Parallel Tokenization Acceleration for Long Context Inference of Large Language Modelcited by 1
- 2025Length-MAX Tokenizer for Language Modelscited by 1
- 2026Taking Tokenization off the Host for Agentic LLM Servingcited by 1
- 2026Taking Tokenization off the Host for Agentic LLM Serving9 Oct 2026
- 2026GPUTOK: GPU Accelerated Byte Level BPE Tokenization3 Mar 2026
- 2025Length-MAX Tokenizer for Language Models25 Nov 2025
- 2025LoPT: Lossless Parallel Tokenization Acceleration for Long Context Inference of Large Language Model7 Nov 2025