arXiv AI

Tokenization: Hardness and Bicriteria Approximation Algorithms

arXiv:2611. 15074v1 Announce Type: cross Abstract: We study Binary Tokenization: given a corpus of binary strings over $\{0,1\}$ and a vocabulary budget $K$, select at most $K$ substrings (called vocabulary) to minimize the total number of tokens needed to represent the corpus.

arXiv Computation and Language
Nov 11

The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary

The paper formalizes the left‑ripple effect of byte‑pair encoding (BPE), answering how far a string prepended on the left can alter tokenization for any dictionary. It introduces radius certificates derived from two automaton runs to compute the origin radius in polynomial time, characterizes when this radius is infinite, and shows that a finite radius guarantees dense cuts in every window. The authors also provide a streaming tokenizer that emits stable tokens after each symbol, decide boundedness of edit distance for all dictionaries, and analyze specific models such as GPT‑2 and Llama 3.

By Nicklas Nidh\"ogg
arXiv Computation and Language
Nov 4

Theoretical Analysis of Byte-Pair Encoding

arXiv:2411.08671v2 Announce Type: replace-cross Abstract: Byte-Pair Encoding (BPE) is a widely used method for subword tokenization, with origins in grammar-based text compression. It is employed in...

By L\'aszl\'o Kozma, Johannes Voderholzer
arXiv AI
Aug 11

Length-MAX Tokenizer for Language Models

arXiv:2511. 20849v2 Announce Type: replace-cross Abstract: We introduce a new tokenizer for language models that minimizes the average tokens per character, thereby reducing the number of tokens needed to represent text during training and to generate text during inference.

By Dong Dong, Weijie Su
arXiv Machine Learning
Nov 5

Softmax Attention with Any Temperature in Fixed Dimension: Matching the Best Known Maximum-Inner-Product Bounds

arXiv:2611. 06055v1 Announce Type: cross Abstract: Attention is central to modern AI models for language, vision, and scientific modeling.

By Zixuan Huang (State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University, Beijing, China, School of Physics, Peking University, Beijing, China), Guozhang Chen (State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University, Beijing, China, National Engineering Research Center of Visual Technology, School of Computer Science, Peking University, Beijing, China)