atlas

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

Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 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.

Shows that tokenized LMs have a "tokenization bias" relative to their byte-level equivalents and proposes an inference-time next-byte sampling algorithm (via the Byte-Token Representation Lemma) that removes it, applied to FIM code infilling and cross-vocabulary model ensembles.

Problem

Tokenized language models assign next-byte predictions that differ from the statistically equivalent byte-level process, causing failures when prompts end mid-token (e.g., FIM code completion) and preventing ensembling of models with different vocabularies.

Approach

The Byte-Token Representation Lemma expresses the byte-level prefix probability as a sum over cover encodings of the prefix, enabling exact next-byte probabilities from any tokenized LM with an O(1) number of model runs per byte step, without retraining; byte distributions can then be averaged across models with different tokenizers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
next-byte prediction (byte-level sampling) instead of token-level prediction in SPM FIM modeCodeLlama-7b · HumanEval Random Span FIMpass rate: up to 18% improvement reported in abstractHelped
beam search with width 2 and 4 added to byte-level FIM decoding (ablation)CodeLlama-7b byte-level predictions · HumanEval Random Span FIMpass rate: up to 2.9%, best 67.7Helped
ensembling top-2 models via byte-level averagingYi-1.5-6B and Mistral-7B-v0.3 (GSM8K divergent pair) · GSM8KaccuracyHurt
ensembling top-2 models via byte-level averagingreasoning, knowledge, and coding benchmarks with comparable members · multiple knowledge, reasoning, coding benchmarksaccuracy: up to 3.7% on HumanEval for Yi-Coder-1.5B + CodeLlama2-13bHelped
token healing as a fix for SPM FIM tokenization issuesCodeLlama-7b · HumanEval Random Span FIMpass rateNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval Random Span infilling benchmark synthetic 3rd-order Markov chain data

Benchmarks: HumanEval Random Span infilling MMLU PIQA GSM8K HumanEval

Metrics: pass rate accuracy

Baselines: token healing token alignment next-token prediction voting

Builds on: token healing BPE BPE dropout

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