Abstract
Recent advancements in generative modeling have established Denoising Diffusion Probabilistic Models (DMs) as the state-of-the-art for high-fidelity image synthesis. However, extracting modular, disentangled representations from these models remains a significant challenge. This paper discusses DiTi (Diffusion Time-step), a novel method that leverages the inherent hierarchical nature of the diffusion process to achieve unsupervised disentangled representation learning. By partitioning the feature space according to diffusion time-steps, DiTi learns to separate fine-grained textures from coarse-grained structures without human supervision.
Introduction
In representation learning, the goal is to transform high-dimensional data into a compact vector where individual dimensions correspond to specific, independent attributes—a property known as disentanglement. While DMs excel at generation, they typically lack an integrated encoder capable of producing such modular features. Previous attempts to augment DMs with encoders often result in "entangled" representations, where changing one latent variable inadvertently affects multiple image attributes. The core difficulty lies in enforcing modularity without relying on labeled data.
DiTi addresses this by utilizing the diffusion "clock"—the sequence of time-steps used to add noise to an image—as a natural inductive bias for organizing information.
Methodology: The DiTi Framework
The fundamental observation behind DiTi is that the forward diffusion process acts as a hierarchical filter. Early time-steps, characterized by low noise, primarily destroy fine-grained details such as texture and micro-patterns. As the time-step $t$ increases and noise levels rise, coarser structures like shapes and global geometry are gradually obliterated.
Architecture and Training
DiTi utilizes a pre-trained, frozen diffusion model. To this foundation, the researchers add a trainable encoder $f$ and a shallow decoder $g$. The learned feature vector $\mathbf{z}$ is partitioned into $T$ segments, corresponding to the diffusion time-steps.
During training, at any specific time-step $t$, the model is restricted to using only the first $t$ segments of the feature vector. The encoder is tasked with producing a feature that compensates for the information lost at that specific stage of the noisy diffusion process. By progressively introducing feature segments alongside increasing noise, the model is naturally incentivized to store high-frequency (fine-grained) information in the early segments and low-frequency (coarse-grained) information in the later segments.
Error Compensation
Unlike standard Variational Autoencoders (VAEs) that attempt to reconstruct an entire image from a latent code, DiTi focuses on "error compensation." The feature vector is trained to "fix" what the frozen diffusion model has forgotten due to noise. This approach is significantly more efficient than learning to generate the entire image from scratch, as it leverages the prior knowledge already embedded in the pre-trained DM.
Theoretical Foundation
The authors provide a mathematical basis for this approach by analyzing the "Overlapping Area" (OVL) of noisy distributions. They demonstrate that the OVL is directly tied to attribute loss at different scales. This theoretical bedrock confirms that the time-axis of a diffusion model provides a "free" ordering of attributes based on their granularity, moving from pixel-level details to semantic structures.
Experimental Evaluation
The model was evaluated on several standard benchmarks to test its ability to synthesize images and recognize attributes:
- CelebA & FFHQ: Large-scale datasets of human faces used to evaluate attribute disentanglement (e.g., hair color, expression, age).
- LFW (Labeled Faces in the Wild): Used for continuous attribute regression testing.
- LSUN Bedroom: A complex dataset of indoor scenes used to verify the model's performance on non-aligned, structured environments.
Key Results
DiTi demonstrated superior performance in both quantitative and qualitative metrics:
- Attribute Classification: On the CelebA dataset, DiTi achieved an Average Precision (AP) of 62.3%, outperforming previous state-of-the-art methods like PDAE (60.2%) and SimCLR (59.7%).
- Counterfactual Generation: In image editing tasks, DiTi showed a remarkable ability to interpolate single attributes—such as adding a smile or changing hair color—while maintaining the integrity of the rest of the image. In contrast, baselines like Diff-AE often suffered from identity shifts or visual artifacts during similar edits.
- Unsupervised Scene Decomposition: On the LSUN Bedroom dataset, the model successfully separated independent attributes like lighting conditions, floor textures, and furniture clutter without any human-provided labels.
Discussion and Limitations
While DiTi provides a robust framework for modularity, the authors note that the time-step partitioning is a sufficient condition for disentanglement but not a strictly enforced one. Some "leakage" of attributes between adjacent segments can occur. Furthermore, employing "detached" gradients to ensure that each segment only learns novel information can lead to slower training convergence.
Conclusion
DiTi represents a significant step forward in unsupervised representation learning by turning the diffusion process's greatest perceived weakness—the loss of information over time—into a structural advantage. By aligning the latent space with the diffusion time-axis, the model achieves a high degree of disentanglement and interpretability. Future research will explore applying this framework to even larger foundation models, such as Stable Diffusion, to further refine the granularity of learned features.
Summary updated