paper-with-me

Papers

Length-MAX Tokenizer for Language Models

2025-11-25 · Dong Dong, Weijie Su arxiv

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. Our method, which we refer to as the Length-MAX tokenizer, obtains its vocabulary by casting a length-weighted objective maximization as a graph partitioning problem and developing a greedy approximation algorithm. On FineWeb and diverse domains, it yields 14--18\% fewer tokens than Byte Pair Encoding (BPE) across vocabulary sizes from 10K to 50K, and the reduction is 13.0\% when the size is 64K. Training GPT-2 models at 124M, 355M, and 1.3B parameters from scratch with five runs each shows 18.5\%, 17.2\%, and 18.5\% fewer steps, respectively, to reach a fixed validation loss, and 13.7\%, 12.7\%, and 13.7\% lower inference latency, together with a 16\% throughput gain at 124M, while consistently improving on downstream tasks including reducing LAMBADA perplexity by 11.7\% and enhancing HellaSwag accuracy by 4.3\%. Moreover, the Length-MAX tokenizer achieves 99.62\% vocabulary coverage and the out-of-vocabulary rate remains low at 0.12\% on test sets. These results demonstrate that optimizing for average token length, rather than frequency alone, offers an effective approach to more efficient language modeling without sacrificing -- and often improving -- downstream performance. The tokenizer is compatible with production systems and reduces embedding and KV-cache memory by 18\% at inference.

📄 PDF Abstract BibTeX arXiv:2511.20849

Code (0)

등록된 구현이 없습니다.

Tasks

graph partitioning

Similar Papers 제목 키워드 기반

Performance Evaluation of Tokenizers in Large Language Models for the Assamese Language

2024-09-28 · Sagar Tamang, Dibya Jyoti Bora

Training of a tokenizer plays an important role in the performance of deep learning models. This research aims to understand the performance of tokenizers in five state-of-the-art (SOTA) large language models (LLMs) in t…

Language Model Tokenizers Introduce Unfairness Between Languages

2023-05-17 · NeurIPS 2023 11 · Aleksandar Petrov, Emanuele La Malfa, Philip H. S. Torr, Adel Bibi

Recent language models have shown impressive multilingual performance, even when not explicitly trained for it. Despite this, there are concerns about the quality of their outputs across different languages. In this pape…

Language ModelingLanguage Modellingmodel

ALTo: Adaptive-Length Tokenizer for Autoregressive Mask Generation

2025-05-22 · Lingfeng Wang, Hualing Lin, Senda Chen, Tao Wang 외

While humans effortlessly draw visual objects and shapes by adaptively allocating attention based on their complexity, existing multimodal large language models (MLLMs) remain constrained by rigid token representations. …

Chunking

ReTok: Replacing Tokenizer to Enhance Representation Efficiency in Large Language Model

2024-10-06 · Shuhao Gu, Mengdi Zhao, BoWen Zhang, Liangdong Wang 외

Tokenizer is an essential component for large language models (LLMs), and a tokenizer with a high compression rate can improve the model's representation and processing efficiency. However, the tokenizer cannot ensure hi…

Language ModelingLanguage ModellingLarge Language Model

Variable-Length Tokenization via Learnable Global Merging for Diffusion Transformers

2026-06-18 · Dong Hoon Lee, Seunghoon Hong arxiv

Latent Diffusion Models (LDMs) have become dominant in visual synthesis, but their quality-compute trade-off is largely constrained by the tokenizer's fixed compression ratio. Variable-length tokenizers (VLTs) promise ad…