Any-Subgroup Equivariant Networks via Symmetry Breaking
Organizations: MIT · TUM · Flatiron Institute
Abstract
The inclusion of symmetries as an inductive bias, known as equivariance, often improves generalization on geometric data (e.g. grids, sets, and graphs). However, equivariant architectures are usually highly constrained, designed for symmetries chosen a priori, and not applicable to datasets with other symmetries. This precludes the development of flexible, multi-modal foundation models capable of processing diverse data equivariantly. In this work, we build a single model -- the Any-Subgroup Equivariant Network (ASEN) -- that can be simultaneously equivariant to several groups, simply by modulating a certain auxiliary input feature. In particular, we start with a fully permutation-equivariant base model, and then obtain subgroup equivariance by using a symmetry-breaking input whose automorphism group is that subgroup. However, finding an input with the desired automorphism group is computationally hard. We overcome this by relaxing from exact to approximate symmetry breaking, leveraging the notion of 2-closure to derive fast algorithms. Theoretically, we show that our subgroup-equivariant networks can simulate equivariant MLPs, and their universality can be guaranteed if the base model is universal. Empirically, we validate our method on symmetry selection for graph and image tasks, as well as multitask and transfer learning for sequence tasks, showing that a single network equivariant to multiple permutation subgroups outperforms both separate equivariant models and a single non-equivariant model.
Figures & tables
| Task | Input | Equivariant Output | Invariant Output | Group |
| Intersect | ||||
| Symmetric Difference | ||||
| Palindrome ( ) | True | Sequence Reversal | ||
| Monotone Run ( ) | True | |||
| Cyclic Sum ( ) | (cyclic shifts) | |||
| Cyclic Product ( ) |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Group | Params. | Test Acc. (mean std) | Train Acc. (mean std) |
| 1D-PE | 370.5k | 0.656 0.135 | 0.816 0.093 | |
| 2D-PE | 116.6k | 0.818 0.005 | 0.831 0.006 | |
| 112.5k | 0.824 0.000 | 0.848 0.006 | ||
| 111.2k | 0.827 0.018 | 0.852 0.013 | ||
| 110.4k | 0.814 0.020 | 0.840 0.009 |
| Synthetic Tasks | |||
| Task | Equivariant | Invariant | Symmetry |
| Intersect | Given two sequences of length , determine which elements of each sequence are present in the other | Determine the size of the intersection of the two sequences | : sequences can be reordered, and the two sequences can be swapped |
| Symmetric Difference | Given two sequences of length , determine which elements of each sequence are not present in the other | Determine the size of the difference of the two sequences | |
| Palindrome | Given a sequence of length , determine where the sequence has a contiguous subsequence that is a palindrome of length , if one exists | Determine if the sequence has a contiguous subsequence that is a palindrome of length | Sequence reversal |
| Monotone Run | Given a sequence of length , determine where the sequence has a contiguous subsequence that is strictly increasing or decreasing of length , if one exists | Determine if the sequence has a contiguous subsequence that is strictly increasing or decreasing of length | |
| Cyclic Sum | Given a sequence of length , determine which cyclic contiguous subsequence of length has the largest sum | Find the largest sum of a cyclic contiguous subsequence of length | (cyclic shifts) |
| ASEN (Loss ) | Invariant | Non-invariant | ||||
| Task | 1 | 1.5 | 2 | 1 | 1.5 | 2 |
| Intersect | 0.076 0.002 | 0.061 0.009 | 0.060 0.005 | 0.081 0.002 | 0.078 0.0004 | 0.077 0.001 |
| Palindrome | 0.250 0.04 | 0.170 0.01 | 0.125 0.05 | 0.270 0.04 | 0.250 0.04 | 0.132 0.04 |
| Detect Capital | 0.053 0.005 | 0.056 0.007 | 0.068 0.016 | 0.075 0.011 | 0.066 0.004 | 0.063 0.007 |
| Longest Palindrome | 0.138 0.014 | 0.110 0.009 | 0.110 0.009 | 0.152 0.007 | 0.130 0.012 | 0.130 0.010 |
| Method | Cyclicsum | Palindrome |
| Single-task | 0.3869 | 0.510 |
| Multi-task | 0.3839 | 0.537 |