When perceiving a number is like recognizing a song: towards a new model of mathematical cognition

Eudald Correig
16/10/2026|11 min read
When perceiving a number is like recognizing a song: towards a new model of mathematical cognition

The landscape of numbers according to our model. If it makes no sense to you right now, don’t worry: by the end of the article you’ll know how to read it.  

Why are we studying this?

Understanding what a number is is one of the first big milestones in mathematics. A child has to discover that “three” is what three apples, three jumps and three claps have in common, and not every child discovers it at the same pace. To build good tools for teaching it, it isn’t enough to know what works in the classroom: we also need to understand how the brain represents quantities. The better we understand it, the better designed the activities, materials and assessments that come out of it can be. This study contributes one piece: a model of how we go from an impression of quantity to a specific number.          

A two-second experiment

Let’s start with a small experiment. In the image below, some dots will appear for a fraction of a second. Don’t try to count them: just say, as quickly as you can, how many you saw.  

If you tried it, you surely noticed the difference. With 3 dots you didn’t have to think: the answer was already there. With 8 you had to make a quick estimate, and you probably weren’t entirely sure. 

It’s not just you. It is one of the most studied phenomena in numerical cognition, and it happens to everyone. Small quantities, up to 3 or 4, we recognize almost always and instantly. Beyond that, each extra dot makes us less accurate and slower to respond.

Responses from around 380 adults who saw between 1 and 15 dots for 160 milliseconds (open data from Cheyette and Piantadosi, 2020). With 3 dots, 90% of responses are exact; with 8, only 30%. Answering 8 also takes almost a second longer. 

For decades, the most common explanation has been that we have two different systems in the brain: an exact one for small quantities and an approximate one for large ones. But this explanation leaves some questions unanswered. If there are two mechanisms, where is the boundary between them? And why does the curve decline gradually, without any jump? 

Back in the nineties, the psychologists Randy Gallistel and Rochel Gelman proposed an alternative: perhaps a single system is enough, very precise with small numbers and less and less precise with large ones. The idea was appealing, but it was missing an important piece: explaining how that system works. In other words, how a fuzzy impression of quantity 

becomes a specific answer, such as “eight”. That is the piece our model proposes. To understand it, though, we first need to take a small detour and talk about songs. 

How we remember a song

Think of the last time someone whistled a song next to you. Maybe they were out of tune and maybe they skipped a note, but you recognized it anyway. Your memory took an imperfect signal and completed it.    

Memory doesn’t need a perfect signal. It’s enough for it to resemble a memory for us to recognize the whole thing. 

Scientists call this pattern completion. In 1982, the physicist John Hopfield proposed a mathematical way of describing this process: a network of artificial neurons that stores memories and can retrieve them from incomplete or noisy versions. That idea has become one of the most influential in the science of memory and in artificial intelligence.  

To explain how these networks work, the image of a landscape is often used. Each memory is a valley. When you hear a few notes, it’s as if you dropped a ball onto this landscape, and remembering consists of letting the ball roll downhill to the bottom of the nearest valley.  

Each memory is a valley. A deep valley traps the ball right away. Two wide, shallow valleys, on the other hand, touch each other: the ball descends slowly and can end up in either one. 

The landscape helps us understand why not all memories work the same way. You’ve heard “Happy Birthday” a thousand times, and it’s a deep valley: even if the ball lands far from the bottom, it gets there quickly. That’s why you recognize it from two notes, even if they’re whistled badly. A song you’ve only heard a couple of times on the radio is a wide, shallow valley. The ball moves slowly, and if there’s a similar song nearby, the two valleys touch and the ball may end up in the wrong one.  

With this image we now have everything we need to return to numbers. What we’ve experienced many times leaves deep, sharp valleys; what we’ve experienced little leaves wide valleys; and memories that resemble each other can be confused.  

Numbers as valleys

Now let’s swap songs for numbers. In our model, each whole number (1, 2, 3, 4…) is a memory, and therefore a valley in the landscape. When we see some dots for an instant, the eyes and the brain make a first estimate, which is always somewhat imprecise: it’s the equivalent of the out-of-tune whistle. That impression drops the ball, and the landscape does the rest.  

What matters is the shape of the valleys. Small numbers are our “Happy Birthday”, because we come across them constantly. A study that analyzed seven languages showed that words like “one”, “two” or “three” appear far more often than “thirteen” or “seventeen”. Building on this idea, in the model the valleys widen as numbers grow. However, when they widen and at what rate was not set by us: we fitted it to people’s responses. 

The following animation shows the resulting landscape, and what happens to our two protagonists: 

The model’s actual landscape, fitted to people’s responses. Each ball lands slightly off, because the initial impression is not exact. The rolling time is what the model uses to predict how long a person takes to respond. 

With 3, the ball lands near a narrow, deep valley. The slope is so steep that the ball reaches the bottom right away, even though the impression wasn’t exact. Memory corrects the perception error, and the answer is 3, fast and confident.

With 8, the situation is very different. Because the valleys in this area are wide, they have merged with their neighbours, and the resulting terrain is almost flat. The ball barely moves: memory cannot correct the impression, and the answer stays close to where the ball landed, which could just as well be 7, 8 or 9. Also, because the slope is so gentle, the ball takes a long time to stop, which is why we respond more slowly. 

The model also includes a limit: if the ball doesn’t stop in time, the mind stops searching and answers with what it has. This explains why, from about 10 dots onwards, responses don’t get any slower (it’s the plateau in the response time curve we saw at the beginning). How the brain decides when to give up is one of the questions that remain open. 

If we repeat the process many times, the same pattern we saw in people emerges:

Each ball is a response from the model. With 3 dots, almost all of them end up at 3. With 8, they spread out between 5 and 12, and 8 is, only just, the most frequent answer. 

There is no need for two systems. The same landscape gives exact answers for small numbers and approximate ones for large numbers.

And the boundary we were looking for? It simply doesn’t exist. The valleys widen gradually, which is why precision also declines gradually. Around 8 or 9, the valleys have already merged almost completely.  

Putting the idea to the test

A pretty animation proves nothing. To know whether the model is good, we have to compare it with real data and with the alternative explanations: 

  • 52,995 responses analyzed
  • 379 participants
  • 40–640 milliseconds: five exposure times

We used an open dataset published by Samuel Cheyette and Steven Piantadosi of the University of California, Berkeley. Participants saw between 1 and 15 dots for very short times and wrote down how many they had seen. The model had to explain three things at once: which number people answered, how often they got it exactly right, and how long they took to respond. And it had to do so with a single landscape for all exposure times.  

The dots are the people and the line is the model (160 ms exposures). The model reproduces the mean response, the drop in exact responses and the increase in response time. It isn’t perfect: in the middle range, between about 5 and 9 dots, it predicts slightly fewer correct answers and slightly faster responses than the real ones. 

But reproducing the data isn’t enough: it also has to do better than the alternatives. That’s why we compared the model with other explanations: a version without rolling, another with all valleys equal, the classic approximate system, and the model proposed by the authors of the data themselves. To compare them we use a standard measure, the Akaike information criterion (AIC), which rewards explaining the responses well and penalizes using more pieces than necessary. The longer the bar, the worse that model explains the data. As a reference, a difference of 10 points is already considered clear.    

Model comparison on the nearly 53,000 responses. Our model is the one that explains them best. 

The comparison also tells us that both ingredients are needed. If we remove the rolling and read the answer directly from where the ball lands, the model gets worse. If we make all valleys equal, it gets even worse. The shape of the landscape and the act of rolling over it each contribute part of the explanation.

Each person, their own landscape

The model can also be fitted to each person separately, and here an interesting result appears: not everyone has the same landscape. Some people have well-separated valleys up to 12 or 13; others, only up to 6 or 7. 

Left: what the landscape would look like for a person with separate valleys up to 13 and for another with separate valleys only up to 7, two typical values in the study. Right: each dot is one of the 360 people who completed all conditions. The further the separate valleys reach, the fewer mistakes the person makes when estimating large quantities. 

People with a sharper landscape for small numbers are also more precise when estimating large quantities. And the two things were measured with different responses: sharpness with sets of up to 8 dots, and precision with sets of 9 or more. The fact that they go together suggests that they are not two independent abilities, but two sides of the same landscape. It is a correlation, so it doesn’t tell us what causes what, but it fits with the idea of a single system. 

Why a new model matters

It might seem that all this is just a different way of saying the same thing. It isn’t, and we think it matters for three reasons. 

1. From describing to explaining

Saying that we have two systems describes what we observe, but it doesn’t explain how it works. A model like this one calculates: for each number of dots and each exposure time, it makes a specific prediction of what people will answer and how long they will take. That means it can be wrong, and therefore we can test it and improve it. That is how science moves forward. 

 

2. A language for differences between people

The model gives us a precise way of describing how two people differ: the sharpness of their landscape. We know from previous studies that the precision of this number sense is related to mathematics achievement. Having an interpretable measure of it brings us closer to understanding why some children struggle more, and to detecting it early. At Innovamat, the Cosmos Screener, part of our early intervention program, includes tasks with dots that appear for half a second, very similar to those in this study. 

3. Numbers as learned memories

If valleys are memories, their shape depends on experience. The numbers we encounter most often should have sharper valleys, and experience with quantities (not just with digits) should gradually fine-tune them. We haven’t tested this yet, but it’s a clear prediction, and it connects with what happens in the classroom: handling, comparing and estimating quantities could be a way of sculpting this landscape. With one caveat: the valleys are neighbours, and changing one affects those next to it. Understanding how to fine-tune the whole landscape without disrupting it is one of the questions that interest us now. 

What’s next?

Like any model, this one is a simplification. It leaves open questions that set the course for future studies, and it also opens a door that particularly interests us. 

Tools for children who find it harder

If difficulties with numbers are related, at least in part, to a less sharp landscape, the model gives us a new way of thinking about how to help these children. First, to detect them: tasks like those in the Cosmos Screener could be used to estimate up to which number each child has separate valleys. Then, to act: designing activities aimed precisely at sharpening the blurriest valleys without disrupting their neighbours. And finally, to evaluate them: the model should allow us to distinguish an activity that truly sharpens the number landscape from one that only improves perception in general. We haven’t tested this with children yet, but it’s where we want to go. 

Now you can go back and look at the image at the beginning. The deep valleys on the left are the numbers we see at a glance; the wide ones on the right, those we have to estimate. Between them there is no boundary, just a landscape that gradually changes shape. 

Learn more

The article: Correig-Fraga, E. (2026). An attractor account of numerosity readout. i-Perception, 17(5), 1–15. Open access: doi.org/10.1177/20416695261488294  

The data: Cheyette, S. J. and Piantadosi, S. T. (2020). A unified account of numerosity perception. Nature Human Behaviour, 4, 1265–1272. Data at osf.io/svcy5. The code: github.com/eudaldc/hopfield_numbers 

Other works cited: Hopfield (1982), PNAS 79, 2554–2558 · Gallistel and Gelman (1992), Cognition 44, 43–74 · Dehaene and Mehler (1992), Cognition 43, 1–29 · Halberda, Mazzocco and Feigenson (2008), Nature 455, 665–668.

Related reads