Auditing Geometric Change in Grokking: Centroid Configuration versus Within-Class Geometry
Abstract
Geometric statistics often change when networks grok, but a global measurement does not show whether the classes moved apart or the geometry within classes changed. We separate these effects by writing each activation as a class centroid (the class mean) plus a within-class residual, then intervening on and recombining the two components: we move only the centroids while keeping every residual fixed (the centroid intervention), and we combine centroids from one training checkpoint with residuals from another (checkpoint recombination). In nine -addition MLPs, changing only the class-centroid configuration moves the finite-sample MST-based PH-dimension estimate by a factor of from collapsed to trained centroids and across the whole intervention sweep. TwoNN, in contrast, becomes invariant once the neighbours it uses lie within classes. Checkpoint recombination gives the same qualitative contrast over training: in every seed, the centroid contribution to PH-dimension exceeds the residual contribution under the symmetric endpoint allocation, whereas TwoNN is residual-dominated. Exact numerical shares depend on how the factor interaction is divided. The difference follows from estimator support: TwoNN is local, while the MST keeps cross-class connectors. A modular-division Transformer shows that the attribution also depends on the chosen training interval.
Create a lesson
Metadata
- Categories
- cs.LG, stat.ML
- Comments
- 31 pages. Accepted to NeurReps 2026 (Symmetry and Geometry in Neural Representations), Proceedings Track, to appear in PMLR. Code: https://github.com/FelixBaastadBerg/grokking-centroid-audit. Generative AI tools were used to write code and polish the language
Related papers
Beyond Fisher Information: The Geometry of Computational Recoverability
Shared title terminologycs.LGMojtaba Soltanalian
A Hybrid Equivariant-Scalar Message Passing Framework for Geometric Molecular Graphs
Shared title terminologycs.LGAnna Katharina Picha, Stefan Boresch, Nils Morten Kriege et al.
CSDD: Class-wise Shapley Contribution Dispersion for Free-Rider Defense in Federated Classification
Shared title terminologycs.LGXiaodong Guo, Ruiyun Zheng, Yinan Sun et al.
Geometric Subspace Learning for Domain Generalization
Shared title terminologycs.LGAristeidis Bifis, Emmanouil Z. Psarakis
Supervised Hebbian Class Networks: Regression Without Backpropagation
Shared title terminologycs.LGJohn Loverich
pcpbench: A Benchmark for Per-Class Conformal Coverage under Distribution Shift
Shared title terminologycs.LGWeijia Han, Lisha Qu