Learning from Natural Images Untangles Number Sense
Authors: Yechan Cho, Hyeonsu Lee, Emma Deneuville, Jaeson Jang
Organizations: Center for Brain Convergence Research, Brain Science Institute, Korea Institute of Science and Technology, Seoul, Republic of Korea · Division of Bio-Medical Science & Technology, University of Science and Technology, Daejeon, Republic of Korea · Université Côte d’Azur, Institut NeuroMod, France
Numerical cognition is a simple yet fundamental ability that remains challenging for modern vision-language models. Meanwhile, number sense is already present in numerically naïve animals, suggesting that it can emerge without explicit numerical learning. Deep neural networks provide a related observation, with numerosity-selective units appearing after training on unrelated natural-image tasks and even before any training. However, these findings leave unresolved whether visual learning contributes beyond the spontaneous emergence of numerical selectivity. Human development provides a clue, as children become better at making judgments in which numerosity and proportion conflict. Here, we introduce a geometric framework to trace how representations of these two quantities change across learning. Although untrained and pretrained networks exhibited similar unit-level numerosity selectivity and basic comparison performance, natural-image pretraining increased the angle between numerosity and proportion subspaces while reducing their overlap, supporting more robust readout under conflict. Direct manipulation of these geometric properties further demonstrated their functional contributions to decoding accuracy and functional independence. Importantly, conventional supervised pretraining was not essential for quantity separation, which also emerged through self-supervised learning without category labels and synthetic-image training without natural-image exposure. Together, our findings suggest that structured visual learning can refine spontaneously emerging number sense into robust and functionally independent quantity representations without explicit numerical training.
Figures & tables
Figure 1: Natural-image pretraining reorganizes number-sense representations at the population level. Although similar numerosity selectivity has been reported at the unit level in untrained and pretrained DNNs, we show that visual learning substantially reorganizes population geometry, separating numerosity and proportion representations for more independent readout.
Figure 2: Basic numerosity sensitivity is similar across untrained and pretrained networks, whereas quantity conflict reveals a functional difference. (a) Both untrained and ImageNet-pretrained AlexNet contain conv5 units selectively tuned to numerosity across single-color dot arrays. (b) A linear SVM comparing which of two arrays has the larger numerosity achieves similarly high performance in both network states. (c) Human developmental studies show that proportion judgments become more robust with age when absolute count and proportion provide conflicting cues. (d) We adapted this conflict paradigm to two-color dot arrays, asking which array has the larger proportion when numerosity and proportion favor opposite choices. The untrained network performs near chance, whereas the pretrained network remains above chance.
Figure 3: Natural-image pretraining separates numerosity and proportion representations at the population level. (a) Stimulus design spanning numerosity and proportion across two-color dot arrays. (b) PCA of AlexNet conv5 responses reveals a one-dimensional numerosity subspace and a two-dimensional proportion subspace, which become more separated after pretraining. (c) Across diverse network architectures, this reorganization is quantified by increased principal angles and reduced representational overlap, suggesting that visual learning without an explicit numerical objective produces more separable quantity representations.
Figure 4: Functional validation of representational geometry through direct manipulation. (a) Population activations of pretrained networks were transformed to independently manipulate the principal angle between numerosity ( N ) and proportion ( P ) subspaces or their representational overlap, while approximately preserving the other property. (b) Functional evaluation using joint quantity decoding accuracy and cross-quantity ablation damage. (c) Increasing principal angle reduced ablation damage, with little effect on decoding accuracy. (d) Increasing representational overlap reduced decoding accuracy and increased ablation damage. Values in (c,d) are normalized to the original representations and averaged across 12 architectures.
Figure 5: Quantity separation emerges without category labels but not under arbitrary supervision. Self-supervised learning produces a similar reorganization to supervised pretraining, whereas shuffled-label training reduces separation below the untrained baseline. Developmentally restricted visual input also supports strong quantity separation.
Figure 6: Structured synthetic visual experience is sufficient to separate quantity representations. (a) Self-supervised learning on synthetic images ranging from noise to shader-based patterns produces progressively more organized quantity representations. (b) Representational separation increases with richer visual structure, showing that natural images are not uniquely required for quantity reorganization.
Figure 7: Functional validation of quantity representation geometry. (a,b) Lower representational overlap is associated with better joint quantity decoding and higher accuracy under N–P conflict. (c,d) Larger principal angles are associated with better generalization to unseen quantity conditions and less damage following cross-quantity ablation.
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
Linear decoding (%)
Pairwise comparison (%)
N
P
NP
N
P
Untrained / Pretrained
AlexNet
21.4 / 29.2
69.2 / 82.9
10.4 / 17.5
93.2 / 95.8
90.0 / 90.3
ResNet-50
16.6 / 27.6
31.5 / 78.6
5.4 / 19.9
90.8 / 96.2
81.3 / 94.0
ResNeXt-50
6.2 / 27.7
33.3 / 75.4
2.2 / 21.7
78.8 / 95.4
82.6 / 96.4
EfficientNet-B0
3.4 / 29.8
15.4 / 81.2
1.7 / 23.7
58.9 / 96.0
69.0 / 98.0
Appendix
Table 1: Decodability of numerosity and proportion across architectures and AlexNet training states.
P comparison (%) NW conflict
N comparison (%) P conflict
P comparison (%) N conflict
Congruent
Incongruent
Congruent
Incongruent
Congruent
Incongruent
Untrained / Pretrained
AlexNet
76.9 / 78.9
49.9 / 60.6
57.4 / 71.3
58.4 / 68.1
60.0 / 67.5
51.6 / 61.2
ResNet-50
71.2 / 89.4
49.9 / 82.4
56.7 / 76.2
56.2 / 71.7
56.2 / 73.0
51.2 / 71.2
ResNeXt-50
75.9 / 93.3
40.6 / 86.2
55.1 / 67.5
49.5 / 66.9
62.0 / 67.5
42.8 / 76.3
EfficientNet-B0
78.4 / 96.6
37.5 / 92.5
72.6 / 76.2
31.7 / 76.3
65.5 / 79.3
43.0 / 82.3
Appendix
Table 2: Comparison under conflicting quantity cues across architectures and AlexNet training states.
Generalization (%)
Baseline MAE
Damage ( Δ MAE)
N
P
N
P
N
P
Untrained / Pretrained
AlexNet
85.8 / 92.0
86.3 / 87.9
1.85 / 1.27
0.32 / 0.17
3.22 / 1.97
0.26 / 0.34
ResNet-50
86.1 / 91.1
72.2 / 89.1
2.70 / 1.52
1.34 / 0.22
6.38 / 1.17
0.33 / 0.20
ResNeXt-50
72.3 / 88.3
79.1 / 92.4
10.21 / 1.66
1.28 / 0.25
3.76 / 0.93
−0.12 / 0.06
EfficientNet-B0
61.8 / 89.3
73.3 / 90.8
9.36 / 1.39
1.81 / 0.19
0.00 / 0.85
0.00 / 0.03
Appendix
Table 3: Cross-quantity robustness across architectures and AlexNet training states: range generalization and cross-domain ablation. Gray values mark states whose decoder is not better than a constant predictor.
PA ( ∘ )
NP overlap
N overlap
P overlap
Normalized distance
Normalized volume (95%)
Untrained / Pretrained
AlexNet
5.8 / 31.6
0.282 / 0.083
0.547 / 0.242
0.491 / 0.216
92.8 / 138.8
5.28×105 / 4.69×105
ResNet-50
0.4 / 24.9
0.694 / 0.109
0.706 / 0.321
0.943 / 0.260
30.4 / 38.4
6.79×105 / 4.50×105
ResNeXt-50
1.3 / 25.8
0.524 / 0.137
0.784 / 0.343
0.718 / 0.284
32.7 / 31.0
7.68×106 / 2.47×105
EfficientNet-B0
16.9 / 29.9
0.532 / 0.094
0.906 / 0.306
0.755 / 0.249
22.8 / 25.5
2.57×106 / 7.50×104
DenseNet121
2.4 / 11.7
0.534 / 0.181
0.734 / 0.306
0.720 / 0.424
19.8 / 21.8
2.96×105 / 9.13×104
Appendix
Table 4: Representational geometry across architectures and AlexNet training states: subspace orientation, overlap, distance, and volume. AlexNet uses one N and two P components ( dN=1 , dP=2 ) at relu5; the other architectures use two of each ( dN=dP=2 ) at the pooled or CLS feature.
Figure S1: Systematic variation of numerosity and proportion with geometric controls. White-dot count W and black-dot count B jointly vary total numerosity N=W+B and proportion P=W/N across the stimulus grid. Constant-N and constant-P directions reveal the systematic organization of the two quantities. Three stimulus regimes control dot size, total dot area, and spatial extent, enabling quantity representations to be examined across these geometric properties.
Figure S2: Rationale for the subspace dimensions. (a) Schematic of the one-dimensional numerosity subspace and two-dimensional proportion subspace. (b,c) Cumulative explained variance of quantity-conditioned responses for N and P in the AlexNet states. One N component and two P components capture more than 90% of the variance in most states (dotted threshold). (d,e) The same analysis for the additional architectures in their Untrained, Pretrained, and SSL states, with two components retained for both N and P (N2/P2); bold tick labels mark the number of components retained. Retaining these dimensions across states within each architecture provides a common criterion for comparing the two quantities and their geometry across network states.
Figure S3: Cross-quantity subspace ablation. (a) Activations of a frozen network are read by the same frozen N decoder before and after the P subspace is removed; damage is the increase in N decoding error. (b) A smaller principal angle between the N and P subspaces gives a larger displacement along N, and thus larger damage. (c) Mean-preserving ablation replaces each activation’s component along P with its mean (dashed line), removing variation along P without shifting the activations; full ablation sets the component to zero, shifting all activations outside the intact range along N. (d, e) N damage ( Δ MAE) versus principal angle under mean-preserving (left) and full (right) ablation, for AlexNet training states (d) and additional architectures (e), using all states or only valid states (Figure S4 ). The same procedure is applied with N and P exchanged.
Figure S4: Baseline decodability and response imbalance across network states. (a) Reference levels: accuracy is compared with chance (a random class), and error with a constant predictor that always answers the median class; neither uses the image. (b,c) N and P decoding accuracy relative to chance ( 1/30 and 1/7 ). (d,e) Baseline MAE relative to the constant-median reference; Label-shuffled and Noise-SSL networks are not better than the constant predictor. (f) Response imbalance: the effects of white-dot and black-dot count on relu5 responses are each projected onto their first principal component, and imbalance is ∣log2(σB/σW)∣ , where σW and σB are the standard deviations of the PC1 scores across count levels (0, equal change; curves are illustrative). (g) Response imbalance in each state. Bars show mean ± SD across networks (20 for Untrained, Pretrained, DVD, and Label-shuffled; 5 for the other states; 3 for Noise-SSL, 4 in g).
Figure S5: Numerosity comparison across color conditions. Performance of Untrained and Pretrained networks in the numerosity comparison task of Figure 2 b for eight combinations of dot and background colors (examples below the bars). All conditions share dot layouts, dot sizes, image splits, and comparison pairs. Units were reselected and the SVM was retrained for each condition. Bars show mean ± SEM across five networks; the dashed line indicates chance (50%). ∗∗∗p<0.001 , one-sample t -test against chance, Holm-corrected across all bars.
Figure S6: Hard NW /P comparison across architectures. A linear SVM compares P between two images that are one P bin apart. (a–c) Accuracy on all, congruent, and incongruent test pairs for the Untrained and Pretrained states of 12 architectures; marker shapes and colors identify the models. Error bars show SD across runs where several runs were available (AlexNet and ResNet-50); dotted lines indicate chance (50%). (d,e) Congruent and incongruent accuracy against the smallest principal angle between the N and P subspaces. Dashed lines show least-squares fits with 95% confidence bands, and r is the Pearson correlation across the 24 states.
Figure S7: N/P conflict contains W/P and B/P incongruency. For a pair of images, a count is congruent with a proportion when it is larger in the image with the larger proportion, and incongruent otherwise; for the total number N we refer to this as conflict. Image 1 denotes the image with the larger proportion of white dots ( Pw,1>Pw,2 , equivalently Pb,1<Pb,2 ). (a) The four possible orderings of W , N , and B . With P=Pw , N conflicts with P when N1<N2 , and the W/P-incongruent pairs ( W1<W2 ) are a subset of these pairs. With P=Pb , the conflict side reverses ( N1>N2 ) and contains the B/P-incongruent pairs ( B1>B2 ). (b) Principal angle and representational overlap across architectures for the N and P subspaces (left) and for the W and P subspaces (right). Stars show the means of the 12 untrained and the 12 supervised networks.
Figure S8: Visual controls for the effect of pretraining. (a) Untrained networks are compared with their Pretrained counterparts (20 pairs). (b) Three measures: geometry (principal angle and overlap), decoding (a linear readout fitted and tested within a stimulus set), and transfer (a readout fitted on the original stimuli, frozen, and tested on new stimuli). (c) In each stimulus regime of Figure S1 , pretraining increases the principal angle, reduces overlap, and improves N and P decoding. (d) The frozen P readout of Pretrained networks remains more accurate when the white-area ratio Q is aligned with, balanced against, or reversed relative to the count ratio P . (e) The frozen N readout remains more accurate when total dot area increases with, is balanced across, or decreases with N (example images exaggerate the difference). Bars show mean ± SD across networks; dashed lines indicate chance. ∗p<0.05 , paired comparison of Untrained and Pretrained networks, Holm-corrected.
Figure S9: Representational interventions across architectures. Activations of a fixed network were transformed within its joint N/P subspace, and function was measured on the transformed activations; colors denote the 12 architectures. (a) Principal-angle manipulation: a smooth deformation shifts the N subspace relative to the P subspace by −15∘ to +15∘ at nearly constant overlap. Insets, AlexNet representation at −15∘ , original, and +15∘ (top, principal-plane view; bottom, fixed N/P-residual frame). (b) From raw values to the summary curve. Step 1: decoding accuracy of a retrained readout (top) and cross-quantity damage (bottom; N, left axis; P, right axis) against the principal angle, one curve per architecture. Step 2: each curve is centered on its original representation, with the x-axis expressed as the normalized angle change and the y-axis as the difference from the original value. Steps 3 and 4: values are expressed as ratios to the original and averaged over architectures, giving Figure 4 c; the −15∘ step was infeasible for DenseNet121. (c) Overlap manipulation: within-condition spread is rescaled ( ×0.25 to ×4 ) around unchanged condition centers, changing overlap at a fixed principal angle. Insets, AlexNet representation at each scale. (d) As in (b), against overlap and, after centering, the relative within-condition RMS, giving Figure 4 d. Solid lines, N; dashed lines, P; open markers, original representations; asterisks, rank-matched random-subspace ablation of the original representation.
Figure S10: Correct-label correspondence links visual learning to quantity separation. (a) Schematic of complete and partial label reassignment. (b) ImageNet validation accuracy increases as the shuffled-label fraction decreases, demonstrating more effective learning from stronger label correspondence. (c) The conditions span a continuum from fully Label-shuffled through the vicinity of Untrained to Pretrained in principal-angle–overlap space. Decreasing the shuffled-label fraction increases the principal angle and reduces overlap, linking label correspondence to improved quantity separation. Percentages denote shuffled-label fractions, from 0% (Pretrained) to 100% (fully shuffled).
Figure S11: Synthetic-image similarity to ImageNet-1K. Fréchet Inception Distance (FID; Heusel et al., 2017 ) evaluates the similarity of Noise, Grating, Statistical, and Shaders image distributions to ImageNet-1K; lower values indicate greater similarity. Example images are shown below the bars. Across these visual diets, lower FID generally accompanies larger principal angles and lower overlap after training (Figure 5 and Figure S12 ). This pattern supports the main-text account that learning sufficiently rich visual structure, rather than natural-image origin alone, promotes quantity separation.
Figure S12: Learning trajectories in principal-angle–overlap space. (a) Summary representation map of the network states and label-correspondence conditions. (b) State-specific AlexNet trajectories during supervised and self-supervised learning. (c) The corresponding trajectory for ResNet-50. Connected points track geometry across training checkpoints; numeric annotations indicate epochs. Rightward and downward movements indicate larger principal angles and lower overlap, respectively. The trajectories show how different visual-learning conditions reshape quantity geometry relative to their initial representations.
Figure S13: Geometry–function correlation matrix. (a) Exact joint NP decoding. (b) Restricted pairwise N and P comparisons. (c) Cross-context generalization of N and P comparison rules. (d) Cross-quantity damage after mean-preserving subspace ablation (Figure S3 ), measured as the change in ordinal MAE. Each functional readout is shown against condition-wise overlap and principal angle. Points represent state means; the annotated Pearson correlations describe cross-state associations. Dashed fits and shaded bands show ordinary least-squares trends and 95% confidence intervals. Boxed panels correspond to the selected relationships in Figure 7 .
Figure S14: N and P decoding across architectures. (a,c) N and P decoding accuracy for the Untrained, Pretrained, and self-supervised (SSL) states of 12 architectures; marker shapes and colors identify the models. Error bars show SD across runs where several runs were available (AlexNet and ResNet-50); dashed lines indicate chance. (b,d) Decoding accuracy against representational overlap (log scale). Dashed lines show least-squares fits, and r is the Pearson correlation with log overlap across the 28 states. These correlations are descriptive, because the states are not independent architectures.
Visual representation learning develops image and video features that capture useful structure for recognition, retrieval, spatial reasoning, and action.
Robots are increasingly entering human-interactive scenarios that require understanding of quantity. How intelligent systems acquire abstract numerical concepts from sensorimotor experience remains a fundamental challenge in cognitive science and artificial intelligence. Here we investigate embodied numerical learning using a neural network model trained to perform sequential counting through naturalistic robotic interaction with a Franka Panda manipulator. We demonstrate that embodied models achieve 96.8% counting accuracy with only 10% of training data, compared to 60.6% for vision-only baselines. This advantage persists when visual-motor correspondences are randomized, indicating that embodiment functions as a structural prior that regularizes learning rather than as an information source. The model spontaneously develops biologically plausible representations: number-selective units with logarithmic tuning, mental number line organization, Weber-law scaling, and rotational dynamics encoding numerical magnitude (r=0.97, slope =30.6°/count). The learning trajectory parallels children's developmental progression from subset-knowers to cardinal-principle knowers. These findings demonstrate that minimal embodiment can ground abstract concepts, improve data efficiency, and yield interpretable representations aligned with biological cognition, which may contribute to embodied mathematics tutoring and safety-critical industrial applications.
Zhegong Shangguan, Alessandro Di Nuovo, Angelo Cangelosi
Cognitive Robotics Lab, Department of Computer Science, University of Manchester · Smart Interactive Technologies (SIT) Research Laboratory, Department of Computing, Sheffield Hallam University
Vision-language models (VLMs) achieve strong performance on high-level multimodal tasks, yet numerosity perception, a cognitive ability that emerges in human infants before language acquisition, remains poorly understood in current models, as existing counting benchmarks entangle numerosity with correlated visual factors. We introduce a cognitively inspired diagnostic benchmark, NumerosityVLM, comprising 10,800 synthetic images across six controlled conditions. The benchmark orthogonally manipulates object size, spatial arrangement, and numerosity, while progressively ablating texture, shape, and color. Evaluating seven VLMs in a zero-shot setting, multi-factor analysis reveals that model architecture explains the largest proportion of performance variance (partial ω2=0.325), far exceeding visual conditions. Layer-wise probing further shows that linearly separable numerosity signals consistently emerge at early stages of the vision encoder, while performance differences across evaluated models are primarily associated with the language model component. Code and data are publicly available at https://github.com/fuy3/NumerosityVLM-Benchmark, and https://huggingface.co/datasets/fuy3/NumerosityVLM.
Yiming Fu, Fangjun Li, Xiujin Liu +7
Cognitive Robotics Lab, Department of Computer Science, The University of Manchester, Manchester M13 9PL, UK · University of Michigan, MI 48109, USA · Sheffield Hallam University, Sheffield S1 1WB, UK +2
Language models trained on natural text learn to represent numbers using periodic features with dominant periods at T=2,5,10. In this paper, we identify a two-tiered hierarchy of these features: while Transformers, Linear RNNs, LSTMs, and classical word embeddings trained in different ways all learn features that have period-T spikes in the Fourier domain, only some learn geometrically separable features that can be used to linearly classify a number mod-T. To explain this incongruity, we prove that Fourier domain sparsity is necessary but not sufficient for mod-T geometric separability. Empirically, we investigate when model training yields geometrically separable features, finding that the data, architecture, optimizer, and tokenizer all play key roles. In particular, we identify two different routes through which models can acquire geometrically separable features: they can learn them from complementary co-occurrence signals in general language data, including text-number co-occurrence and cross-number interaction, or from multi-token (but not single-token) addition problems. Overall, our results highlight the phenomenon of convergent evolution in feature learning: A diverse range of models learn similar features from different training signals.