Introduction
Standard class-conditional diffusion models treat categories as a "flat" list, ignoring the inherent hierarchical relationships in real-world data. Whether generating biological cell types or handwritten digits, these models often waste parameters learning redundant high-level features for similar classes. This lack of structure leads to inefficiencies in sampling and "catastrophic forgetting" during continual learning.
The Hierarchically Branched Framework
To address these limitations, this research introduces Hierarchically Branched Diffusion Models. Instead of a single linear denoising path, the reverse diffusion process is organized into a rooted tree structure based on data similarity.
Architecture and Branch-Point Discovery
The model identifies "branch points"—specific moments in diffusion time where two classes become indistinguishable under noise. This is achieved using a log-fold change metric of Euclidean distances to determine when a sample from one class is as close to another class as it is to its own.
As shown in Figure 1, the architecture utilizes shared layers for the "trunk" (high-noise regime) and specialized "heads" for specific branches as noise is removed. This ensures that features common to multiple classes are learned once, while class-specific details are handled by dedicated parameters.
Experimental Evaluation
The framework was tested across four distinct domains to prove its versatility:
- MNIST: Handwritten digits (Images).
- Tabular Letters: Featurized English letters (Tabular).
- Single-cell RNA-seq: Gene expression data from COVID-19 and influenza patients (Biological).
- ZINC250K: Drug-like molecular graphs (Chemistry).
Key Results and Advantages
Efficiency and Sample Quality
Branched models achieve Fréchet Inception Distance (FID) scores comparable to or better than state-of-the-art linear models. Furthermore, they offer significant speedups in multi-class sampling. For example, in RNA-seq data, the branched model reduced sampling time from 275s to 132s by caching and reusing the shared trunk for multiple classes.
Continual Learning and Zero Forgetting
One of the most significant advantages is the ability to perform clean continual learning. To add a new class, researchers only need to train a new terminal branch while freezing existing ones.
As illustrated in Figure 2, traditional linear models suffer from catastrophic forgetting when fine-tuned on new data, causing performance on original classes to plummet. In contrast, the branched architecture maintains perfect performance on previously learned classes because the upstream weights remain frozen.
Transmutation
The hierarchical structure enables "transmutation"—the ability to transform a sample from one class into another while preserving its unique characteristics. By adding noise to a sample until it reaches a shared branch point and then denoising it along a different path, the model can, for instance, turn a specific "4" into a "9" that retains the original's slant and thickness.
Conclusion
Hierarchically Branched Diffusion Models provide a more efficient, interpretable, and flexible alternative to flat conditional models. By baking the data's natural hierarchy into the neural architecture, they solve the problem of catastrophic forgetting and enable novel generative capabilities like transmutation. Future work will focus on scaling these models to thousands of classes and exploring more complex distance metrics for high-resolution natural images.
Summary updated