Pith. sign in

REVIEW 2 cited by

BlockBPE: Parallel BPE Tokenization

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2507.11941 v1 pith:7H6FTA3S submitted 2025-07-16 cs.CL cs.DC

BlockBPE: Parallel BPE Tokenization

classification cs.CL cs.DC
keywords blockbpeinferencetokenizersachievesbatchcomplexityhuggingfaceparallel
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

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.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. TokTier: Exact Stateful CPU+GPU Tokenization for Agentic LLM Serving

    cs.CL 2026-07 accept novelty 8.0

    Coding-agent prompts can be re-tokenized incrementally or on a GPU without changing token IDs, cutting front-end tokenization from O(full context) to O(append).

  2. TokTier: Exact Stateful CPU+GPU Tokenization for Agentic LLM Serving

    cs.CL 2026-07 conditional novelty 7.0

    A stateful tokenizer that re-tokenizes only the appended region of a growing agent session — with a check that output equals full reference tokenization — cuts time-to-first-token by 16–34% in vLLM tests.