Group Equivariant Generative Adversarial Networks

Neel Dey, Antong Chen, Soheil Ghafurian

Generative Adversarial Networks (GANs) are notoriously data-hungry and unstable. When training data is limited, the discriminator often overfits, leading to training collapse or poor image quality. Standard convolutional neural networks (CNNs) are built on the principle of translation equivariance—shifting an object in an image shifts its representation in the feature map. However, standard CNNs are not naturally equivariant to other transformations like rotations or reflections.

To handle these variations, researchers typically rely on data augmentation, flipping and rotating images during training. The authors of this paper argue that this approach is inefficient. Augmentation forces the network to spend its limited capacity "learning" that a rotated object (like a cell or a galaxy) is still the same object. Group Equivariant GANs (G-GANs) solve this by incorporating geometric symmetry priors directly into the neural architecture, significantly improving image synthesis quality and training stability, especially when data is scarce.

Hard-Coding Symmetry: The G-GAN Architecture

The core innovation of G-GANs is the systematic replacement of standard convolutional layers with group-equivariant convolutional layers. Unlike previous attempts that only modified one side of the GAN, this work uses equivariant layers in both the Generator and the Discriminator.

The paper focuses on two specific symmetry groups: $p4$ (all 90-degree rotations) and $p4m$ (90-degree rotations plus reflections).

Architecture of the Group Equivariant Generator, showing the progression from noise to P4 feature maps and final pooling over rotations.

To maintain symmetry throughout the network, the authors propose a novel version of class-conditional batch normalization. This Group-Equivariant BatchNorm learns affine parameters per group-feature map rather than per spatial feature map, preserving symmetry during normalization. Finally, to produce a final scalar (real/fake for the discriminator) or a final image (for the generator), the networks use "group pooling" (max or average) to ensure the final output respects the required symmetries. These layers integrate seamlessly with modern GAN stabilization techniques like Spectral Normalization and zero-centered gradient penalties.

Datasets and Evaluation

The authors evaluated their approach across a diverse set of challenges, including synthetic benchmarks (Rotated MNIST), real-world histopathology datasets where cells appear in arbitrary orientations (ANHIR & LYSTO), natural image datasets (CIFAR-10 & Food-101), and satellite imagery (Maps). Interestingly, natural datasets often have a "preferred orientation" (gravity usually points down), allowing the authors to test if symmetry priors help even when global symmetry isn't perfect.

Key Insights and Results

Hard-coding symmetry into the architecture proved to be vastly more powerful than teaching it via augmentation. On Rotated MNIST, a G-GAN trained on only 10% of the data often outperformed a standard GAN trained on 100% of the data. Furthermore, the method outperformed balanced Consistency Regularization (bCR), a popular augmentation-based technique, showing that architectural priors are more robust than loss-based constraints.

This architectural change also leads to a much more intuitive latent space. When interpolating between two points in the latent space, the G-GAN intuitively rotates the object. In contrast, a standard GAN often "morphs" or "melts" the object's shape to reach the target orientation.

Latent space interpolation on RotMNIST. The baseline GAN "melts" the digits during transition, while the proposed G-GAN smoothly rotates them.

By forcing the discriminator to be invariant to rotations, the authors effectively prevent it from "memorizing" specific orientations of real images. This acts as a powerful deterrent against overfitting. Consequently, G-GANs achieved significantly lower Fréchet Inception Distance (FID) scores across all real-world datasets. For example, on the LYSTO dataset, the FID dropped from 7.27 (standard CNN) to 3.90 (G-CNN), and the models reached high-quality synthesis in fewer training iterations. Even in datasets with a preferred orientation, local symmetries exist, and equivariant layers help the model share weights across these local features, leading to better visual fidelity.

Limitations and Future Work

While highly effective, group convolutions are computationally expensive. A $p4m$ network (handling 8 transformations) can require significantly more memory and roughly four times the computation time of a standard CNN for a fixed number of iterations. Additionally, this work is limited to discrete 90-degree rotations; extending it to continuous rotations ($SE(2)$) or complex non-rigid warps remains an open challenge. Finally, while the paper demonstrates results up to $256 \times 256$ resolution, the memory overhead of group convolutions might make scaling to massive resolutions (like $1024 \times 1024$ in StyleGAN) difficult on current hardware.

Summary updated

BibTeX
@inproceedings{dey2021group,
  author = {Neel Dey and Antong Chen and Soheil Ghafurian},
  title = {{Group Equivariant Generative Adversarial Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure