Equivariance¶
Core Idea¶
Equivariance is the structural pattern in which transforming the input of a map produces a correspondingly transformed output — the map commutes with a group of transformations rather than ignoring them. Formally, f(g·x) = g·f(x): the output does not stay fixed (that would be invariance) but changes in lockstep with the input, so the transformation can be applied before or after the map with the same result.
How would you explain it like I'm…
Move-Together Rule
Turning Together
When Inputs and Outputs Move in Lockstep
Broad Use¶
- Mathematics: An equivariant map between G-sets; representation theory, where intertwining maps commute with group action.
- Physics: Covariance of physical laws under coordinate change — the equations transform consistently so the physics is the same in every frame.
- Machine learning: Convolutional layers are translation-equivariant (shift the image, the feature map shifts identically), the principle behind geometric deep learning.
- Signal processing: A linear time-invariant filter — delay the input, the output is delayed by the same amount.
- Robotics/vision: Pose-equivariant representations where rotating an object rotates its encoding.
Clarity¶
Naming equivariance separates two often-confused notions: a quantity left unchanged by a transformation (invariance) versus a quantity that tracks the transformation predictably (equivariance). It lets designers state precisely whether they want a representation to discard a symmetry or to preserve and carry it forward.
Manages Complexity¶
Equivariance lets one guarantee behavior across an entire orbit of transformed inputs from a single analysis of one representative, collapsing infinitely many cases into one. It bounds the design space of models and laws to those whose structure respects a known symmetry, drastically shrinking what must be learned, proven, or checked.
Abstract Reasoning¶
Recognizing equivariance enables reasoning by symmetry reduction (solve once, transport the solution across the group), supports building inductive bias into models, and clarifies when invariance can be derived from equivariance followed by a symmetric pooling step.
Knowledge Transfer¶
The physicist's covariant equations and the ML engineer's translation-equivariant network are the same structure: a map that commutes with a symmetry group. The insight that pooling an equivariant feature yields an invariant one transfers from harmonic analysis to deep learning unchanged.
Relationships to Other Primes¶
Parents (3) — more general patterns this builds on
- Equivariance is a kind of Invariance — Equivariance is a kind of invariance: under a coordinated transformation of input and output, the map's structural relation to the group is preserved.
- Equivariance is a kind of Symmetry — Equivariance is a specialization of symmetry that requires the map to commute with the group action rather than be fixed by it.
- Equivariance presupposes Function (Mapping) — Equivariance presupposes Function (Mapping): the equivariance property is asserted of a deterministic map between sets carrying group actions.
Path to root: Equivariance → Invariance
Not to Be Confused With¶
- Equivariance is not invariance: invariance means the output is unchanged under the transformation; equivariance means the output transforms correspondingly. Invariance is the special case where the output's group action is trivial.
- It is not symmetry itself (a system unchanged by a group action); equivariance is a property of a map between systems relating their two group actions.
- It is not conjugate variables, which pairs complementary descriptions; equivariance constrains how a single map respects a transformation group.