Skip to content
Preprint

LLBPE: Linked-List Based GPU-Parallel BPE Tokenizer

Oct 2026 · 1 citation · 21 references
Computer Science

TL;DR

This work develops LLBPE, a version of BPE that represents the token sequence as an array-based linked list so that each merge reduces to a constant- time pointer update.

Abstract

Every LLM inference begins with tokenization, which converts raw input bytes into the discrete token sequence the model consumes. For text, this step is often implemented using Byte Pair Encoding (BPE), an algorithm originally introduced for data compression. BPE has traditionally run on the CPU with extensive optimization, but recent work has moved it to the GPU for higher throughput. We show that these GPU implementations are bottlenecked not by computation but by data movement. We develop LLBPE that represents the token sequence as an array-based linked list so that each merge reduces to a constant- time pointer update. Furthermore, LLBPE fuses rank lookup, minimum selection, and merging into a single kernel to eliminate redundant hash map queries. LLBPE achieves up to 5.2x higher throughput than the best existing GPU implementation and 24.6x over optimized CPU implementations, at the cost of minor discrepancies in tokenized output.

View source

Similar papers

Preprint Oct 2026

Cascade: GPU-Accelerated Out-of-Core Suffix Array Construction for LLM Corpora

Cascade is presented, a GPU-accelerated out-of-core suffix-array constructor that builds suffix arrays on a single GPU server 3.0-8.2x faster end to end than infini-gram's pipeline, and its construction is 6.3-11.4x faster than libsais's.

Jamshed Khan, Prashant Pandey · 0 citations
Preprint Oct 2026

Engineering Lightweight Burrows-Wheeler Transform Construction on the GPU via Prefix-Free Parsing

It is shown that PFP-based BWT construction can work with only sorting, scanning, and simple data-parallel procedures, which results in the GPU construction gpupfpbwt that on an NVIDIA RTX 3090, reduces the peak memory on an English text 11.9 bytes per character.

Florian Kurpicz, Maximilian Paris · 0 citations
Preprint Nov 2026

The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded

This work removes execution redundancy with a GPU-resident pipeline whose block-parallel encoding is made lossless in half precision by batch-invariant kernels, speeding up arithmetic coding by up to 5.8x in encoding and 3.0x in decoding without changing its compression rate.

Zhe Yan, Yi-Hao Liu, Antonio Boffa et al. · 1 citation
#machine learning Preprint Oct 2026

Taking Tokenization off the Host for Agentic LLM Serving

GraphTok is presented, a GPU tokenizer that runs the entire encoding pipeline, from pre-tokenization through byte-pair encoding (BPE) merging to token-ID assembly, as one replayable CUDA graph.

Mohammad Siavashi, Pascal Schwinte, A. Banaei et al. · 2 citations
Preprint Oct 2026

BitPCE: Batched Multi-Dimensional PolicyResolution with GPU Bitmap Algebra

BitPCE exploits independent scope--word tasks, reusable endpoint expressions, and policy dependencies with register-resident GPU evaluation, canonical scope compilation, and dependency-complete candidate selection under a stated rendering contract.

Sheng-Wei Wang · 0 citations
Sep 2026

FastPair: GPU-Optimized String Decoding

FastPair is presented, a GPU decoder that optimizes the existing dictionary decoding process by reorganizing lookups and assembling decoded substrings for contiguous output writes, reaching up to 1.6 TB/s on a B300.

J. Isaacs, Francesco Gargiulo, P. Boncz et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.