Gauge-invariant representation holonomy
Vasileios Sevetlidis, George Pavlidis
TL;DR
Representation holonomy introduces a gauge-invariant, pathwise diagnostic for learned feature geometry by composing local rotation transports around input-space loops: $H( ext{``} ext{gamma} ext{''})=\prod_i R_i$ with $R_i\in\text{SO}(p)$ and $h_{ ext{norm}}(\gamma)=\|H(\gamma)-I\|_F/(2\sqrt{p})$. A practical estimator uses global whitening, shared-neighborhood centers, and rotation-projected Procrustes in a low-dimensional subspace to obtain $\widehat{H}$ and $\widehat{h}_{\text{norm}}$, with formal invariances to orthogonal and affine reparameterizations and a linear null for affine maps. The paper proves small-radius linear scaling $h_{ ext{norm}}(\gamma_r)=O(r)$, provides finite-sample error bounds for per-edge transports, and demonstrates that holonomy captures path-dependent geometry unseen by pointwise measures like CKA; experiments on MNIST and CIFAR-10 show holonomy increases with loop radius and depth, correlates with adversarial and corruption robustness, and tracks training dynamics. Overall, holonomy offers a practical, scalable diagnostic that complements existing representational similarity metrics by revealing curvature-like structure in feature spaces relevant to robustness and generalization.
Abstract
Deep networks learn internal representations whose geometry--how features bend, rotate, and evolve--affects both generalization and robustness. Existing similarity measures such as CKA or SVCCA capture pointwise overlap between activation sets, but miss how representations change along input paths. Two models may appear nearly identical under these metrics yet respond very differently to perturbations or adversarial stress. We introduce representation holonomy, a gauge-invariant statistic that measures this path dependence. Conceptually, holonomy quantifies the "twist" accumulated when features are parallel-transported around a small loop in input space: flat representations yield zero holonomy, while nonzero values reveal hidden curvature. Our estimator fixes gauge through global whitening, aligns neighborhoods using shared subspaces and rotation-only Procrustes, and embeds the result back to the full feature space. We prove invariance to orthogonal (and affine, post-whitening) transformations, establish a linear null for affine layers, and show that holonomy vanishes at small radii. Empirically, holonomy increases with loop radius, separates models that appear similar under CKA, and correlates with adversarial and corruption robustness. It also tracks training dynamics as features form and stabilize. Together, these results position representation holonomy as a practical and scalable diagnostic for probing the geometric structure of learned representations beyond pointwise similarity.
