Steerable Equivariant Representation Learning

Sangnie Bhardwaj, Willie McClinton, Tongzhou Wang, Guillaume Lajoie, Chen Sun, Phillip Isola, Dilip Krishnan

TL;DR

Standard deep vision models enforce invariance to data augmentations, discarding useful geometric and photometric details. This paper introduces an architecture-agnostic regularization framework that trains models to be steerable and equivariant, enabling direct latent-space manipulation via lightweight learned maps. This approach yields better transfer learning, boosts robustness on corrupted images, and provides a ~50× speedup for test-time augmentation in out-of-distribution detection.

What Problem Does This Paper Address?

Standard supervised and self-supervised vision models rely heavily on data augmentations (e.g., cropping, color jitter, rotations) during training. Typically, the objective encourages the network to map all augmented versions of an image to the same representation—forcing invariance ($e(g(x)) \approx e(x)$).

While invariance is helpful when transformations are purely nuisance variables, it discards valuable visual information (e.g., color, lighting, scale, position). Consequently, downstream tasks that require sensitivity to these attributes—such as fine-grained image retrieval, transfer learning, or spatial reasoning—suffer. Prior approaches that enforce equivariance often require specialized, rigid architectures restricted to specific matrix Lie groups (e.g., discrete rotations). They do not readily generalize to arbitrary continuous augmentations (like color jitter) nor do they allow explicit, direct manipulation ("steering") in latent space.

Methods

The authors propose a training method that pairs a standard backbone (ResNet-50) with lightweight transformation mapping networks $M_a(e, \theta_a)$:

  1. Equivariance-Promoting Objective ($L_E$): For an input transformation $g_a(x; \theta_a)$ parameterized by $\theta_a$, the latent transformation map $M_a$ learns to satisfy: $$M_a(e(x), \theta_a) \approx e(g_a(x; \theta_a))$$ $M_a$ maps continuous parameter vectors $\theta_a$ into a 128-dimensional representation, concatenates it with embedding $e(x)$, and projects back to embedding space using a small MLP (adding only ~1% extra parameters).

  2. Uniformity Regularizer ($L_U$): To prevent representation collapse—where intra-class embeddings collapse together and trivially induce invariance—the authors integrate a hyperspherical uniformity loss (Wang & Isola, 2020) over representations of both clean and augmented samples.

  3. Composite Objective ($L_{CEU}$): Combines standard cross-entropy $L_{CE}$, the equivariance loss $\sum_a L_E^a$, and the uniformity loss $L_U$.
  4. Steering Mechanism: Because $M_a$ directly models the transformation path in latent space, embeddings can be manipulated post-hoc via $M_a(e(x), \theta_a)$ or extrapolated along transformation directions ($\Delta M(e(x))$) without rerunning the heavy image encoder.

Datasets

  • Pre-training: ImageNet (ILSVRC 2012).
  • Transfer Learning (Linear Probing): Oxford Flowers-102, Caltech-101, Oxford-IIIT Pets, and Describable Textures Dataset (DTD).
  • Robustness & Out-of-Distribution (OOD) Detection: ImageNet-C (15 common visual corruptions across 5 severity levels).

Key Insights and Ideas

  • Equivariance and steerability are distinct: Standard equivariant networks may reflect input changes in their latent spaces, but without an explicit mapping function $M$, you cannot easily "steer" the embedding toward a specific attribute without passing an altered image through the backbone.
  • Equivariance enhances robustness, contrary to conventional wisdom: Prior intuition suggested invariance was necessary to resist corruptions. Remarkably, equivariant models exhibited superior robustness across all tested corruptions in ImageNet-C, suggesting that preserving geometric and photometric fidelity helps models cope with distribution shifts.
  • Test-Time Augmentation (TTA) in latent space: TTA typically requires passing dozens of augmented images through a heavy encoder. Because these embeddings are steerable, transformations can be applied directly in the latent space at a fraction of the compute.

Key Results

  • Equivariance Metric ($\rho$, lower is better): The steerable model drops $\rho_{\text{geo}}$ from $0.982$ to $0.474$ and $\rho_{\text{photo}}$ from $0.983$ to $0.658$ compared to standard invariant baselines.
  • Transfer Learning: Linear probing accuracy consistently improves across downstream benchmarks (Flowers-102: 87.17% vs. 84.38%; DTD: 65.15% vs. 64.15%; Caltech-101: 87.23% vs. 86.55%; Pets: 92.13% vs. 91.82%).
  • Corruption Robustness: Mean Corruption Error (mCE) on ImageNet-C drops from $0.845$ down to 0.810, with top-1 accuracy gains of up to 3.4% across corruptions.
  • Latent Test-Time Augmentation Speedup: Generating 60 augmentations directly in latent space achieves a ~50× speedup compared to input-space augmentation pipelines while significantly boosting OOD detection AUC on ImageNet-C.
  • Steerable Retrieval: When querying image databases, steering vectors $\Delta M(e(x))$ allow continuous adjustment along attributes (e.g., zoom depth, color hue, night vs. day illumination) without losing the core semantic class.

Limitations and Future Work

  • Per-Augmentation Modules: The framework requires training an explicit map $M_a$ for each augmentation type; it cannot automatically generalize to unmodeled, arbitrary transformations out of the box.
  • Scope of Pre-training: Experiments were primarily evaluated in the supervised regime on ResNet-50. Validating the scalability across modern Vision Transformers (ViTs) and self-supervised frameworks (e.g., MAE, DINO) remains an open avenue.
  • Input vs. Latent Gap: While latent TTA is ~50× faster, empirical OOD detection performance using input-level augmentations is still slightly higher than purely latent transformations.

Summary updated

BibTeX
@inproceedings{bhardwaj2023steerable,
  author = {Sangnie Bhardwaj and Willie McClinton and Tongzhou Wang and Guillaume Lajoie and Chen Sun and Phillip Isola and Dilip Krishnan},
  title = {{Steerable Equivariant Representation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=NFzHAognkpQ},
}

Loading related content...

Figure