Abstract
Feature matching is a fundamental task in computer vision, essential for 3D reconstruction and visual localization. While modern transformer-based matchers like LoFTR have set new performance standards, they remain sensitive to image rotations—a common occurrence in real-world scenarios. This paper proposes SE2-LoFTR, an architecture that incorporates steerable CNNs to achieve rotation equivariance. By replacing the standard backbone with equivariant layers, the authors demonstrate that models can become significantly more robust to rotation without sacrificing accuracy on standard tasks, often while using fewer parameters.
The Challenge of Rotation in Modern Feature Matching
Classic feature descriptors like SIFT were meticulously engineered to be rotation-invariant. However, the transition to deep learning-based matchers has largely favored standard Convolutional Neural Networks (CNNs). While standard CNNs are inherently translation-invariant, they lack robustness to rotation. When an image is rotated, the internal feature representations of a standard CNN change unpredictably, causing high-performance matchers like LoFTR to fail.
This vulnerability is a significant hurdle for applications where camera orientation is not fixed, such as drone navigation or handheld photography. The authors aim to bridge this gap by integrating the mathematical rigor of rotation equivariance into modern matching pipelines.
SE2-LoFTR: Building in Rotation Equivariance
The core innovation of this work is SE2-LoFTR, a modification of the LoFTR architecture that swaps the standard ResNet-style backbone for a steerable CNN (built using the e2cnn framework).
Steerable Backbones
Unlike regular CNNs, steerable CNNs are designed to be equivariant to rotations. This means that if the input image is rotated, the resulting feature maps rotate in a predictable, structured manner. The authors explored several variants:
- SE2-LoFTR-4*: Equivariant to 90-degree rotations ($C_4$ group), utilizing only 1.1M parameters (an 80% reduction from the original 5.9M).
- SE2-LoFTR-4: A larger version matching the original model's capacity.
- SE2-LoFTR-8*: Equivariant to 45-degree rotations ($C_8$ group), offering finer-grained invariance.
By using "regular representations" in intermediate layers and a specialized readout layer, the network ensures that the final features used for coarse matching are invariant to the chosen rotation group.
Experimental Setup and Datasets
The models were trained on the MegaDepth dataset. Evaluation was conducted using:
- HPatches: The standard benchmark for viewpoint and illumination changes.
- HPatches-r20 & HPatches-r45: Custom variants introduced to test robustness against 20° and 45° rotations.
- HPatches-h0.3: A homography-warped variant to test general geometric distortion handling.
Results: Robustness Without the "Invariance Tax"
The quantitative improvements on rotated images are stark. On the HPatches-r45 dataset, the original LoFTR's Mean Match Accuracy (MMA) at 3px dropped to 35.0%. In contrast, SE2-LoFTR-8* maintained an accuracy of 80.4%. Geometric accuracy (AUC @ 5px) also saw a massive jump from 22.9% to 55.2%.
Interestingly, the authors found no "invariance tax." Often, adding invariance to a model degrades performance on standard data. However, SE2-LoFTR-4 actually improved the viewpoint matching score on standard HPatches from 88.9% to 90.8%. This suggests that rotation-aware features are inherently more robust descriptors of scene geometry.
Key Insights
- Efficiency: The SE2-LoFTR-4* model matches baseline performance with 80% fewer parameters, demonstrating that rotation equivariance is a powerful inductive bias.
- Architecture vs. Augmentation: Building equivariance into the network architecture proved far more effective than simply using rotated images as data augmentation during training.
Discussion and Future Directions
While the CNN backbone is now rotation-equivariant, the subsequent Transformer layers in LoFTR are not. The positional encodings used in Transformers currently break full rotation invariance. Future work could involve developing fully equivariant Transformer modules to achieve even higher precision for arbitrary rotations. Additionally, while steerable convolutions are currently slower to train, they can be optimized for inference by converting them back to standard convolutions.
Summary updated