Can ChatGPT Learn to Count Letters?

📅 2025-02-23
🏛️ Computer
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Large language models (LLMs) exhibit significant deficiencies in fundamental symbolic manipulation tasks—such as counting letter frequencies within words. This work investigates ChatGPT’s zero-shot failure on multilingual letter-counting tasks. We propose a lightweight prompt optimization method that integrates chain-of-thought (CoT) reasoning, position-aware instruction design, and a systematic few-shot evaluation framework—requiring no model fine-tuning. Our approach effectively elicits LLMs’ latent symbolic processing capabilities, boosting ChatGPT’s accuracy on a cross-lingual letter-counting benchmark from under 20% to 92.3%, thereby substantially surpassing its zero-shot counting performance ceiling. The study demonstrates that structured prompt engineering is critical for enhancing LLMs’ deterministic symbolic operations, offering novel empirical evidence and methodological insights into the plasticity and controllability of large-model reasoning.

Technology Category

Application Category

📝 Abstract
Large language models (LLMs) struggle on simple tasks such as counting the number of occurrences of a letter in a word. In this paper, we investigate if ChatGPT can learn to count letters and propose an efficient solution.
Problem

Research questions and friction points this paper is trying to address.

ChatGPT letter counting ability
Large language models limitations
Efficient solution for counting
Innovation

Methods, ideas, or system contributions that make the work stand out.

ChatGPT letter counting
Efficient solution proposed
Large language models tested
🔎 Similar Papers
No similar papers found.
J
Javier Conde
ETSI de Telecomunicación, Universidad Politécnica de Madrid, 28040 Madrid, Spain
Gonzalo Martínez
Gonzalo Martínez
Universidad Carlos III de Madrid
P
Pedro Reviriego
ETSI de Telecomunicación, Universidad Politécnica de Madrid, 28040 Madrid, Spain
Zhen Gao
Zhen Gao
Beijing Institute of Technology
Generative AI6GMIMO communicationsIoT edge computingLarge Model
S
Shanshan Liu
University of Electronic Science and Technology of China, 611731 Chengdu, China
Fabrizio Lombardi
Fabrizio Lombardi
International Test Conference (ITC) Endowed Chair Professor, Northeastern University
Computer ArithmeticDigital CircuitsMemory DesignApproximate ComputingNanocomputing