← Explainer Library

Interactive Explainer

Equivariant Networks, Live

A neural network is equivariant to a transformation when rotating the input rotates the output the same way. For satellite imagery, molecules, point clouds, and any system without a privileged orientation, this is what you want and most vanilla networks don't deliver it.

Step 1

Equivariance vs invariance

$f$ is equivariant to a transformation $T_g$ if applying $T_g$ to the input has the same effect as applying some (possibly different) transformation to the output. Invariance is the special case where the output doesn't change at all.

Step 2

Why a vanilla CNN can't rotate

A standard 3×3 convolution filter is a fixed pattern in pixel space. Rotating the input does not rotate the filter; the response thrashes. Three classical fixes:

Step 3

Live: rotate the input, watch three architectures respond

A synthetic airplane-silhouette input is rotated by θ. Three tiny networks emit a feature vector. Plot the L2 distance between the feature at θ=0 and the feature at the current θ. A perfectly invariant network would output a flat line at zero; a perfectly equivariant one would show a clean orbit shape. The vanilla CNN responds erratically.

input at θ
vanilla CNN response
augmented CNN response
C4 group conv response
Feature distance from θ=0, swept over θ
Step 4

Where to use what

The slogan. Equivariance is data efficiency in disguise. A network that can't rotate has to learn every rotation separately; an equivariant network sees the rotation as a symmetry and spends its capacity on the parts that actually matter.
Step 5

Practical gotchas