Topological Signatures of Grokking

Yifan Tang, Qiquan Wang, Inés García-Redondo, Anthea Monod
5/7/2026
cs.LGcs.AIstat.ML

No confident code implementation found for this paper.

Abstract

We study the grokking phenomenon through the lens of topology. Using persistent homology on point clouds derived from the embedding matrices of a range of models trained on modular arithmetic with varying primes, we identify a clear and consistent topological signature of grokking: a sharp increase in both the maximum and total persistence of first homology ($H_1$).

Show full abstract

Persistence diagrams reveal the emergence of a dominant long-lived topological feature together with increasingly structured secondary features, reflecting the underlying cyclic structure of the task. Compared to existing spectral and geometric diagnostics -- specifically, Fourier analysis and local intrinsic dimension -- persistent homology provides a unified geometric and topological characterization of representation learning, capturing both local and global multi-scale structure. Ablations across data regimes and control settings show that these topological transitions are tied to generalization rather than memorization. Our results suggest that persistent homology offers a principled and interpretable framework for analyzing how neural networks internalize latent structure during training.

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{tang2026topological,
  title  = {Topological Signatures of Grokking},
  author = {Yifan Tang and Qiquan Wang and Inés García-Redondo and Anthea Monod},
  year   = {2026},
  eprint = {2605.06352},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.06352v1}
}

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/2605.06352.svg)](https://codeofpaper.com/paper/2605.06352)

Discussion