Abstract
Recent works show that group equivariance as an inductive bias improves neural network performance for both classification and generation. However, designing group-equivariant neural networks is challenging when the group of interest is large and is unknown. Moreover, inducing equivariance can significantly reduce the number of independent parameters in a network with fixed feature size, affecting its overall performance. We address these problems by proving a new group-theoretic result in the context of equivariant neural networks that shows that a network is equivariant to a large group if and only if it is equivariant to smaller groups from which it is constructed. Using this result, we design a novel fast group equivariant construction algorithm, and a deep Q-learning-based search algorithm in a reduced search space, yielding what we call autoequivariant networks (AENs). AENs find the right balance between equivariance and network size when tested on new benchmark datasets, G-MNIST and G-Fashion-MNIST, obtained via group transformations on MNIST and Fashion-MNIST respectively that we release. Extending these results to group convolutional neural networks, where we optimize between equivariances, augmentations, and network sizes, we find group equivariance to be the most dominating factor in all high-performing GCNNs on several datasets like CIFAR10, SVHN, RotMNIST, ASL, EMNIST, and KMNIST.
Introduction
In deep learning, equivariance ensures that a network's internal features change predictably in response to input transformations. For instance, standard CNNs are translation equivariant: shifting an image shifts the corresponding feature maps. While translation is a well-understood symmetry for images, others—such as rotations, flips, or scales—may also be beneficial.
However, two major hurdles exist in leveraging these symmetries. First, the Search Problem: without prior knowledge of the symmetries in a dataset, searching through combinations of large symmetry groups is computationally prohibitive. Second, the Parameter Trade-off: enforcing equivariance requires parameter sharing. While this provides a strong inductive bias, excessive symmetry can drastically reduce the number of independent parameters, potentially starving the model of the capacity needed for complex tasks.
Methodology
The authors introduce Autoequivariant Networks (AENs) to address these challenges through three primary innovations:
Group Decomposition Theorem
The core theoretical contribution is a theorem stating that a network is equivariant to a large, complex group if and only if it is equivariant to the smaller subgroups that compose it (specifically via semidirect products). This allows complex symmetries to be constructed from simpler building blocks, significantly simplifying the design process.
Fast Construction and Search
Leveraging this theorem, the researchers developed a Fast Construction Algorithm that builds equivariant layers more efficiently. Instead of iterating through every element of a massive symmetry group ($O(|G|)$), the algorithm only processes the smaller components ($O(\sum |G_i|)$).
To find the optimal architecture, they employ Deep Q-Learning Search. A Deep Q-Network (DQN) agent explores a reduced search space of symmetries, augmentations, and network sizes. By treating architecture design as a reinforcement learning problem, the agent learns to identify the "sweet spot" that maximizes validation accuracy while balancing symmetry and parameter count.
Results
The approach was evaluated on several image classification tasks, including the newly released G-MNIST and G-Fashion-MNIST benchmarks, which apply 12 different group transformations to classic datasets.
AENs consistently outperformed baseline models and those with single, hand-picked equivariances. For example, on the G-MNIST "Aug3" set, the AEN achieved a top accuracy of 77.4%, surpassing the best single-symmetry baseline.
Key findings include:
- Symmetry as an Equivalence Class: The decomposition theorem implies that the order of applying symmetries is irrelevant, drastically shrinking the RL agent's search space.
- Equivariance vs. Augmentation: Group equivariance emerged as a more dominant performance factor than data augmentation. Hard-coding symmetry into the architecture is more effective than teaching it through random flips or rotations during training.
- Efficiency: The fast construction algorithm enables the search to complete in approximately 12 hours on a single V100 GPU, making it a practical tool for Neural Architecture Search (NAS).
Conclusion
While AENs show great promise, current limitations include a focus on discrete symmetries rather than continuous ones (like arbitrary rotations). Additionally, the system requires a predefined menu of potential symmetry groups. Future work may involve extending this decomposition approach to other group extension methods and exploring its application in generative models and attention mechanisms.
Paper Citation: Basu, S., Magesh, A., Yadav, H., & Varshney, L. R. (2021). Autoequivariant Network Search via Group Decomposition. arXiv:2104.04848v2 [cs.LG].
Summary updated