







A Review of Language Machines by Leif Weatherby

Large language models, explained with a minimum of math and jargon
Want to really understand how large language models work? Here’s a gentle primer.

Why Do Large Language Models (LLMs) Struggle to Count Letters?
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.

Why Do Large Language Models (LLMs) Struggle to Count Letters?
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.

When Do Large Language Models (LLMs) Struggle to Count Letters?
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, 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 when LLMs fail to count letters. In more detail, we study the relations between LLM errors when counting letters, including: (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. These results suggest that the problems of LLMs to counting letters are not related to the frequency of words or tokens in the training data but to the complexity of the counting operation. However, further studies are needed to build a better understanding of the limitations of LLMs in count the letters in a word.

When Do Large Language Models (LLMs) Struggle to Count Letters?
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, 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 when LLMs fail to count letters. In more detail, we study the relations between LLM errors when counting letters, including: (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. These results suggest that the problems of LLMs to counting letters are not related to the frequency of words or tokens in the training data but to the complexity of the counting operation. However, further studies are needed to build a better understanding of the limitations of LLMs in count the letters in a word.

The annals of humanities computing: The index Thomisticus
Language Resources and Evaluation -
Mixture-of-Experts (MoE): The Birth and Rise of Conditional Computation
What two decades of research taught us about sparse language models...

Learning Machines: From the Automatic Teacher to Large Language Models
Learning Machines: From the Automatic Teacher to Large Language Models
Language Machines
How generative AI systems capture a core function of language Looking at the emergence of generative AI, Language Machines presents a new theory of meaning i...

Language and AI: Guy Emerson on using AI with language data | Cambridge Language Sciences
It's a funny time to be working on language and AI. A year ago, this might have seemed like a niche interest, but these days ‘large language model’ is practically a household term. I recently had the chance to speak about language and AI at an event run by the Centre for Science and Policy, and I thought I would write a summary, because it seems a lot of people are interested in learning about how AI can be used with language data.
Aaron Steven White
computational semanticist. into modular synths and rum. https://aaronstevenwhite.io
How to solve the two language problem?
An overview of software technologies to get speed and simplicity at once. Comparing Python, C++, Cython, Numba, Julia and more.

Back-to-basics approach can match or outperform AI in language analysis
A new study led by Dr Andrea Nini at The University of Manchester has found that a grammar-based approach to language analysis can match or outperform advanced AI systems in identifying who wrote a text. The method, called LambdaG, uses patterns in grammar and sentence construction rather than large-scale AI models, offering comparable accuracy ...

Aaron Steven White
computational semanticist. into modular synths and tiki. https://aaronstevenwhite.io
Maite Taboada
Maite Taboada. Professor. Department of Linguistics, Simon Fraser University. Research: discourse analysis, computational linguistics