mlsanityData to 7 Oct 2026

Counting Ability of Large Language Models and Impact of Tokenization

arXiv 2410.19730 ↗First posted 25 Oct 2024cs.CL cs.AIcited by 29

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

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 TC0, 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.

Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 23 of its 45 references that are in the map. First posted on arXiv 25 Oct 2024.

Builds on

23 of 45 references.

References · 23

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  6. 2023Qwen Technical Reportcited by 3,273
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  8. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  9. 2016On the Expressive Power of Deep Neural Networkscited by 302
  10. 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
  11. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  12. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
11 more
  1. 2022Neural Networks and the Chomsky Hierarchycited by 214
  2. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  3. 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 110
  4. 2023Don't Trust ChatGPT when Your Question is not in English: A Study of Multilingual Abilities and Types of LLMscited by 103
  5. 2024Transformers, parallel computation, and logarithmic depthcited by 75
  6. 2013Deep AutoRegressive Networkscited by 60
  7. 2019LSTM Networks Can Perform Dynamic Countingcited by 45
  8. 2020A Survey of Neural Networks and Formal Languagescited by 17
  9. 2023TTIDA: Controllable Generative Data Augmentation via Text-to-Text and Text-to-Image Modelscited by 14
  10. 2022A Character-Level Length-Control Algorithm for Non-Autoregressive Sentence Summarizationcited by 13
  11. 2023ContraNovo: A Contrastive Learning Approach to Enhance De Novo Peptide Sequencingcited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 16; 2026: 12.

29 papers.

Sort:

By area:

  1. 2026Large Language Model Reasoning Failurescited by 20
  2. 2025CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual Reasoningcited by 16
  3. 2025Assessing the Chemical Intelligence of Large Language Modelscited by 14
  4. 2025Multi2: Multi-Agent Test-Time Scalable Framework for Multi-Document Processingcited by 12
  5. 2025TituLLMs: A Family of Bangla LLMs with Comprehensive Benchmarkingcited by 9
  6. 2025Reasoning Under Uncertainty: Exploring Probabilistic Reasoning Capabilities of LLMscited by 8
  7. 2025Map&Make: Schema Guided Text to Table Generationcited by 6
  8. 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMscited by 6
  9. 2025Universal Biological Sequence Reranking for Improved De Novo Peptide Sequencingcited by 5
  10. 2025Prompt-Based One-Shot Exact Length-Controlled Generation with LLMscited 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
17 more
  1. 2025CharBench: Evaluating the Role of Tokenization in Character-Level Taskscited by 3
  2. 2026Repeated-Token Counting Reveals a Dissociation Between Representations and Outputscited by 3
  3. 2024DateLogicQA: Benchmarking Temporal Biases in Large Language Modelscited by 2
  4. 2025The Human Flourishing Geographic Index: A County-Level Dataset for the United States, 2013--2023cited by 2
  5. 2025Sequential Enumeration in Large Language Modelscited by 2
  6. 2026VikingMem: A Memory Base Management System for Stateful LLM-based Applicationscited by 2
  7. 2025PiERN: Token-Level Routing for Integrating High-Precision Computation and Reasoningcited by 0
  8. 2025Reflection Pretraining Enables Token-Level Self-Correction in Biological Sequence Modelscited by 0
  9. 2026Semantic Content Determines Algorithmic Performancecited by 0
  10. 2026ByteFlow: Language Modeling through Adaptive Byte Compression without a Tokenizercited by 0
  11. 2026Beyond Accuracy: Diagnosing Algebraic Reasoning Failures in LLMs Across Nine Complexity Dimensionscited by 0
  12. 2026The Position Curse: LLMs Struggle to Locate the Last Few Items in a Listcited by 0
  13. 2026No More K-means: Single-Stage Sparse Coding for Efficient Multi-Vector Retrievalcited by 0
  14. 2026Blind-Spots-Bench: Evaluating Blind Spots in Multimodal Modelscited by 0
  15. 2026The Imitation Game: When LLMs Learn to Reason Like Programs via Code-Centric Reasoning Data Synthesiscited by 0
  16. 2026A Dual-Process Perspective on Nudge Susceptibility in LLM-Based GUI Agentscited by 0
  17. 2026Repetition, Not Length: Isolating the Counting Failure in Neural Text-to-Speechcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026From Early Encoding to Late Suppression: Interpreting LLMs on Character Counting Tasks
  2. 2025Analyzing the Power of Chain of Thought through Memorization Capabilities
  3. 2026Mechanistic Interpretability of Large-Scale Counting in LLMs through a System-2 Strategy
  4. 2025Tokenization Constraints in LLMs: A Study of Symbolic and Arithmetic Reasoning Limits
  5. 2024Language Models Need Inductive Biases to Count Inductively
  6. 2024LLM The Genius Paradox: A Linguistic and Math Expert's Struggle with Simple Word-based Counting Problems
  7. 2026Think Deep, Not Just Long: Measuring LLM Reasoning Effort via Deep-Thinking Tokens
  8. 2024Extending Token Computation for LLM Reasoning