Large Language Models (LLMs) are typically shipped with tokenizers that deterministically encode text into so-called canonical token sequences, to which the LLMs assign probability values. One common assumption is that the probability of a piece of text is the probability of its canonical token sequence. However, the tokenization of a string is not unique: e.g., the Llama2 tokenizer encodes Tokens as [Tok,ens], but [Tok,en,s] also represents the same text. In this paper, we study non-canonical tokenizations. We prove that, given a string, it is computationally hard to find the most likely tokenization for an autoregressive LLM, as well as to compute the marginal probability over all possible tokenizations. We then show how the marginal is, in most cases, indistinguishable from the canonical probability. Surprisingly, we then empirically demonstrate the existence of a significant amount of signal hidden within tokenization space. Notably, by simply aggregating the probabilities of non-canonical tokenizations, we achieve improvements across a range of LLM evaluation benchmarks for a variety of architectures, including transformers and state space models.
How Important Is Tokenization in French Medical Masked Language Models?
LIA, Avignon University(阿维尼翁大学计算机科学与人工智能实验室);Zenidoc(Zenidoc公司);Nantes Université(南特大学);École Centrale Nantes(南特中央理工学院);CNRS(法国国家科学研究中心);LS2N, UMR 6004(南特数字科学实验室)
Contextual morphologically-guided tokenization for Latin encoder models
Manning College of Information & Computer Sciences, University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校信息与计算机科学学院);Institute for the Study of the Ancient World, New York University(纽约大学古代世界研究所)
Beyond Hearing: Learning Task-Agnostic ExG Representations from Earphones via Physiology-Informed Tokenization
KAIST(韩国科学技术院);Carnegie Mellon University(卡内基梅隆大学);University of Cambridge(剑桥大学);Shanghai Jiao Tong University(上海交通大学);Pennsylvania State University(宾夕法尼亚州立大学);UCLA(加州大学洛杉矶分校);Northwest University(北华大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Microsoft Research(微软研究院)
School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院);College of Information Science and Technology and Artificial Intelligence, Nanjing Forestry University(南京林业大学信息科学技术与人工智能学院)
Measuring the Tokenization Premium: A Cost Audit for Underserved Language Communities
John Jay College of Criminal Justice, City University of New York(纽约城市大学约翰杰刑事司法学院);The City College of New York, City University of New York(纽约城市大学城市学院);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)
Exploring the Effect of Segmentation and Vocabulary Size on Speech Tokenization for Speech Language Models
The University of Tokyo(东京大学);Keio University(.keio大学);Graduate School of Information Science and Technology(信息科学与技术研究生院);Faculty of Science and Technology(科学与技术学部)
Splintering Nonconcatenative Languages for Better Tokenization
Department of Computer Science(计算机科学系);Data Science Research Center(数据科学研究中心);Bar-Ilan University(巴伊兰大学);Ben-Gurion University of the Negev(贝内-约瑟夫大学(内盖夫分校));δ DICTA, Jerusalem, Israel(δ DICTA,耶路撒冷,以色列)
Trans-Tokenization and Cross-lingual Vocabulary Transfers: Language Adaptation of LLMs for Low-Resource NLP
Ghent University(根特大学);imec;KU Leuven(鲁汶大学);BeCode asbl;Internet and Data Science Lab (IDLab)(互联网与数据科学实验室(IDLab));AI & Data Bootcamp Ghent 2024(2024年根特人工智能与数据训练营)
Discrete Diffusion Models: A Unified Framework from Tokenization to Generation
McGill University(麦吉尔大学);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);University of Cambridge(剑桥大学);University of Toronto(多伦多大学);MBZUAI - Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Tsinghua University(清华大学);Rochester Institute of Technology(罗彻斯特理工学院);Salesforce(Salesforce公司);University of Illinois Chicago(伊利诺伊大学芝加哥分校)
M2Tok: Multi-head Multi-codebook Discrete Action Tokenization for Vision-Language-Action Models
The Hong Kong Polytechnic University(香港理工大学);Shanghai AI Laboratory(上海人工智能实验室);The University of Hong Kong(香港大学);Shanghai Jiao Tong University(上海交通大学);Hong Kong University of Science and Technology(香港科技大学)