Similar Accuracy but Different Topographies under Cross-Entropy and Contrastive Learning

Gerrit Sander, Uri Hasson
Proceedings of the First Workshop on NeuroAI Multimodal Intelligence @ AAAI 2026, PMLR 308:108-115, 2026.

Abstract

The brain’s topographic organization has motivated topographic deep neural networks (TDNNs) as models of perceptual and conceptual representation. However, prior TDNN studies largely paired topography with cross-entropy (CE). They have not examined whether contrastive objectives are generally compatible with topographic training, how topographic strength affects run-to-run representational consistency, or what failure modes limit the effect of the topographic constraint. We addressed these issues by training TDNNs on CIFAR-10 with a local topographic loss that minimized the average l2 distance between afferent weight vectors of neighboring units. We compared four objectives: CE, supervised contrastive, self-supervised SimCLR, and a label-aware contrastive margin loss reflecting an animacy hierarchy. Across topographic strengths, label-supervised objectives maintained high accuracy, produced smooth activation maps, and increased within-class similarity relative to CE. Two factors limited the impact of the topographic loss: 1) dropout was required to obtain smooth maps rather than sparse activations; 2) under strong penalties, networks reduced the topographic loss by shrinking weight norms rather than aligning weight directions. We also found that stronger topographic constraints reduced cross-seed representational consistency, indicating multiple comparably good topographic solutions. Nonetheless, ensembles built from sets of less-consistent models only slightly outperformed ensembles without topographic constraints. Our results indicate that contrastive objectives are a robust option for training topographic networks, producing good accuracy and high within-class similarity. The findings also identify boundary conditions for afferent-weight similarity as a topographic prior.

Cite this Paper


BibTeX
@InProceedings{pmlr-v308-sander26a, title = {Similar Accuracy but Different Topographies under Cross-Entropy and Contrastive Learning}, author = {Sander, Gerrit and Hasson, Uri}, booktitle = {Proceedings of the First Workshop on NeuroAI Multimodal Intelligence @ AAAI 2026}, pages = {108--115}, year = {2026}, editor = {Abbasi-Asl, Reza and Iqbal, Asim and Ito, Shinya and Arkhipov, Anton and Sanborn, Sophia}, volume = {308}, series = {Proceedings of Machine Learning Research}, month = {27 Jan}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v308/main/assets/sander26a/sander26a.pdf}, url = {https://proceedings.mlr.press/v308/sander26a.html}, abstract = {The brain’s topographic organization has motivated topographic deep neural networks (TDNNs) as models of perceptual and conceptual representation. However, prior TDNN studies largely paired topography with cross-entropy (CE). They have not examined whether contrastive objectives are generally compatible with topographic training, how topographic strength affects run-to-run representational consistency, or what failure modes limit the effect of the topographic constraint. We addressed these issues by training TDNNs on CIFAR-10 with a local topographic loss that minimized the average l2 distance between afferent weight vectors of neighboring units. We compared four objectives: CE, supervised contrastive, self-supervised SimCLR, and a label-aware contrastive margin loss reflecting an animacy hierarchy. Across topographic strengths, label-supervised objectives maintained high accuracy, produced smooth activation maps, and increased within-class similarity relative to CE. Two factors limited the impact of the topographic loss: 1) dropout was required to obtain smooth maps rather than sparse activations; 2) under strong penalties, networks reduced the topographic loss by shrinking weight norms rather than aligning weight directions. We also found that stronger topographic constraints reduced cross-seed representational consistency, indicating multiple comparably good topographic solutions. Nonetheless, ensembles built from sets of less-consistent models only slightly outperformed ensembles without topographic constraints. Our results indicate that contrastive objectives are a robust option for training topographic networks, producing good accuracy and high within-class similarity. The findings also identify boundary conditions for afferent-weight similarity as a topographic prior.} }
Endnote
%0 Conference Paper %T Similar Accuracy but Different Topographies under Cross-Entropy and Contrastive Learning %A Gerrit Sander %A Uri Hasson %B Proceedings of the First Workshop on NeuroAI Multimodal Intelligence @ AAAI 2026 %C Proceedings of Machine Learning Research %D 2026 %E Reza Abbasi-Asl %E Asim Iqbal %E Shinya Ito %E Anton Arkhipov %E Sophia Sanborn %F pmlr-v308-sander26a %I PMLR %P 108--115 %U https://proceedings.mlr.press/v308/sander26a.html %V 308 %X The brain’s topographic organization has motivated topographic deep neural networks (TDNNs) as models of perceptual and conceptual representation. However, prior TDNN studies largely paired topography with cross-entropy (CE). They have not examined whether contrastive objectives are generally compatible with topographic training, how topographic strength affects run-to-run representational consistency, or what failure modes limit the effect of the topographic constraint. We addressed these issues by training TDNNs on CIFAR-10 with a local topographic loss that minimized the average l2 distance between afferent weight vectors of neighboring units. We compared four objectives: CE, supervised contrastive, self-supervised SimCLR, and a label-aware contrastive margin loss reflecting an animacy hierarchy. Across topographic strengths, label-supervised objectives maintained high accuracy, produced smooth activation maps, and increased within-class similarity relative to CE. Two factors limited the impact of the topographic loss: 1) dropout was required to obtain smooth maps rather than sparse activations; 2) under strong penalties, networks reduced the topographic loss by shrinking weight norms rather than aligning weight directions. We also found that stronger topographic constraints reduced cross-seed representational consistency, indicating multiple comparably good topographic solutions. Nonetheless, ensembles built from sets of less-consistent models only slightly outperformed ensembles without topographic constraints. Our results indicate that contrastive objectives are a robust option for training topographic networks, producing good accuracy and high within-class similarity. The findings also identify boundary conditions for afferent-weight similarity as a topographic prior.
APA
Sander, G. & Hasson, U.. (2026). Similar Accuracy but Different Topographies under Cross-Entropy and Contrastive Learning. Proceedings of the First Workshop on NeuroAI Multimodal Intelligence @ AAAI 2026, in Proceedings of Machine Learning Research 308:108-115 Available from https://proceedings.mlr.press/v308/sander26a.html.

Related Material