Symmetry Group

A symmetry group is a set of transformations that can be composed, inverted, and applied without changing the kind of object being studied. For machine learning, the important question is how data and predictions behave under these transformations.

A group has an operation such that:

It also has an identity element and inverse :

A group action applies a group element to an object:

Examples include rotating a point cloud, translating an image, permuting graph nodes, or reflecting a molecule.

Group Action

A group action must be compatible with the group operation:

and:

This is what lets a model reason about transformations consistently. If preprocessing breaks this relationship, the claimed symmetry is no longer exact.

Invariance and Equivariance

An invariant function ignores the transformation:

An equivariant function transforms its output predictably:

where is the representation of the transformation on the output space.

Representation on Outputs

The output may transform differently from the input.

Task outputDesired behavior
class labelinvariant under allowed transformations
scalar energy or scoreinvariant under rigid motion
coordinate predictionequivariant under rotation/translation
vector field or forcerotates with the input frame
graph node labelspermutes with node ordering

For example, if are coordinates and is a rotation, a coordinate-predicting model should satisfy:

while an energy model should satisfy:

Exact, Approximate, Broken

Not every useful symmetry is exact.

Symmetry statusMeaningExample
exacttask definition should respect itrigid-motion invariance of molecular energy
approximatedata mostly respects it but exceptions existimage translation with boundary effects
intentionally brokenexternal frame mattersgravity direction, lab frame, camera view
preprocessing-inducedpipeline chooses a canonical framealigned structures or cropped images

The modeling choice should match the task, not only the data format.

Common Groups

  • Permutation group: reorders set or graph elements.
  • Translation group: shifts coordinates or grids.
  • Rotation group: rotates vectors or structures.
  • SO(3): 3D rotations.
  • SE(3): 3D rotations and translations.
  • E(3): 3D rotations, translations, and reflections.

Practical Checks

  • What transformation should not change the meaning of the input?
  • Should the output be invariant, equivariant, or neither?
  • Is the symmetry exact by construction, approximate in data, or broken by the task?
  • Does preprocessing impose a coordinate frame that changes the symmetry assumption?
  • What is the group action on the input and representation on the output?
  • Does augmentation encourage symmetry, or does architecture enforce it?