NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Training or Architecture? How to Incorporate Invariance in Neural Networks

Kanchana Vaishnavi Gandikota, Jonas Geiping, Zorah Lähner, Adam Czaplinski, Michael MöllerarXiv 2021

Abstract

Many applications require the robustness, or ideally the invariance, of a neural network to certain transformations of input data. Most commonly, this requirement is addressed by either augmenting the training data, using adversarial training, or defining network architectures that include the desired invariance automatically. Unfortunately, the latter often relies on the ability to enlist all possible transformations, which make such approaches largely infeasible for infinite sets of transformations, such as arbitrary rotations or scaling. In this work, we propose a method for provably invariant network architectures with respect to group actions by choosing one element from a (possibly continuous) orbit based on a fixed criterion. In a nutshell, we intend to 'undo' any possible transformation before feeding the data into the actual network. We analyze properties of such approaches, extend them to equivariant networks, and demonstrate their advantages in terms of robustness as well as computational efficiency in several numerical examples. In particular, we investigate the robustness with respect to rotations of images as well as the provable rotational and scaling invariance of 3D point cloud classification.

Introduction

In the world of deep learning, achieving model invariance is a fundamental challenge. Ideally, a neural network should recognize an object—such as a cat—regardless of whether the input image is right-side up, tilted, or scaled. Traditionally, researchers have relied on brute-force data augmentation or the design of complex, specialized architectures to teach models to ignore these transformations.

Researchers from the University of Siegen propose a third path: Orbit Mapping. Instead of training a network to be smart enough to ignore transformations, they propose "undoing" the transformation before the data even reaches the primary network. This approach provides a framework for provable invariance for continuous transformations without the massive computational overhead of traditional methods.

The Challenge of Invariance

Standard neural networks are notoriously fragile. A model trained on upright images may fail entirely if an image is rotated by a mere 45 degrees. Current solutions to this problem have significant limitations:

  1. Data Augmentation: While showing the model many rotated versions of an image helps, it does not guarantee invariance; the model may still possess "blind spots" at specific angles.
  2. Adversarial Training: Training on the "hardest" possible rotations is computationally expensive and often unstable.
  3. Invariant Architectures: Specialized layers (like Group Equivariant CNNs) are mathematically elegant but often restricted to finite groups (e.g., 90-degree rotations) and struggle to scale to continuous transformations like arbitrary rotation or scaling.

Proposed Method: Orbit Mapping

The core innovation of this work is the use of a mapping function $h$ that selects exactly one representative element from an "orbit"—the set of all possible versions of an input under a specific transformation group.

Visualizing Orbit Mapping: (a) shows various rotations of an input, (b) shows the canonical mapping element, and (c) compares the resulting classification stability against standard methods.

By standardizing the pose of the input data, the authors effectively "align" the data before it enters a standard classifier:

  • 2D Images: The method utilizes a gradient-based strategy. By calculating the average gradient direction of an image and rotating it so this "mean gradient" always points in a fixed direction (e.g., up), the system "undos" arbitrary rotations.
  • 3D Point Clouds: The authors use Principal Component Analysis (PCA) to align an object's main axes with the coordinate system and scale the object based on the average distance of points to the origin.

Experimental Results

The authors evaluated Orbit Mapping across several benchmarks, including CIFAR-10, HAM10000 (skin lesions), CUB-200 (birds), and ModelNet40 (3D point clouds).

Key findings include:

  • Superior Robustness: On CIFAR-10, a standard model's worst-case accuracy under rotation is near 0%. While data augmentation improves this to ~44%, Orbit Mapping achieves ~71%.
  • Predictive Stability: As shown in the performance graph, the "Ours-aligned" approach (blue line) maintains a high and consistent softmax probability for the correct class across all rotation angles (0 to 2π). In contrast, standard augmentation (green line) shows extreme volatility.
  • 3D Invariance: In 3D point cloud tasks, where discretization artifacts are less of an issue than in 2D pixels, the method achieved near-perfect invariance across scales ranging from 0.001x to 1000x.
  • Efficiency: Orbit Mapping serves as a simple pre-processing step with negligible computational cost, unlike the iterative passes required for adversarial training.

Conclusion and Future Work

Orbit Mapping demonstrates that fixing input data is often more efficient than increasing the complexity of the neural network itself. While the method provides a strong foundation for invariance, challenges remain regarding discretization artifacts—the "noise" created when interpolating pixels during rotation—and handling perfectly symmetrical objects where gradient-based alignment may become unstable. Future work will look toward extending these principles to more complex, non-rigid transformations.

Summary updated

BibTeX
@misc{gandikota2021training,
  author = {Kanchana Vaishnavi Gandikota and Jonas Geiping and Zorah Lähner and Adam Czaplinski and Michael Möller},
  title = {{Training or Architecture? How to Incorporate Invariance in Neural Networks}},
  year = {2021},
  eprint = {2106.10044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.10044},
}
Figure