atlas

Research map / Large language models / Language, safety and interpretability

From Language Models over Tokens to Language Models over Characters

ICML 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Presents exact and beam-approximate algorithms that convert token-level language models (BPE) into character-level ones via a finite "covering" of character prefixes, fixing the prompt boundary problem and improving bits/byte.

Problem

Token-level language models are distributions over token strings, so character-level prompts and character-level probabilities (prefix and next-character probabilities) are ill-defined or distorted, causing the prompt boundary problem.

Approach

Define a covering of a character string: the minimal token strings whose decoding has the character string as a prefix. Character-level prefix probability is the sum of token-level probabilities over this finite covering, with a beam-search pruning heuristic giving approximate, linear-time computation and an exact conditional token generation procedure for prompts.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Estimate corpus probability over characters, accounting for noncanonical tokenizations, instead of using only canonical tokenizationCharacter-level beam · WikiText-103 testbits / byte: 0.76 -> 0.63539; 0.66 -> 0.53339; 0.93 -> 0.76195; 0.68 -> 0.56296Helped
Increase beam size from K=2 to K=8 (ablation)Character-level beam · WikiText-103 test, next-byte distributionJSD / byte: 0.00025 -> 0.00004; 0.00016 -> 0.00004; 0.00022 -> 0.00005; 0.00065 -> 0.00004Helped
Increase beam size K (ablation)Character-level beam · WikiText-103 testbytes / sec: 115.18 -> 64.71; 36.03 -> 26.72; 36.64 -> 26.81; 21.17 -> 16.79Hurt
Increase beam size K from 2 to 128 (ablation)Character-level beam · WikiText-103 testbits / byte: 0.63539 -> 0.63550; 0.53339 -> 0.53175; 0.76195 -> 0.76093; 0.56296 -> 0.56185No clear effect
Use token-healing approximate covering instead of the proposed beam-summing methodCharacter-level interface · WikiText-103 test, DeepSeek-R1-Distill-Llama-8Berror (JSD/byte)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: wikitext-103-v1

Benchmarks: wikitext-103-v1

Metrics: Jensen-Shannon distance per byte surprisal (bits/byte) bytes/sec

Baselines: canonical tokenization surprisal token healing cover

Builds on: byte-pair encoding token healing vLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy