Pith. sign in

REVIEW 8 cited by

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

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2412.18626 v1 pith:DFSLCWXQ submitted 2024-12-19 cs.CL

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

classification cs.CL
keywords letterscountingerrorsmodelsllmsnumberwordcorrelation
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

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.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 8 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Empirical Evaluation of Large Language Models for Migration of Code Fragments to Post-Quantum Cryptography

    cs.CR 2026-06 conditional novelty 6.0

    Fine-tuned GPT-4.1-mini reaches 0.9072 static similarity and 92.5% functional correctness on a new synthetic dataset of cryptographic code migrations, outperforming zero-shot baselines.

  2. The Open-Box Fallacy: Why AI Deployment Needs a Calibrated Verification Regime

    cs.AI 2026-05 unverdicted novelty 6.0

    AI deployment in high-stakes areas requires domain-scoped calibrated verification with monitoring and revocation, using a proposed six-component Verification Coverage standard instead of mechanistic interpretability.

  3. The Position Curse: LLMs Struggle to Locate the Last Few Items in a List

    cs.LG 2026-05 unverdicted novelty 6.0

    LLMs exhibit the Position Curse, with backward position retrieval in lists lagging far behind forward retrieval, showing only partial gains from PosBench fine-tuning.

  4. Language models fail at extended rule following

    cs.CL 2026-05 unverdicted novelty 6.0

    Language models have limited stable counting capacity well below context limits and rely on a finite set of count-like internal states, collapsing to guessing once exhausted.

  5. Understanding Counting Mechanisms in Large Language and Vision-Language Models

    cs.CV 2025-11 unverdicted novelty 6.0

    LLMs and LVLMs encode latent positional count information in individual tokens or visual features, with an internal counter mechanism that updates per item and emerges progressively across layers, relying on structura...

  6. IF-CRITIC: Towards a Fine-Grained LLM Critic for Instruction-Following Evaluation

    cs.CL 2025-11 unverdicted novelty 6.0

    IF-CRITIC is a fine-grained LLM critic using checklist generation and constraint-level preference optimization that outperforms strong baselines like o4-mini in instruction-following evaluation while enabling lower-co...

  7. Blind-Spots-Bench: Evaluating Blind Spots in Multimodal Models

    cs.AI 2026-07 conditional novelty 5.0

    A 235-item multimodal stress-test shows frontier closed models outpace open-weight peers by ~10% and leaves shared failures on counting, spatial, and character-level tasks.

  8. Language models fail at extended rule following

    cs.CL 2026-05 unverdicted novelty 5.0

    LLMs fail at extended counting of repeated characters due to finite internal states, with abrupt errors persisting across model scales and inference methods.