作为现代大语言模型(LLM)核心架构的Transformer存在固有的架构局限性,会阻碍其推理能力。与循环网络不同,Transformer缺乏循环连接,被限制在恒定深度的计算中。这一限制使其处于复杂度类TC⁰中,理论上无法解决那些随着输入长度增长而需要越来越深推理的任务。计数作为众多推理任务的基础组成部分,若要以归纳方式执行,同样需要推理深度线性增长。尽管此前的研究已经确定了基于Transformer的专家模型(即专门针对计数任务训练的模型)计数能力的上限,但由于推理机制的差异,这些发现无法直接推广到通用大语言模型。近期研究表明,思维链(Chain of Thought, CoT)推理有助于缓解Transformer在计数任务中的部分架构局限。然而,人们很少关注分词在这些模型中的作用。专家模型通常使用字符级分词,而大语言模型一般依赖字节级(BPE)分词器,这从根本上改变了推理的处理方式。本研究探究了分词对大语言模型计数能力的影响,发现输入分词方式的差异会导致性能出现显著波动。我们提供了理论与实验分析,揭示了分词选择如何削弱模型的理论可计算性,从而为设计新的分词方法以增强大语言模型的推理能力提供启发。
英文摘要:
Transformers, the backbone of modern large language models (LLMs), face inherent architectural limitations that impede their reasoning capabilities. Unlike recurrent networks, Transformers lack recurrent connections, confining them to constant-depth computation. This restriction places them in the complexity class TC$^0$, making them theoretically incapable of solving tasks that demand increasingly deep reasoning as input length grows. Counting, a fundamental component of many reasoning tasks, also requires reasoning depth to grow linearly to be performed inductively. While previous studies have established the upper limits of counting ability in Transformer-based expert models (i.e., models specifically trained for counting tasks), these findings do not directly extend to general-purpose LLMs due to differences in reasoning mechanisms. Recent work has highlighted how Chain of Thought (CoT) reasoning can help alleviate some of the architectural limitations of Transformers in counting tasks. However, little attention has been paid to the role of tokenization in these models. Unlike expert models that often use character-level tokenization, LLMs typically rely on byte-level (BPE) tokenizers, which fundamentally alters the way reasoning is processed. Our work investigates the impact of tokenization on the counting abilities of LLMs, uncovering substantial performance variations based on input tokenization differences. We provide both theoretical and experimental analyses, offering insights into how tokenization choices can undermine models' theoretical computability, thereby inspiring the design of new tokenization methods to enhance reasoning in LLMs.
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(纽约大学古代世界研究所)
Lost in Tokenization: Context as the Key to Unlocking Biomolecular Understanding in Scientific LLMs
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Westlake University(西交大学);Shanghai Innovation Institute(上海创新研究院);Shanghai Jiaotong University(上海交通大学);The Chinese University of Hong Kong(香港中文大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
Representation Learning of Structured Data for Medical Foundation Models
ASUS Intelligent Cloud Services (AICS)(华硕智能云服务(AICS));Imperial College London(伦敦帝国学院);University of Manchester(曼彻斯特大学);Cheng Hsin General Hospital(程新总医院);Crayon Software(克雷扬软件公司)
Why Do Large Language Models (LLMs) Struggle to Count Letters?
College of Mechanical & Electrical Engineering, Nanjing University of Aeronautics and Astronautics(南京航空航天大学机电学院);ETSI de Telecomunicación, Universidad Politécnica de Madrid(马德里理工大学电信高级工程学院)
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(清华大学,中国)
TokAlign++: Advancing Vocabulary Adaptation via Better Token Alignment
State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, CAS, Beijing, China(多模态人工智能系统国家重点实验室,自动化研究所,中国科学院,北京,中国);School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学人工智能学院,北京,中国)
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)(达勒·莫尔人工智能研究所)
ProsodyLM: Uncovering the Emerging Prosody Processing Capabilities in Speech Language Models
IBM Research(IBM研究院);MIT-IBM Watson AI Lab(MIT-IBM Watson人工智能实验室);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);UMass Amherst(马萨诸塞大学阿姆赫斯特分校)
CrowdVLM-R1: Expanding R1 Ability to Vision Language Model for Crowd Counting using Fuzzy Group Relative Policy Reward
Florida Atlantic University(佛罗里达大学);University of Southern California(南加州大学);University of Texas at Dallas(德克萨斯大学达拉斯分校);Georgia Institute of Technology(佐治亚理工学院);University of Utah(犹他大学)
Harvard John A. Paulson School of Engineering and Applied Sciences(哈佛大学约翰·A·保尔森工程与应用科学学院);MIT Computer Science and Artificial Intelligence Laboratory(麻省理工学院计算机科学与人工智能实验室)