Training Dynamics of Learning 3D-Rotational Equivariance
Max W. Shen, Ewa Nowara, Michael Maser, Kyunghyun Cho
TL;DR
This work introduces a principled twirl/twist framework to quantify how much of a model’s loss stems from failing to be equivariant under 3D rotations, decomposing the total loss into a mean-prediction term and an equivariance term. It provides exact and unbiased finite-sample estimators for these components, and demonstrates across three high-dimensional molecular tasks that 3D-rotational equivariance is learned rapidly, with the equivariance error shrinking to a small fraction of the total loss early in training. The authors show the equivariance loss landscape is markedly smoother than the main loss, enabling quick optimization, and they connect equivariance error to gradients and parameter-space deviations, including a quadratic relationship in a decomposed parameter space. The results explain when symmetry-respecting architectures offer an advantage and highlight avenues to narrow the efficiency gap, such as architectural design and test-time twirling, with broader applicability to other symmetry groups.
Abstract
While data augmentation is widely used to train symmetry-agnostic models, it remains unclear how quickly and effectively they learn to respect symmetries. We investigate this by deriving a principled measure of equivariance error that, for convex losses, calculates the percent of total loss attributable to imperfections in learned symmetry. We focus our empirical investigation to 3D-rotation equivariance on high-dimensional molecular tasks (flow matching, force field prediction, denoising voxels) and find that models reduce equivariance error quickly to $\leq$2\% held-out loss within 1k-10k training steps, a result robust to model and dataset size. This happens because learning 3D-rotational equivariance is an easier learning task, with a smoother and better-conditioned loss landscape, than the main prediction task. For 3D rotations, the loss penalty for non-equivariant models is small throughout training, so they may achieve lower test loss than equivariant models per GPU-hour unless the equivariant ``efficiency gap'' is narrowed. We also experimentally and theoretically investigate the relationships between relative equivariance error, learning gradients, and model parameters.
