NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Transfer of Disentangled Representations in Realistic Settings

Andrea Dittadi, Frederik Träuble, Francesco Locatello, Manuel Wuthrich, Vaibhav Agrawal, Ole Winther, Stefan Bauer, Bernhard Schölkopf

Disentangled representation learning aims to separate the underlying factors of variation in data—such as an object's color, size, and position—into distinct, independent variables within a latent space. The promise is that these representations will be more interpretable, data-efficient, and generalizable.

However, most research in this area relies on simplistic, synthetic "toy" datasets where factors are perfectly independent by design, and images are low-resolution without occlusions. Real-world data is messy: it features high resolutions, severe occlusions, and crucially, correlated factors (e.g., a robot arm cannot occupy the same physical space as the object it is manipulating). This paper investigates whether the promised benefits of disentanglement hold up in realistic settings with correlated factors, and whether these representations can successfully transfer from simulation to the real world.

A Realistic Robotics Dataset

To tackle the gap between toy datasets and reality, the authors introduce a novel, challenging dataset based on the TriFinger robotic platform.

Simulated and real-world images from the TriFinger robotic platform dataset.
  • Simulated Dataset: Contains 1 million high-resolution (128x128) images featuring 7 factors of variation (3 robot joint angles, cube X/Y position, cube rotation, and cube color hue). Crucially, this dataset features realistic correlations—the robot finger collides with the floor or the cube, restricting feasible states—and heavy occlusions.
  • Real-World Dataset: Comprises 1,800 annotated real-world images from the physical TriFinger robot, captured under the same conditions, used specifically to test zero-shot sim2real transfer.

Scaling Up the Architecture

To handle the complexity of this realistic data, standard 4-layer Variational Autoencoders (VAEs) fall short. The authors propose a much deeper, wider ResNet-based $\beta$-VAE (23 convolutional layers, ~16.3M parameters) equipped with a scalar gating mechanism to stabilize early training.

They conducted a massive empirical study, training 1,080 models (consuming approximately 2.8 GPU years) under two paradigms: purely unsupervised learning, and weakly supervised learning (where the model sees pairs of images that differ by only one factor of variation). They also experimented with adding Gaussian noise to the input images during training to act as a regularizer.

To evaluate out-of-distribution (OOD) generalization, downstream regressors (Gradient Boosted Trees and MLPs) were trained on the learned representations to predict ground-truth factors under two scenarios:

  • OOD1 (Encoder In-Distribution): The downstream task is tested on unseen combinations of factors, but the VAE encoder has seen the underlying images during training.
  • OOD2 (Encoder Out-of-Distribution): The VAE encoder itself is evaluated on entirely unseen data, such as novel colors or actual real-world photographs (sim2real).

Key Insights and Results

Weak Supervision is Necessary for Complex Data Purely unsupervised learning fails to disentangle complex, correlated data, confirming previous theoretical impossibility results. However, weak supervision easily overcomes this hurdle. With weak supervision and the new ResNet architecture, 29% of the models achieved a near-perfect DCI (Disentanglement, Completeness, Informativeness) score of >99%.

Disentanglement Predicts OOD Generalization Highly disentangled representations yield significantly better downstream performance on out-of-distribution data, provided the encoder remains in-distribution (OOD1). The authors found a strong negative rank correlation (up to -0.91) between disentanglement scores (like DCI or MIG) and the transfer error of Gradient Boosted Trees on OOD1 tasks. Higher disentanglement directly translated to lower error.

Model Selection Without Labels In the weakly supervised setting, unsupervised metrics like the Evidence Lower Bound (ELBO) and reconstruction loss strongly correlate with true disentanglement.

Correlation heatmap showing the relationship between unsupervised metrics and disentanglement scores.

This is a massive practical win: it means researchers can select the best models without needing exhaustive ground-truth labels for validation.

Input Noise Bridges the Sim2Real Gap While disentanglement alone doesn't perfectly solve the OOD2 (sim2real) problem, simply adding Gaussian noise to the input during VAE training drastically improves the model's ability to generalize to real-world images. Models trained with input noise could predict the real-world cube position with less than 5% mean absolute error on each axis, entirely zero-shot from simulation.

Limitations and Future Work

The authors note that their evaluation focuses primarily on predictive downstream tasks (regression of ground-truth factors). While this proves the representations are robust, it does not directly test them in active, closed-loop scenarios. For future work, they suggest utilizing these learned representations for downstream control tasks, such as reinforcement learning or learning dynamics models of the environment, and advocate for creating datasets with even more complex structures to truly stress-test representation learning algorithms.

Summary updated

BibTeX
@inproceedings{dittadi2021transfer,
  author = {Andrea Dittadi and Frederik Träuble and Francesco Locatello and Manuel Wuthrich and Vaibhav Agrawal and Ole Winther and Stefan Bauer and Bernhard Schölkopf},
  title = {{On the Transfer of Disentangled Representations in Realistic Settings}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure