On the geometry and topology of representations: the manifolds of modular addition

Gabriela Moisescu-Pareja, Gavin McCracken, Harley Wiltzer, Vincent Létourneau, Colin Daniels +2 more
12/31/2025
cs.LG

No confident code implementation found for this paper.

Abstract

The Clock and Pizza interpretations, associated with architectures differing in either uniform or learnable attention, were introduced to argue that different architectural designs can yield distinct circuits for modular addition. In this work, we show that this is not the case, and that both uniform attention and trainable attention architectures implement the same algorithm via topologically and geometrically equivalent representations. Our methodology goes beyond the interpretation of individual neurons and weights. Instead, we identify all of the neurons corresponding to each learned representation and then study the collective group of neurons as one entity. This method reveals that each learned representation is a manifold that we can study utilizing tools from topology. Based on this insight, we can statistically analyze the learned representations across hundreds of circuits to demonstrate the similarity between learned modular addition circuits that arise naturally from common deep learning paradigms.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{moisescupareja2025geometry,
  title  = {On the geometry and topology of representations: the manifolds of modular addition},
  author = {Gabriela Moisescu-Pareja and Gavin McCracken and Harley Wiltzer and Vincent Létourneau and Colin Daniels and Doina Precup and Jonathan Love},
  year   = {2025},
  eprint = {2512.25060},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.25060v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.25060.svg)](https://codeofpaper.com/paper/2512.25060)

Discussion