Equivariance with Learned Canonicalization Functions
The paper introduces a framework for building an invariant or equivariant model/function approximator by learning a canonicalization function. Instead of forcing the whole prediction network to be equivariant by architectural design, the model first maps the input to a canonical representative, applies a prediction network there, and then transforms the output back if needed.
Problem Setting
The authors consider inputs and outputs , where both spaces are finite-dimensional vector spaces. A symmetry group acts on the input space through a representation and on the output space through another representation .
The goal is to learn a function , that is equivariant. A function is -equivariant if transforming the input by causes the output to transform consistently:
If , then the output does not transform, and the function is invariant.
The orbit of an input is the set of all transformed versions of :
Canonicalization means choosing one representative from this orbit and mapping all equivalent inputs to that representative.
General Canonicalization Framework
The main construction writes an equivariant function as
where
- is the canonicalization function.
- is the canonicalized input.
- is the prediction function applied in canonical space.
- transforms the output back to the correct pose/frame.
Conceptually, this means that the input is canonicalized, then the predictor function is applied, then the output is transformed back from the canonical space.
For invariant tasks, such as classification, the final transformation is unnecessary because the output should not change under the group action. In that case,
and the model reduces to
Partial Canonicalization
The paper then generalizes the framework by allowing only part of the symmetry to be handled by canonicalization. Let be a subgroup. The prediction function is assumed to be -equivariant, while the canonicalizer handles the remaining symmetry.
In other words, if the predictor that is used already handles part of the symmetry naturally, the canonicalization only needs to handle the remaining symmetry.
For example, if we want to design an architecture that is equivariant to rotations and translations, we can use a canonicalizer with MLP. However, a CNN is already translation-equivariant, so the model can let the CNN handle translations and use the canonicalizer only for rotations/reflections.
Design of Canonicalization Functions
The paper presents two main approaches.
Direct Approach
In the direct approach, the canonicalization function is an equivariant neural network that directly outputs a group element:
For example, if the symmetry group is rotations, the network outputs a rotation. If the group is permutations, it outputs a permutation or a relaxed permutation. If the group is Euclidean transformations, it outputs a rotation/reflection and translation.
The direct approach is simple conceptually, but it requires the canonicalization network itself to be equivariant.
Optimization Approach
In the optimization approach, the canonicalization function does not directly predict the transformation. Instead, it searches for the transformation that makes the input look most canonical.
The model defines an energy function that measures how “canonical” a transformed input looks. Then it chooses the transformation that gives the lowest energy:
Conceptually, this is like mentally rotating an object until it appears upright or standard. The advantage is that the energy function itself can be ordinary; the structure comes from evaluating it on transformed versions of the input.
Backlinks
Notes that reference this page.
Connections
Direct relationships to this note.