Introduction
Disentangled representation learning aims to identify independent "factors of variation" in data—such as separating the color of an object from its shape or position. Achieving this in an unsupervised manner is a significant challenge in machine learning, often requiring specific inductive biases to align latent representations with human-interpretable concepts.
The Factorized Diffusion Autoencoder (FDAE) addresses this by introducing a visual interpretability bias: the assumption that most explanatory factors can be decomposed into a specific "content" (what it is) located within a specific "mask" (where it is). By integrating this factorization with the generative power of diffusion models, FDAE recovers semantically meaningful factors without any human labels.
Methods: The FDAE Framework
The FDAE architecture consists of two primary components designed to work in tandem to disentangle spatial and semantic information.
1. Content-Mask Factorization Network (CMFNet)
The CMFNet acts as the core disentanglement engine. An image encoder extracts a latent code, which is then split into $N$ groups. Each group contains a content code (capturing semantic information) and a mask code (capturing spatial information). A dedicated mask decoder converts these mask codes into spatial masks ($M^n$) that are probabilistic and non-overlapping. These are then multiplied by projected content codes to form "content masks" ($C^n$).
2. Conditional Diffusion Generator
Rather than using traditional VAEs or GANs, which can suffer from blurry reconstructions or posterior collapse, FDAE employs a Diffusion Probabilistic Model (DPM). The sum of all generated content masks serves as the condition for the diffusion process, allowing the model to reconstruct the original image with high fidelity while ensuring the latent space captures essential structural information.
3. Specialized Training Objectives
To ensure effective disentanglement, the model utilizes two key losses:
- Content Decorrelation Loss ($\mathcal{L}_{CD}$): Encourages statistical independence between content codes of different groups.
- Mask Entropy Loss ($\mathcal{L}_{ME}$): Forces masks to be sharp and distinct, ensuring each group focuses on a unique spatial region.
Additionally, the authors developed Self-MIG, an unsupervised metric to automatically select the optimal number of concepts ($N$) by measuring the mutual information gap between latent codes.
Key Insights: The "Content + Mask" Inductive Bias
The central innovation of FDAE is mimicking human perception by explicitly modeling the spatial-semantic split. We do not perceive "redness" in isolation; we perceive it as a property of a specific object or part at a specific location.
As shown in the visualizations above, the model's masks are highly interpretable. In the pedestrian dataset, the model naturally learns to segment the upper torso, lower torso, and limbs. In robotic arm environments, it identifies the object, the rotating disk, and the background ring. This transparency allows researchers to inspect exactly what "concepts" the model has learned, moving away from "black box" latent vectors.
Experimental Results
FDAE was evaluated on several benchmarks, including Shapes3d, MPI3D, and Cars3d, as well as the real-world Market-1501 pedestrian dataset.
- State-of-the-Art Performance: FDAE outperformed existing VAE, GAN, and Transformer-based methods on the DCI (Disentanglement, Completeness, Informativeness) metric across synthetic benchmarks.
- Real-World Attribute Prediction: On Market-1501, FDAE achieved 71.6% average accuracy in unsupervised attribute prediction (e.g., identifying clothing colors), significantly outperforming the DiffAE baseline (66.2%) and approaching supervised performance.
- Controllable Generation: The model enables precise image editing. By swapping specific latent codes between images, users can independently modify attributes—like changing a pedestrian's pants color or an object's shape—without affecting the rest of the image.
Conclusion and Future Work
The Factorized Diffusion Autoencoder demonstrates that combining a strong spatial-semantic inductive bias with diffusion-based generation leads to superior unsupervised disentanglement. While the computational cost of diffusion training remains a factor, the resulting interpretable and controllable representations open new doors for object-centric reasoning and advanced image editing. Future research may focus on extending this framework to handle non-rigid bodies and more complex, overlapping scenes.
Summary updated