Abstract
Although provably robust to translational perturbations, convolutional neural networks (CNNs) are known to suffer from extreme performance degradation when presented at test time with more general geometric transformations of inputs. Recently, this limitation has motivated a shift in focus from CNNs to Capsule Networks (CapsNets). However, CapsNets suffer from admitting relatively few theoretical guarantees of invariance. We introduce a rigorous mathematical framework to permit invariance to any Lie group of warps, exclusively using convolutions (over Lie groups), without the need for capsules. Previous work on group convolutions has been hampered by strong assumptions about the group, which precludes the application of such techniques to common warps in computer vision such as affine and homographic. Our framework enables the implementation of group convolutions over any finite-dimensional Lie group. We empirically validate our approach on the benchmark affine-invariant classification task, where we achieve ~30% improvement in accuracy against conventional CNNs while outperforming most CapsNets. As further illustration of the generality of our framework, we train a homography-convolutional model which achieves superior robustness on a homography-perturbed dataset, where CapsNet results degrade.
The Challenge of Geometric Invariance
Standard Convolutional Neural Networks (CNNs) are inherently "translation equivariant"—a shift in the input image results in a corresponding shift in internal feature maps. However, this property does not naturally extend to more complex geometric transformations such as rotations, scaling, or perspective warps (homographies). When faced with these transformations at test time, standard CNN performance typically plummets because the architecture lacks a native understanding of these symmetries.
To address this, researchers have explored Group-CNNs (G-CNNs), which generalize convolutions to transformation groups, and Capsule Networks (CapsNets), which model part-whole relationships. However, G-CNNs have historically been limited by strict mathematical constraints, such as the requirement for a surjective exponential map, which excludes common warps like affine and homographic transformations. Meanwhile, CapsNets often function as "black boxes" with few theoretical guarantees regarding their invariance properties.
A Framework for Arbitrary Lie Groups
We propose a rigorous mathematical framework that enables equivariance for any finite-dimensional Lie group. This approach bridges the gap between abstract group theory and practical deep learning through three primary innovations:
- Volume-Preserving Lifting: We introduce a "lifting layer" that maps a 2D image into a function on a Lie group. By incorporating the Jacobian determinant into the convolution formula, we ensure that equivariance is maintained even when transformations distort the input's volume (e.g., stretching or squashing).
- MCMC Sampling from Haar Measure: To handle continuous groups, we utilize Markov Chain Monte Carlo (MCMC) sampling to draw from the Haar measure—the natural volume measure on a group. This allows the framework to generalize to any finite-dimensional Lie group without requiring a simple group structure.
- Parallelized Metropolis Algorithm: To ensure computational efficiency during training, the sampling process is parallelized using boolean matrices, providing significant speedups over sequential methods.
A key theoretical insight of this work is that while the initial lifting layer may contain approximation errors due to sampling, higher convolutional layers remain perfectly equivariant. The sampling density affects the variance and trainability of the network but does not compromise its fundamental symmetry.
Empirical Validation
We evaluated our models, affConv and homConv, on standard MNIST and two distorted variants: affNIST (affine transformations) and homNIST (a new benchmark of perspective warps sampled from the Haar measure).
On the affNIST benchmark, affConv achieved 95.08% accuracy, a massive improvement over standard CNNs (66%) and specialized E(2)-equivariant models (57.10%). On the more challenging homNIST dataset, homConv reached 95.71% accuracy, significantly outperforming the best Capsule Network (84.67%).
Notably, our models achieve these results with high parameter efficiency. For instance, affConv utilizes approximately 373K parameters, whereas some Capsule Network variants require millions to achieve lower robustness.
Conclusion and Future Work
This framework demonstrates that the robustness to viewpoint and pose typically associated with Capsule Networks can be achieved through mathematically rigorous group convolutions. By removing the requirement for surjective exponential maps, we open the door to homographic equivariance, which is critical for real-world applications like autonomous navigation.
The current primary limitation is memory usage, as stacking group-convolutional layers can lead to a combinatorial increase in required samples. Future research will focus on optimizing these path-integral methods to support deeper, more memory-efficient architectures capable of processing high-resolution imagery.
Summary updated