Tunable Soft Equivariance with Guarantees

Md Ashiqur Rahman, Lim Jun Hao, Jeremiah Jiang, Teck-Yian Lim, Raymond A. Yeh

TL;DR

This paper introduces an architecture-agnostic framework to inject "soft" equivariance into any pre-trained neural network by projecting its weights into a mathematically bounded subspace. By adjusting a single cutoff hyperparameter, practitioners can smoothly tune the trade-off between strict symmetry and model expressiveness, achieving better performance and lower symmetry errors on competitive benchmarks like ImageNet.

What Problem Does This Paper Address?

Symmetries—such as shift or rotation equivariance—are powerful inductive biases in computer vision. For example, if an image rotates, we expect a semantic segmentation mask to rotate in the exact same way. However, real-world data rarely satisfies strict mathematical symmetry, and forcing a model to be perfectly equivariant can severely limit its capacity to learn complex, asymmetric features.

While "soft" equivariance methods exist (such as data augmentation, loss regularization, or residual mixing), they lack theoretical guarantees on the resulting symmetry error and often require specialized, custom architectures. The authors address this gap by proposing a method that can retroactively apply tunable soft equivariance to any off-the-shelf pre-trained model (like ViTs or ResNets) while providing strict mathematical bounds on the equivariance error.

Methods

The authors bridge deep learning and traditional signal processing by treating soft equivariance as a generalized form of "blurring" or low-pass filtering on model weights.

  1. Relative Soft Equivariance: The authors define a scale-invariant metric for soft equivariance ($\eta$-soft equivariant) by normalizing the equivariance error against the model's local Jacobian, making the error easier to interpret regardless of output scale.
  2. Weight Projection via Subspaces: For continuous transformation groups (Lie groups), they compute the Singular Value Decomposition (SVD) of the Lie algebra representation. They then design a projection operator that filters out weight components highly sensitive to the group transformation based on a tunable cut-off threshold $b$.
  3. Schur Decomposition for Speed: Standard SVD on large Kronecker product matrices scales poorly ($O((d \cdot d')^3)$). To make this practical for large foundation models, the authors introduce an alternative projection using Schur decomposition, dropping the time complexity to $O(\max(d, d')^3)$ for normal matrices (like 2D/3D rotations).
  4. Discrete Groups: They extend the framework to finite discrete groups by replacing the Lie algebra representation with a group forward-difference operator.

Datasets

The method was evaluated across a diverse set of tasks and datasets:

  • MNIST: Used for initial validation of the tunable softness levels.
  • CIFAR-10 & CIFAR-100: Image classification benchmarks for fine-tuning pre-trained backbones.
  • ImageNet-1K: A large-scale, highly competitive image classification benchmark.
  • PASCAL VOC (2012): Used to evaluate semantic segmentation performance.
  • ETH & UCY: Human trajectory prediction datasets used to test the method beyond standard image grids.

Key Insights and Ideas

  • Symmetry as a Filter: Enforcing soft invariance is mathematically equivalent to constraining model weights to a bandlimited subspace.
  • Bypassing the Trade-Off: Conventionally, increasing a model's symmetry constraints hurts its standard accuracy (the expressiveness trade-off). Surprisingly, on large benchmarks like ImageNet, the authors find a "sweet spot" where soft equivariance actually improves accuracy while simultaneously reducing symmetry error.
  • Smooth Thresholding Wins: Instead of a hard cut-off for filtering out non-equivariant weight components, applying a smooth thresholding function yields better task performance and lower equivariance error.

Key Results

  • ImageNet Gains: Applying the soft equivariance layer to a pre-trained ViT-B/16 improved top-1 accuracy from 81.67% to 82.28% while cutting the invariance error in half (from 0.36 to 0.15).
  • Segmentation Consistency: On PASCAL VOC, the method boosted ViT's mIoU from 73.40 to 74.78 and reduced equivariance error.
  • Computational Efficiency: The Schur-based projection operator takes less than a second to compute for a $14 \times 14$ input size, whereas the standard SVD approach takes nearly 15 minutes.
Figure 1. Visualization of the ViT [12] weights with our soft equivariance layer (w.r.t. 90→rotation) under different softness levels, along with the corresponding extracted features and the equivariance errors. Our tunable design allows the layers’ weights to transition smoothly from perfectly equivariant to fully non-equivariant behavior in a controlled manner.

Limitations and Future Work

  • Group Restrictions for Efficiency: The highly efficient Schur decomposition method is currently restricted to groups whose Lie algebra representations are normal matrices (e.g., 2D or 3D rotations). Extending this computational efficiency to more complex, non-normal transformation groups remains an open challenge.
  • Hyperparameter Tuning: The optimal softness hyperparameter $b$ must still be tuned empirically via validation sets for each specific architecture and dataset.

Summary updated

BibTeX
@inproceedings{rahman2026tunable,
  author = {Md Ashiqur Rahman and Lim Jun Hao and Jeremiah Jiang and Teck-Yian Lim and Raymond A. Yeh},
  title = {{Tunable Soft Equivariance with Guarantees}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=8iNWzp0kVZ},
}
Figure