Semantic-Aware Auto-Encoders for Self-supervised Representation Learning

Guangrun Wang, Yansong Tang, Liang Lin, Philip H. S. Torr

Introduction

Self-supervised learning (SSL) in computer vision is primarily divided into two paradigms: discriminative ($\mathcal{D}$) models, such as contrastive learning, and generative ($\mathcal{G}$) models, such as Auto-Encoders (AEs). While discriminative models currently lead in performance, they often require complex mechanisms like momentum encoders or large batch sizes to prevent representation collapse. Conversely, generative models are simpler and more interpretable but have historically lagged in downstream task performance.

The authors identify that vanilla AEs are "semantic-agnostic." By reconstructing the exact input image, these models focus on low-level, high-frequency pixel details rather than high-level semantic features. This paper introduces Semantic-Aware Auto-Encoders (SA-AE) to bridge this gap.

Conceptual comparison of discriminative and generative models.

Methodology: Semantic-Aware Auto-Encoders (SA-AE)

To address the limitations of vanilla AEs, the SA-AE framework shifts the objective from self-reconstruction to cross-view reconstruction.

Cross-View Learning

Instead of reconstructing the input $x$, the model is tasked with reconstructing a different augmented view $z_2$ from an input view $z_1$ of the same image. This forces the encoder to capture invariant semantic concepts—understanding the underlying "concept" of the image—rather than simply memorizing pixel values.

The Semantic Aligner

Reconstructing a spatially transformed view is mathematically challenging because objects appear at different locations or scales. To facilitate this, the authors introduce a Semantic Aligner between the encoder and decoder. Using known geometric transformations (e.g., cropping, scaling, flipping) applied during augmentation, the aligner re-aligns the latent feature maps from the input view's coordinate system to the target view's coordinate system before decoding.

Architectural comparison between Vanilla AE and the proposed Semantic-Aware AE.

Experimental Results

The SA-AE framework was evaluated across several large-scale benchmarks, demonstrating significant improvements over previous generative SSL methods.

  • ImageNet-1K: SA-AE achieved a top-1 accuracy of 70.1% in linear probing, significantly outperforming other generative models like Masked Autoencoders (MAE) at 68.0% and BEiT at 56.7%.
  • Object Detection: On COCO 2017, SA-AE reached 51.0% $AP^{Box}$, surpassing both the supervised baseline (49.8%) and the discriminative DINO model (50.1%).
  • Person Re-identification: On the SYSU-30k dataset, the model showed strong zero-shot visual matching capabilities, achieving 11.8% rank-1 accuracy against nearly 480,000 distracting images.

Discussion and Conclusion

SA-AE successfully bridges the gap between generative and discriminative SSL. By prioritizing semantics over pixel-perfect reconstruction through cross-view learning and geometric alignment, it provides a more interpretable and efficient pathway for representation learning.

While it still trails the most advanced discriminative models in some linear evaluation metrics, its generative nature allows for unique applications like counterfactual visualization—identifying important features (like a shark's fin) by observing how reconstructions change under masking. The authors suggest that this approach offers a promising path toward unifying pre-training paradigms across Computer Vision and Natural Language Processing.

Summary updated

BibTeX
@inproceedings{wang2022semantic,
  author = {Guangrun Wang and Yansong Tang and Liang Lin and Philip H. S. Torr},
  title = {{Semantic-Aware Auto-Encoders for Self-supervised Representation Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00944},
}
Figure