Manuscript Offprint
arXiv:2608.30417No Equivariant Architecture Covers All Equivariant Attention
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
TIKUN ÖNG
ABSTRACT. We give a complete characterization of equivariant multi-head self-attention (MHSA): if an MHSA layer is equivariant to a symmetry group G, then G can only act by permuting head-clusters, with QK and OV matrices satisfying an equivariance constraint tied to the group action. As a consequence, we prove that any fixed MHSA architecture that achieves exact equivariance by polynomially parameterizing unconstrained MHSA parameters inevitably leads to expressivity loss within the class of equivariant maps: the equivariance locus of unconstrained MHSA forms a union of extremely many Zariski-irreducible components in a reduced parameter space, and any single architecture covers at most one. For acting on C copies of the regular representation as the token feature space, we show that there are components for eight attention heads.
CONTENTS
- Introduction 1
- Related Work 2
- Preliminaries: MHSA and Reduced MHSA 3
- The Structure Theorem for Equivariant MHSA 3
- Proof of Theorem 2 6
- No Single Equivariant Architecture Covers All Equivariant MHSAs 8
- Geometry of the Equivariance Locus 9
- Conclusion and Open Problems 15
References 16
Appendix A. Equivariant Vector Bundles 18
Much effort has been dedicated to designing equivariant architectures. In fact, convolutions are exactly functions that are equivariant to translations. The generalization of convolutions to arbitrary symmetry groups led to the group convolutional neural networks (GCNNs) (Cohen and Welling, 2016; Weiler et al., 2018; Kondor and Trivedi, 2018; Bekkers et al., 2018; Cohen et al., 2020).
Email: tikunong@gmail.com.
TÍKUN ÖNG
Attention (Vaswani et al., 2017) has become a paradigmatic primitive for modern state of the art models. In vision (Dosovitskiy et al., 2021), image patches are interpreted as a sequence of tokens to be processed by multi-head self-attention (MHSA), and the resulting architecture is the Vision Transformer (ViT). Many current widely used vision models are based on variants of the ViT (Liu et al., 2021; Siméoni et al., 2025). Rather recently, there have been several works on making attention equivariant (Romero and Cordonnier, 2021; Xu et al., 2023; Fu et al., 2026), including a line of work showing advantages in efficiency at matched accuracy (Bökman et al., 2025; Nordström et al., 2026; Öng and Bökman, 2026).
While equivariance encodes the correct inductive bias, it is not clear whether imposing layerwise equivariance, which is the most common approach to equivariant learning, could be too rigid. The slightly more precise question we ask is: given some fixed layer, can a constrained version of that layer represent exactly those functions that are both equivariant and representable by the unconstrained one, and nothing more? Note that this is true for linear layers, for which the constrained layer would be a convolution.
In this paper, we prove a structure theorem for equivariant MHSA. That is, assuming that a symmetry group acts on some token feature space V, we give a complete characterization of maps that are both G-equivariant and expressible as a multi-head self-attention.
Based on this result, we show, using algebraic geometry, that the space of equivariant functions is very intricate: it is a union of extremely many “components”, and any given architecture (way of constraining equivariance) can cover at most one component. Hence, an MHSA with hard equivariance constraints can never represent all equivariant functions representable by the unconstrained MHSA. Moreover, as the feature dimension grows, the number of these components proliferates. This serves as a mathematically rigorous mechanism consistent with Sutton (2019), where it is claimed that careful architectural designs to impose inductive bias often do not scale well.
2. Related Work
Equivariant architectures. Most existing equivariant neural network architectures are equivariant convolutional neural networks (Cohen and Welling, 2016; Kondor and Trivedi, 2018; Bekkers et al., 2018; Weiler and Cesa, 2019; Weiler et al., 2018; Cohen et al., 2020; Finzi et al., 2020; Weiler et al., 2021, 2026). This paper says nothing about these. Equivariant transformers, on the other hand, rely on equivariant attention, which is the topic of this paper and has been achieved either by lifting features to functions on the group (Hutchinson et al., 2021; Romero and Cordonnier, 2021; Xu et al., 2023; Fu et al., 2026) or working directly in the Fourier space (Fuchs et al., 2020; Bökman et al., 2025; Nordström et al., 2026; Öng and Bökman, 2026).
Universality. Universality of equivariant networks is usually studied in the approximate sense, i.e., uniform convergence on compact sets, for shallow or deep MLPs (Yarotsky, 2018; Ravanbakhsh, 2020; Pacini et al., 2025). Our work concerns exact representation of MHSA, which is what enables the irreducible-component counting in Section 7. We do not say anything about the structure of an MHSA layer that is approximately equivariant.
Identifiability and neuroalgebraic geometry. Identifiability refers to the ability to recover the parameters of a model, up to certain predefined “gauge symmetries”, from the function it represents. Shahverdi et al. (2026) observes that identifiability together with the so-called adjunction property implies layerwise equivariance for equivariant functions. Henry et al. (2026) establishes identifiability for lightning (“linear”, without softmax) self-attention. More recently, Henry (2026) characterizes the generic fiber of ordinary MHSA. The problem of understanding the image and fibers of the realization map of a neural network can sometimes be studied using tools from algebraic geometry. This is the neuroalgebraic geometry program Marchetti et al. (2025). For example, Kohn et al. (2025) study the equivariance locus of a two-layer linear network for cyclic and permutation groups. The irreducible components they find have the same origin as the ones described in Section 7.
3. Preliminaries: MHSA and Reduced MHSA
Let be any finite-dimensional inner product space with an orthogonal decomposition into heads. For four linear maps , the multi-head self-attention on tokens with respect to the given orthogonal decomposition is given by
where is a token sequence and is the orthogonal projection onto the -th head. Clearly, Eq. (1) depends only on (where is the adjoint/transpose) and , the QK and OV matrices in the terminology of Elhage et al. (2021). This motivates the following definition:
Definition 1. For and with , we define reduced multi-head self-attention (RMHSA) to be
Note that “reduced” refers to the reduction in parameterization redundancy, not in expressive power. Indeed, a priori, RMHSA could have more expressive power than MHSA if the ranks of the and are unconstrained.
4. The Structure Theorem for Equivariant MHSA
The following theorem is the first of our two main results, which completely characterizes the set of parameters, i.e., pairs , for which RMHSA(-; M, R) is G-equivariant. Since MHSA(-; ) = RMHSA(-; ), the corresponding characterization for MHSA is immediate. We will sometimes refer to this set of parameters as the equivariance locus.
Theorem 2 (Structure of equivariant MHSA). Let be any group and a finite-dimensional orthogonal -representation. Assume . For any and , the map is -equivariant if and only if there is a surjective map , where is a -set, such that:
(1) is constant along the fibers of . Let for any .
(2) The map is G-equivariant on . That is, .
(3) The map is G-equivariant on and zero on .
The proof is found in Section 5.
Intuitively, the map groups together attention heads that share the same attention bilinear form , and only the sum of the output-projection-value map within each group is subject to equivariance. The data action on define a recurring object in the rest of the paper, especially in the proof of Theorem 9, so we will give it a name:
TÍKUN ÔNG
Definition 3. Let be a finite set and any group. A -clustering is a -set together with a surjective map . A partial -clustering is a disjoint union , where is a -set, together with a surjective map . If is another partial -clustering, a map of partial -clusterings is a map such that and is -equivariant:

(3)
The map f is an isomorphism if it is bijective.
As a consequence of our definition, there is at most one map between two partial G-clusterings. The only implication of this that will be useful for us is the following: if two partial G-clusterings are isomorphic, then there is a unique isomorphism between them. So, it is always harmless to simply identify them without specifying the isomorphism. See Fig. 1 for all possible for three heads and up to isomorphism. We will sometimes simply write or just to refer to a partial G-clustering, omitting the data specifying the G-action and partition of Y from the notation.
Example 1. For any G and H, there is always a G-clustering obtained by taking the identity map Id : together with the trivial G-action on H. This G-clustering will be denoted by Id.

FIGURE 1. All 33 partial -clusterings of up to isomorphism.
We can now rephrase Theorem 2 in this slightly more technical and condensed language, which will make our discussion in Section 7 easier. First, note that a partial G-clustering (in fact any surjective map) induces two maps,
(4)
which are indeed adjoints of each other.
Theorem 4. Given , reduced multi-head self-attention RMHSA(-; M, R) : for tokens is G-equivariant if and only if there is a partial G-clustering such that the following are true:
- There exists such that and is G-equivariant on .
• Let . Then is G-equivariant on and zero on .
When the attention bilinear forms are pairwise distinct, a weaker version of Theorem 2 can be obtained by combining the generic identifiability result of Henry (2026) with the framework of Shahverdi et al. (2026), which builds on Marchetti et al. (2024). Theorem 2 is stronger in that it is a global statement: it also describes nongeneric parameter configurations in which several heads share the same attention bilinear form. In this case, the individual effective value maps are not identifiable; only their sums over the corresponding fibers are intrinsic, as noted by Cirrincione (2026), and required to respect equivariance. The global form is crucial to the proof of Theorem 9: it gives a Zariski-closed cover of the equivariance locus (see Section 7), and having control of every member of the cover is necessary for proving maximality of the counted irreducible components.
Example 2. Let with two attention heads . If and , then is bijective and acts on . There are two possibilities: either (a) the action is trivial or (b) and . In case (a), and are in for all . In case (b), and are related by , and similarly .
Example 3. For one head, i.e., , and , the equivariance conditions become , recovering Theorem 1 of Öng and Bökman (2026).
Example 4. Consider an arbitrary finite group . Take , acted on by by left multiplication. In this case, the equivariance condition reads and similarly for the . In particular, this means and , with and unconstrained.
For a Lie group , the connected component of the identity must act trivially on the heads (more precisely on ). That is, there is again a surjective map , where carries a -action, for which the equivariance conditions in Theorem 2 hold. However, acts on trivially, so we equivalently have a -action, where is the group of connected components. As a consequence, if is connected, each head must be -stable.
Without loss of generality take , which must act trivially because the order of every permutation divides .
TÍKUN ÔNG
Example 5. (or any other connected Lie group) is connected, so is trivial, and we have for any .
Example 6. has two connected components, so . In this case, the and still commute with for all , but it can happen that carries some to , for which we have and .
5. Proof of Theorem 2
The direction is direct computation:
(5)
We now prove .
The equivariance condition for tokens and heads reads
for all . Hence,
where and . Setting all tokens to the same yields , or . Now, set , , and in Eq. (7) to get
Cancelling out yields
Or, writing
Differentiating Eq. (10) n times with respect to x at x = 0 yields
Here, the superscript denotes the n-th derivative of a function.
Lemma 5. If is an integer larger than one, then for all .
Proof. Let . We can rewrite the sigmoid-like function as
Thus
which can be related to the Eulerian polynomials for (the claim is clearly true for ):
So . But is a monic polynomial with constant term 1, so by the rational root theorem, the only possible rational roots are .
Thus, if the number of tokens is at least three, then for all we have
or
Lemma 6. Let V be a finite dimensional real vector space and let be finite indexed families in . Suppose
Partition such that . Then for all .
Proof. Roughly speaking, the proof idea is to first prove the claim pointwise and then employ a density argument.
Let
Then S is nonempty and open.
Fix . Find that separates the , i.e. . Furthermore, we may assume ( because ). Define for any . Then, evaluated on Eq. (17) reads
First, suppose for all . Then the are nonzero and pairwise distinct. Thus, the matrix with entries , is invertible, so for all and .
If for some ( for some ), then the same argument still implies for and , which in turn implies since (Eq. (17) at ).
TÍKUN ÔNG

FIGURE 2. Illustration of the argument that applies Lemma 6 to Eq. (16) to get a partial G-clustering.
Hence, for all and . Since is nonempty and open, .
Applied to Eq. (16), the summation index set is , partitioned by the values of and . Partition by , and write for any and . Clearly, we have are in some . That is, the partition of must be coarser than . Define
Define a map as follows: Take . Then by construction. So, by Lemma 6, there must be exactly one such that and . But then , so must belong to . Put . If , then , so is bijective.
Next, we show that is an antihomomorphism. Take and . Let , . Then and , so , i.e., . That is, .
Let act on by . Then , and similarly . So and are -equivariant on . This concludes the proof of Theorem 4, equivalently Theorem 2, where the partial -clustering is given by the natural surjection giving the partition. This last argument is illustrated in Fig. 2.
Finally, we would like to remark that the same technique can be used to prove the following identifiability result, which slightly generalizes Henry (2026):
Theorem 7. Suppose and satisfy
for some . Then
for any .
6. No Single Equivariant Architecture Covers All Equivariant MHSAs
We now discuss our second main result, built on Theorem 2, which is, roughly speaking: “An unconstrained MHSA can represent many more G-equivariant functions than a polynomially parameterized MHSA with exact G-equivariance.” We will quantify this lack of expressivity by counting how many polynomially parameterized models are needed in order to represent all G-equivariant MHSAs. This motivates the following definition:
Definition 8. Let be an inner product space with orthogonal decomposition . Let be any real vector space (parameter space), and let be polynomial. We define the polynomially parameterized MHSA to be the parameterized map
(23)
If is an orthogonal -representation, a family is -complete if each represents only -equivariant maps and any -equivariant map expressible by MHSA can be expressed by for some .
Let denote the number of maximal subrepresentations such that up to isomorphism. For example, if and , then there are two such subrepresentations: and , so .
Theorem 9. Suppose is finite. -complete family of polynomially parameterized MHSA with equal head dimensions necessarily contains at least elements (models).
The proof (Section 7) involves understanding the Zariski-irreducible components of the equivariance locus in the RMHSA parameter space, which we consider to be part of the neuroalgebraic geometry program (Marchetti et al., 2025). These components have the same algebraic origin as the ones in equivariant linear networks (Kohn et al., 2025). The lower bound is obtained by counting only components corresponding to the trivial action on the heads, and including nontrivial actions could only increase the bound.
Example 7. Let be the trivial group acting on , . With , we have , and the lower bound is , which is vacuous.
Example 8. Take , , where is the regular representation. With eight equal-dimension heads, we have , and is the number of C-dimensional subrepresentations up to isomorphism. So
so the bound is . For even , this lower bound is
For (total token dimension = 8C = 768), this is about .
7. Geometry of the Equivariance Locus
The proof is split into three sections. Section 7.1 merely motivates the machinery we use; the actual proof is completely contained in Sections 7.2, 7.3, and 7.4.
TÍKUN ÔNG
7.1. Motivation: Equivariant Vector Bundles
In the proof, we will make heavy use of equivariant vector bundles, the definition and properties of which are reviewed in Appendix A. This is but a convenient way to pack a lot of information into one single object, motivated in three steps as follows:
(1) Let be -representations. Suppose we want to study the family of -equivariant linear maps with . It is true that any such factorizes through some -representation of dimension . That is, with and . Thus, , where , and ranges over all -representations of dimension at most up to isomorphism.
(2) Fix a tuple of integers , one for each head. Suppose we now want to study the family of tuples such that each has rank at most . The same argument in (1) applies headwise, so, for each , we can find , where each is a -representation of dimension at most , such that . Now, pack the into , and define , which is a -representation. Let be the set of tuples such that there exists satisfying , where projects onto the -th summand. Hence, we have . Nothing fancy is done: we simply repackaged the into one object, , which is an equivariant bundle with trivial action on the base space . This could seem somewhat ad-hoc, since each fiber is really just an independent -representation. In particular , and is also a product.
(3) Finally, let be a homogeneous space, and let denote the identity coset of . Suppose we want to study the family of tuples such that is -equivariant and for each . That is, , which is exactly the equivariance condition in Theorem 2. The family is not a product over anymore because determines all the other for . However, (1) still applies to for the subgroup : because , we have , so there is a -representation of dimension at most such that
By Frobenius reciprocity,
canonically, so any decomposition with respect to Eq. (25) gives two G-equivariant maps: and . Now, is nothing but the space of sections of the associated bundle (where we view as a principal K-bundle), and it is easily shown (see Appendix A) that the entire tuple is given by , where again projects onto the h-th fiber. The upshot is that still holds with the same definition of , but now the union is taken over all G-equivariant vector bundles over , which are in bijection with K-representations via . In this case, the rank constraint is equivalent to .
In the context of Theorem 2, and we are given a partial G-clustering , and the objective is to study the family of tuples satisfying and for all (and similarly for the with slightly different rank constraints). If (which means a trivial action on with , see Example 1), then we are in case (2). In the general case, decompose into G-orbits, and apply (3) to each orbit to get an equivariant bundle , which can then be assembled into an equivariant bundle over , where the local ranks can depend on the orbit.
7.2. Step 0: Setup and Notations
We will start by fixing some notations. Recall the setting: the token feature space V is a finite-dimensional orthogonal G-representation with some given orthogonal decomposition . Assume .
For a G-equivariant vector bundle , define
This is the set of all elements in that satisfy the equivariance condition and factor through the bundle in the sense of (3) of Section 7.1.
For , define
which is the family of elements in that satisfy the same equivariance condition and are rank constrained by , i.e., what we called in Section 7.1.
Let be the set of equivalence classes of maximal -rank-bounded subbundles of (Definition 15) up to bundle isomorphisms, where maximality is defined with respect to inclusions. Then, the argument in Section 7.1 is formalized as
See Lemma 17 in Appendix A for a proof.
Define
(30)
That is, is the subset of the RMHSA equivariance locus satisfying the rank constraints defining .
For each partial G-clustering , define the attention width and value width as
(31)
TÍKUN ÔNG
Now, set
where and are defined in Eq. (28). The set is the subset of consisting of the RMHSA parameters corresponding to the partial G-clustering , rank-constrained by the attention and value widths. Clearly, \mathcal{E}^\chi = \mathcal{E}^\chi' if . By Theorem 4, we have , where the union is taken over all partial G-clusterings up to isomorphism.
For and , define
Proposition 10. .
Proof. This is a straightforward consequence of Lemma 17, more precisely of Eq. (29).
7.3. Step 1: Geometry of the Equivariance Locus in the RMHSA Parameter Space
In the following (especially in Section 7.4), we will let denote the realization map of RMHSA. Ultimately, we are interested in the class of functions . However, we will first work in , where algebraic geometry is more easily applicable.
Proposition 11
(1) is Zariski-closed. If is injective (hence bijective), then is irreducible.
(2) For a fixed , if and are not isomorphic, then neither nor contains the other.
(3) Consider the trivial G-clustering Id : (Example 1). For any and without zero fibers (i.e. for all ), the set is an irreducible component (i.e., maximal irreducible subset) of .
Proof.
(1)
Since is an injective linear map, the set , as defined by Eq. (33), is closed by Lemma 18.
If is injective, then without loss of generality , in which case . So Eq. (33) reduces to
This is irreducible because it is a Cartesian product of irreducible sets. More precisely, (defined in Eq. (30)) is rectangular with respect to , and both and are irreducible by Lemma 18.
(2)
Suppose . Then
Apply to both sides to get . Similarly, we have
Again, apply to get .
By Lemma 18, is isomorphic to a subbundle of and is isomorphic to a subbundle of .
By maximality, we must have and .
(3)
By (1), is irreducible. It remains to show maximality. Suppose for some partial G-clustering . If , that is, , , and acts on trivially, then we must have by (2), assuming without loss of generality. Thus, suppose . There are three (not mutually exclusive) possibilities:
(a)
(b) has a nontrivial fiber
(c) and the G-action on is not trivial.
In each of these three cases, we can show is not empty:
In case (a), we can find such that .
In case (b), suppose with . Find such that .
In case (c), we may assume and is injective, and suppose with .
Then simply take such that .
Corollary 12. Let be a polynomial map, where is a finite-dimensional real vector space. Define
If , then there is a triple such that .
Proof. implies . Since the are Zariski-closed, each is closed in . But is irreducible: it is the image of an irreducible set under a polynomial map. Thus, for some .
Corollary 13. The set has at least irreducible components, where the subscript “+” means bundles with zero fibers are excluded.
Note that , where we think of as the -equivariant vector bundle over one point. Equivalently, consists of equivalence classes of maximal -subrepresentations of dimension at most . In the main text, is denoted by .
Example 9.
(1) Let act on by , which is irreducible (and equivalent to ). Then because there are no one-dimensional subrepresentations.
This needs some care. is rectangular, and the projection can be also split accordingly into (slight abuse of notation). Then use and the injectivity of .
Similarly, the left hand side is , and on the second factor recovers .
TÍKUN ÔNG
(2) For the regular representation of the dihedral group , which decomposes as , we have
7.4. Step 2: Passing to the Function Space
Corollary 13 is a statement made in the parameter space of RMHSA. Transferring this to the function space requires modding out permutations:
Proposition 14. Suppose , with and , . Then there is a and a permutation such that and and , where , denote the permuted bundles.
If all heads have the same dimension , then the same statement holds with and .
(Note: we have implicitly identified with Id, which is harmless because there is only one isomorphism.)
Proof. Let
where
Then is dense in , since and do not have zero fibers.
Take . There is some for which . By Theorem 7, for any , a necessary condition for is .
Take any . If is not injective, then . Thus, suppose is injective. If , then . Finally, assume is injective and , but for distinct points and . By Theorem 7, there must exist an such that . But then , so again . In other words, we must have . Again by Theorem 7, there is a permutation such that , where denotes the permuted bundle.
Hence, we have shown
Since are irreducible (Lemma 18(1)), taking the closure of both sides yields
Again by irreducibility, for some and , which is equivalent to and . By Lemma 18(2), and .
If the head dimensions are equal, then and by maximality of and among -rank-bounded subbundles of .
Finally, we prove Theorem 9. Let be the uniform head dimension. Recall that the (rank-bounded) equivariance locus in the RMHSA parameter space is the union of the , which are Zariski-closed. Express this as . Proposition 14 identifies a subset , namely those with and , with the following property: there is an -action on such that if with and finite , then we can find a such that are in the same -orbit.
Now, let be a finite (otherwise there is nothing to prove) -complete family of polynomially parameterized MHSA. By Corollary 12, there is a map such that . By -completeness, we have . That is, for any , we have . Proposition 14 then implies there is a such that and are in the same -orbit. That is,
or,
That is,
8. Conclusion and Open Problems
We prove two theorems, Theorem 2, which characterizes the equivariance locus of MHSA for tokens and any group, and Theorem 9, which gives a lower bound on the number of equivariant architectures needed to recover all equivariant functions expressible by the unconstrained MHSA. Hence, the answer to the question “can a constrained MHSA express exactly the equivariant functions expressible by the unconstrained MHSA, and nothing more?” is no in general, with the lower bound of architectures needed given by , scaling as for copies of the regular representation of with eight heads and even . We would like to remark that our MHSA setting is quite special on purpose but easily generalizable: the sole effect of the orthogonal decomposition is to limit the ranks of the and the , through the value and attention widths, and our discussions are still valid for arbitrary rank constraints. Theorem 2 could also be easily generalized to different input and output token feature spaces, which is more natural for modular addition, for example.
8.1. Outlook
• Going deeper. Theorem 2 covers a single layer of MHSA. The same characterization question remains open for an entire transformer, or even just for a single transformer block. As a piece of empirical evidence, Nanda et al. (2023) found that one transformer block learns Fourier/irrep structures when trained on a modular addition task, which is equivariant, suggesting a plausible extension of Theorem 2.
- Approximate equivariance. The algebra-geometric approach in the proof of Theorem 9 was effective because exact equivariance is translated to clean algebraic constraints on the RMHSA parameters via Theorem 2. In particular, Theorem 2 says nothing about approximately equivariant architectures. It could well be the case that a single component is “close” to all others.
TÍKUN ÔNG
• Classifying existing architectures. It would be interesting to retrospectively classify all equivariant MHSAs that have been proposed so far against Theorem 2: most architectures would have and injective, but the group action on and the irrep content of each head are genuine design choices.
• Experiments. Numerical experiments illustrating the separation of the components will appear in a subsequent version. These will involve a teacher-student setup: two students, one unconstrained and one equivariant, trained against an equivariant teacher whose head action and irrep types differ from those of the equivariant student.
References
Erik J. Bekkers, Maxime W. Lafarge, Mitko Veta, Koen AJ Eppenhof, Josien PW Pluim, and Remco Duits. Roto-Translation Covariant Convolutional Networks for Medical Image Analysis, April 2018. URL https://arxiv.org/abs/1804.03393v3.
Georg Bökman, David Nordström, and Fredrik Kahl. Flopping for FLOPs: Leveraging equivariance for computational efficiency, June 2025. URL http://arxiv.org/abs/2502.05169. arXiv:2502.05169 [cs].
Giansalvo Cirrincione. Rank, Head-Channel Non-Identifiability, and Symmetry Breaking: A Precise Analysis of Representational Collapse in Transformers, April 2026. URL http://arxiv.org/abs/2604.23681. arXiv:2604.23681 [cs.LG].
Taco Cohen, Mario Geiger, and Maurice Weiler. A General Theory of Equivariant CNNs on Homogeneous Spaces, January 2020. URL http://arxiv.org/abs/1811.02017. arXiv:1811.02017 [cs].
Taco S. Cohen and Max Welling. Group Equivariant Convolutional Networks, February 2016. URL https://arxiv.org/abs/1602.07576v3.
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale, June 2021. URL http://arxiv.org/abs/2010.11929. arXiv:2010.11929 [cs].
Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. A Mathematical Framework for Transformer Circuits. Transformer Circuits Thread, 2021. URL https://transformer-circuits.pub/2021/framework/index.html.
Marc Finzi, Samuel Stanton, Pavel Izmailov, and Andrew Gordon Wilson. Generalizing Convolutional Neural Networks for Equivariance to Lie Groups on Arbitrary Continuous Data, September 2020. URL http://arxiv.org/abs/2002.12880. arXiv:2002.12880 [cs, stat].
Jiahong Fu, Qi Xie, Deyu Meng, and Zongben Xu. Vanilla Group Equivariant Vision Transformer: Simple and Effective, February 2026. URL http://arxiv.org/abs/2602.08047. arXiv:2602.08047 [cs].
Fabian B. Fuchs, Daniel E. Worrall, Volker Fischer, and Max Welling. SE(3)-Transformers: 3D Roto-Translation Equivariant Attention Networks, November 2020. URL http://arxiv.org/abs/2006.10503. arXiv:2006.10503 [cs].
Nathan W. Henry. Generic Fibers and Functional Dimension of Multi-Head Attention. In ICML 2026 Workshop on Weight-Space Symmetries: from Foundations to Practical Applications, 2026. URL https://openreview.net/forum?id=7vPmnHdAP1.
Nathan W. Henry, Giovanni Luca Marchetti, and Kathlén Kohn. Geometry of Lightning Self-Attention: Identifiability and Dimension, June 2026. URL http://arxiv.org/abs/2408.17221. arXiv:2408.17221 [cs.LG].
Michael Hutchinson, Charline Le Lan, Sheheryar Zaidi, Emilien Dupont, Yee Whye Teh, and Hyunjik Kim. LieTransformer: Equivariant self-attention for Lie Groups, June 2021. URL http://arxiv.org/abs/2012.10885. arXiv:2012.10885 [cs].
Kathlén Kohn, Anna-Laura Sattelberger, and Vahid Shahverdi. Geometry of Linear Neural Networks: Equivariance and Invariance Under Permutation Groups. SIAM J. Matrix Anal. Appl., 46(2):1378–1415, June 2025. ISSN 0895-4798, 1095-7162. doi: 10.1137/24M166053X. URL https://epubs.siam.org/doi/10.1137/24M166053X.
Risi Kondor and Shubhendu Trivedi. On the Generalization of Equivariance and Convolution in Neural Networks to the Action of Compact Groups, November 2018. URL http://arxiv.org/abs/1802.03690. arXiv:1802.03690 [stat].
Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin Transformer: Hierarchical Vision Transformer using Shifted Windows, August 2021. URL http://arxiv.org/abs/2103.14030. arXiv:2103.14030 [cs].
Giovanni Luca Marchetti, Christopher Hillar, Danica Kragic, and Sophia Sanborn. Harmonics of Learning: Universal Fourier Features Emerge in Invariant Networks, June 2024. URL http://arxiv.org/abs/2312.08550. arXiv:2312.08550 [cs.LG].
Giovanni Luca Marchetti, Vahid Shahverdi, Stefano Mereta, Matthew Trager, and Kathlén Kohn. Algebra Unveils Deep Learning – An Invitation to Neuroalgebraic Geometry, May 2025. URL http://arxiv.org/abs/2501.18915. arXiv:2501.18915 [cs.LG].
Neel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith, and Jacob Steinhardt. Progress measures for grokking via mechanistic interpretability, January 2023. URL https://arxiv.org/abs/2301.05217v3.
David Nordström, Johan Edstedt, Fredrik Kahl, and Georg Bökman. Quick ViTs: Speeding up Vision Transformers through Equivariance, July 2026. URL http://arxiv.org/abs/2505.15441. arXiv:2505.15441 [cs.CV].
Marco Pacini, Mircea Petrache, Bruno Lepri, Shubhendu Trivedi, and Robin Walters. On Universality of Deep Equivariant Networks, October 2025. URL http://arxiv.org/abs/2510.15814. arXiv:2510.15814 [stat].
Siamak Ravanbakhsh. Universal Equivariant Multilayer Perceptrons. In Proceedings of the 37th International Conference on Machine Learning, pages 7996–8006. PMLR, November 2020. URL https://proceedings.mlr.press/v119/ravanbakhsh20a.html.
David W. Romero and Jean-Baptiste Cordonnier. Group Equivariant Stand-Alone Self-Attention For Vision, March 2021. URL http://arxiv.org/abs/2010.00977. arXiv:2010.00977 [cs].
Vahid Shahverdi, Giovanni Luca Marchetti, Georg Bökman, and Kathlén Kohn. Identifiable Equivariant Networks are Layerwise Equivariant, May 2026. URL http://arxiv.org/abs/2601.21645. arXiv:2601.21645 [cs.LG].
Oriane Siméoni, Huy V. Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, Francisco Massa, Daniel Haziza, Luca Wehrstedt, Jianyuan Wang, Timothée Darcet, Théo Moutakanni, Leonel Sentana, Claire Roberts, Andrea Vedaldi, Jamie Tolan, John Brandt, Camille Couprie, Julien Mairal, Hervé Jégou, Patrick Labatut, and Piotr Bojanowski. DI-NOv3, August 2025. URL http://arxiv.org/abs/2508.10104. arXiv:2508.10104 [cs.CV].
Richard Sutton. The Bitter Lesson, 2019. URL http://www.incompleteideas.net/IncIdeas/BitterLesson.html.
TIKUN ÖNG
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention Is All You Need, December 2017. URL http://arxiv.org/abs/1706.03762. arXiv:1706.03762 [cs].
Maurice Weiler and Gabriele Cesa. General E(2)-Equivariant Steerable CNNs. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper/2019/hash/45d6637b718d0f24a237069fe41b0db4-Abstract.html.
Maurice Weiler, Mario Geiger, Max Welling, Wouter Boomsma, and Taco Cohen. 3D Steerable CNNs: Learning Rotationally Equivariant Features in Volumetric Data, October 2018. URL http://arxiv.org/abs/1807.02547. arXiv:1807.02547 [cs].
Maurice Weiler, Patrick Forré, Erik Verlinde, and Max Welling. Coordinate Independent Convolutional Networks – Isometry and Gauge Equivariant Convolutions on Riemannian Manifolds, June 2021. URL http://arxiv.org/abs/2106.06020. arXiv:2106.06020 [cs.LG].
Maurice Weiler, Patrick Forré, Erik Verlinde, and Max Welling. Equivariant and Coordinate Independent Convolutional Networks: A Gauge Field Theory of Neural Networks. Progress in Data Science. World Scientific, 2026. ISBN 978-981-98-0662-1. doi: 10.1142/14143.
Renjun Xu, Kaifan Yang, Ke Liu, and Fengxiang He. -Equivariant Vision Transformer, July 2023. URL http://arxiv.org/abs/2306.06722. arXiv:2306.06722 [cs].
Dmitry Yarotsky. Universal approximations of invariant maps by neural networks, April 2018. URL http://arxiv.org/abs/1804.10306. arXiv:1804.10306 [cs.NE].
Tikun Öng and Georg Bökman. A Unified Framework for Vision Transformers Equivariant to Discrete Subgroups of , June 2026. URL http://arxiv.org/abs/2606.27864. arXiv:2606.27864 [cs.CV].
Appendix A. Equivariant Vector Bundles
Here, we review the notion of equivariant vector bundles, which are used in Section 7 to decompose the equivariance locus in the parameter space of RMHSA. For our purpose, it is enough to consider finite G-sets as base spaces.
While we worked with an arbitrary group G in Section 5 and Theorem 2, we will assume G is finite in this section.
Definition 15. A G-equivariant vector bundle is a G-equivariant surjective map , where are G-sets, is finite, is a finite-dimensional vector space for each , and is linear.
(1) A section is a map such that . The space of sections is denoted by and is isomorphic to . It is a -representation through the action . For , define the evaluation map as , . Identifying with the corresponding subspace of , we may think of as belonging to .
(2) The local rank is , and depends only on the orbit of .
(3) If is another G-equivariant vector bundle over , a bundle homomorphism is a G-equivariant map such that and is linear.
(4) A subbundle is a G-stable subset such that is a linear subspace of for each .
(5) Given a prescribed function , a bundle is said to be -rank-bounded if for all .
We will always assume that each fiber is equipped with an inner product such that the induced inner product on is G-invariant.
Recall that is the set of equivalence classes of maximal -rank-bounded subbundles of up to bundle isomorphisms (see Section 7.2).
Example 10. For any G-set X and any G-representation V, we can construct the product bundle , where G acts on both factors in .
Example 11. Let be a subgroup and let be a -representation. Let where for . Then , is a -equivariant vector bundle, and . For any -representation , there is a canonical isomorphism given as follows: if , define by setting . This is well-defined: if , then because is -equivariant. It is easy to check that the map is -equivariant. Similarly, we also have adjunction in the other direction .
Lemma 16. The map is G-equivariant.
Proof. Take a section . Then
Since was arbitrary, we have .
The motivation to consider equivariant vector bundles is the following lemma:
Lemma 17. Let and an arbitrary function. The following are equivalent:
(1) The map is G-equivariant, and for all .
(2) There exists a maximal -rank-bounded subbundle and equivariant linear maps such that for all .
More concisely (this is Eq. (29)),
Proof. We may assume is a homogeneous space. The general statement is recovered by considering each orbit separately. In this case, is just a nonnegative integer.
(1) (2)
Let be the coset of the identity of (i.e. but we use the notation to emphasize that we think of it as a point). Then . Let be a maximal -subrepresentation of dimension at most containing . We can then find , such that . Let as in Example 11. Set and (see Example 11), for which . Moreover, , so .
(2) (1)
By Lemma 16, we have .
Lemma 18.
(1) is Zariski-closed in and irreducible.
(2) If are subbundles of and , then is isomorphic to a subbundle of .
TIKUN ÖNG
Proof.
(1)
D is irreducible because it is the image of an affine space under a polynomial map.
We may assume is a homogeneous space; the general case follows from considering each orbit separately and the fact that the Cartesian product of two Zariski-closed sets is closed.
Let be the fiber above the coset of the identity. Consider the map
The map is a biregular isomorphism from onto , and is closed. Moreover, we have , where . It is easy to check that is closed (decompose into irreps of , then consists of exactly those equivariant endomorphisms with per-irrep rank constraints). Therefore, also is closed in .
(2)
Again, we may assume . Let be the fibers over of and respectively. Since , the fibers are subrepresentations of . Then is equivalent to . Clearly, this can only happen if embeds -equivariantly into , from which it follows that is isomorphic to a subbundle of .
Email address: tikunong@gmail.com