On the Geometry and Topology of Neural Circuits for Modular Addition
Abstract
Using tools from geometry and topology, we reveal that the circuits learned by neural networks trained on modular addition are simply different implementations of one global algorithmic strategy. We show that all architectures previously studied on this problem learn topologically equivalent algorithms. Notably, this finding concretely reveals that what appeared to be disparate circuits emerging for modular addition in the literature are actually equivalent from a topological lens. Furthermore, we introduce a new neural architecture that truly does learn a topologically distinct algorithm. We then resolve this under the lens of geometry however, and recover universality by showing that all networks studied learn modular addition via approximating a torus-to-circle map. They differ in how they factor this map, either via 2D toroidal intermediate representations, or via combinations of certain projections of this 2D torus. Resultantly, we argue that our geometric and topological perspective on neural circuits restores the universality hypothesis.
BibTeX
@inproceedings{moisescupareja2026geometry,
author = {Gabriela Moisescu-Pareja and Gavin McCracken and Harley Wiltzer and Colin Daniels and Vincent Létourneau and Jonathan Love},
title = {{On the Geometry and Topology of Neural Circuits for Modular Addition}},
booktitle = {International Conference on Learning Representations},
year = {2026},
url = {https://openreview.net/forum?id=2olkCiSELH},
}Ask Althea to put this paper to the test.