Tasks that require character-level reasoning, such as counting or locating characters within words, remain challenging for contemporary language models. A common conjecture is that language models' reliance on subword units, rather than characters, contributes to their struggles with character-level tasks, yet recent studies offer conflicting conclusions about the role of tokenization, leaving its impact unclear. To address this gap, we introduce CharBench, a comprehensive benchmark of character-level tasks that is two orders of magnitude larger than existing alternatives. We evaluate a diverse range of leading open-weight and proprietary models on CharBench and find that it presents a significant challenge to modern LLMs, with an average accuracy of 43.6% and 32.3% on some tasks. We present an in-depth analysis of how intrinsic properties of words and their segmentations into tokens correspond to model performance. For counting tasks, we find that tokenization properties are weakly correlated with correctness, while the length of the queried word and the actual character count play a more significant part. In contrast, for tasks requiring intra-word positional understanding, performance is negatively correlated with the length of the token containing the queried character, suggesting that longer tokens obscure character position information for LLMs. We encourage future work to build on the benchmark and evaluation methodology introduced here as tools for improving model performance on such tasks.
Wine is Not v i n. -- On the Compatibility of Tokenizations Across Languages
LMU Munich(慕尼黑大学)
词汇表的大小是大型预训练语言模型的核心设计选择,考虑到性能和内存需求。通常,使用诸如字节对编码和WordPiece的子字标记化算法。在这项工作中,我们调查的多语言静态和上下文嵌入空间的标记化的兼容性,并提出了一个措施,反映了跨语言的标记化的兼容性。我们的目标是防止不兼容的标记,例如,英语中的“wine”(词级)与法语中的“v i n”(字符级),这使得很难学习良好的多语言语义表示。我们表明,我们的兼容性措施允许系统设计人员创建跨语言的词汇表是兼容的-一个迫切需要,到目前为止,一直被忽视的多语言模型。
How Important Is Tokenization in French Medical Masked Language Models?
LIA, Avignon University(阿维尼翁大学计算机科学与人工智能实验室);Zenidoc(Zenidoc公司);Nantes Université(南特大学);École Centrale Nantes(南特中央理工学院);CNRS(法国国家科学研究中心);LS2N, UMR 6004(南特数字科学实验室)
Tokenization Tradeoffs in Structured EHR Foundation Models
Child Health Evaluative Sciences(儿童健康评估科学);The Hospital for Sick Children(圣迈克尔医院);University Health Network(大学健康网络);Department of Medicine(医学部);Division of Computational Medicine, Department of Medicine(计算医学科,医学部);Stanford University(斯坦福大学)
A Study on Dialog Act Recognition using Character-Level Tokenization
INESC-ID Lisboa(里斯本系统与计算机工程研究所);Instituto Superior Técnico, Universidade de Lisboa(里斯本大学高等技术学院);Instituto Universitário de Lisboa (ISCTE-IUL)(里斯本大学学院(ISCTE-IUL))
Tokenization and Morphology in Multilingual Language Models: A Comparative Analysis of mT5 and ByT5
MPI for Psycholinguistics(马克斯·普朗克心理语言学研究所);Radboud University(拉德堡德大学);Utrecht University(乌得勒支大学);University of Glasgow(格拉斯哥大学);University of Southern Denmark(南丹麦大学)
Enhancing Character-Level Understanding in LLMs through Token Internal Structure Learning
School of Computer Science and Technology, Chongqing University of Posts and Telecommunications(重庆邮电大学计算机科学与技术学院);Baidu AI Platform & Ecosystem(百度AI平台与生态系统)
本文提出 TIPA 方法,通过基于分词器词表的反向字符预测训练增强 LLM 对 token 内部字符位置的感知,实验证明其可提升位置预测及多类字符级下游任务性能。
The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Models
National University of Science and Technology POLITEHNICA Bucharest(布加勒斯特理工大学国立科学技术大学);Dalle Molle Institute for Artificial Intelligence Research (IDSIA)(达勒·莫尔人工智能研究所)
Understanding the Ability of LLMs to Handle Character-Level Perturbation
Department of XXX, University of YYY, Location, Country(XXX系,YYY大学,Location,Country);School of ZZZ, Institute of WWW, Location, Country(ZZZ学院,WWW研究所,Location,Country);Shanghai University of Finance(上海财经大学);Tsinghua University, China(清华大学,中国)
Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLP
Johns Hopkins University(约翰霍普金斯大学);HuggingFace;King Fahd University of Petroleum and Minerals(法赫德国王石油矿产大学);SAP(SAP公司);Naver Labs Europe;Institute for Infocomm Research, A*STAR Singapore(新加坡科技研究局资讯通信研究院);University of Maryland(马里兰大学);BigScience Workshop(BigScience研讨会);Inria Paris(法国国家信息与自动化研究所巴黎中心);Salesforce Research Asia(Salesforce亚洲研究院);National University of Singapore(新加坡国立大学)