atlas

Research map / Large language models / Reasoning and chain of thought

Language Models over Canonical Byte-Pair Encodings

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning · 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.

Proposes enforcing BPE canonicality in token-level language models via test-time conditioning (global and local canonicalization with importance sampling) and a canonicalized architecture that is fine-tuned, showing log-loss improvements on PTB and WikiText for GPT-2 and Llama models.

Problem

Token-level language models assign nonzero probability to exponentially many noncanonical BPE token strings that the deterministic tokenizer would never produce, misallocating probability mass and degrading held-out likelihood.

Approach

Condition the token-level model on canonicality (global renormalization over canonical strings, approximated by a local per-token mask using an efficient bigram-based canonicality test), and alternatively build canonicality masks directly into the output layer of a transformer and fine-tune it.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Condition the model on generating only canonical token stringsGPT-2 and Llama models · Penn Treebank testlog-lossHelped
Locally mask token choices that would make the output noncanonicalGPT-2 and Llama models · Penn Treebank testlog-lossHelped
Condition the model on generating only canonical token stringsGPT-2 and Llama models · WikiText testlog-lossHelped
Locally mask token choices that would make the output noncanonicalGPT-2 and Llama models · WikiText testlog-lossHelped
Use global rather than local canonicalizationGPT-2 and Llama models · Penn Treebank testlog-lossHelped
Use local rather than global canonicalizationGPT-2 and Llama models · WikiText testlog-lossMixed
Fine-tune on the target datasetOriginal and canonicalized GPT-2 architectures · Penn Treebank and WikiText held-out datalog-lossHelped
Use the canonicalized architecture instead of the original architecture during fine-tuningGPT-2 small and GPT-2 medium · Penn Treebank and WikiText held-out datalog-lossHelped
Use smaller regularization parameter values (ablation)Fine-tuned GPT-2 architectures · Penn Treebank and WikiText held-out datalog-lossHelped

Surprising findings

Limitations

Experimental setup

Datasets: Penn Treebank WikiText

Benchmarks: Penn Treebank test WikiText test

Metrics: log-loss (bits/string)

Baselines: GPT-2 small GPT-2 medium GPT-2 large Llama-3.2-1B Llama-3.2-3B Llama-3.1-8B

Builds on: byte-pair encoding rejection sampling importance sampling

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