How Do Transformers Learn to Represent Symmetries?
Eduardo Santos-Escriche, Valerie Engelmayer, Ya-Wei Eileen Lin, Stefanie Jegelka
NeurIPS 2026
TL;DR. We explore the mechanisms that transformers learn in order to become invariant to common angle-preserving symmetries through limited data augmentation.
Abstract. Training Transformer-based architectures with finite data augmentation has become an increasingly popular approach in geometric machine learning. Despite its empirical success, the interplay between the Transformer architecture, invariance to different symmetries, and augmentation budgets remains underexplored. In this paper, we study the ability of a vanilla Transformer to learn various symmetries through finite data augmentation for point cloud datasets. We identify an ordering of increasing learnability across the following symmetry groups: (i) non-angle-preserving symmetries, (ii) angle-preserving symmetries, and (iii) base angle-preserving subgroups, such as translation, rotation, and scale. For the base angle-preserving groups, we further investigate the Transformer's extrapolation behavior and conduct a structural analysis of the trained models, allowing us to identify interpretable mechanisms that induce invariance. Finally, we extend our analysis to equivariant functions and show that the detected mechanisms for approximate invariance can also provide a key building block for learned equivariance. Our implementation is available at https://github.com/valerie-engel/transformers_learn_symmetries.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) Summary of Scientific Claims and Findings
The paper investigates the capacity of a vanilla Transformer architecture to acquire invariance toward various continuous symmetry groups (e.g., rotation, translation, scale) when trained using limited data augmentation on point cloud and molecular datasets (3D Tetris, ModelNet10, QM9). The primary findings are:
- Transformers learn angle-preserving symmetries more efficiently than non-angle-preserving ones under a finite augmentation budget.
- The authors provide concrete mechanistic accounts (based on attention patterns, LayerNorm homogeneity, and residual connections) for how specific symmetries are implemented within the vanilla transformer blocks.
- The learned invariances can partly extend to held-out, larger transformation magnitudes, demonstrating genuine generalization beyond the immediate training regime.
(b) Main Strengths of the Paper
- Technical Rigor and Depth: The mechanistic analysis, supported by mathematical lemmas and activation-level signatures, is extremely deep and novel.
- Experimental Design: The careful use of a finite augmentation budget and the introduction of the 3D Topology dataset provide highly controlled environments for studying this specific learning process.
- Timeliness: The study addresses the modern shift from relying on baked-in inductive biases toward learning desired symmetries through data augmentation.
(c+d) Weaknesses and questions
The most critical reservations center on:
- Comparative Baseline (The "Transformer Superiority" Claim): The core finding - that Transformers are uniquely suited to these symmetries - is unsupported by the lack of non-Transformer baselines (e.g., DeepSets, PointNet, or equivalent geometric MLPs) trained on the same task and architecture class. The authors must demonstrate that the observed performance is a property of the Transformer mechanism and not merely a consequence of using coordinate-valued tokens in a set processing architecture. Seems that the authors make very broad conclusions from a limited-scale experimentation approach.
- Generalization and Conceptual Leap (Fitting vs. Extrapolation): The current evaluation protocol heavily risks proving that the model has simply successfully mapped and minimized the noise/variation introduced by the training augmentation distribution, rather than achieving extrapolation to a true group-theoretic invariance. The authors must provide strong evidence (e.g., applying the held-out magnitude protocol to all findings, or providing a conceptual argument) that cleanly separates this successful fitting from genuine generalization regarding the group structure. Additionally, the question on why to use KL-divergence vs any other objective function like L2 norm on logits, naturally arises.
- Framing and Scope: The motivational narrative regarding "Equivariance" must be strictly reconciled with the actual experimental findings, which are overwhelmingly focused on "Invariance." The authors must either narrow the scope to Invariance or clearly describe how their findings establish a rigorous path toward Equivariance. Moreover, the readout/pooling is unspecified, although it is central to the invariance claims. Finally, there is no any reasonable guess on why compositional groups, such as SE(3) and Sim(3), are harder to learn.
Final justification
After a discussion phase, all 3 reviewers converged to either "Borderline Accept" or "Accept"; at the same time the authors tried to address the main weaknesses of the paper. So the decision should be to Accept the paper.
Read meta-review
Meta-review
(a) Summary of Scientific Claims and Findings
The paper investigates the capacity of a vanilla Transformer architecture to acquire invariance toward various continuous symmetry groups (e.g., rotation, translation, scale) when trained using limited data augmentation on point cloud and molecular datasets (3D Tetris, ModelNet10, QM9). The primary findings are:
- Transformers learn angle-preserving symmetries more efficiently than non-angle-preserving ones under a finite augmentation budget.
- The authors provide concrete mechanistic accounts (based on attention patterns, LayerNorm homogeneity, and residual connections) for how specific symmetries are implemented within the vanilla transformer blocks.
- The learned invariances can partly extend to held-out, larger transformation magnitudes, demonstrating genuine generalization beyond the immediate training regime.
(b) Main Strengths of the Paper
- Technical Rigor and Depth: The mechanistic analysis, supported by mathematical lemmas and activation-level signatures, is extremely deep and novel.
- Experimental Design: The careful use of a finite augmentation budget and the introduction of the 3D Topology dataset provide highly controlled environments for studying this specific learning process.
- Timeliness: The study addresses the modern shift from relying on baked-in inductive biases toward learning desired symmetries through data augmentation.
(c+d) Weaknesses and questions
The most critical reservations center on:
- Comparative Baseline (The "Transformer Superiority" Claim): The core finding - that Transformers are uniquely suited to these symmetries - is unsupported by the lack of non-Transformer baselines (e.g., DeepSets, PointNet, or equivalent geometric MLPs) trained on the same task and architecture class. The authors must demonstrate that the observed performance is a property of the Transformer mechanism and not merely a consequence of using coordinate-valued tokens in a set processing architecture. Seems that the authors make very broad conclusions from a limited-scale experimentation approach.
- Generalization and Conceptual Leap (Fitting vs. Extrapolation): The current evaluation protocol heavily risks proving that the model has simply successfully mapped and minimized the noise/variation introduced by the training augmentation distribution, rather than achieving extrapolation to a true group-theoretic invariance. The authors must provide strong evidence (e.g., applying the held-out magnitude protocol to all findings, or providing a conceptual argument) that cleanly separates this successful fitting from genuine generalization regarding the group structure. Additionally, the question on why to use KL-divergence vs any other objective function like L2 norm on logits, naturally arises.
- Framing and Scope: The motivational narrative regarding "Equivariance" must be strictly reconciled with the actual experimental findings, which are overwhelmingly focused on "Invariance." The authors must either narrow the scope to Invariance or clearly describe how their findings establish a rigorous path toward Equivariance. Moreover, the readout/pooling is unspecified, although it is central to the invariance claims. Finally, there is no any reasonable guess on why compositional groups, such as SE(3) and Sim(3), are harder to learn.
Final justification
After a discussion phase, all 3 reviewers converged to either "Borderline Accept" or "Accept"; at the same time the authors tried to address the main weaknesses of the paper. So the decision should be to Accept the paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors investigate whether a vanilla Transformer can learn geometric invariances through limited data augmentation. They argue that Transformers are aligned with angle-preserving symmetries but perform poorly on non-angle-preserving ones. They also identify interpretable mechanisms explaining how each invariance is implemented.
Strengths and weaknesses
Strengths:
I found the paper to be a pleasant read and well-written. The experiments were well-controlled and constructed systematically - each step followed from the conclusions of the one before it. The theoretical lemmas helped to provide a foundation for the mechanistic claims, with proofs provided to add rigour to the claims. There were clearly some novel results surrounding the vanilla Transformer's performance on which symmetries it could learn well from and which it struggled with. The OOD generalisation experiments in Section 3.2 are a clear contribution to knowledge, showing how learned invariances transfer beyond the training augmentation range for the four base angle preserving groups.
Weaknesses:
My main criticism is that the conclusions the authors make from the experiments that they conducted are far too broad, and may not hold at scale for more advanced Transformer architectures. In particular, the experiments rely on small synthetic datasets (3D Tetris and 3D Topology) and relatively modest real-world benchmarks (ModelNet10 and QM9). Moreover, the architecture is only a vanilla transformer with two blocks, each a single attention head, without positional encodings or masks. It is therefore a considerable stretch to claim in each of their findings that what they found from their experiments hold for Transformers in general.
I also think that it would have been interesting to explore alternative metrics for invariance loss beyond KL-divergence, such as logit-based invariance [1], to further validate whether the vanilla transformer truly learns the proposed invariances. I also feel that the mechanistic analysis (outside of the theorems and accompanying proofs) is largely observational and not definitive: the authors identify properties that correlate with invariance in trained models but this does not necessarily mean that these properties are actually causing the invariance. While the ablations and theoretical lemmas provide supporting evidence of their points of view, I am not convinced that alternative mechanisms cannot be fully ruled out.
One minor point: I found the graphs quite difficult to read at times, mostly because they use different and not very distinctive shades of blue (e.g. Figure 3). I also thought that the text for Figure 4 needs to be reworded as it was difficult initially to understand what I was looking at (e.g. they could say the first row consists of test ... and the second row consists of OOD ...).
[1] On genuine invariance learning without weight-tying - Moskalev et al. (2023)
Update: Following the rebuttals, as per my response to these rebuttals, I have raised my overall score to a 4.
Questions
Q1: The findings are presented as properties of Transformers generally. Can you justify this claim given that only a simple, vanilla architecture was used? Do you have any evidence (even if it is preliminary) that the identified mechanisms and observed symmetry preferences hold for more realistic Transformer architectures?
Q2: Have you considered alternative invariance metrics beyond KL-divergence to validate your findings? How confident are you that this measure truly captures genuine invariance learning rather than merely task-specific behaviour?
Q3: If I'm not wrong, the mechanistic analysis focuses entirely on base symmetry groups. Can you offer any insight (either theoretical or empirical) as to why compositional groups, such as SE(3) and Sim(3), are harder to learn?
Limitations
I am not convinced that the limitations section is comprehensive. The authors state that the limitations are addressed in Section 6, but only the final two sentences contain anything about limitations, and even these are framed more as future work rather than as genuine limitations. At the very least, I think the authors should acknowledge that the mechanistic analysis covers only base symmetry groups, and that their reliance on small synthetic datasets and modest benchmarks limits the scope of their conclusions.
Final justification
I am raising my score to a 4. I think they have addressed the overgeneralisation from a single architecture - with their new experiments they have found that their original findings held across the new Transformer variants. I also think their new DeepSets and PointNet comparisons address the concern that the invariance is a generic property of permutation invariant set processing. They also looked at alternative invariance metrics and found consistent conclusions across all of them. I think these new findings were reported honestly, given that they also presented some results that were not in their favour.
I still think that there is a potential lack of rigour in these new results (e.g how many seeds, no std measures). In order to be fully confident in the raised score, these would need to brought up to the same standard as the rest of the paper in a revised version.
Formatting concerns
None.
6 comments
ModelNet baselines, multi-head robustness, and preliminary O(3)-equivariance results
Following our initial response, we conducted further experimental analyses addressing the reviewer’s questions about the performance on a more realistic point cloud dataset, robustness to common architectural modifications, and whether analogous behavior also arises in equivariant tasks. We would like to share these additional findings.
Additional ModelNet10 baseline and OOD comparisons
First, we applied the out of distribution protocol from Section 3.2 to the Modelnet10 dataset. Then we compared the Transformer with two established permutation-invariant point-cloud baselines, PointNet and DeepSets, under the same ModelNet10 augmentation protocol. We considered in-distribution evaluation for augmentations drawn from SO(3), T(3), Scale(3), SE(3), and Sim(3), with evaluation on disjoint transformation ranges for the base groups SO(3), T(3), and Scale(3).
OOD accuracy on Modelnet10
In distribution, the Transformer achieves a little over 0.8 test accuracy for each SO(3), T(3) and Scale(3). Under transformations from unseen ranges, the performance on Scale(3) remains practically unchanged, while it decreases by about 0.20 on SO(3) and T(3). Overall, this indicates strong generalization of the learned invariances.
Comparison with PointNet
PointNet and the Transformer perform very similarly. Their in-distribution accuracies are closely matched across SO(3), T(3), Scale(3), SE(3), and Sim(3). Their generalization accuracies on disjoint rotation, translation, and scale ranges are also comparable. The main deviations are a small advantage for PointNet under in-distribution SE(3) transformations and a small disadvantage for PointNet under OOD translations. We believe this comparison is informative because the standard PointNet architecture contains learned input- and feature-alignment modules, commonly referred to as T-Nets, that introduce a point-cloud-specific alignment bias. By contrast, the Transformer used in our experiments contains no point-cloud-specific canonicalization or alignment module. Thus, we find it noteworthy that a generic self-attention architecture trained only through data augmentation can match the performance of a model containing learned alignment components tailored to point-cloud processing.
Comparison with DeepSets
The behavior of DeepSets is substantially different. Among the evaluated transformations, DeepSets matches the Transformer’s test and generalization accuracy only for scale augmentations. For in-distribution evaluation, the absolute accuracy gap relative to the Transformer is approximately 0.12 for translations and 0.20 for rotations. On the disjoint transformation ranges, these gaps increase to approximately 0.45 for translations and 0.30 for rotations. In particular, the DeepSets accuracy under unseen translation magnitudes falls close to chance-level performance. DeepSets also remains substantially below the Transformer when augmentations are drawn from the compositional groups SE(3) and Sim(3). These results suggest that the Transformer’s behavior is not simply a consequence of processing the input as an unordered set. DeepSets has the permutation symmetry, but permutation-invariant pooling alone is insufficient to recover the same transformation-range generalization. The contrast is especially pronounced for translation and for groups containing a translation component. We believe that this comparison provides evidence that the pairwise, input-dependent aggregation available to self-attention is relevant in this regime.
Multi-head experiments on ModelNet10
We also repeated the ModelNet10 translation and rotation experiments with a two-head Transformer. Consistent with our previous multi-head results on 3D Tetris, adding a second attention head does not substantially change either task performance or the principal mechanism signatures for T(3) and SO(3). Specifically, the orbit stability of the attention maps and the activation-level indicators associated with the translation and rotation mechanisms remain qualitatively present This extends the architectural robustness observation from the Tetris setting to ModelNet10.
Preliminary evidence for O-equivariant task
To investigate whether a related attention-based structure can also arise for an equivariant vector-valued task, we constructed an additional experiment using the 3D Topology dataset.
For every point in a topology point cloud, the model is trained to predict its corresponding surface-normal vector. Under our row-vector convention, if acts on the input as , the target normals transform according to . We train the Transformer with O(3) data augmentation and a pointwise mean-squared-error objective. With 32 augmentations per training example, the model learns the task accurately. Averaged over three random seeds, the in-distribution test MSE is approximately 0.006. On the disjoint transformation range used for generalization evaluation, the MSE increases by only approximately 0.001, to around 0.007. We additionally measure the mean pointwise equivariance discrepancy between the transformed prediction and the appropriately transformed original prediction. The resulting L1 equivariance error is approximately 0.11 in distribution and 0.15 on the disjoint transformation range. Thus, the model learns approximate pointwise O(3)-equivariance, with only a moderate degradation when evaluated on transformation magnitudes not observed during training.
Our findings are:
Connection to the weighted-sum structure of self-attention
This result suggests a natural extension of the invariant-attention mechanism discussed in the paper. Proposition 4 of Villar et al. (Ref. [26] in the submission) gives an invariant-coefficient characterization of O(d)-equivariant vector functions: an equivariant vector output can be expressed as a weighted sum of input vectors, , where the coefficients are -invariant scalar functions. Self-attention has an analogous weighted-sum structure: . Thus if
(1) and
(2) for ,
then . In the simplified case where the value map acts directly on d-dimensional vector features as , condition (2) becomes . Requiring this identity for every X and every is equivalent to requiring to commute with the standard action of O(d). In that simplified representation, this would restrict to an isotropic map, namely a scalar multiple of the identity.
Attention-map evidence
We first examined condition (1) by measuring the attention-map invariance error under roto-reflections. The error is approximately 0.03 in the first Transformer block and 0.24 in the second block. As a control, we compare the attention maps of unrelated, randomly paired original samples rather than two elements from the same O(3) orbit. The corresponding errors increase to approximately 1.20 in the first block and 1.54 in the second block. The large separation from this random-pair baseline is important: it indicates that the small within-orbit errors are not explained merely by all inputs receiving nearly identical or uniform attention maps. Instead, the attention maps retain substantial input-specific structure while remaining stable under transformations of the same input. Condition (1) is therefore approximately satisfied, particularly in the first block.
The value pathway is not globally isotropic
However, we do not observe a globally isotropic learned value projection. Therefore, the strongest version of condition (2), exact commutation with every on the full ambient input space, is not supported by the learned parameters. The model may satisfy the equivariance relation only approximately on the support of the data and along the augmentation orbits encountered during training. This would permit a more informative, anisotropic value map while maintaining low equivariance error on the relevant subset of inputs. A second, non-exclusive possibility is that end-to-end equivariance is distributed across the input projection, attention layer, residual stream, MLP, and output projection, even though no individual value matrix is exactly equivariant in isolation. The results support the hypothesis that orbit-stable attention maps can provide the invariant scalar coefficients required for equivariant vector aggregation, but additional analysis is needed to determine how the value and residual pathways jointly implement the observed end-to-end behavior.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors investigate when and how easily transformer-based models can learn to be invariant to certain symmetry groups using data augmentation. They observe that angle-preserving symmetries are easy to learn, while the non-angle-preserving ones are harder. The authors identify mechanisms in the transformer that can help induce these invariances.
Strengths and weaknesses
Strengths:
-
The paper is well-written, and the figures are aesthetically pleasing.
-
The phenomena studied in the paper are important, since novel methods are moving away from hard inductive biases towards biases learned via data augmentation.
-
The experimental setup is sound. The authors also introduce a new dataset (3D Topology) that helps in studying the orthogonal group and non-angle-preserving transformation groups.
-
The analysis in Sec. 4 is insightful and can help in designing transformer-based models that maintain a soft bias towards invariance, or in understanding why models fail to learn invariance.
Weaknesses:
-
The authors only study invariance. A broader, more general study of equivariance would have made the paper more interesting.
-
The empirical analysis is somewhat limited due to the usage of the simple vanilla transformer. The current state-of-the-art has moved beyond the simple vanilla self-attention model, and models often use components like pre-LayerNorms, GLU-like blocks, MoEs etc. . I understand that the intention is to build on the vanilla architecture, and I am not requesting experiments with these modern components; they would, however, have been an interesting addition to the paper and could have provided further insights into modern attention-based architectures.
-
The colors used for the figures are hard to distinguish. I would recommend that the authors change the color palette. The worst offenders are Figures 3 and 4, one needs to zoom in and see the plot markers to be able to comprehend the results.
-
The name "symmetry lottery" is somewhat uninspired in my opinion. The name is catchy, but I don't see how this is comparable to "winning the hardware lottery". Other models that have fallen out of trend could also exhibit similar properties regarding symmetries (and, of course, some of them have these inductive biases baked in). Moreover, other recent works (such as ORB-v3 [1]) show that you can still benefit from explicitly biasing the model towards invariance/equivariance using loss terms.
-
Some related work is missing. I recommend adding the previously mentioned [1] to the introduction and broadening the discussion in the appendix with literature on partially equivariant/symmetry-breaking models and techniques, such as [2], [3], [4], [5], [6].
Overall, I believe this is a nice paper that helps us understand how well transformers can learn symmetries, though it is somewhat limited from a practical perspective, given the simplicity of the studied model. I lean towards acceptance and will raise my score based on rebuttal discussions and whether the authors improve their related work discussions.
Questions
-
Could the authors motivate the use of the KL divergence (line 81) as opposed to using something like the L2 norm of the invariance condition, i.e. ?
-
Why wasn't the analysis from Sec. 3.2 also performed, for instance, on ModelNet10 from Sec. 3.1 too? Specifically, the generalization experiments would have been nice for 3.1 as well. Is the dataset a limiting factor? If so, why?
Limitations
The authors have acknowledged that their model is simple and future work would require studying more sophisticated transformer variants. However, I believe that they should make the discussion more explicit.
Final justification
All raised concerns were addressed.
Formatting concerns
No
3 comments
Rebuttal
We thank the reviewer for their detailed and insightful comments, as well as for recognising the importance and soundness of our work.
Scope of the study and its relation to equivariance (W1)
We agree that studying the broader class of equivariant problems rather than only invariance would be a very interesting exploration. Our focus on invariance stems from the intuition that it corresponds to a simpler property, and thus its signature could be easier to find and interpret in Transformer models. In addition, invariance is simultaneously a property commonly sought after in a lot of different relevant applied scenarios, like molecular modeling, particle physics, and medical imaging, and thus of high practical relevance.
At the same time, we believe that our results can still serve as preliminary evidence for the feasibility of similarly learning to model equivariant functions. In particular, there is a concrete theoretical connection between the invariant mechanisms identified in our paper and equivariant computation. Proposition 4 of [B] states that an -equivariant vector function can be expressed as , where the coefficients are -invariant scalar functions. Self-attention has an analogous weighted-sum structure: . Thus, invariant attention coefficients can serve as one ingredient of an equivariant computation. For example, if and for , then . Our rotation analysis provides evidence for the first condition: approximately invariant attention maps along transformation orbits. Therefore, invariant attention maps can be interpreted as a theoretically relevant building block for equivariance.
Modern components beyond vanilla Transformer (W2)
We choose a vanilla Transformer to explore the behavior of just the core components of the architecture, and disambiguate the results from the variable amount and type of additional components currently considered in state-of-the-art models. But we agree that an initial study of the effect of such components would strengthen the relevance of our work, so we investigated two of the most prevalent components in modern approaches: positional encodings and multi-head attention.
First, we ran experiments using geometric variants of ALiBi, RoPE, sinusoidal positional encoding, and relative attention bias. These encodings are computed from the coordinates of the input tokens and not from arbitrary sequence indices. On Tetris, the resulting models have performance and augmentation-budget trends that are very similar to those of the original model. Repeating the mechanistic diagnostics for the base groups also shows that orbit-stable attention maps and the principal activation signatures remain qualitatively present.
Increasing the number of heads to 2 and 4, respectively, leads to marginal gains in accuracy across the groups studied in Section 2, without any observable qualitative changes. We ran additional OOD experiments for those datasets following the setting defined in Section 3.2 and we observed that generalization on SO and Scale slightly improved with the number of heads, with the only noteworthy gain in generalization accuracy by approximately 0.23 on T when moving to 4 heads. The mechanism indicators remain clearly observable in all cases. Contrary to what one might expect, multiple heads do not seem to significantly improve performance of compositional groups either. There is also no observable signature of different heads specializing in different subgroups. While invariance of the respective attention maps may vary between heads, it is often the same head exhibiting the best performance across tested subgroups.
Overall, we interpret these results as further evidence of the predilection of Transformers to develop these particular patterns when trained with limited data augmentation from the considered base symmetry groups, and we will include and discuss them in more detail in the revised manuscript.
Figure color palette (W3)
We intended to keep the color palette consistent throughout the paper, but we agree that in some cases it can hinder the interpretation of the plots and will update the color palette in the revision.
Non-transformer baselines and the meaning of the “Symmetry Lottery” (W4)
Indeed other models could also exhibit similar properties regarding symmetries and explicitly biasing the model towards invariance/equivariance using loss terms is a popular and well performing alternative to the setup studied in our paper. Rather than claiming an intrinsic and general superiority of the Transformer architecture trained with data augmentations for learning symmetries , by “winning the Symmetry Lottery,” we intend to describe a relative hierarchy across symmetry groups for a fixed transformer architecture: some symmetries admit readily accessible mechanisms in the Transformer, whereas others require substantially larger augmentation budgets. We will narrow the “Symmetry Lottery”: once transformers are selected for scalability/hardware reasons, they provide readily accessible mechanisms for several common coordinate symmetries. The term does not mean they are uniquely or uniformly optimal. We will update the description with “compatibility” or “within-architecture inductive bias” and report additional baseline details and results.
In particular, we ran new experiments considering DeepSets and PointNet on the Tetris and Topology datasets. ID, both readily learn SO/O, translation, and scale, and PointNet is broadly comparable to the transformer. DeepSets is much weaker on compositional groups at 32 augmentations (SE/Sim accuracy ≈0.27/0.19); the Topology comparison is less separated. For held-out translations on Tetris, the ID-to-OOD drops are ≈0.80 for DeepSets, ≈0.60 for PointNet, and ≈0.35 for the transformer. Hence the clearest separation is translation OOD generalization. For rotation/reflection/scale, the baselines are comparable, so we will not claim universal transformer superiority.
Additional related work (W5)
We thank the reviewer for the helpful recommendation of additional works. In particular, we agree that [1] would help to more strongly motivate the studied problem and will include it in the introduction. In addition, references [2-6] are also relevant, and we will include a detailed description of such soft / relaxed / approximate equivariant alternatives in the related work section of the Appendix for completeness.
Why use KL divergence rather than an L2 invariance error? (Q1)
In the classification setting, the invariance condition of direct task relevance is equality of predictive distributions. We used KL divergence since it operates directly on the probability simplex, is zero exactly when the two predictive distributions coincide, and weights discrepancies according to the probability mass assigned by the reference prediction. It also ignores a common additive shift of all logits, which leaves the predictive distribution unchanged. By contrast, a raw-logit L2 distance is a stricter, representation-dependent criterion: it can be nonzero even when the two softmax distributions are identical, and it measures changes in logit parameterization in addition to changes in the model's prediction. This makes KL a natural primary measure of task-level predictive invariance.
Following the reviewer’s comment, we included three complementary metrics: symmetric KL divergence, Jensen-Shannon divergence, and the logit-invariance metric of Moskalev et al. [A]. The last is precisely an L2-type alternative based on the squared distance between the logits.
Across the base symmetries on both Tetris and Topology, these metrics give consistent qualitative conclusions. Their correlations with the original KL measure range from moderate to near-perfect: agreement is strongest for Scale, approximately 0.96-1.00, and weakest for Translation, approximately 0.60-1.00. The weaker agreement for Translation is consistent with it being the most difficult OOD case in our experiments. Thus, the main ordering of the symmetries and the mechanistic conclusions are not artifacts of the one-sided KL choice. We will add the motivation above near the metric definition, report the symmetric KL, Jensen-Shannon, and L2-logit sensitivity analysis, and state explicitly that KL measures predictive-distribution invariance while logit L2 measures a stricter internal-output invariance.
Additional generalization experiments (Q2)
To test extrapolation, we applied the disjoint-range protocol of Section 3.2 to the Tetris and Topology datasets. At 32 augmentations per sample, the absolute ID-to-OOD accuracy drops on Tetris are approximately 0.20 for SO(3), 0.20 for O(3), 0.35 for T(3), and 0.00 for Scale(3). On Topology, OOD accuracy is approximately 1.0 for SO(3), O(3), and Scale(3), while translation reaches approximately 0.48, which is still about twice the performance of the corresponding non-augmented transformer. These results indicate that augmentation can produce nontrivial extrapolation to disjoint transformation ranges, but they also show that this extrapolation is symmetry- and dataset-dependent: scale transfers most cleanly, rotations and reflections transfer well on Topology but incur a noticeable Tetris drop, and translation is consistently the most sensitive.
The ModelNet held-out-range experiments are still in progress. Should they not be completed in time, we will explicitly state that the ModelNet evidence for Finding 2 remains in-distribution.
We will include and discuss these additional results in the revised manuscript.
References
[A] On genuine invariance learning without weight-tying - Moskalev et al. (2023)
[B] Scalars are universal: Equivariant machine learning, structured like classical physics - Villar et al. (2021)
Thank you for your response, I believe that the paper will be in good shape after the revisions promised in the rebuttal will be taken into account. I am raising my score to accept.
Thank you very much for the thoughtful follow-up and for the positive assessment. We greatly appreciate your constructive feedback, which has helped us improve the paper. We will carefully incorporate all revisions promised in our rebuttal into the revised manuscript. Thank you again for your time and consideration.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper empirically studies whether a small vanilla transformer trained with a limited number of data augmentations can acquire invariance to a range of symmetry groups. Evaluation is on point-cloud and molecular tasks: 3D Tetris, a purpose-built synthetic 3D Topology dataset, ModelNet10, and QM9 (HOMO regression). Three findings are reported: (1) angle-preserving groups are learned more readily than non-angle-preserving ones; (2) base angle-preserving groups are learned more efficiently than their compositions; (3) the learned invariance partly extends to a held-out, larger-magnitude transformation range. A mechanistic account follows, with three lemmas and matching activation signatures, attributing rotation/reflection invariance to attention over scalar (Gram-matrix) relations, translation invariance to landmark subtraction via residual connections, and scale invariance to LayerNorm homogeneity. The authors frame this as transformers "winning the symmetry lottery."
Strengths and weaknesses
Strengths
- S1: The paper studies invariance learning under a limited, finite augmentation budget, rather than the infinite-augmentation idealization assumed in some prior analyses (lines 24-28). This finite-budget regime is practically relevant and less explored.
- S2: The mechanistic analysis (Section 4) is a useful contribution. The link from attention scores X B X^T to O(d)-invariant inner products, the landmark-subtraction view of translation invariance, and the LayerNorm-homogeneity view of scale invariance are concrete, supported by lemmas, and accompanied by activation-level signatures.
- S3: The diagnostic design is careful. Results include error bars over multiple seeds.
- S4: The 3D Topology dataset is constructed so that labels (genus, connectivity, linking number) remain well-defined under non-angle-preserving transforms. This is an appropriate control for distinguishing "the architecture struggles with the group" from "the task is ill-posed under the group."
- S5: The findings are clearly presented, and the appendix replicates the mechanism signatures across two datasets.
Weaknesses
- W1: The main evaluation tests fitting the augmentation distribution, not generalization to the group. In Sections 2 and 3.1 the test set uses the same group and magnitude range as training, so for compact groups train/test orbits coincide in distribution and for non-compact groups they share a range. High accuracy and low invariance gap there are consistent with fitting the augmented training distribution rather than extrapolating. The out-of-distribution protocol exists only in Section 3.2 and is not applied to Findings 1-2. Relatedly, cross-group accuracy in Figure 2 partly reflects task difficulty. By the authors' own argument (B.3) Tetris classification is ill-posed under SL/GL/Affine, and O(3) reflections cap accuracy by collapsing chiral classes. So part of the Finding 1 separation on Tetris is task degeneracy. The cleaner evidence is 3D Topology.
- W2: A single architecture supports a comparative claim. The central thesis, that the transformer architecture is specially aligned with these symmetries, rests on one 2-block, single-head, width-64 model, with no non-transformer comparison. The mechanisms identified (Gram-matrix scalars, landmark subtraction, LayerNorm homogeneity) are available to other permutation-invariant set models (e.g. DeepSets, PointNet, MLPs on point clouds). The evidence therefore shows that a transformer can learn these invariances, not that it is better aligned than alternatives. At least one non-transformer baseline would be needed to support the comparative framing.
- W3: All data is point-cloud/graph-structured with coordinate-valued tokens. Across the four datasets the tokens are the points themselves (3D coordinates, plus atom-type features for QM9), so geometry lives in the token values and the Gram-matrix mechanism follows without positional encodings. It is unclear whether this transfers to patch-based ViTs, where tokens are patch embeddings and geometry is carried by positional encodings. Given that ViTs are a common transformer instantiation in the cited domains, this scope limit should be acknowledged, ideally with evidence or an explicit argument for why the mechanisms would or would not generalize.
- W4: Mechanism evidence is suggestive rather than identifying, and the scale mechanism is the weakest. The activation signatures are consistent with the proposed mechanisms but do not exclude alternatives, and some wording is stronger than the evidence ("the pattern perfectly matches that of choosing a landmark"). The scale account is least robust: Lemma 3's exact homogeneity requires no bias/residual, the full-model invariance is only approximate, and the norm-ratio signature is detected only in the second block and (on Tetris) only at high augmentation counts, with ratios that vary substantially across budgets (Appendix Figs. 17-18). The high variance of several curves sits awkwardly with the strength of the general claims.
- W5: Datasets are switched per finding without cross-checking the headline results. Finding 1 uses Tetris/Topology, Finding 2 uses ModelNet10, Finding 3 uses QM9. The appendix replicates the mechanism signatures across Tetris and ModelNet, but Findings 1 and 2 themselves are not reproduced across datasets. Showing each finding (or explaining its non-transfer) on more than one dataset would address the concern that datasets are selected to fit the claim.
- W6: The main paper is not self-contained on related work. Most related work is in Appendix A. The main-text discussion is thin and does not engage the most directly relevant augmentation-vs-equivariance comparisons where they would frame the findings. A reader should not need the appendix to place the contribution.
- W7: The limitations discussion is too brief for the breadth of the claims. Section 6 notes mainly model size and single-head attention, and does not address the single-architecture scope, the invariance-only framing, the in-distribution nature of the Section 2-3.1 evaluation, the restriction to coordinate-token (non-patch) data, or task ill-posedness on Tetris.
- W8: The study concerns invariance but is framed in terms of equivariance. The motivation cites equivariant/generative systems (AlphaFold3, conformer generation, TABASCO, Zatom), yet every task here is invariant (classification or scalar regression) and every mechanism in Section 4 concerns invariance. The scope should be stated plainly, or the motivation rescoped, since the conclusions do not bear on equivariance.
- W9: The readout/pooling is unspecified, although it is central to the invariance claims. Self-attention without positional encodings is permutation-equivariant at the token level. Invariance arises only after a symmetric aggregation. The main text does not state how the per-token stream is pooled into a class logit or scalar, which is exactly the operation that yields the invariance being studied. This should be specified.
Minor Weaknesses
- The "invariance loss" is not a loss (it is never optimized); a name like "invariance gap" or "invariance divergence" would reduce confusion.
- "Robustly invariant" (Finding 3) blends robustness (accuracy) and invariance (representation collapse); one sentence distinguishing them would help.
- Figure 2/3 legend colors are nearly indistinguishable within the blue and orange tone families.
- The Figure 4 legend omits the augmented (solid/dashed) curves.
- The Section 3.2 in- vs. out-of-distribution coverage should appear in the main text, not only Table 3.
- "eV" should be defined on first use.
- Missing word: "needs samples than learning translation" (Sec. 3.1) should read "needs more samples".
- A recurring spacing bug merges "self-attention" with adjacent words.
- The claim that angle-preserving symmetries are the prevalent ones in scientific domains is asserted without substantiation; the authors' own cited example [39] concerns SL(4)/Lorentz-type structure the transformer does not learn, so the alignment is domain-contingent.
Questions
Disclaimer: The following questions are distilled from the weaknesses of the current version of the paper, lets make it even better. I currently lean towards a borderline reject. But its absolutely on edge. Given a fruitful discussion during the rebuttal and answers for the following questions, I am absolutely willing to increase my score. Its a good paper but NeurIPS has high standards on the other side.
- Q1: Do Findings 1 and 2 reproduce against at least one non-transformer permutation-invariant baseline (DeepSets/PointNet/MLP)? What isolates this as a property of transformers rather than of coordinate-token set models in general? (relates to W2)
- Q2: Finding 1 lists SE(3) and Sim(3) among the efficiently-learned angle-preserving groups, but Finding 2 shows those same compositional groups are the hardest within that family. Should Finding 1 be restated for base angle-preserving groups, and how do you reconcile the two statements?
- Q3: How is the per-token representation aggregated into the prediction (mean/sum/CLS-style)? (relates to W9)
- Q4: In Sections 2 and 3.1, are test transformations drawn from the same group and range as training? If so, how do you separate learned invariance from fitting the augmented training distribution, and could the Section 3.2 held-out-magnitude protocol be applied to Findings 1-2? (relates to W1)
- Q5: For Figure 5 (rotation), can you show that attention maps differ across distinct inputs while staying invariant within an orbit? Without that control, rotation-stability could reflect an attention pattern that is identical across all inputs.
- Q6: On Tetris, how much of the non-angle-preserving gap is attributable to the architecture versus task ill-posedness under those groups (and the O(3) chirality cap)? (relates to W1)
- Q7. Is the study invariance-only by design? If so, can the equivariance-oriented motivation be reconciled, or the framing narrowed? (relates to W8)
- Q8: Do you expect these mechanisms and findings to transfer to patch-based ViTs, where geometry is encoded in positional encodings rather than token values? (relates to W3)
Limitations
The limitations are only briefly noted (Section 6). I would encourage expanding this to cover the single-architecture scope, the invariance-only setting, the in-distribution nature of the Section 2-3.1 evaluation, the restriction to coordinate-token (non-patch) data, and the task degeneracy on Tetris under certain groups.
Final justification
As a result of the extensive rebuttal, most of my questions and concerns are resolved. Although the contributions lost in value, they are not over-claiming anymore and are now supported by the conducted experiments. Due to the lesser impactful contributions, this is a borderline accept. Definitely a valuable but small step for the community and the field. Again, thanks for all the work!
Formatting concerns
Some wrapfigures use vspace, as the white space between the caption and the main corpus is very tight.
6 comments
Rebuttal
We sincerely thank the reviewer for the thoughtful and in-depth comments, and for recognizing the practical relevance and novelty of our finite-augmentation setting.
In-distribution evaluation, held-out transformations, dataset switching, and Tetris degeneracy (W1, W5, Q4, Q6)
In Sections 2 and 3.1, test transformations use the same group and parameter range as training. These experiments show interpolation to augmented unseen samples, not extrapolation to held-out group elements. For additional extrapolation results, we kindly refer the reviewer to the response to (Q2) of reviewer VPgy.
We agree that Tetris cannot isolate an architectural gap for SL/GL/Affine since those transforms destroy class-defining geometry, while O(3) has a chirality ceiling. We will not use Tetris as primary evidence for the cross-family claim. Regarding the use of different datasets for different findings, our revised manuscript will contain a summary table specifying, for each dataset, which transformations preserve the labels, whether evaluation is ID or OOD, and which finding the dataset supports. Finding 1 uses Tetris and Topology. Finding 2 will be reported across ModelNet10 and the base-versus-compositional contrasts already present in the Tetris/Topology experiments. Finding 3 will be supported by QM9 together with the new Tetris and Topology held-out-range experiments. We will not force non-angle-preserving evaluations onto datasets such as Tetris or ModelNet when the class semantics are not preserved, and we will explain why those datasets are unsuitable for that comparison.
Non-transformer baselines and the meaning of the "Symmetry Lottery" (W2, Q1)
Due to the character limit, we kindly refer to our response to Reviewer VPgy (W4).
Coordinate-valued tokens, positional encodings, and patch-based ViTs (W3, Q8)
To test whether the reported behavior is sensitive to the complete absence of positional information, we performed additional experiments using geometric variants of ALiBi, RoPE, sinusoidal positional encoding, and relative attention bias. These encodings are computed from the coordinates of the input tokens and not from arbitrary sequence indices. On Tetris, the resulting models show performance and augmentation-budget trends that are very similar to those of the original model. Repeating the mechanistic diagnostics for the base groups also shows that orbit-stable attention maps and the principal activation signatures remain qualitatively present.
These experiments suggest that, within the coordinate-token setting, adding auxiliary geometric positional information does not eliminate the tendency to learn the reported invariant computations. However, these results do not provide direct evidence for transfer to a standard patch-based ViT. In a patch ViT, the token values are learned patch embeddings and spatial geometry is usually supplied through absolute or relative positional encodings. Thus
- the direct Gram-matrix interpretation of does not apply
- the landmark-subtraction mechanism may not have a direct analogue
- image translation interacts with patchification, boundaries, and positional encodings
- the scale behavior of visual feature embeddings can differ from the scaling of raw coordinates Thus we will restrict our claims to transformers whose tokens contain geometric coordinates or coordinate-derived relations. For patch-based ViTs, analogous mechanisms might arise only when the positional representation exposes appropriate geometric invariants, but this remains a separate empirical question.
Strength of the mechanistic evidence and the rotation control (W4, Q5)
We agree with the reviewer’s distinction between identifying a unique mechanism and showing evidence consistent with a candidate mechanism. The lemmas establish sufficient conditions under which particular computations induce invariance. The restricted-architecture ablations demonstrate that those computations are sufficient to solve the tasks. The full-model activation analyses then show signatures consistent with those computations. They do not prove that the proposed mechanism is the only possible explanation or that every trained model uses exactly the same computation.
In the revision, we will update the relevant language throughout Section 4. For example, the statement "the pattern perfectly matches that of choosing a landmark" will be changed to "the concentration on an orbit-stable point is consistent with a landmark-subtraction strategy." We will reframe the section as "Mechanisms that can induce invariance" or "Activation signatures consistent with invariant mechanisms."
For the specific control requested in Q5, each row of Figure 5 corresponds to a different held-out input, which display visibly different attention structures. Quantitatively, shuffling augmentations randomly with respect to original samples increases the invariance gap of the attention maps from approximately 0.03 to about 1.1. Thus, the attention maps are stable within a transformation orbit but vary between unrelated inputs. We will add this shuffled-pair control to the figure with its accompanying quantitative analysis and explicitly label the rows as distinct samples.
We also agree that the scale account is the least strongly identified of the three mechanisms. We will make the following qualifications explicit:
- Lemma 3 is a sufficient homogeneity result for a restricted computation with stable attention maps and homogeneous, bias-free components
- Residual addition preserves degree-one homogeneity only when both branches satisfy the required homogeneity assumptions. The complete block in Equation 3 also contains LayerNorm, its numerical ϵ, learned affine parameters, an MLP, and bias terms
- The full-model scale invariance is empirical
- The residual-suppression/norm-ratio signature appears most clearly in the second block We will distinguish three levels of evidence: exact sufficient statements for simplified modules, ablation-level sufficiency, and suggestive activation-level evidence in the full model.
Related work in the main body (W6)
We agree that it is important to provide a sufficient description of related work in the main paper to properly frame the problem we are exploring and its place in relation with existing literature. To that effect, we will add a more explicit discussion to the main body of the most related papers to the dichotomy between strictly equivariant architectures and data augmentation / soft equivariant approaches.
Expanded description of limitations (W7)
While we explicitly discuss some of the main limitations of our work in the conclusions, we agree that it would be helpful to surface some of the additional limitations that were more implicitly indicated throughout the rest of the paper.
In particular, we will emphasize that our experiments study a vanilla transformer configuration with two single-head blocks and width 64. The study is restricted to invariant classification and scalar-regression outputs and does not establish equivariance for vector- or tensor-valued predictions. Sec. 2 and 3.1 primarily evaluate transformations sampled from the training augmentation distribution, and the additional disjoint-range experiments evaluate only the base groups on a subset of the datasets and do not prove uniform generalization over each complete group. All current inputs use coordinate-valued tokens or coordinate-derived features, so the findings do not directly transfer to patch-based vision transformers or sequence transformers in which geometry is represented only through positional encodings. Finally, the proposed mechanisms are sufficient constructions supported by ablations and activation-level signatures, but the analyses do not establish uniqueness or necessity in the full transformer. The scale mechanism is especially approximate and varies across layers, budgets, and random seeds.
Scope of the study and its relation to equivariance (W8, Q7)
Due to the character limit, we kindly refer to our response to Reviewer VPgy (W1).
Readout and permutation invariance (W9, Q3)
Let denote the final per-token representation and let denote the learned output projection. Then, we compute the readout as . For classification, contains the class logits, and for regression, it is the scalar prediction. Thus, the per-token representations are first projected to the output dimension and then mean-pooled over tokens. We will add this definition to the description of the architecture in the revision.
Base vs compositional angle-preserving groups (Q2)
Indeed, the compositional groups (SE, Sim) are observed to be efficiently learned for the synthetic datasets used for Finding 1 and to be harder than base angle-preserving symmetries in Finding 2. These observations are however not contradictory to one another. Firstly, we note that the compositional groups present more complex transformations that depend on a larger number of generators, which intuitively suggests that a larger number of randomly sampled augmentations could be necessary for attaining sufficient coverage of the group. In particular, while the experiments in Section 2 consider up to 32 augmentations per sample, the ones in Section 3.1 are restricted to up to 16 augmentations due to additional computational cost on the larger dataset. Therefore, we would expect that increasing the number of augmentations further might narrow the gap to the base angle-preserving symmetries observed in Figure 3. In any case, we believe that the considerably higher performance over non-angle preserving symmetries that we observe in Section 2 justifies their inclusion in the group of better aligned symmetries (Finding 1), while the additional hardness of learning such compositional groups with respect to base groups is a separate and more nuanced distinction.
ModelNet baselines, multi-head robustness, and preliminary O(3)-equivariance results
Following our initial response, we conducted further experimental analyses addressing the reviewer’s questions about the performance on a more realistic point cloud dataset, robustness to common architectural modifications, and whether analogous behavior also arises in equivariant tasks. We would like to share these additional findings.
Additional ModelNet10 baseline and OOD comparisons
First, we applied the out of distribution protocol from Section 3.2 to the Modelnet10 dataset. Then we compared the Transformer with two established permutation-invariant point-cloud baselines, PointNet and DeepSets, under the same ModelNet10 augmentation protocol. We considered in-distribution evaluation for augmentations drawn from SO(3), T(3), Scale(3), SE(3), and Sim(3), with evaluation on disjoint transformation ranges for the base groups SO(3), T(3), and Scale(3).
OOD accuracy on Modelnet10
In distribution, the Transformer achieves a little over 0.8 test accuracy for each SO(3), T(3) and Scale(3). Under transformations from unseen ranges, the performance on Scale(3) remains practically unchanged, while it decreases by about 0.20 on SO(3) and T(3). Overall, this indicates strong generalization of the learned invariances.
Comparison with PointNet
PointNet and the Transformer perform very similarly. Their in-distribution accuracies are closely matched across SO(3), T(3), Scale(3), SE(3), and Sim(3). Their generalization accuracies on disjoint rotation, translation, and scale ranges are also comparable. The main deviations are a small advantage for PointNet under in-distribution SE(3) transformations and a small disadvantage for PointNet under OOD translations. We believe this comparison is informative because the standard PointNet architecture contains learned input- and feature-alignment modules, commonly referred to as T-Nets, that introduce a point-cloud-specific alignment bias. By contrast, the Transformer used in our experiments contains no point-cloud-specific canonicalization or alignment module. Thus, we find it noteworthy that a generic self-attention architecture trained only through data augmentation can match the performance of a model containing learned alignment components tailored to point-cloud processing.
Comparison with DeepSets
The behavior of DeepSets is substantially different. Among the evaluated transformations, DeepSets matches the Transformer’s test and generalization accuracy only for scale augmentations. For in-distribution evaluation, the absolute accuracy gap relative to the Transformer is approximately 0.12 for translations and 0.20 for rotations. On the disjoint transformation ranges, these gaps increase to approximately 0.45 for translations and 0.30 for rotations. In particular, the DeepSets accuracy under unseen translation magnitudes falls close to chance-level performance. DeepSets also remains substantially below the Transformer when augmentations are drawn from the compositional groups SE(3) and Sim(3). These results suggest that the Transformer’s behavior is not simply a consequence of processing the input as an unordered set. DeepSets has the permutation symmetry, but permutation-invariant pooling alone is insufficient to recover the same transformation-range generalization. The contrast is especially pronounced for translation and for groups containing a translation component. We believe that this comparison provides evidence that the pairwise, input-dependent aggregation available to self-attention is relevant in this regime.
Multi-head experiments on ModelNet10
We also repeated the ModelNet10 translation and rotation experiments with a two-head Transformer. Consistent with our previous multi-head results on 3D Tetris, adding a second attention head does not substantially change either task performance or the principal mechanism signatures for T(3) and SO(3). Specifically, the orbit stability of the attention maps and the activation-level indicators associated with the translation and rotation mechanisms remain qualitatively present This extends the architectural robustness observation from the Tetris setting to ModelNet10.
Preliminary evidence for O-equivariant task
To investigate whether a related attention-based structure can also arise for an equivariant vector-valued task, we constructed an additional experiment using the 3D Topology dataset.
For every point in a topology point cloud, the model is trained to predict its corresponding surface-normal vector. Under our row-vector convention, if acts on the input as , the target normals transform according to . We train the Transformer with O(3) data augmentation and a pointwise mean-squared-error objective. With 32 augmentations per training example, the model learns the task accurately. Averaged over three random seeds, the in-distribution test MSE is approximately 0.006. On the disjoint transformation range used for generalization evaluation, the MSE increases by only approximately 0.001, to around 0.007. We additionally measure the mean pointwise equivariance discrepancy between the transformed prediction and the appropriately transformed original prediction. The resulting L1 equivariance error is approximately 0.11 in distribution and 0.15 on the disjoint transformation range. Thus, the model learns approximate pointwise O(3)-equivariance, with only a moderate degradation when evaluated on transformation magnitudes not observed during training.
Our findings are:
Connection to the weighted-sum structure of self-attention
This result suggests a natural extension of the invariant-attention mechanism discussed in the paper. Proposition 4 of Villar et al. (Ref. [26] in the submission) gives an invariant-coefficient characterization of O(d)-equivariant vector functions: an equivariant vector output can be expressed as a weighted sum of input vectors, , where the coefficients are -invariant scalar functions. Self-attention has an analogous weighted-sum structure: . Thus if
(1) and
(2) for ,
then . In the simplified case where the value map acts directly on d-dimensional vector features as , condition (2) becomes . Requiring this identity for every X and every is equivalent to requiring to commute with the standard action of O(d). In that simplified representation, this would restrict to an isotropic map, namely a scalar multiple of the identity.
Attention-map evidence
We first examined condition (1) by measuring the attention-map invariance error under roto-reflections. The error is approximately 0.03 in the first Transformer block and 0.24 in the second block. As a control, we compare the attention maps of unrelated, randomly paired original samples rather than two elements from the same O(3) orbit. The corresponding errors increase to approximately 1.20 in the first block and 1.54 in the second block. The large separation from this random-pair baseline is important: it indicates that the small within-orbit errors are not explained merely by all inputs receiving nearly identical or uniform attention maps. Instead, the attention maps retain substantial input-specific structure while remaining stable under transformations of the same input. Condition (1) is therefore approximately satisfied, particularly in the first block.
The value pathway is not globally isotropic
However, we do not observe a globally isotropic learned value projection. Therefore, the strongest version of condition (2), exact commutation with every on the full ambient input space, is not supported by the learned parameters. The model may satisfy the equivariance relation only approximately on the support of the data and along the augmentation orbits encountered during training. This would permit a more informative, anisotropic value map while maintaining low equivariance error on the relevant subset of inputs. A second, non-exclusive possibility is that end-to-end equivariance is distributed across the input projection, attention layer, residual stream, MLP, and output projection, even though no individual value matrix is exactly equivariant in isolation. The results support the hypothesis that orbit-stable attention maps can provide the invariant scalar coefficients required for equivariant vector aggregation, but additional analysis is needed to determine how the value and residual pathways jointly implement the observed end-to-end behavior.
Comments on the paper
3 comments
Summary of Discussion Period
Dear Area Chair and Reviewers,
We would like to thank the reviewers for their analysis of our paper, and for engaging with us during the discussion period. We believe that their suggestions have helped to improve our work, and we are glad that they have been satisfied with our response and have subsequently decided to unanimously raise their scores to 5, 4, 4.
We also thank the AC for coordinating the review process and the discussion of our submission, and for acknowledging the depth and novelty of our analysis. To provide an overview of the discussion, we would like to summarize our responses to the concerns raised in the metareview.
Baseline comparison and Framing
In response to reviewer y82V’s concerns about the framing as ‘Symmetry Lottery’, we have decided to drop the phrase entirely. We will reframe the paper as a systematic investigation of the Transformer’s ability to learn various invariances under limited augmentation budgets. Nonetheless, we ran new experiments considering DeepSets and PointNet on the 3D Tetris, Topology and Modelnet10 datasets using the OOD protocol from Section 3.2 to gauge the Transformer’s performance with respect to widespread point cloud architectures.
Comparison to PointNet
Overall, PointNet performs similarly to the Transformer, with both architectures outcompeting the other in some settings, while most often matching performance. We believe this comparison is informative because the standard PointNet architecture contains learned input- and feature-alignment modules, commonly referred to as T-Nets, that introduce a point-cloud-specific alignment bias. By contrast, the Transformer used in our experiments contains no point-cloud-specific canonicalization or alignment module. Thus, we find it noteworthy that a generic self-attention architecture trained only through data augmentation can match the performance of a model containing learned alignment components tailored to point-cloud processing.
Comparison to DeepSets
Except for a few scenarios (mostly ID on Scale, T or SO) where DeepSets can match the Transformer’s accuracy and the single case of OOD translations on Topology where it achieves superior performance, DeepSets falls short of the Transformer baseline, often by a large margin.
These results let the Transformer appear as a valid architecture of choice for invariance learning, though without ruling out alternatives. Further details can be found in the response to reviewer VPgy (W4) and our follow-up to reviewer y82V (Additional ModelNet10 baseline and OOD comparisons).
Generalization
To test extrapolation, we applied the disjoint-range protocol of Section 3.2 to the 3D Tetris, Topology and Modelnet10 datasets. Overall, the Transformer exhibits nontrivial extrapolation to disjoint transformation ranges on all tested symmetries and datasets. Scale transfers very cleanly, while Translation seems the most sensitive. These findings suggest that a general group-invariant mechanism is at least approximated in all cases.
For further details, please refer to our response to reviewer VPgy (Q2) and our follow-up to reviewer y82V (OOD accuracy on Modelnet10).
Alternative invariance error
Following the reviewer’s comment, we included three complementary metrics. Across the base symmetries on both Tetris and Topology, these metrics give consistent qualitative conclusions. Their correlations with the original KL measure range from moderate to near-perfect. Thus, the main ordering of the symmetries and the mechanistic conclusions are not artifacts of the one-sided KL choice. Please see our response to reviewer VPgy (Q1) for further clarification.
Preliminary evidence for O-equivariant task
To investigate whether a related attention-based structure can also arise for an equivariant vector-valued task, we constructed an additional experiment using the 3D Topology dataset.
For every point in a topology point cloud, the model is trained to predict its corresponding surface-normal vector. Under our row-vector convention, if acts on the input as , the target normals transform according to . We train the Transformer with O(3) data augmentation and a pointwise mean-squared-error objective. With 32 augmentations per training example, the model learns the task accurately and with low equivariance error both in- and out of distribution.
On top of these preliminary results on the Topology dataset that we presented during the discussion, we have run additional experiments using ShapeNet [A], which reinforce our previous findings. In particular, we observe that the test loss and equivariance both become around 0.2, with only slight increases on unseen augmentation ranges.
These results suggest a natural extension of the invariant-attention mechanism discussed in the paper. Specifically, we draw on Proposition 4 of Villar et al. (Ref. [26] in the submission), which gives an invariant-coefficient characterization of O(d)-equivariant vector functions. Applying it to self-attention would require
(1) and
(2) for .
Enforcing this identity for every X and every would restrict to an isotropic map, namely a scalar multiple of the identity.
Invariance of the attention map is supported empirically by a low invariance error of when training on the equivariant task. However, we do not observe a globally isotropic learned value projection. Therefore, the strongest version of condition (2), exact commutation with every on the full ambient input space, is not supported by the learned parameters. During the discussion, we hypothesized that the equivariance relation may hold only approximately on the support of the data and along the augmentation orbits. In the meantime, we have implemented a metric to diagnose whether approximate equivariance does in fact hold on the test set. Since measuring the equivariance of directly would require mapping O(3) matrices to the higher dimensional latent space, we instead measure the L1 invariance of as a proxy. If were perfectly equivariant, this would translate to perfect invariance of .
And indeed, after applying this metric, we observe that for the first layer its value is of around 0.11, much lower than the baseline of 0.78 that we obtain when shuffling augmentations. For ShapeNet, this difference is even more pronounced with a value of about 0.11, and a baseline of 1.42. This provides preliminary evidence that becomes approximately equivariant when training under data augmentation, which would fit with our previous hypothesis.
References
[A] A Scalable Active Framework for Region Annotation in 3D Shape Collection, Yi et al. 2016
Pooling
Per-token representations are first projected to the output dimension and then mean-pooled over tokens. We will add this definition to the description of the architecture in the revision. See response to reviewer y82V (W9, Q3).
Hardness of Compositional groups
We currently see three related explanations.
-
Higher-dimensional augmentation coverage. In three dimensions, scaling, translations and rotations have less continuous degrees of freedom than SE(3) and Sim(3). For a fixed number of augmented views per sample, random samples provide substantially sparser coverage of the larger joint transformation space.
-
Simultaneous constraints on shared components. The mechanisms identified for the base groups use overlapping architectural components but impose different functional requirements. Learning SE(3) or Sim(3) requires these conditions to hold simultaneously along joint transformation orbits. Although the mechanisms are compatible in principle, their simultaneous optimization within the same attention and residual pathways may be more difficult than learning each one separately.
-
Approximation error under composition. Exact invariance to each subgroup composes exactly, but finite-data training produces only approximate invariance. Errors associated with the constituent transformations can therefore compound when several transformations are applied jointly.
Our new multi-head experiments provide preliminary evidence relevant to the optimization hypothesis. Increasing the number of heads does not materially improve performance for the compositional groups, and we do not observe a clear specialization in which distinct heads separately implement translation, rotation, and scale invariance. This suggests that simply providing additional parallel attention heads is not sufficient to resolve the joint learning problem. We will add this analysis to the discussion while clearly labeling the coverage and optimization explanations as hypotheses supported by the empirical results. Further explanation can be found in our response to reviewer MFs6 (Q3).
We thank the AC and Reviewers again for their time and effort.
Sincerely,
The Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for their valuable and detailed comments, as well as for recognizing the good construction and novelty of our experimental analysis. In terms of weaknesses and questions:
Scope of the claims, dataset scale, and architecture (W1, Q1)
Thank you for this comment. Our intended claim is that the core components of the particular vanilla, permutation-equivariant Transformer studied here exhibit a measurable inductive preference for learning certain symmetries from finite data augmentation.
The synthetic datasets serve a diagnostic purpose. Their size allows us to train a large collection of models across symmetry groups, augmentation budgets, and random initializations while controlling the source of the target invariance.
Specifically, the two synthetic datasets play complementary roles:
The controlled scale also helps separate invariance learned from the applied augmentations from invariance already present in the data distribution. This distinction would be substantially harder to isolate in a large dataset containing uncontrolled canonicalization, alignment conventions, or transformation biases.
ModelNet10 and QM9 then provide a bridge to real point-cloud and molecular tasks. We agree that these are standard but not large-scale benchmarks. Their purpose is to show that the trends are not restricted. This is consistent with the stated objective of isolating symmetry-learning behavior..
Following the reviewer’s comment, to test whether the main observations are merely artifacts of using one attention head and no positional information, we have conducted a preliminary architectural robustness study covering two common additions: coordinate-derived positional encodings and multi-head attention.
We evaluated geometric variants of ALiBi, RoPE, sinusoidal positional encoding, and relative attention bias. These variants are computed from input coordinates, preserving the set-processing nature of the task. On 3D Tetris, these models exhibit accuracy and augmentation-budget trends that are closely aligned with those of the original architecture. Repeating the base-group mechanistic diagnostics also shows that orbit-stable attention maps and the principal activation-level signatures identified in Section 4 remain qualitatively present.
We increased the number of attention heads from one to two and four. Across the symmetry groups studied in Section 2, this produces only marginal accuracy improvements and does not change the qualitative ordering between angle-preserving and non-angle-preserving groups or between base and compositional groups. In additional OOD evaluations following the transformation-range protocol of Section 3.2, rotation and scale improve slightly as the number of heads increases. The largest observed change is an approximately 0.23 absolute improvement for translation in the four-head setting. The mechanism indicators remain clearly observable. Interestingly, multi-head attention does not materially close the gap for SE(3) or Sim(3). We also do not observe a clear division of labor in which different heads specialize in different base subgroups. Although the invariance scores of individual heads differ, it is frequently the same head that is most invariant across several tested subgroups.
These experiments provide preliminary evidence that the principal trends are not solely consequences of single-head attention or the complete absence of positional information. We will make that distinction explicit and report the new results in the revision
Alternative invariance metrics (W2, Q2)
Due to the character limit, we kindly refer to our response to Reviewer VPgy (Q1).
Possibility of alternative mechanisms (W3)
Thank you for the valuable comments regarding our mechanistic analysis. Our analysis and claims indeed do not rule out the possibility that alternative mechanisms could also arise to represent invariance, which may be more subtle and thus harder to identify and interpret. Instead our claims focus on the existence and identification of a series of generalizing mechanisms that the vanilla Transformer architecture consistently develops in the various settings that we consider. We will more clearly emphasize this difference in the revised manuscript: our results show the existence of such mechanisms and not necessarily their uniqueness in implementation invariance.
Figure refinements (W4)
Thank you for these helpful suggestions. We will update the color palette in the revision, seeking to improve the clarity of our results. In addition, we will clarify the wording of Figure 4’s caption to more explicitly describe the correspondence of the different rows with the test and generalization OOD metrics respectively.
Hardness of compositional groups (Q3)
Thank you for this important point. The detailed mechanistic analysis focuses on the base groups SO(3)/O(3), T(3), and Scale(3). We chose these groups because they show the strongest finite-augmentation performance and the clearest OOD generalization, making them the most suitable setting for searching for stable internal mechanisms.
There is an important distinction between representational compatibility and learnability from finite joint augmentations. At the level of exact functions, invariance to the generating base groups is sufficient for invariance to their composition. For example, if f is exactly invariant to both translations and rotations, then for any g=tR∈SE(3), f(gx)=f(t(Rx))=f(Rx)=f(x). The same argument extends to Sim(3) when scale invariance is also present. The observed difficulty is more plausibly associated with finite sampling and optimization. We currently see three related explanations.
In three dimensions, translations and rotations each have three continuous degrees of freedom and uniform scaling has one, whereas SE(3) has six and Sim(3) has seven. For a fixed number of augmented views per sample, random samples provide substantially sparser coverage of the larger joint transformation space.
Moreover, when augmentations are sampled directly from a compositional group, almost every transformed example combines multiple factors. The model receives relatively little direct supervision corresponding to a pure translation, pure rotation, or pure scaling direction. By contrast, a model trained on a base group receives its entire augmentation budget along that factor.
The mechanisms identified for the base groups use overlapping architectural components but impose different functional requirements:
Learning SE(3) or Sim(3) requires these conditions to hold simultaneously along joint transformation orbits. Although the mechanisms are compatible in principle, their simultaneous optimization within the same attention and residual pathways may be more difficult than learning each one separately.
Exact invariance to each subgroup composes exactly, but finite-data training produces only approximate invariance. Errors associated with the constituent transformations can therefore compound when several transformations are applied jointly. A model that is moderately stable to rotation and moderately stable to translation need not be equally stable to arbitrary roto-translations unless both behaviors are learned with sufficient uniformity.
Our new multi-head experiments provide preliminary evidence relevant to the optimization hypothesis. Increasing the number of heads does not materially improve performance for the compositional groups, and we do not observe a clear specialization in which distinct heads separately implement translation, rotation, and scale invariance. This suggests that simply providing additional parallel attention heads is not sufficient to resolve the joint learning problem. We will add this analysis to the discussion while clearly labeling the coverage and optimization explanations as hypotheses supported by the empirical results.
Description of limitations
Thank you for this suggestion. While we explicitly discuss some of the main limitations of our work in the conclusions, we agree that it would be helpful to surface some of the additional underlying limitations that were more implicitly indicated throughout the rest of the paper. In that sense, we will include further comments regarding the points raised by the reviewer following our responses provided in this rebuttal.
We thank the reviewer again for their insightful suggestions, which we believe have helped improve our paper through both reinforced experimental analyses and details, and a clearer description of its contributions and limitations.