SEIS: Subspace-based Equivariance and Invariance Scores for Neural Representations
Huahua Lin, Katayoun Farrahi, Xiaohao Cai
TL;DR
SEIS introduces a subspace-based metric to quantify how neural representations preserve geometric structure under transformations, explicitly disentangling equivariance and invariance without labels. It uses a spatially-aware matricization and SVD denoising, followed by Canonical Correlation Analysis to measure alignment between original and transformed activations. Across experiments, early layers exhibit strong equivariance while deeper layers become more invariant; data augmentation amplifies invariance while preserving equivariance, and multi-task learning enhances both properties in shared encoders, with skip connections helping restore equivariance during decoding. This framework enables layer-wise, transformation-agnostic diagnostics of geometric stability with practical implications for designing symmetry-aware architectures and training regimes.
Abstract
Understanding how neural representations respond to geometric transformations is essential for evaluating whether learned features preserve meaningful spatial structure. Existing approaches primarily assess robustness by comparing model outputs under transformed inputs, offering limited insight into how geometric information is organized within internal representations and failing to distinguish between information loss and re-encoding. In this work, we introduce SEIS (Subspace-based Equivariance and Invariance Scores), a subspace metric for analyzing layer-wise feature representations under geometric transformations, disentangling equivariance from invariance without requiring labels or explicit knowledge of the transformation. Synthetic validation confirms that SEIS correctly recovers known transformations. Applied to trained classification networks, SEIS reveals a transition from equivariance in early layers to invariance in deeper layers, and that data augmentation increases invariance while preserving equivariance. We further show that multi-task learning induces synergistic gains in both properties at the shared encoder, and skip connections restore equivariance lost during decoding.
