Anisotropic Diffusion Probabilistic Model for Imbalanced Image Classification
Jingyu Kong, Yuan Guo, Yu Wang, Yuping Duan
TL;DR
This work tackles long-tailed medical image classification by tailoring diffusion probabilistic models to per-class data distributions. It introduces Anisotropic Diffusion Probabilistic Model (ADPM), which assigns class-specific diffusion speeds through a noise level parameter $ ext{\lambda}_j$ guided by an imbalance-sensitive bound, enabling tail classes to learn more robust decision boundaries. The model also integrates global/local priors in the forward process and a feature-conditioned reverse prior via cross-attention, training with a multi-task objective that includes MMD regularization to align noise samples with estimated Gaussian noise. Empirically, ADPM improves tail-class accuracy across four medical datasets (PAD-UFES, HAM10000, SCIN, Hyper-Kvasir) while maintaining head-class performance, achieving up to ~4% gains in F1 on PAD-UFES and ~3% on HAM10000. These results demonstrate the practical impact of principled anisotropic diffusion and prior-informed learning for imbalanced medical imaging tasks, with potential for broader applications in long-tailed visual recognition.
Abstract
Real-world data often has a long-tailed distribution, where the scarcity of tail samples significantly limits the model's generalization ability. Denoising Diffusion Probabilistic Models (DDPM) are generative models based on stochastic differential equation theory and have demonstrated impressive performance in image classification tasks. However, existing diffusion probabilistic models do not perform satisfactorily in classifying tail classes. In this work, we propose the Anisotropic Diffusion Probabilistic Model (ADPM) for imbalanced image classification problems. We utilize the data distribution to control the diffusion speed of different class samples during the forward process, effectively improving the classification accuracy of the denoiser in the reverse process. Specifically, we provide a theoretical strategy for selecting noise levels for different categories in the diffusion process based on error analysis theory to address the imbalanced classification problem. Furthermore, we integrate global and local image prior in the forward process to enhance the model's discriminative ability in the spatial dimension, while incorporate semantic-level contextual information in the reverse process to boost the model's discriminative power and robustness. Through comparisons with state-of-the-art methods on four medical benchmark datasets, we validate the effectiveness of the proposed method in handling long-tail data. Our results confirm that the anisotropic diffusion model significantly improves the classification accuracy of rare classes while maintaining the accuracy of head classes. On the skin lesion datasets, PAD-UFES and HAM10000, the F1-scores of our method improved by 4% and 3%, respectively compared to the original diffusion probabilistic model.
