Gauges: When There Is No Shared Frame

7 minute read

Published:

TL;DR: When each point of your domain carries its own coordinate frame and no global frame exists, comparing features at different points requires transporting one into the other's frame first. A gauge is a choice of local frame; gauge equivariance is the requirement that the model's predictions do not depend on that choice. This is the last domain of the blueprint, and it is also — exactly, not by analogy — what a cellular sheaf is.

The problem, restated precisely

The geodesics chapter ended stuck: building convolution on a surface needs an angular reference at every point, and no intrinsic rule supplies one.

Gauge theory reframes the difficulty as a feature. Accept that the choice is arbitrary. Make it anyway, at every point, and then insist that nothing observable depends on what you chose.

A gauge is a choice of local frame at a point. A gauge transformation is a change of that choice — at one point, independently of every other. A model is gauge equivariant when transforming the frames transforms the features correspondingly, so that anything you actually predict is unaffected.

The everyday version. Two weather stations report 22 and 71.6. Nothing about those numbers is comparable until you know each station's units. The readings are gauge-dependent — change the units and the number changes — while the temperature is not. A gauge-equivariant model manipulates readings in a way that always respects the conversions, so its conclusions are statements about temperature rather than about anyone's choice of scale.

Transport, and why it does not commute

If features at \(u\) and \(v\) live in different frames, comparing them requires a map. Call it \(\mathcal{F}_{u \to v}\): the transport taking a vector expressed in \(u\)’s frame to the same vector expressed in \(v\)’s.

Now follow a closed loop. Transport a vector from \(u\) around some cycle and back to \(u\). It has returned to its starting point, expressed in its original frame. Is it the vector you started with?

Not necessarily. The composition of the transports around a loop is the holonomy, and when it is not the identity the connection is curved.

Take three transports, each a 90° rotation:

\[ R(90^\circ)\,R(90^\circ)\,R(90^\circ) = R(270^\circ) \neq I . \]

A vector \((1,0)\) sent round that loop comes back as \((0,-1)\) — same point, different vector. Whereas three 120° rotations compose to \(R(360^\circ) = I\), and every vector returns unchanged: that loop is flat.

This is not a defect to be engineered away. Non-trivial holonomy is what makes the structure expressive. If every loop returned the identity, all the local frames could be reconciled into one global frame and the whole apparatus would collapse back to the ordinary case. Curvature is the information: it records that the domain cannot be described by a single consistent coordinate system.

This is a sheaf

Everything above has a discrete counterpart, and it is the object Book III is about.

Gauge theoryCellular sheaf
local frame at a pointstalk \(\mathcal{F}(v)\) at a node
transport between framesrestriction map \(\mathcal{F}_{v \trianglelefteq e}\)
gauge transformationchange of basis in a stalk
flat connection, zero holonomyglobal section exists
curvatureobstruction measured by \(\Delta_{\mathcal{F}}\)

A cellular sheaf on a graph is a discrete connection. The restriction maps are the transports; a global section is an assignment consistent under all of them; and the sheaf Laplacian \(\Delta_{\mathcal{F}} = \delta_0^{\top}\delta_0\) measures the failure of consistency, with kernel exactly the global sections.

Why the sheaf book sits where it does on this site. Standard message passing assumes every node's features live in one shared space — implicitly, that the connection is trivial and every transport is the identity. Sheaf neural networks drop that assumption and learn the transports. In blueprint terms: a GNN is permutation-equivariant, and a sheaf GNN is permutation-equivariant and gauge-equivariant. It is the graph row and the gauge row at once, which is why it is the most general architecture covered on this site.

The triangle holonomy example in the sheaf overview is the same calculation as the rotation composition above, with restriction maps in place of rotation matrices.

What it costs

Parameters. A scalar edge weight becomes a \(d \times d\) matrix per edge. That is the price of transport being a linear map rather than a number, and it is why the sheaf literature keeps finding that diagonal restriction maps — \(O(d)\) per edge rather than \(O(d^2)\) — perform as well as full ones. Three independent papers now report it.

Theory that does not survive contact with the architecture. The spectral guarantees hold for the linear diffusion. Once you insert nonlinearities, attention gates, or swap the Laplacian for something else, they stop applying — as DNSD does deliberately and BrainDyn does inadvertently.

A symmetry you may not need. Gauge equivariance is the right constraint when the domain genuinely lacks a global frame — meshes, molecules in local coordinates, heterogeneous graphs whose node types have incomparable feature spaces. When one global frame is fine, the machinery is pure overhead.

The blueprint, closed

That completes the five domains:

DomainSymmetryArchitecture
Gridtranslationconvolution
Groupany group \(G\)group / steerable convolution
Graphpermutationmessage passing
Geodesicisometrygeodesic convolution
Gaugeframe changesheaf / connection Laplacian

One procedure, five instantiations, each forced rather than invented. And running underneath, the equivalence showing rows two and three are the same operator on different graphs — with the hardware, not the mathematics, deciding which one the field adopted.

✅ Key Takeaways

  • A gauge is a choice of local frame; gauge equivariance means predictions do not depend on the choice. It is the answer to the ambiguity the geodesics chapter could not remove.
  • Comparing features across points requires explicit transport. Composing transports around a loop gives the holonomy.
  • \(R(90°)^3 = R(270°) \neq I\) — a vector \((1,0)\) returns as \((0,-1)\). \(R(120°)^3 = I\) is flat. Curvature is the information, not a defect.
  • A cellular sheaf is a discrete connection: stalks are frames, restriction maps are transports, global sections are flat assignments, and \(\Delta_{\mathcal{F}}\) measures the obstruction.
  • A sheaf GNN is permutation-equivariant and gauge-equivariant — the graph and gauge rows simultaneously.
  • The cost is \(d \times d\) per edge, which is why diagonal maps keep proving sufficient, and theory that applies to the linear diffusion rather than the trained network.

References