Skip to main content
QUICK REVIEW

[Paper Review] How Robust is Unsupervised Representation Learning to Distribution Shift?

Yuge Shi, Imant Daunhawer|arXiv (Cornell University)|Jun 17, 2022
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper investigates the robustness of unsupervised representation learning (SSL and autoencoders) versus supervised learning (SL) under distribution shift. Using controlled synthetic and realistic domain generalization datasets, it shows that SSL and autoencoder representations generalize significantly better than SL under extreme and subtle distribution shifts, especially when evaluating with a linear head trained on out-of-distribution data to isolate representation robustness from head bias.

ABSTRACT

The robustness of machine learning algorithms to distributions shift is primarily discussed in the context of supervised learning (SL). As such, there is a lack of insight on the robustness of the representations learned from unsupervised methods, such as self-supervised learning (SSL) and auto-encoder based algorithms (AE), to distribution shift. We posit that the input-driven objectives of unsupervised algorithms lead to representations that are more robust to distribution shift than the target-driven objective of SL. We verify this by extensively evaluating the performance of SSL and AE on both synthetic and realistic distribution shift datasets. Following observations that the linear layer used for classification itself can be susceptible to spurious correlations, we evaluate the representations using a linear head trained on a small amount of out-of-distribution (OOD) data, to isolate the robustness of the learned representations from that of the linear head. We also develop "controllable" versions of existing realistic domain generalisation datasets with adjustable degrees of distribution shifts. This allows us to study the robustness of different learning algorithms under versatile yet realistic distribution shift conditions. Our experiments show that representations learned from unsupervised learning algorithms generalise better than SL under a wide variety of extreme as well as realistic distribution shifts.

Motivation & Objective

  • To investigate the robustness of unsupervised representation learning (SSL and autoencoders) to distribution shift, a key challenge in real-world ML deployment.
  • To address the lack of systematic evaluation of unsupervised methods in distribution shift scenarios, which are currently dominated by supervised learning research.
  • To isolate the robustness of learned representations from the bias of the linear classification head, which can distort performance comparisons.
  • To develop controllable, realistic domain generalization datasets with adjustable degrees of distribution shift for more nuanced evaluation.
  • To provide empirical evidence that input-driven unsupervised objectives lead to more robust representations than target-driven supervised objectives under distribution shift.

Proposed method

  • Designed and implemented controllable versions of real-world domain generalization datasets (WILDS-Camelyon17 and FMoW) with adjustable distribution shift intensity via a correlation-based shift parameter $ r_{\text{id}} $.
  • Evaluated SSL (e.g., SimCLR, MoCo) and autoencoder (AE) models using a linear head trained on a small amount of out-of-distribution (OOD) data to isolate representation robustness from head-specific biases.
  • Conducted extensive experiments on both synthetic datasets (e.g., MNIST-CIFAR, CdSprites) and realistic datasets (e.g., WILDS) to assess performance under extreme and subtle distribution shifts.
  • Used a linear probe evaluation protocol with OOD-trained heads to ensure fair comparison across models, avoiding the confounding effect of head-specific spurious correlations.
  • Measured model performance via accuracy on OOD test sets and shift sensitivity (change in performance across varying shift levels), with results reported across multiple shift intensities.
  • Compared SSL, AE, and SL models across multiple metrics, including in-distribution (ID) accuracy, OOD accuracy, and robustness to shift, under controlled and realistic distribution shift conditions.

Experimental results

Research questions

  • RQ1How do SSL and autoencoder representations compare to supervised representations in terms of OOD generalization under extreme distribution shifts?
  • RQ2To what extent does the linear classification head introduce spurious correlations that distort performance evaluation in distribution shift settings?
  • RQ3Can controllable, realistic domain generalization datasets with tunable shift intensity improve the evaluation of representation robustness?
  • RQ4How does the robustness of SSL and AE representations compare to SL across varying degrees of distribution shift in real-world scenarios?
  • RQ5Does the input-driven objective of unsupervised learning lead to more robust representations than the target-driven objective of supervised learning under distribution shift?

Key findings

  • SSL representations achieve comparable or better OOD accuracy than supervised learning across all tested distribution shift settings, including extreme synthetic shifts and realistic domain shifts.
  • On the WILDS-Camelyon17 dataset, SSL models achieved a 3% improvement in OOD accuracy over SL, while on FMoW, they achieved a 5% lead, demonstrating consistent outperformance under realistic shifts.
  • The linear head trained on OOD data effectively isolates representation robustness, revealing that SSL and AE representations are inherently more robust than SL representations.
  • SSL models show the lowest shift sensitivity across varying degrees of distribution shift, indicating stable performance even as shift intensity increases.
  • Autoencoder-based models are the least sensitive to distribution shift on realistic datasets but exhibit lower OOD performance on complex data like FMoW, suggesting a trade-off between stability and representational capacity.
  • The study confirms the existence of linear head bias in distribution shift evaluation, showing that standard evaluation protocols can misrepresent model robustness, and advocates for OOD-trained linear heads in future comparisons.

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.