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(马德里理工大学电信高级工程学院)
Tairan Fu, Raquel Ferrando, Javier Conde, Carlos Arriaga, Pedro Reviriego
Large Language Models (LLMs) have achieved unprecedented performance on many complex tasks, being able, for example, to answer questions on almost any topic. However, they struggle with other simple tasks, such as counting the occurrences of letters in a word, as illustrated by the inability of many LLMs to count the number of "r" letters in "strawberry". Several works have studied this problem and linked it to the tokenization used by LLMs, to the intrinsic limitations of the attention mechanism, or to the lack of character-level training data. In this paper, we conduct an experimental study to evaluate the relations between the LLM errors when counting letters with 1) the frequency of the word and its components in the training dataset and 2) the complexity of the counting operation. We present a comprehensive analysis of the errors of LLMs when counting letter occurrences by evaluating a representative group of models over a large number of words. The results show a number of consistent trends in the models evaluated: 1) models are capable of recognizing the letters but not counting them; 2) the frequency of the word and tokens in the word does not have a significant impact on the LLM errors; 3) there is a positive correlation of letter frequency with errors, more frequent letters tend to have more counting errors, 4) the errors show a strong correlation with the number of letters or tokens in a word and 5) the strongest correlation occurs with the number of letters with counts larger than one, with most models being unable to correctly count words in which letters appear more than twice.
Universidad Politécnica de Madrid(马德里理工大学);Universidad Carlos III de Madrid(马德里卡洛斯三世大学);Tianjin University(天津大学);University of Electronic Science and Technology of China(电子科技大学);Northeastern University(东北大学)
The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMs
German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);Centre for European Research in Trusted AI (CERTAIN)(欧洲可信人工智能研究中心);Saarland University(萨尔大学)
RealMath-Eval: Why SOTA Judges Struggle with Real Human Reasoning
University of Wisconsin–Madison(威斯康星大学麦迪逊分校);East China Normal University(华东师范大学);New York University(纽约大学);Tongji University(同济大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))
Why Diffusion Language Models Struggle with Truly Parallel (Non-Autoregressive) Decoding?
The Hong Kong Polytechnic University, Hong Kong, China(香港理工大学);ELLIS Institute Tübingen, Tübingen, Germany(图宾根ELLIS研究所);Max Planck Institute for Intelligent Systems, Tübingen, Germany(智能系统马克斯·普朗克研究所);Tübingen AI Center, Tübingen, Germany(图宾根人工智能中心);University of Surrey, Guildford, United Kingdom(萨里大学);The University of North Carolina at Chapel Hill, Chapel Hill, NC, USA(北卡罗来纳大学教堂山分校)
Why Do Self-Harm Prediction Models Struggle to Generalise? Lexical and Semantic Variations in Emergency Department Triage Notes
School of Computing and Information Systems, The University of Melbourne, Australia(墨尔本大学计算与信息系);Orygen, The National Centre of Excellence in Youth Mental Health, Australia(青年心理健康国家卓越研究中心);Centre for Youth Mental Health, The University of Melbourne, Australia(青年心理健康中心);Centre for Digital Transformation of Health, The University of Melbourne, Australia(健康数字化转型中心)
The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate It
DISI, University of Trento(特伦托大学DISI中心);MaiNLP, Center for Information and Language Processing, LMU Munich(慕尼黑大学信息与语言处理中心);Munich Center for Machine Learning (MCML), Munich, Germany(慕尼黑机器学习中心);Free University of Bozen-Bolzano, Italy(博兹纳自由大学)
Why We Need World Models for AGI: Where LLMs Fail and How World Models May Outperform
Department of Computing Technologies(计算技术系);SRM Institute of Science and Technology(SRM科学与技术学院);Bio-Sensing and Bio-Sensors Group(生物传感与生物传感器组);Smart Automation and Communication Technologies Research Institute of Sciences and Engineering(科学与工程智能自动化与通信技术研究所);University of Sharjah, UAE(阿联酋沙迦大学);Department of Computer Engineering(计算机工程系);College of Computing and Informatics(计算与信息学院)