mlsanityData to 14 Oct 2026

Why Do Large Language Models (LLMs) Struggle to Count Letters?

arXiv 2412.18626 ↗First posted 19 Dec 2024cs.CLcited by 38

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 38 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Dec 2024.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 20; 2026: 18.

38 papers.

Sort:

By area:

  1. 2025Checklists Are Better Than Reward Models For Aligning Language Modelscited by 128
  2. 2025VerIF: Verification Engineering for Reinforcement Learning in Instruction Followingcited by 44
  3. 2026Large Language Model Reasoning Failurescited by 21
  4. 2025Assessing the Chemical Intelligence of Large Language Modelscited by 17
  5. 2025ViC-Bench: Benchmarking Visual-Interleaved Chain-of-Thought Capability in MLLMs with Free-Style Intermediate State Representationscited by 12
  6. 2025WildIFEval: Instruction Following in the Wildcited by 11
  7. 2025Reasoning Under Uncertainty: Exploring Probabilistic Reasoning Capabilities of LLMscited by 8
  8. 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMscited by 7
  9. 2025Generating Synthetic Data with Formal Privacy Guarantees: State of the Art and the Road Aheadcited by 4
  10. 2025Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characterscited by 4
  11. 2025IF-CRITIC: Towards a Fine-Grained LLM Critic for Instruction-Following Evaluationcited by 4
  12. 2025Understanding Counting Mechanisms in Large Language and Vision-Language Modelscited by 4
26 more
  1. 2025CharBench: Evaluating the Role of Tokenization in Character-Level Taskscited by 3
  2. 2025Sequential Enumeration in Large Language Modelscited by 3
  3. 2026Harnessing Generalist Agents for Contextualized Time Seriescited by 3
  4. 2025Demystifying Numerosity in Diffusion Models -- Limitations and Remediescited by 2
  5. 2025The Human Flourishing Geographic Index: A County-Level Dataset for the United States, 2013--2023cited by 2
  6. 2026Strategies for Span Labeling with Large Language Modelscited by 2
  7. 2026Understanding LLM Performance Degradation in Multi-Instance Processing: The Roles of Instance Count and Context Lengthcited by 2
  8. 2025Deflating Deflationism: A Critical Perspective on Debunking Arguments Against LLM Mentalitycited by 1
  9. 2025Binary Autoencoder for Mechanistic Interpretability of Large Language Modelscited by 1
  10. 2025Alternatives To Next Token Prediction In Text Generation -- A Surveycited by 1
  11. 2025Vector Symbolic Algebras for the Abstraction and Reasoning Corpuscited by 1
  12. 2026AoA: Theorem Proving Agent over Abstract Syntax Tree of Redesigned Languagecited by 1
  13. 2025TASE: Token Awareness and Structured Evaluation for Multilingual Language Modelscited by 0
  14. 2026Spelling Bee Embeddings for Language Modelingcited by 0
  15. 2026Semantic Content Determines Algorithmic Performancecited by 0
  16. 2026Understanding LLM Failures: A Multi-Tape Turing Machine Analysis of Systematic Errors in Language Model Reasoningcited by 0
  17. 2026AILS-NTUA at SemEval-2026 Task 10: Agentic LLMs for Psycholinguistic Marker Extraction and Conspiracy Endorsement Detectioncited by 0
  18. 2026The Position Curse: LLMs Struggle to Locate the Last Few Items in a Listcited by 0
  19. 2026The Open-Box Fallacy: Why AI Deployment Needs a Calibrated Verification Regimecited by 0
  20. 2026Artificial Effortcited by 0
  21. 2026Phun-Bench: Evaluating LLMs on Phonological Understanding in Chinesecited by 0
  22. 2026Blind-Spots-Bench: Evaluating Blind Spots in Multimodal Modelscited by 0
  23. 2026Cognitive Convergence: Deep Similarities Between Large Language Models and Human Cognitioncited by 0
  24. 2026The Imitation Game: When LLMs Learn to Reason Like Programs via Code-Centric Reasoning Data Synthesiscited by 0
  25. 2026List Counting Failures Are Not One Phenomenoncited by 0
  26. 2026SyntaxBench: A Statistical Diagnostic Framework for Character-Level Reasoning in Large Language Modelscited by 0