LLM The Genius Paradox: A Linguistic and Math Expert's Struggle with Simple Word-based Counting Problems
Nan Xu, Xuezhe Ma
TL;DR
Across simple word-based counting tasks, the paper challenges prevailing explanations for LLM failures and shows that subword tokenization, lack of character-level training, and embedding-size limits do not solely account for errors. By testing tokenization variants, character-level inputs, and cross-domain transfer from math/code-specialized LLMs, it reveals that reasoning strategies are the most robust route to accurate counting. The study also demonstrates that reasoning-based prompting (CoT, self-consistency, ToT) can enable near-perfect performance, especially in GPT-4o, while finetuning alone offers limited or even negative transfer. The findings advocate for training and evaluation focused on reasoning-before-responding to improve reliability on even simple linguistic tasks, and call for broader capability benchmarking beyond traditional tasks.
Abstract
Interestingly, LLMs yet struggle with some basic tasks that humans find trivial to handle, e.g., counting the number of character r's in the word "strawberry". There are several popular conjectures (e.g., tokenization, architecture and training data) regarding the reason for deficiency of LLMs in simple word-based counting problems, sharing the similar belief that such failure stems from model pretraining hence probably inevitable during deployment. In this paper, we carefully design multiple evaluation settings to investigate validity of prevalent conjectures. Meanwhile, we measure transferability of advanced mathematical and coding reasoning capabilities from specialized LLMs to simple counting tasks. Although specialized LLMs suffer from counting problems as well, we find conjectures about inherent deficiency of LLMs invalid and further seek opportunities to elicit knowledge and capabilities from LLMs that are beneficial to counting tasks. Compared with strategies such as finetuning and in-context learning that are commonly adopted to enhance performance on new or challenging tasks, we show that engaging reasoning is the most robust and efficient way to help LLMs better perceive tasks with more accurate responses. We hope our conjecture validation design could provide insights into the study of future critical failure modes of LLMs. Based on challenges in transferring advanced capabilities to much simpler tasks, we call for more attention to model capability acquisition and evaluation. We also highlight the importance of cultivating consciousness of "reasoning before responding" during model pretraining.
