paper-with-me

Papers

Peek2: Regex-free Byte-level Byte-Pair Encoding Pretokenizer for LLM Inference on Edge Devices

2026-01-09 · Liu Zai, Iraklis Klampanos arxiv

Pretokenization is a crucial, sequential pass in Byte-level BPE tokenizers, yet little work has been done to optimize it for edge-side inference. Our proposed new implementation, Peek2, serves as a drop-in replacement for cl100k-like pretokenizers used in GPT-3, LLaMa-3, and Qwen-2.5. After breaking down and analyzing the logic of the original cl100k pretokenizer, we introduced a new pretokenization algorithm with linear time complexity and constant, trivial memory usage, suited for edge scenarios. Test results show that it increases microbenchmarking throughput by up to $ 2.48\times $ and delivers a $ 1.14\times $ improvement in overall throughput across the entire Byte-level BPE encoding process, depending on the dataset, while providing identical results as the baseline Regex-based tokenizer.

📄 PDF Abstract BibTeX arXiv:2601.05833

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

ByT5: Towards a token-free future with pre-trained byte-to-byte models

2021-05-28 · Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou 외

Most widely-used pre-trained language models operate on sequences of tokens corresponding to word or subword units. By comparison, token-free models that operate directly on raw text (bytes or characters) have many benef…

Cross-Lingual Natural Language InferenceCross-Lingual NERCross-Lingual Paraphrase IdentificationCross-Lingual Question Answering+2

MambaByte: Token-free Selective State Space Model

2024-01-24 · Junxiong Wang, Tushaar Gangavarapu, Jing Nathan Yan, Alexander M. Rush

Token-free language models learn directly from raw bytes and remove the inductive bias of subword tokenization. Operating on bytes, however, results in significantly longer sequences. In this setting, standard autoregres…

Computational EfficiencyInductive BiasLanguage ModelingLanguage Modelling+2

HoloByte: Continuous Hyperspherical Distillation for Tokenizer-Free Modeling

2026-03-10 · Vladimer Khasia arxiv

Sequence modeling universally relies on discrete subword tokenization to circumvent the $\mathcal{O}(N^2)$ computational intractability of native byte-level attention. However, this heuristic quantization imposes artific…

Disentangling Language Modeling and Boundaries

2026-08-04 · Mykola Haltiuk arxiv

Byte-level language models are usually argued for on the grounds of robustness, multilingual fairness, and character-level skills. We point to a different, structural advantage: because they read and write bytes, any two…

Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Models

2026-05-10 · Lin Zheng, Vasilisa Bashlovkina, Timothy Dozat, Dan Garrette 외 arxiv

Tokenizer-free language models eliminate the tokenizer step of the language modeling pipeline by operating directly on bytes; patch-based variants further aggregate contiguous byte spans into patches for efficiency. Howe…