Abstract
Long-tailed data distributions pose a significant challenge for deep learning models, which often become biased toward majority "head" classes. This paper introduces LDMLR (Latent-based Diffusion Model for Long-tailed Recognition), a framework that leverages Denoising Diffusion Implicit Models (DDIM) to generate high-quality synthetic feature embeddings in a compressed latent space. By augmenting underrepresented "tail" classes at the feature level rather than the image level, LDMLR achieves state-of-the-art performance on benchmarks like CIFAR-LT and ImageNet-LT with high computational efficiency.
Introduction
In real-world applications such as rare disease diagnosis or fraud detection, datasets are inherently "long-tailed," where a few categories dominate the sample count while many others are sparsely represented. Standard training objectives like Cross-Entropy (CE) lead models to overfit head classes, resulting in poor generalization on rare ones. Traditional remedies include re-sampling, re-weighting, and logit adjustment. However, these methods often fail to capture the complex underlying distribution of tail classes. While generative models like GANs offer a path for data augmentation, they frequently suffer from mode collapse or low diversity. LDMLR addresses these issues by using diffusion models to "hallucinate" diverse features in the latent space.
Methodology
The proposed LDMLR framework addresses data imbalance through a three-stage pipeline that operates in the latent space of a pre-trained encoder.
- Stage 1: Image Encoding. A backbone network (e.g., ResNet) is trained on the imbalanced dataset to map raw images into a lower-dimensional latent space of feature embeddings.
- Stage 2: Representation Generation. A class-conditional Denoising Diffusion Implicit Model (DDIM) is trained specifically on these latent features. Once trained, the DDIM can generate "pseudo-features" for any class, effectively filling in the gaps for rare categories.
- Stage 3: Classifier Training. The final classification head is fine-tuned using a mix of original real features and the newly generated pseudo-features.
Operating in the latent space (e.g., 64-dimensional vectors) is significantly more efficient than generating high-resolution images. It also allows the diffusion model to focus on the semantic "essence" of classes rather than low-level pixel noise, making it more robust when learning from limited samples.
Experimental Results
LDMLR was evaluated on standard long-tailed benchmarks including CIFAR-10-LT, CIFAR-100-LT, and ImageNet-LT across various Imbalance Factors (IF).
As shown in the results, LDMLR provides substantial gains across the board. For instance, on CIFAR-10-LT (IF=100), the method reached 86.29% accuracy, a 1.62% improvement over the WCDAS baseline. On CIFAR-100-LT (IF=100), it achieved 51.92% accuracy. On the larger ImageNet-LT dataset, the model reached an overall accuracy of 44.8%, with the most pronounced gains occurring in the "Few-shot" (tail) categories.
Discussion and Conclusion
A key insight from this work is that feature-level augmentation consistently outperforms image-level augmentation for long-tailed tasks. Diffusion models provide the necessary diversity to fill low-density regions of the feature space that GANs might miss. While the current multi-stage process introduces some complexity and dependency on the initial encoder's quality, LDMLR sets a new standard for efficient and effective long-tailed recognition. Future research will explore end-to-end training pipelines to further simplify the process.
Summary updated