TL;DR
Standard self-supervised learning (SSL) trains models to ignore image changes (invariance), which unintentionally discards spatial and photometric details essential for tasks like object tracking and segmentation. This paper introduces an auxiliary cross-attention reconstruction task that forces representations to capture what changed between two augmented views (equivariance) without requiring any ground-truth knowledge of the underlying transformation parameters.
What Problem Does This Paper Address?
Augmentation-based self-supervised models (such as SimCLR or VICReg) learn general visual representations by enforcing view invariance: two differently cropped, colored, or rotated versions of the same image are mapped to identical embeddings. While effective for categorical image classification, this explicitly strips away structural, geometric, and color properties. Downstream tasks requiring equivariance—where representations shift systematically when the input transforms (e.g., pose estimation, tracking, dense segmentation)—suffer as a result.
Prior efforts to disentangle invariant and equivariant features (notably SIE, or Split Invariant and Equivariant representations) require knowing the exact mathematical parameters of the augmentations applied during pretraining. Consequently, they fail when images undergo unparameterized, complex, or unknown real-world transformations.
Methods
The authors adopt a split-representation architecture, dividing the encoder’s feature output into two separate embeddings: an invariant embedding ($Z_{\text{inv}}$) and an equivariant embedding ($Z_{\text{equi}}$).
Image View 1 ──> Encoder ──> [ Z_inv^1 | Z_equi^1 ] (Key, Value) ──┐
├──> Cross-Attention Decoder ──> Reconstructed View 2
Image View 2 ──> Encoder ──> [ Z_inv^2 | Z_equi^2 ] (Query) ──┘
- Invariant Branch: Regularized using standard augmentation-based SSL objectives (VICReg).
- Equivariant Branch (Cross-Attention Reconstruction): Instead of supervising equivariance with known transformation labels, the network learns to reconstruct one view from the other:
- Features $Z_{\text{equi}}^1$ from View 1 provide the Keys and Values.
- Features $Z_{\text{equi}}^2$ from View 2 serve as the Query.
- A single cross-attention layer combines them, followed by $L$ self-attention transformer layers that output a pixel-level reconstruction of View 2.
- The model is trained with pixel-wise Mean Squared Error (MSE) loss: $\mathcal{L} = \lambda_{\text{SSL}}\mathcal{L}_{\text{SSL}} + \lambda_{\text{recon}}\mathcal{L}_{\text{recon}}$.
By conditioning the reconstruction of View 2 on View 1's content through cross-attention, the equivariant features are forced to encode geometric and appearance discrepancies between views without requiring transformation annotations.
Datasets
The authors evaluate their method on:
- Synthetic Data: 3DIEBench (3D rendered objects with known transformations across 3D poses, rotations, and lighting).
- Natural Image Pretraining: ImageNet-1k (trained with a ViT-Small encoder).
- Partially Known Transformations Benchmark: CIFAR-10, where 80% of transformations are masked as unknown.
- Downstream Classification & Transfer: CIFAR-10, CIFAR-100, Food-101, SUN397, DTD, Pets, and Aircraft.
- Downstream Dense Prediction: ADE20K semantic segmentation using a HyperNet head.
No new datasets were introduced.
Key Insights and Ideas
- Cross-view reconstruction implicitly encodes transformations: You do not need explicit labels or matrices describing rotations, shifts, or color jitters. If an attention mechanism can morph View 1 into View 2, the underlying latent vectors must preserve those transformations.
- Overcoming single-transformation bias: Prior methods like SIE collapse on other properties when trained on a single known transformation (e.g., an SIE trained on rotation scored nearly zero ($R^2 = 0.054$) on color prediction). Cross-attention reconstruction naturally preserves multiple simultaneous transformations.
- Leveraging "in-the-wild" changes: Because the reconstruction task requires no transformation parameters, models can train on unlabeled, arbitrary visual transitions (such as adjacent frames in video) where exact transformations are unknown.
Key Results
-
ImageNet Equivariance Probing ($R^2$ regression metric): Evaluating linear regression of transformation parameters from frozen representations showed substantial gains over SIE trained on all augmentations (
SIE(all)): -
Rotation: $R^2 = \mathbf{0.862}$ (vs. $0.331$ for SIE(all) and $0.318$ for VICReg).
- Color: $R^2 = \mathbf{0.921}$ (vs. $0.899$ for SIE(all)).
- Blur Radius: $R^2 = \mathbf{0.823}$ (vs. $0.211$ for SIE(all)).
- Crop Scale: $R^2 = \mathbf{0.912}$ (vs. $0.835$ for SIE(all)).
-
Robustness to Unknown Augmentations (CIFAR-10): When 80% of transformations had unrecorded parameters, SIE was forced to drop 80% of the dataset, achieving rotation $R^2$ of only $0.402$. The proposed reconstruction method used the full dataset regardless, achieving $R^2 = \mathbf{0.815}$.
-
Downstream Semantic Segmentation (ADE20K): Transferring features to dense scene parsing yielded $0.312$ mIoU, outperforming both supervised pretraining ($0.268$) and SIE ($0.292$).
Limitations and Future Work
- Compute & Architecture Scale: Experiments were constrained to ViT-Small backbones and moderate batch sizes.
- Decoder Overhead During Training: While the reconstruction decoder is discarded during inference, computing cross-attention and $L$ self-attention layers adds training compute time (~23 hours on 16 A100 GPUs for ImageNet).
- Future Directions: Scaling to larger foundation model backbones (ViT-Base/Large), pairing with other SSL baselines beyond VICReg, and exploring more efficient image generative reconstruction objectives.
Summary updated