NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DiffuLT: Diffusion for Long-tail Recognition Without External Knowledge

Jie Shao, Ke Zhu, Hanxiao Zhang, Jianxin WuNeurIPS 2024

In the world of deep learning, data is rarely distributed equally. Most real-world datasets are "long-tailed": a few "head" classes have thousands of examples, while many "tail" classes have only a handful. This imbalance usually leads models to ignore the rare classes entirely. While recent trends involve using massive pre-trained models like Stable Diffusion or CLIP to "hallucinate" extra data for these rare classes, what happens when you can't use external data? What if you're working with sensitive medical or military data where downloading a pre-trained model isn't an option?

The paper "DiffuLT: Diffusion for Long-tail Recognition Without External Knowledge" introduces a way to fix the long-tail problem using only the data you already have.

TL;DR

DiffuLT is a novel pipeline that trains a diffusion model from scratch on an imbalanced dataset to generate synthetic samples for rare classes. By specifically targeting "Approximately-In-Distribution" (AID) samples—images that blend features from common and rare classes—it achieves state-of-the-art accuracy on long-tailed benchmarks without relying on any external datasets or pre-trained weights.

What Problem Does This Paper Address?

Standard approaches to long-tail (LT) recognition usually involve "re-weighting" (giving rare classes more importance during training) or "re-sampling" (showing the model rare images more often). While helpful, these don't solve the core issue: data scarcity. There simply isn't enough information in five images of a rare bird to teach a model how to recognize it in different lighting or angles.

Recently, researchers started using generative models to create synthetic data. However, most of these methods rely on "external knowledge"—using models pre-trained on billions of internet images. This creates a "fairness" problem in research (did the model succeed because of the algorithm, or because it already saw the data during pre-training?) and a "privacy" problem in practice. DiffuLT asks: Can we generate useful tail-class samples using only the original, imbalanced dataset?

Methods

The authors propose a three-step pipeline:

  1. Initial Training: They train a simple feature extractor ($\phi_0$) on the original imbalanced data. This model isn't perfect, but it understands the basic "neighborhoods" of different classes in feature space.
  2. AID-Biased Diffusion: They train a diffusion model from scratch. Standard diffusion models try to generate perfectly realistic images. However, the authors found that the most useful images for a classifier aren't the "perfect" ones, but Approximately-In-Distribution (AID) samples. These are images that sit on the edge of a class's distribution, often blending patterns from the "head" classes into the "tail" classes. They introduce a novel AID-biased loss ($L_{AID}$) to encourage the generator to produce these specific types of samples.
  3. Balanced Retraining: They use the diffusion model to generate thousands of new images for the minority classes until the dataset is balanced. Finally, they train a new classifier on this augmented dataset. They use a weighted cross-entropy loss to ensure the model trusts real images slightly more than synthetic ones.

Datasets

The authors evaluated DiffuLT on three standard long-tail benchmarks:

  • CIFAR10-LT & CIFAR100-LT: Imbalanced versions of the classic CIFAR datasets with various "imbalance ratios" (how much more common the head is than the tail).
  • ImageNet-LT: A long-tailed subset of the massive ImageNet dataset, containing 1,000 classes sampled according to a Pareto distribution.

Key Insights and Ideas

Correlation between accuracy, FID, and the proportion of AID samples, alongside a feature space visualization showing DiffuLT's ability to generate samples in the optimal AID region.
  • The "AID" Sweet Spot: The paper's most interesting finding is that "perfect" synthetic images (In-Distribution) don't help much because the model already knows that space. "Garbage" images (Out-of-Distribution) hurt performance. The "Goldilocks" zone is the AID sample, which provides enough diversity to help the model generalize to new, unseen examples of rare classes.
  • Feature Blending: Because the diffusion model is trained on the whole dataset, it learns the high-level features of the "head" classes (like textures or backgrounds) and "blends" them into the "tail" classes. This effectively transfers knowledge from common objects to rare ones.
  • No External Leaks: By training from scratch, the authors prove that the "knowledge" needed to balance a dataset is often already hidden within the imbalanced data itself; you just need a generative model to "unlock" it.

Key Results

DiffuLT significantly outperformed existing methods that don't use external data:

  • CIFAR100-LT: Achieved 52.4% accuracy (at an imbalance ratio of 100), a massive jump from the 38.3% baseline.
  • ImageNet-LT: Using a ResNet-50 backbone, it reached 56.9% accuracy.
  • Tail Class Performance: The most dramatic gains were in the "Few" category (classes with the least data). On ImageNet-LT, accuracy for these rare classes jumped from a measly 5.8% (baseline) to 39.9%.

Limitations and Future Work

  • Computational Cost: Training a diffusion model from scratch is expensive. Training on ImageNet-LT took approximately six days on 8x RTX 3090 GPUs. This makes it difficult to scale to even larger datasets like iNaturalist.
  • Generation Speed: Diffusion models are notoriously slow at sampling images compared to GANs.
  • Future Directions: The authors suggest looking into faster diffusion architectures or finding ways to use "domain-specific" pre-trained models that don't violate the "no external data" rule (e.g., using a model pre-trained on medical images to help with a different medical task).

Reference: Shao, J., Zhu, K., Zhang, H., & Wu, J. (2024). DiffuLT: Diffusion for Long-tail Recognition Without External Knowledge. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).

Summary updated

BibTeX
@inproceedings{shao2024diffult,
  author = {Jie Shao and Ke Zhu and Hanxiao Zhang and Jianxin Wu},
  title = {{DiffuLT: Diffusion for Long-tail Recognition Without External Knowledge}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Kcsj9FGnKR},
}
Figure