Skip to content

The formalism for the structural view.

A fiber bundle is a space that locally looks like a product of two spaces — a base space and a fiber — but may have nontrivial global structure. The base space represents the distinct states of the system; the fiber represents redundant degrees of freedom at each state.

A quotient by a group action collapses all points related by the group’s symmetries into a single equivalence class. The gauge quotient W/G\mathcal{W}/\mathcal{G} divides the space of all weight configurations W\mathcal{W} by the gauge group G\mathcal{G} — the symmetries that preserve the model’s input-output function. Each point in the quotient represents a functionally distinct model, with all redundant parameterizations collapsed. The bundle is the projection WW/G\mathcal{W} \to \mathcal{W}/\mathcal{G} itself: the quotient is its base, and each gauge orbit is a fiber.

See Fiber bundle and Quotient space on Wikipedia.

Transformers have symmetries that leave the input-output function unchanged:

  • Permutation symmetry: swapping two attention heads and their weight matrices preserves function.
  • Rescaling symmetry: simultaneously rescaling query and key weights by inverse factors preserves attention scores.
  • Rotation symmetry (approximate): rotating the residual stream basis and all weight matrices that read from or write to it. Exact without LayerNorm; approximate with it.

These are the gauge transformations. Two weight configurations related by a gauge transformation implement the same computation — they are in the same fiber.

Under the structural view, a mechanism is a gauge-invariant property of the weights: something that depends only on the equivalence class [θ]W/G[\theta] \in \mathcal{W}/\mathcal{G}, not on any particular representative θ\theta. Singular values of OV circuits WOVW^{OV}, principal angles between subspaces, and effective rank are gauge-invariant. Composition scores are invariant under head permutations but not under the full rotation symmetry. Individual neuron activations and head indices are not gauge-invariant.

Two structural descriptions refer to the same mechanism when they lie in the same gauge orbit — when one can be transformed into the other by a sequence of gauge transformations.

The fiber bundle also supports holonomy: a gauge-invariant fingerprint computed by parallel-transporting a subspace around a closed loop in weight space. Isomorphic holonomy groups are a necessary condition for cross-model mechanism identity.

The fiber bundle is the most structurally rich formalism in the framework. The Grassmannian captures subspace identity but not the full gauge structure; the quotient captures both. The Whitney stratification organizes mechanisms by dimensionality within the stratified view, while the fiber bundle organizes them by gauge orbit within the structural view — related but distinct classification schemes.