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 serves as a potent inductive bias. A classic example is the translation equivariance of standard Convolutional Neural Networks (CNNs), where shifting an input image results in a corresponding shift in feature maps. While extending this to more complex symmetries like rotations and flips (Group-CNNs) is desirable, it introduces two significant challenges:
- Complexity: Designing networks for large, complex symmetry groups is mathematically and computationally demanding.
- The Capacity Trade-off: Equivariance is achieved through parameter sharing. While this increases efficiency, it reduces the number of independent parameters. Excessive symmetry can over-simplify a model, hindering its ability to learn complex patterns and potentially degrading performance.
This research introduces Autoequivariant Networks (AENs), a framework that leverages deep reinforcement learning to automatically discover the optimal "symmetry-aware" architecture, balancing mathematical equivariance with model capacity.
Methodology
The core of the AEN framework rests on three primary innovations:
The Group Decomposition Theorem
The authors prove that a network's equivariance to a large group (constructed via semidirect products) is equivalent to its equivariance to the constituent smaller subgroups. This modularity significantly reduces the search space; instead of exploring every possible large symmetry group, the search focuses on fundamental building blocks.
Fast Construction Algorithm
Building on the decomposition theorem, a new algorithm constructs equivariant Multi-Layer Perceptrons (MLPs) with improved efficiency. By visiting each group element exactly once per parameter, it reduces computational complexity from a multiplicative to an additive relationship relative to group size.
Deep Q-Learning for Architecture Search
The architecture search is framed as a reinforcement learning problem. A Deep Q-Network (DQN) agent explores combinations of group equivariances, data augmentations, and network sizes. The agent is rewarded based on the validation accuracy of the generated models, allowing it to eventually exploit the most effective configurations.
Datasets
To evaluate the framework, the authors utilized:
- G-MNIST and G-Fashion-MNIST: New benchmarks created by applying complex symmetry transformations (rotations, flips, and scrambles) to classic datasets.
- Standard Benchmarks: CIFAR10, SVHN, RotMNIST, ASL (Sign Language), EMNIST, and KMNIST were used to demonstrate real-world applicability.
Results and Discussion
The experiments yielded several key insights:
- Equivariance vs. Parameters: More symmetry is not always better. The RL agent successfully identifies the "Goldilocks" zone where the benefits of symmetry bias outweigh the loss of parameter diversity.
- Superior Performance: AENs consistently outperformed both standard CNNs and manually designed equivariant networks. On CIFAR10, AENs achieved 65.25% accuracy, significantly higher than the 55.17% translation-only baseline in controlled tests.
- Inductive Bias vs. Augmentation: Hard-coding equivariance into the architecture was found to be more effective than relying solely on data augmentation.
As shown in the table above, the AEN (Autoequivariant Network) consistently achieves the highest accuracy across different augmentation levels (Aug3, Aug5) on the G-MNIST and G-Fashion-MNIST datasets, outperforming individual equivariant configurations (Eq0-Eq12).
Conclusion and Future Work
While AENs show great promise, current research is limited to discrete symmetries. Future work will explore extending these methods to continuous symmetries and discovering symmetries from scratch without pre-defined group sets. Additionally, investigating group structures beyond semidirect products, such as central extensions, remains an open mathematical challenge.
Summary updated