Contrastive Conditional-Unconditional Alignment for Long-tailed Diffusion Model

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chen, Fang, Villa, Alex, Liang, Gongbo, Lu, Xiaoyi, Tang, Meng
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914113183023104
author Chen, Fang
Villa, Alex
Liang, Gongbo
Lu, Xiaoyi
Tang, Meng
author_facet Chen, Fang
Villa, Alex
Liang, Gongbo
Lu, Xiaoyi
Tang, Meng
contents Training data for class-conditional image synthesis often exhibit a long-tailed distribution with limited images for tail classes. Such an imbalance causes mode collapse and reduces the diversity of synthesized images for tail classes. For class-conditional diffusion models trained on imbalanced data, we aim to improve the diversity and fidelity of tail class images without compromising the quality of head class images. We achieve this by introducing two simple but highly effective loss functions. Firstly, we employ an Unsupervised Contrastive Loss (UCL) utilizing negative samples to increase the distance/dissimilarity among synthetic images. Such regularization is coupled with a standard trick of batch resampling to further diversify tail-class images. Our second loss is an Alignment Loss (AL) that aligns class-conditional generation with unconditional generation at large timesteps. This second loss makes the denoising process insensitive to class conditions for the initial steps, which enriches tail classes through knowledge sharing from head classes. We successfully leverage contrastive learning and conditional-unconditional alignment for class-imbalanced diffusion models. Our framework is easy to implement as demonstrated on both U-Net based architecture and Diffusion Transformer. Our method outperforms vanilla denoising diffusion probabilistic models, score-based diffusion model, and alternative methods for class-imbalanced image generation across various datasets, in particular ImageNet-LT with 256x256 resolution.
format Preprint
id arxiv_https___arxiv_org_abs_2507_09052
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Contrastive Conditional-Unconditional Alignment for Long-tailed Diffusion Model
Chen, Fang
Villa, Alex
Liang, Gongbo
Lu, Xiaoyi
Tang, Meng
Computer Vision and Pattern Recognition
Machine Learning
Training data for class-conditional image synthesis often exhibit a long-tailed distribution with limited images for tail classes. Such an imbalance causes mode collapse and reduces the diversity of synthesized images for tail classes. For class-conditional diffusion models trained on imbalanced data, we aim to improve the diversity and fidelity of tail class images without compromising the quality of head class images. We achieve this by introducing two simple but highly effective loss functions. Firstly, we employ an Unsupervised Contrastive Loss (UCL) utilizing negative samples to increase the distance/dissimilarity among synthetic images. Such regularization is coupled with a standard trick of batch resampling to further diversify tail-class images. Our second loss is an Alignment Loss (AL) that aligns class-conditional generation with unconditional generation at large timesteps. This second loss makes the denoising process insensitive to class conditions for the initial steps, which enriches tail classes through knowledge sharing from head classes. We successfully leverage contrastive learning and conditional-unconditional alignment for class-imbalanced diffusion models. Our framework is easy to implement as demonstrated on both U-Net based architecture and Diffusion Transformer. Our method outperforms vanilla denoising diffusion probabilistic models, score-based diffusion model, and alternative methods for class-imbalanced image generation across various datasets, in particular ImageNet-LT with 256x256 resolution.
title Contrastive Conditional-Unconditional Alignment for Long-tailed Diffusion Model
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2507.09052