paper-with-me

홈 › Papers

BlockBPE: Parallel BPE Tokenization

2025-07-16 · Amos You 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.

📄 PDF Abstract BibTeX arXiv:2507.11941

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

GPUTOK: GPU Accelerated Byte Level BPE Tokenization

2026-03-03 · Venu Gopal Kadamba, Kanishkha Jaisankar arxiv

As large language models move toward million-token context windows, CPU tokenizers become a major slowdown because they process text one step at a time while powerful GPUs sit unused. We built a GPU-based byte-level BPE …

LoPT: Lossless Parallel Tokenization Acceleration for Long Context Inference of Large Language Model

2025-11-07 · Wei Shao, Lingchao Zheng, Pengyu Wang, Peizhen Zheng 외 arxiv

Long context inference scenarios have become increasingly important for large language models, yet they introduce significant computational latency. While prior research has optimized long-sequence inference through oper…

Optimizing Word Alignments with Better Subword Tokenization

2021-08-01 · MTSummit 2021 8 · Anh Khoa Ngo Ho, François Yvon

Word alignment identify translational correspondences between words in a parallel sentence pair and are used and for example and to train statistical machine translation and learn bilingual dictionaries or to perform qua…

Machine TranslationSentenceTranslationWord Alignment

Conditional Unigram Tokenization with Parallel Data

2025-07-10 · Gianluca Vico, Jindřinch Libovický arxiv

We introduce conditional unigram tokenization, a novel approach that extends unigram tokenization by conditioning target token probabilities on source-language tokens from parallel data. Given a fixed source tokenizer, o…

Machine Translation

HausaMT v1.0: Towards English-Hausa Neural Machine Translation

2020-06-09 · Adewale Akinfaderin

Neural Machine Translation (NMT) for low-resource languages suffers from low performance because of the lack of large amounts of parallel data and language diversity. To contribute to ameliorating this problem, we built …

DecoderDiversityMachine TranslationNMT+1