Learning Partial Equivariances From Data

David W. Romero, Suhas Lohit

TL;DR

Standard Group Equivariant Convolutional Neural Networks (G-CNNs) force models to treat all transformations—like every possible rotation—as identical. While useful for some tasks, this strict symmetry can actually hurt performance when orientation matters (e.g., distinguishing a '6' from a '9'). This paper introduces Partial G-CNNs, which use a probabilistic approach to automatically learn the optimal level of symmetry for each layer directly from the data.

The Problem with Perfect Symmetry

In computer vision, "equivariance" means that if you move or rotate an input, the internal features should move or rotate in the exact same way without changing their underlying meaning. Standard CNNs are naturally equivariant to translation (shifting an image). G-CNNs take this a step further, enforcing equivariance to broader mathematical groups like rotations or reflections.

However, full equivariance is a double-edged sword. If you make a model perfectly rotation-invariant to classify digits, it will fundamentally struggle to distinguish a '6' from a '9'. Furthermore, natural images have a "preferred" orientation—an upside-down elephant is much less likely to appear than a right-side-up one. Previously, researchers had to manually tune which layers should be equivariant and to what degree. This paper solves the "fixed symmetry" problem by allowing the network to learn exactly which transformations it should care about at every single layer.

Methods: Learning the Subset

The authors introduce the Partial Group Convolution. While a standard group convolution operates over an entire group (e.g., all 360 degrees of rotation), a partial one operates over a learned subset of that group.

Feature maps of a G-CNN for rotated inputs. The red box highlights a learned subset of transformations, demonstrating partial equivariance.

Key technical innovations that make this possible include:

  • Probabilistic Sampling: Instead of sampling group elements uniformly, the model learns a probability distribution over the group. If the distribution narrows, the model becomes less equivariant; if it spreads out, it approaches full equivariance.
  • Continuous Groups (e.g., Rotations): The authors use the "reparameterization trick" on the Lie algebra of the group to learn a uniform distribution over a specific continuous range (e.g., learning that only rotations between -45° and 45° matter).
  • Discrete Groups (e.g., Reflections): They use Bernoulli distributions combined with the Gumbel-Softmax trick to learn whether to include specific discrete transformations (like horizontal flips) during training.
  • Implicit Kernels: Instead of standard grids, they parameterize convolutional kernels using SIRENs (Sinusoidal Representation Networks), which are better at smoothly representing continuous group transformations.

Key Insights and Results

By treating the domain of the convolution as a learned subset, the model finds a "sweet spot" between a standard CNN (no rotation equivariance) and a full G-CNN.

  • Solving the Unsolvable: On the MNIST6-180 task (distinguishing '6' vs '9' under rotation), standard G-CNNs fail entirely, hovering at 50% accuracy because they cannot tell the digits apart. Partial G-CNNs learn to restrict their equivariance and achieve 100% accuracy.
  • Layer-wise Flexibility: The optimal symmetry often changes with depth. The paper finds that low-level features (like edges) benefit from more equivariance, while high-level features (like faces or objects) often require the model to "break" symmetry to understand global orientation.
  • Natural Images: On CIFAR-100, Partial G-CNNs outperformed both standard CNNs and fully equivariant G-CNNs. For example, using an E(2) base group, they reached 61.46% accuracy, significantly higher than the non-partial version's 57.78%.
  • Efficiency Gains: Because Partial G-CNNs learn to ignore irrelevant transformations, they can be highly efficient. The authors observed up to a 2.5x speedup in execution time and memory usage compared to full G-CNNs on certain tasks.
  • Robustness: When full equivariance is actually the right answer (like in the RotMNIST benchmark, where digits are rotated a full 360°), the Partial G-CNN successfully learns to stay fully equivariant, matching the performance of specialized models.

Limitations and Future Work

The authors noted that learning distributions over discrete groups (like flips) can be unstable, requiring a significantly lower learning rate for those specific parameters. Additionally, the current theory is limited to "regular" group representations. Extending this framework to "irreducible" representations—which are common in 3D physics-based machine learning—is a highly anticipated next step. Finally, scaling this approach to very large, complex groups (like simultaneous rotation, scaling, and translation) remains computationally challenging.

Summary updated

BibTeX
@inproceedings{romero2022learning,
  author = {David W. Romero and Suhas Lohit},
  title = {{Learning Partial Equivariances From Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=6FOdv2jlnS},
}
Figure