TaxaDiffusion: Progressively Trained Diffusion Model for Fine-Grained Species Generation

Amin Karimi Monsefi, Mridul Khurana, Rajiv Ramnath, Anuj Karpatne, Wei-Lun Chao, Cheng Zhang

TL;DR

TaxaDiffusion introduces a taxonomy-informed, progressive training framework that enables diffusion models to generate highly accurate images of fine-grained animal species. By structuring model training to mirror biological hierarchies—moving from broad categories like Class and Order down to Genus and Species—the framework facilitates robust knowledge transfer. This allows the model to accurately synthesize morphologically precise images, even for rare species with extremely limited training data.

What Problem Does This Paper Address?

Generating high-fidelity, morphologically accurate images of specific animal species is a notorious challenge for standard text-to-image diffusion models. While vanilla models excel at broad concepts (e.g., "a dog" or "a fish"), they frequently stumble on fine-grained distinctions where species identity relies on subtle variations in fin structure, scale patterns, or coloration.

Two primary domain characteristics cause this failure:

  1. High Intra-class Variation: Animals are dynamic; a single species can appear in vastly different poses, orientations, and environments.
  2. Extreme Data Scarcity: With millions of species on Earth, collecting thousands of high-quality images for every single one is practically impossible. Many rare species have only a handful of documented images.

Existing models typically treat every species as an independent, flat category. They fail to exploit the rich evolutionary relationships and shared visual traits encoded in biological taxonomy, leading to morphologically incorrect outputs or complete failures in zero-shot/few-shot scenarios.

Methods

Instead of forcing a model to learn all taxonomic levels simultaneously—which overwhelms the training process—TaxaDiffusion introduces a Taxonomy-Informed Progressive Training strategy.

Figure 3. Overview of TaxaDiffusion for progressive diffusion model training. Left and middle: We incorporate a taxonomy-informed conditioning module to guide the model training. Right: The hierarchical taxonomy levels (i.e., Kingdom, Phylum, Class, Order, Family, Genus, Species) are progressively encoded by the text encoder of the CLIP model during training. Each taxonomy level activates specific traits, allowing the model to capture common features at higher levels and fine details at the species level.

The approach consists of three core components:

  • Efficient Domain Adaptation: The authors first adapt a pre-trained Stable Diffusion (v1.5) model to the animal domain using Low-Rank Adaptation (LoRA). Crucially, LoRA parameters are only trained at the broadest level (Kingdom) and are subsequently frozen to maintain a stable base.
  • Progressive Hierarchical Training: The model is trained sequentially across taxonomic levels (Kingdom $\rightarrow$ Phylum $\rightarrow$ Class $\rightarrow$ Order $\rightarrow$ Family $\rightarrow$ Genus $\rightarrow$ Species). At each stage $i$, text prompts up to that level are processed by a frozen CLIP encoder and refined by a trainable module consisting of two transformer layers. Once a level is trained, its weights are frozen before moving to the next level. The embeddings from all previously trained levels are aggregated (added together) to condition the diffusion process.
  • Taxonomy-Driven Guidance: During inference, the authors modify standard Classifier-Free Guidance (CFG). Instead of shifting the model's predictions away from an unconditional (null) prompt, TaxaDiffusion shifts predictions away from a high-level taxonomic prior (e.g., the Kingdom level). This forces the model to explicitly focus on the fine-grained, species-specific traits that differentiate the target animal from its broader biological group.

Datasets

The framework was evaluated on three challenging, fine-grained biological datasets:

  • FishNet: Contains approximately 100,000 images spanning 17,357 distinct fish species across five taxonomic levels. It serves as a rigorous benchmark for few-shot generation.
  • iNaturalist (2018): A diverse dataset spanning 10,000 species of plants and animals, used to test the generalizability of the method across different kingdoms.
  • BIOSCAN-1M: A large-scale insect dataset containing high-quality microscope images of 8,355 species, utilized in the supplementary material to validate diverse insect generation.

Key Insights and Ideas

  • Mimicking Evolution as a Regularizer: By forcing the model to first master coarse morphological layouts (like the basic body plan of an entire Order or Family) before learning species-level details, the hierarchical structure acts as a powerful geometric prior.
  • Seamless Knowledge Transfer for Rare Species: For a species with only one or two training images, the model doesn't need to learn how to build an animal from scratch. It inherits structural, pose, and contextual knowledge from well-sampled sibling species within the same Genus or Family, leaving it with the much simpler task of learning subtle variations in color or texture at the final stage.
  • Better Latent Clustering: t-SNE visualizations reveal that TaxaDiffusion's progressive conditioning forces the text-image latent space to form highly distinct, well-separated clusters corresponding to taxonomic groups, whereas standard CLIP embeddings suffer from severe overlap.

Key Results

TaxaDiffusion consistently outperformed vanilla Stable Diffusion, LoRA fine-tuning, and full fine-tuning baselines across both quantitative metrics and qualitative evaluations.

Figure 4. Qualitative comparison on FishNet [19]. We show four samples from each method and observe that TaxaDiffusion captures fine-grained traits (fin structure, body shape, and pattern) more accurately than the baselines which fail to generate the correct species.
  • Image Quality & Fidelity: On the FishNet dataset at the Species level, TaxaDiffusion achieved a Fréchet Inception Distance (FID) of 31.87, significantly lower (better) than Full Fine-Tuning (39.41) and Vanilla Stable Diffusion (61.93).
  • Biological Alignment: Using BioCLIP (a foundation model for the tree of life) to measure semantic accuracy, TaxaDiffusion scored 10.43 at the species level, outperforming the full fine-tuning baseline (8.31) and vanilla SD (3.35).
  • State-of-the-Art Comparison: When compared directly against FineDiffusion (a recent SOTA method for fine-grained generation) on a shared subset of 171 iNaturalist species, TaxaDiffusion achieved a vastly superior FID of 43.71 compared to FineDiffusion's 74.80.
  • Parameter Efficiency: TaxaDiffusion achieved these results while updating only 55.93 million parameters (~6.5% of the total model size), compared to the 859.52 million parameters required for full fine-tuning.

Limitations and Future Work

Despite its success, TaxaDiffusion faces a clear bottleneck when dealing with extreme data sparsity combined with low taxonomic diversity. For instance, the class Dipneusti (lungfish) contains only 5 species and 19 total samples in the dataset. Because there are virtually no "neighboring" species to inherit traits from, the progressive framework struggles to generalize, resulting in suboptimal image fidelity for that specific group.

Additionally, the authors note that their current implementation relies on a standard U-Net architecture. They suggest that migrating the progressive training framework to more scalable, modern backbones like Diffusion Transformers (DiTs) represents a promising avenue for future performance gains.

Summary updated

BibTeX
@inproceedings{monsefi2025taxadiffusion,
  author = {Amin Karimi Monsefi and Mridul Khurana and Rajiv Ramnath and Anuj Karpatne and Wei-Lun Chao and Cheng Zhang},
  title = {{TaxaDiffusion: Progressively Trained Diffusion Model for Fine-Grained Species Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure