Lune

ICLR2025顶会

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

Buu Phan, Brandon Amos, Itai Gat, Marton Havasi, Matthew J. Muckley, Karen Ullrich

摘要

Tokenization is associated with many poorly understood shortcomings in language models (LMs), yet remains an important component for long sequence scaling purposes. This work studies how tokenization impacts model performance by analyzing and comparing the stochastic behavior of tokenized models with their byte-level, or token-free, counterparts. We discover that, even when the two models are statistically equivalent, their predictive distributions over the next byte can be substantially different, a phenomenon we term as "tokenization bias". To fully characterize this phenomenon, we introduce the Byte-Token Representation Lemma, a framework that establishes a mapping between the learned token distribution and its equivalent byte-level distribution. From this result, we develop a next-byte sampling algorithm that eliminates tokenization bias without requiring further training or optimization. In other words, this enables zero-shot conversion of tokenized LMs into statistically equivalent token-free ones. We demonstrate its broad applicability with two use cases: fill-in-the-middle (FIM) tasks and model ensembles. In FIM tasks where input prompts may terminate midtoken, leading to out-of-distribution tokenization, our method mitigates performance degradation and achieves 18% improvement in FIM coding benchmarks, while consistently outperforming the standard token healing fix. For model ensembles where each model employs a distinct vocabulary, our approach enables seamless integration, resulting in improved performance up to 3.7% over individual models across various standard baselines in reasoning, knowledge, and coding. Code is available at: https://github.com/facebookresearch/Exact-Byte-Level- Probabilities-from-Tokenized-LMs.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching 引用了 MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
  • Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching 引用了 Knowledge Fusion of Large Language Models
  • Sampling from Your Language Model One Byte at a Time 引用了 Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching
  • Sampling from Your Language Model One Byte at a Time 引用了 Language Models are Few-Shot Learners
  • Sampling from Your Language Model One Byte at a Time 引用了 The Curious Case of Neural Text Degeneration
  • Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations 引用了 Sampling from Your Language Model One Byte at a Time
  • Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations 引用了 MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
  • MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers 引用了 Language Models are Few-Shot Learners
  • Language Models are Few-Shot Learners 引用了 The Curious Case of Neural Text Degeneration
  • Dynamic Chunking for End-to-End Hierarchical Sequence Modeling 引用了 Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching
  • Dynamic Chunking for End-to-End Hierarchical Sequence Modeling 引用了 MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
  • Dynamic Chunking for End-to-End Hierarchical Sequence Modeling 引用了 Language Models are Few-Shot Learners
  • OmniDraft: A cross-vocabulary, online adaptive drafter for on-device speculative decoding 引用了 Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching
  • Knowledge Fusion of Large Language Models 引用了 LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusion
  • Knowledge Fusion of Large Language Models 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. Dynamic Chunking for End-to-End Hierarchical Sequence ModelingSukjun Hwang, Brandon Wang, Albert GuICLR 2026 · 76 次引用
  2. Universal Cross-Tokenizer Distillation via Approximate Likelihood MatchingBenjamin Minixhofer, Ivan Vulic, Edoardo Maria PontiNeurIPS 2025 · 48 次引用
  3. Broken Tokens? Your Language Model can Secretly Handle Non-Canonical TokenizationsBrian Siyuan Zheng, Alisa Liu, Orevaoghene Ahia, Jonathan Hayase 等NeurIPS 2025 · 19 次引用
  4. Sampling from Your Language Model One Byte at a TimeJonathan Hayase, Alisa Liu, Noah Smith, Sewoong OhICML 2026 · 9 次引用
  5. OmniDraft: A cross-vocabulary, online adaptive drafter for on-device speculative decodingRamchalam Kinattinkara Ramakrishnan, Zhaocong Yuan, Jay Zhuo, Chen Feng 等NeurIPS 2025 · 6 次引用

它引用的 Paper13

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
  3. MEGABYTE: Predicting Million-byte Sequences with Multiscale TransformersLili Yu, Daniel Simig, Colin Flaherty, Armen Aghajanyan 等NeurIPS 2023 · 197 次引用
  4. Knowledge Fusion of Large Language ModelsFanqi Wan, Xinting Huang, Deng Cai, Xiaojun Quan 等ICLR 2024 · 113 次引用
  5. LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative FusionDongfu Jiang, Xiang Ren, Bill Yuchen LinACL 2023 · 95 次引用

相关 Paper

  1. ByteFlow: Language Modeling through Adaptive Byte Compression without a TokenizerChunyuan Deng, Sanket Lokegaonkar, Colin Lockard, Besnik Fetahu 等ICLR 2026 · 1 次引用
  2. SpaceByte: Towards Deleting Tokenization from Large Language ModelingKevin SlagleNeurIPS 2024 · 34 次引用
  3. Byte Latent Transformer: Patches Scale Better Than TokensArtidoro Pagnoni, Ramakanth Pasunuru, Pedro Rodríguez, John Nguyen 等ACL 2025 · 116 次引用
  4. Zero-Shot Tokenizer TransferBenjamin Minixhofer, Edoardo Maria Ponti, Ivan VulicNeurIPS 2024 · 37 次引用
  5. Scaffold-BPE: Enhancing Byte Pair Encoding for Large Language Models with Simple and Effective Scaffold Token RemovalHaoran Lian, Yizhe Xiong, Jianwei Niu, Shasha Mo 等AAAI 2025
黄昏的海面,两侧是细线勾勒的悬崖