Gauge Freedom and Metric Dependence in Neural Representation Spaces
Not on the map. Why?
Abstract (arXiv)
Neural network representations are often analyzed as vectors in a fixed Euclidean space. However, their coordinates are not uniquely defined. If a hidden representation is transformed by an invertible linear map, the network function can be preserved by applying the inverse transformation to downstream weights. Representations are therefore defined only up to invertible linear transformations. We study neural representation spaces from this geometric viewpoint and treat them as vector spaces with a gauge freedom under the general linear group. Within this framework, commonly used similarity measures such as cosine similarity become metric-dependent quantities whose values can change under coordinate transformations that leave the model function unchanged. This provides a common interpretation for several observations in the literature, including cosine-similarity instability, anisotropy in embedding spaces, and the appeal of representation comparison methods such as SVCCA and CKA. Experiments on multilayer perceptrons and convolutional networks confirm that inserting invertible transformations into trained models can substantially distort cosine similarity and nearest-neighbor structure while leaving predictions unchanged. These results indicate that analysis of neural representations should focus either on quantities that are invariant under this gauge freedom or on explicitly chosen canonical coordinates.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 5 of its 7 references that are in the map. First posted on arXiv 6 Mar 2026.
Builds on
5 of 7 references.
References · 5
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2022Toy Models of Superpositioncited by 928
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2024Is Cosine-Similarity of Embeddings Really About Similarity?cited by 89
- 2026Beyond Cosine Similaritycited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.