CORAL: Disentangling Latent Representations in Long-Tailed Diffusion
Esther Rodriguez, Monica Welfert, Samuel McDowell, Nathan Stromberg, Julian Antolin Camarena, Lalitha Sankar
TL;DR
The paper investigates why diffusion models struggle with tail classes in long-tailed datasets and identifies entanglement in the U-Net bottleneck latent representations as a key cause. It introduces CORAL, which adds a bottleneck projection head and a supervised contrastive loss to explicitly align and separate latent class representations, with a time-aware weighting scheme. Across CIFAR-LT, CelebA-5, and ImageNet-LT, CORAL consistently improves tail-class diversity and fidelity, outperforming state-of-the-art methods like CBDM and T2H. The work demonstrates that latent-space disentanglement within the diffusion model can yield superior tail-class generation compared to ambient-space rebalancing, offering a principled approach for equitable long-tailed diffusion.
Abstract
Diffusion models have achieved impressive performance in generating high-quality and diverse synthetic data. However, their success typically assumes a class-balanced training distribution. In real-world settings, multi-class data often follow a long-tailed distribution, where standard diffusion models struggle -- producing low-diversity and lower-quality samples for tail classes. While this degradation is well-documented, its underlying cause remains poorly understood. In this work, we investigate the behavior of diffusion models trained on long-tailed datasets and identify a key issue: the latent representations (from the bottleneck layer of the U-Net) for tail class subspaces exhibit significant overlap with those of head classes, leading to feature borrowing and poor generation quality. Importantly, we show that this is not merely due to limited data per class, but that the relative class imbalance significantly contributes to this phenomenon. To address this, we propose COntrastive Regularization for Aligning Latents (CORAL), a contrastive latent alignment framework that leverages supervised contrastive losses to encourage well-separated latent class representations. Experiments demonstrate that CORAL significantly improves both the diversity and visual quality of samples generated for tail classes relative to state-of-the-art methods.
