Skip to main content
QUICK REVIEW

[Paper Review] Visual Representation Learning Does Not Generalize Strongly Within the Same Domain

Lukas Schott, Julius von Kügelgen|arXiv (Cornell University)|Jul 17, 2021
Generative Adversarial Networks and Image SynthesisComputer Science8 citations
TL;DR

This paper investigates whether visual representation learning methods can generalize to out-of-distribution (OOD) variations of the same factors of variation within the same domain. Using controlled datasets (dSprites, Shapes3D, MPI3D, and a new CelebGlow dataset), the authors evaluate 17 representation learning approaches across composition, interpolation, and extrapolation benchmarks. The key finding is that all models fail to learn the true generative mechanisms, showing poor generalization even within the same domain, despite strong in-distribution performance.

ABSTRACT

An important component for generalization in machine learning is to uncover underlying latent factors of variation as well as the mechanism through which each factor acts in the world. In this paper, we test whether 17 unsupervised, weakly supervised, and fully supervised representation learning approaches correctly infer the generative factors of variation in simple datasets (dSprites, Shapes3D, MPI3D) from controlled environments, and on our contributed CelebGlow dataset. In contrast to prior robustness work that introduces novel factors of variation during test time, such as blur or other (un)structured noise, we here recompose, interpolate, or extrapolate only existing factors of variation from the training data set (e.g., small and medium-sized objects during training and large objects during testing). Models that learn the correct mechanism should be able to generalize to this benchmark. In total, we train and test 2000+ models and observe that all of them struggle to learn the underlying mechanism regardless of supervision signal and architectural bias. Moreover, the generalization capabilities of all tested models drop significantly as we move from artificial datasets towards more realistic real-world datasets. Despite their inability to identify the correct mechanism, the models are quite modular as their ability to infer other in-distribution factors remains fairly stable, providing only a single factor is out-of-distribution. These results point to an important yet understudied problem of learning mechanistic models of observations that can facilitate generalization.

Motivation & Objective

  • To assess whether representation learning models can generalize to OOD variations of the same factors of variation within a domain.
  • To investigate whether models learn the true generative mechanisms or rely on spurious statistical correlations.
  • To evaluate the impact of supervision type (unsupervised, weakly supervised, fully supervised) and architecture on in-domain generalization.
  • To introduce a new benchmark dataset, CelebGlow, with realistic facial factors (e.g., age, smile, hair color) for evaluating mechanistic generalization.
  • To provide a standardized benchmark with evaluation scripts and a leaderboard to guide future research on mechanistic representation learning.

Proposed method

  • The authors design systematic OOD test splits—composition, interpolation, and extrapolation—using controlled datasets where factors of variation (e.g., size, shape, color) are independently controllable.
  • They train and evaluate 2000+ models across 17 representation learning approaches, including VAEs, GANs, MLPs, CNNs, ResNets, and specialized architectures like CoordConv and Spatial Transformers.
  • The evaluation uses R² scores to measure how well models predict disentangled factors under OOD conditions, with higher scores indicating better generalization to unseen factor combinations.
  • A new dataset, CelebGlow, is constructed using latent traversals of a pretrained Glow model on the Celeb-HQ dataset, enabling realistic facial attribute variations.
  • The benchmark includes all possible factor combinations and is released with evaluation scripts and a leaderboard on GitHub to enable reproducibility and community comparison.

Experimental results

Research questions

  • RQ1Can representation learning models generalize to out-of-distribution combinations of the same factors of variation within the same domain?
  • RQ2Do models trained with different supervision signals (unsupervised, weakly supervised, fully supervised) learn the true generative mechanisms or rely on spurious correlations?
  • RQ3How does the generalization performance of models degrade when moving from artificial datasets to more realistic real-world datasets?
  • RQ4To what extent are models modular in their predictions when only one factor is out-of-distribution?
  • RQ5Can architectural inductive biases (e.g., equivariance, coordinate-based features) improve in-domain generalization?

Key findings

  • All tested models, regardless of supervision signal or architecture, show poor generalization to OOD factor combinations, with R² scores dropping significantly on composition, interpolation, and extrapolation tasks.
  • On the dSprites dataset, the best-performing model (ResNet101) achieved only 67.8±1.7 R² on extrapolation, indicating limited ability to infer unseen factor values.
  • On the more realistic CelebGlow dataset, even top models like ResNet101 (ImageNet-21k) scored only 41.6±8.5 R² on extrapolation, showing a sharp performance drop compared to in-distribution performance.
  • Models exhibit strong modularity: when only one factor is OOD, predictions for in-distribution factors remain accurate, suggesting robustness to isolated distribution shifts.
  • The performance gap between artificial datasets (e.g., dSprites) and real-world datasets (e.g., CelebGlow) is substantial, with models failing more severely on complex, realistic data.
  • Even state-of-the-art models like Rotation-EQ-big and Spatial Transformers show limited extrapolation ability, with R² scores below 70 on most benchmarks, indicating a fundamental limitation in learning mechanisms.

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.