Skip to main content
QUICK REVIEW

[Paper Review] The Lie Derivative for Measuring Learned Equivariance

Nate Gruver, Marc Finzi|arXiv (Cornell University)|Oct 6, 2022
Neural Networks and ApplicationsComputer Science6 citations
TL;DR

This paper introduces the Lie derivative as a continuous, mathematically grounded metric to measure equivariance in deep learning models under smooth transformations. Using this method, the authors analyze hundreds of models and find that larger, more accurate models—including vision transformers—exhibit stronger equivariance than CNNs, despite lacking architectural inductive biases, with pointwise nonlinearities being a major source of equivariance violations due to spatial aliasing.

ABSTRACT

Equivariance guarantees that a model's predictions capture key symmetries in data. When an image is translated or rotated, an equivariant model's representation of that image will translate or rotate accordingly. The success of convolutional neural networks has historically been tied to translation equivariance directly encoded in their architecture. The rising success of vision transformers, which have no explicit architectural bias towards equivariance, challenges this narrative and suggests that augmentations and training data might also play a significant role in their performance. In order to better understand the role of equivariance in recent vision models, we introduce the Lie derivative, a method for measuring equivariance with strong mathematical foundations and minimal hyperparameters. Using the Lie derivative, we study the equivariance properties of hundreds of pretrained models, spanning CNNs, transformers, and Mixer architectures. The scale of our analysis allows us to separate the impact of architecture from other factors like model size or training method. Surprisingly, we find that many violations of equivariance can be linked to spatial aliasing in ubiquitous network layers, such as pointwise non-linearities, and that as models get larger and more accurate they tend to display more equivariance, regardless of architecture. For example, transformers can be more equivariant than convolutional neural networks after training.

Motivation & Objective

  • To develop a continuous, differentiable metric for measuring equivariance in deep neural networks that avoids the limitations of discrete transformation metrics.
  • To understand the role of architecture, model size, and training in achieving equivariance, especially in non-convolutional models like vision transformers.
  • To identify specific layers and components—particularly pointwise nonlinearities—that contribute most to equivariance violations due to spatial aliasing.
  • To assess whether generalization performance correlates with equivariance, independent of architectural bias.
  • To evaluate whether data augmentation and model capacity implicitly learn equivariance even without architectural inductive biases.

Proposed method

  • Define the local equivariance error (LEE) using the Lie derivative to quantify how much a function deviates from equivariance under continuous group actions (e.g., translation, rotation, scaling).
  • Compute the Lie derivative as the directional derivative of the network’s output with respect to continuous transformations, normalized by input size to ensure resolution-invariance.
  • Decompose the total LEE layer-by-layer to attribute equivariance error to individual components, enabling fine-grained analysis of architectural units.
  • Use a trace estimator to efficiently compute the norm of the Lie derivative across multiple random directions in the Lie algebra, reducing computational cost.
  • Apply the metric to a large-scale benchmark of 300+ pretrained models across CNNs, vision transformers, and MLP-based architectures (e.g., ViT, MLP-Mixer).
  • Compare results with discrete consistency and group-sample equivariance metrics to validate the Lie derivative’s advantages in sensitivity and resolution invariance.

Experimental results

Research questions

  • RQ1To what extent do vision transformers and MLP-based models achieve translation and rotation equivariance compared to CNNs, despite lacking architectural inductive biases?
  • RQ2Which layers or components within neural networks are the primary sources of equivariance violations, and how do they relate to spatial aliasing?
  • RQ3Does improved model accuracy correlate with increased equivariance under continuous transformations, even without explicit architectural constraints?
  • RQ4How does the Lie derivative metric compare to discrete or group-based equivariance metrics in sensitivity and interpretability?
  • RQ5Can models trained with standard data augmentation implicitly learn equivariance, and if so, how does this compare to models with explicit architectural inductive biases?

Key findings

  • Vision transformers and MLP-based models often exhibit higher translation and rotation equivariance than CNNs after training, even though CNNs are architecturally biased for translation equivariance.
  • Pointwise nonlinearities—common in both CNNs and vision transformers—are a major source of equivariance violations, primarily due to spatial aliasing from discrete sampling.
  • Larger and more accurate models consistently show greater equivariance across architectures, suggesting that model capacity and training implicitly improve symmetry preservation.
  • The Lie derivative metric reveals that models with higher accuracy also display increased equivariance under hyperbolic rotations and brightening, indicating broader symmetry learning beyond standard data augmentations.
  • The Lie derivative enables layer-wise decomposition of equivariance error, exposing that non-linearities contribute disproportionately to equivariance loss, especially in deeper networks.
  • The continuous nature of the Lie derivative detects aliasing effects invisible to discrete metrics, highlighting its advantage in capturing subtle symmetry violations in deep networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.