Winning the Symmetry Lottery: Learning Invariance from Data Augmentations with Transformers
Eduardo Santos-Escriche, Valerie Engelmayer, Ya-Wei Eileen Lin, Stefanie Jegelka
NeurIPS page · OpenReview · Open on the map
Category: AI for Molecules, Materials & Genomics › Equivariance and Invariance in Deep Learning · Type: empirical study · Keywords: transformer symmetry learning, data augmentation, equivariant machine learning, angle-preserving symmetries, invariance mechanisms
Summary
The paper investigates how a vanilla transformer learns various symmetries via limited data augmentation, discovering that angle-preserving symmetries are learned more easily than non-angle-preserving ones and identifying mechanisms underlying this behavior.
Explained to a 5-year-old
We look at a special kind of computer brain called a transformer. We teach it to notice patterns by showing it many slightly changed pictures. It gets really good at spotting simple changes like moving things around or turning them. It has a harder time with changes that are more complicated. By studying how it does this, we learn why it works better for some kinds of patterns.
Explained to a 5-year-old, longer
A transformer is a kind of computer program that can learn from lots of information. In this work, researchers show it how to become good at recognizing things that stay the same even when they are a bit changed. They give the program many examples where the same thing appears in slightly different forms, like a rotated image or a shifted position. The program quickly learns to ignore those small changes for simple symmetries, such as moving an object left or right. It also learns to handle turning objects around and resizing them without losing track. However, when the changes are more complex, like flipping in a way that does not preserve angles, the program struggles. The researchers also find that learning a single symmetry, like translation, is easier than learning several together. By looking inside the program, they discover simple rules that help it become invariant to each type of change. These insights help us understand why some patterns are easier for computers to learn than others. The findings can guide the design of future models that need to work reliably in scientific settings. Overall, the study shows that transformers have a natural bias toward certain kinds of invariances. This bias can be useful when we want machines to understand the regularities found in nature.
For a technical reader
The paper evaluates a standard transformer architecture under limited data augmentation to see how well it learns various symmetries. Results show that angle-preserving symmetries such as translation, rotation, and scaling are learned robustly, while non-angle-preserving transformations are poorly captured. A structural analysis reveals that the model’s attention mechanisms and positional encodings drive invariance for the simpler base symmetries. The authors also observe that learning composite symmetries (e.g., combined translation-rotation) is significantly harder than learning each component individually. These findings suggest that transformer designs already embed useful inductive biases for scientific domains where such symmetries dominate.
Problem
Understanding how transformer architectures acquire invariance to different symmetries under limited data augmentation remains unclear. This paper seeks to characterize which symmetries are learned effectively and why.
Method
We evaluate a vanilla transformer on a range of symmetries using limited data augmentation, analyzing its performance across angle-preserving and non-angle-preserving transformations, and conducting structural analysis to uncover the mechanisms that produce invariance.
Results
The approach shows strong performance on angle-preserving symmetries (e.g., translation, rotation, scale) but struggles on non-angle-preserving ones, and base subgroups are learned more accurately than combined groups.
Contributions
We provide an empirical study of symmetry learning in transformers, identify which symmetries are learned effectively, reveal that base subgroups are easier than compositional groups, and uncover interpretable mechanisms behind invariance.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction