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

A Tutorial on Learning Disentangled Representations in the Imaging Domain

Xiao Liu, Pedro Sanchez, Spyridon Thermos, Alison Q. O'Neil, Sotirios A. Tsaftaris · DOI

Abstract: Disentangled representation learning has been proposed as an approach to learning general representations even in the absence of, or with limited, supervision. A good general representation can be fine-tuned for new target tasks using modest amounts of data, or used directly in unseen domains achieving remarkable performance in the corresponding task. This alleviation of the data and annotation requirements offers tantalising prospects for applications in computer vision and healthcare. In this tutorial paper, we motivate the need for disentangled representations, revisit key concepts, and describe practical building blocks and criteria for learning such representations. We survey applications in medical imaging emphasising choices made in exemplar key works, and then discuss links to computer vision applications. We conclude by presenting limitations, challenges, and opportunities.

Introduction: The Challenge of Data Fragility

Standard deep learning models are notoriously data-hungry and fragile. In medical imaging, a model trained to segment hearts on an MRI scanner at one hospital often fails when deployed on a different scanner elsewhere. This occurs because the model "tangles" anatomical features with "nuisance" factors like scanner-specific contrast, noise, or patient orientation.

Collecting enough annotated data to cover every possible variation is prohibitively expensive. Disentangled Representation Learning (DRL) addresses this by learning a latent space where these factors are separated. If a model can successfully isolate "anatomy" from "modality style," it can ignore the style changes of a new scanner and focus solely on the underlying biological structures.

Methodological Frameworks and Building Blocks

The paper categorizes DRL into several fundamental frameworks that serve as the backbone for modern medical imaging applications:

  • Variational Autoencoders (VAEs): These use bottlenecks and KL-divergence to encourage independence among latent variables.
  • Generative Adversarial Networks (GANs): These utilize adversarial pressure to structure latent spaces, often through a discriminator that ensures generated images match the target distribution.
  • Normalizing Flows: These allow for exact likelihood estimation and invertibility, providing a mathematically rigorous way to map complex distributions to simpler ones.
  • Content-Style Disentanglement (CSD): This is the most prominent approach in medical imaging, typically splitting an image into a high-dimensional "content" tensor (spatial anatomy) and a low-dimensional "style" vector (global appearance).
Fundamental architectures for DRL: (a) VAE, (b) GAN, (c) Normalizing Flow, and (d) Content-Style disentanglement.

To achieve these architectures, researchers use specific building blocks like Instance Normalization to strip away style and AdaIN (Adaptive Instance Normalization) or FiLM (Feature-wise Linear Modulation) to fuse content and style back together during image synthesis.

Key Insights: Disentanglement as Inductive Bias

A critical takeaway is that disentanglement cannot be achieved "for free." It requires baking domain knowledge into the architecture—an inductive bias. For example, one might assume that anatomy is spatially equivariant (if the patient moves, the features move) while style is invariant.

Visualizing factor separation: Examples of modifying style, scale, and rotation independently across medical and non-medical domains.

In medical AI, the most useful realization is that "Content" usually equals "Anatomy" and "Style" equals "Modality/Scanner characteristics." This split is the engine behind successful domain adaptation and "counterfactual" synthesis—such as generating what a patient's brain would look like without a specific pathology.

Applications and Results

The paper summarizes successes across several key areas:

  • Segmentation: Models like SDNet demonstrate that disentangling anatomy allows for better semi-supervised learning, achieving high accuracy with a fraction of the usual labels.
  • Image-to-Image Translation: DRL enables "harmonization," where scans from different hospitals are mapped to a common style space, significantly reducing error rates for downstream diagnostic tools.
  • Robustness: DRL-based models consistently outperform standard CNNs when tested on "out-of-distribution" data, such as unseen scanners or patient cohorts.
  • Interpretability: By traversing the latent space (e.g., tweaking an "age" variable), clinicians can visualize how a disease might progress in a specific patient.

Limitations and Future Directions

Despite its promise, DRL faces several hurdles. These models are notoriously difficult to train, involving complex loss functions that require delicate balancing. Furthermore, the common assumption that factors are perfectly independent is often false in biology; for instance, certain diseases are highly correlated with age.

Future work is shifting toward Causal Representation Learning, which models the actual causal relationships between factors, and the integration of Self-Supervised Learning to discover factors without any manual labels at all.

Summary updated

BibTeX
@article{liu2022tutorial,
  author = {Xiao Liu and Pedro Sanchez and Spyridon Thermos and Alison Q. O'Neil and Sotirios A. Tsaftaris},
  title = {{A Tutorial on Learning Disentangled Representations in the Imaging Domain}},
  journal = {Medical Image Analysis},
  year = {2022},
  doi = {10.1016/j.media.2022.102516},
}
Figure