Orbit Averaging for Invariant Machine Learning

34 concepts31 papers1 proposal

When designing machine learning models for physical systems, molecules, or images, we often know beforehand that the underlying system obeys strict geometric or physical laws. For instance, a molecule's properties do not change if it is rotated in space, and a medical image contains the same diagnostic information whether it is shifted left or right.

To force a model to respect these properties, practitioners traditionally rely on data augmentation—inflating the training set with randomly rotated or translated copies of the data. However, data augmentation only forces the model to learn an approximation of the symmetry; it does not guarantee it. Furthermore, as shown by Schölkopf et al. and Olivier Chapelle in Incorporating invariances in nonlinear Support Vector Machines, embedding transformation-based invariances directly into the model structure is mathematically cleaner and more sample-efficient than inflating datasets with virtual examples.

Orbit averaging (or group averaging) is a foundational mathematical mechanism that bakes these symmetries directly into the architecture of neural networks and kernel methods. Instead of hoping a model learns a symmetry, orbit averaging mathematically projects any arbitrary function into a subspace that strictly satisfies the desired symmetry.


The Intuition: Symmetries and Orbits

To understand orbit averaging, we must first define a group $G$ as a collection of transformations (like rotations, reflections, or translations) and an orbit as the set of all possible states an input $x$ can reach when acted upon by every transformation in that group.

If we have an image of a digit, $x$, and our group $G$ consists of four $90^\circ$ rotations, the orbit of $x$ is the set containing the original image, the $90^\circ$ rotated image, the $180^\circ$ rotated image, and the $270^\circ$ rotated image.

An invariant function is one that yields the exact same output for every single element within the same orbit: $$f(g \cdot x) = f(x) \quad \forall g \in G$$

Orbit averaging achieves this property by taking a standard, symmetry-agnostic model $f(x)$, evaluating it on every single transformed version of the input within the orbit, and computing the mean. This is known mathematically as the Reynolds operator:

$$f_{\text{inv}}(x) = \frac{1}{|G|} \sum_{g \in G} f(g \cdot x)$$

Why Does This Guarantee Invariance?

Imagine passing a pre-rotated input $g' \cdot x$ into our averaged function $f_{\text{inv}}$:

$$f_{\text{inv}}(g' \cdot x) = \frac{1}{|G|} \sum_{g \in G} f(g \cdot g' \cdot x)$$

Because a mathematical group satisfies the property of closure, multiplying every element $g$ in the group by a fixed element $g'$ simply permutes the order of the elements. The summation still visits every single transformation in the orbit exactly once. Therefore, the total sum—and its average—remains completely unchanged. Invariance is achieved by design, requiring zero training or data augmentation to enforce.


Group-Averaged Symmetries in Neural Networks

Orbit averaging can be applied directly to the inputs and outputs of neural networks to enforce either invariance or equivariance (where transforming the input transforms the output in a corresponding manner).

Siamak Ravanbakhsh in Universal Equivariant Multilayer Perceptrons demonstrated that group-averaged symmetrization provides a universal framework for geometric deep learning: an MLP constrained via regular group actions can approximate any continuous equivariant function.

This mechanism is highly versatile and can be applied across different paradigms:


Orbit-Averaged Kernels

In kernel methods, such as Support Vector Machines or Gaussian Processes, similarity is measured using a base kernel $k(x, y)$. If the underlying task is invariant, we want our kernel to reflect that the similarity between two points does not change if either point undergoes a transformation.

To build an argumentwise invariant kernel, the authors of Argumentwise invariant kernels for the approximation of invariant functions (Ginsbourger et al.) formulate a double-summation over the orbits of both inputs:

$$k_{\text{inv}}(x, y) = \frac{1}{|G|^2} \sum_{g \in G} \sum_{h \in G} k(g \cdot x, h \cdot y)$$

This approach preserves the local correlation structure of the original kernel across the entire input space far better than alternative methods, such as mapping inputs to a single representative "fundamental domain," which often introduces artificial discontinuities.

Standard Kernel Evaluation:
[ x ] ───► [ k(x, y) ] ◄─── [ y ]

Orbit-Averaged Kernel Evaluation:
[ Orbit of x: {g₁x, g₂x, ...} ] ──┐
                                  ├──► [ Average all k(gᵢx, hⱼy) ] ──► Invariant Similarity
[ Orbit of y: {h₁y, h₂y, ...} ] ──┘

This formulation allows models to automatically discover structural relationships. For example, van der Wilk et al. in Learning Invariances using the Marginal Likelihood demonstrate that by parameterizing the transformations within an orbit-averaged kernel, a Gaussian Process can use its marginal likelihood to automatically learn which transformations (e.g., specific rotation angles or scaling factors) the data is invariant to, eliminating manual guesswork.


Why It Works: Generalization and Variance Reduction

Why does forcing a model to look at an entire orbit improve performance so dramatically? The benefit can be understood through two lenses: variance reduction and hypothesis space constraint.

Variance Reduction via Smoothing

When we compute an average over an orbit, we are performing a statistical smoothing operation. Tahmasebi et al. in Generalization Bounds for Canonicalization: A Comparative Study with Group Averaging prove that group averaging acts as a powerful variance reduction mechanism. By averaging out the non-invariant components of an estimator, it stabilizes predictions and significantly lowers generalization error, especially when training data is scarce.

Strict Generalization Bounds

Practitioners have long observed that invariant models learn faster, but Bryn Elesedy provided the mathematical proof for this phenomenon. In Provably Strict Generalisation Benefit for Invariance in Kernel Methods, Elesedy proved that for Kernel Ridge Regression, an invariant model will strictly outperform a non-invariant model if the target task itself is invariant.

By projecting the model's hypothesis space exclusively onto functions that respect the group's symmetries, you shrink the size of the search space. As quantified by Cioba et al. in Reinforcement Learning Using known Invariances and Bietti et al. in On the Sample Complexity of Learning under Geometric Stability, this projection reduces the sample complexity of the learning problem by a factor proportional to the size of the symmetry group ($|G|$).

Ultimately, orbit averaging works because it prevents the model from wasting capacity. It eliminates the need to learn that a rotated or translated input yields the same outcome, allowing every data point to update the entire symmetric orbit simultaneously.

Key Foundational Work

Dimension and Margin Bounds for Reflection-invariant Kernels (2008) — contributed 1 concept elements to this direction.
Incorporating invariances in nonlinear Support Vector Machines (2001) — contributed 1 concept elements to this direction.
Incorporating Invariances in Non-Linear Support Vector Machines (2001) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_orbit_averaging_54a8ed2b,
  title = {orbit averaging},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/orbit-averaging/rdr_54a8ed2b69f04116bfeb152834a655ae},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_orbit_averaging_54a8ed2b_v1,
  title = {orbit averaging},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/orbit-averaging/rdr_54a8ed2b69f04116bfeb152834a655ae/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake