Identifiable Equivariant Networks are Layerwise Equivariant
Vahid Shahverdi, Giovanni Luca Marchetti, Georg Bökman, Kathlén Kohn
TL;DR
This work proves that end-to-end $G$-equivariance in a deep network implies layerwise $G$-equivariance on latent spaces, provided the model is weakly identifiable. Using an abstract, architecture-agnostic formalism, the authors show that latent actions can be chosen so each layer becomes equivariant, with the overall $G$-action factoring through per-layer symmetry groups. The results apply to a broad class of architectures, including MLPs and multi-head attention, and are supported by illustrative CIFAR-10 experiments that reveal mirror and head-permutation symmetries in learned weights. This theory offers a mathematical explanation for the observed emergence of equivariant structures during training and clarifies when end-to-end symmetry can be realized through layerwise equivariance. The work highlights practical implications for designing equivariant layers and informs the ongoing discussion about learning versus imposing symmetry priors in neural networks.
Abstract
We investigate the relation between end-to-end equivariance and layerwise equivariance in deep neural networks. We prove the following: For a network whose end-to-end function is equivariant with respect to group actions on the input and output spaces, there is a parameter choice yielding the same end-to-end function such that its layers are equivariant with respect to some group actions on the latent spaces. Our result assumes that the parameters of the model are identifiable in an appropriate sense. This identifiability property has been established in the literature for a large class of networks, to which our results apply immediately, while it is conjectural for others. The theory we develop is grounded in an abstract formalism, and is therefore architecture-agnostic. Overall, our results provide a mathematical explanation for the emergence of equivariant structures in the weights of neural networks during training -- a phenomenon that is consistently observed in practice.
