SUPERDIFF introduces a theoretically grounded framework for combining multiple pre-trained diffusion models at inference time without any retraining. By leveraging a novel, computationally efficient Itô density estimator, the authors enable "logical" operations (AND/OR) between models. This allows for seamless concept interpolation in images and improved multi-objective design in proteins and molecules.
The Challenge of Combining Diffusion Models
The "Cambrian explosion" of pre-trained diffusion models has created a massive library of specialized tools for generating images, proteins, and chemicals. However, combining the strengths of two different pre-trained models—for instance, merging a "sunflower" generator with a "lemon" generator—typically requires retraining a new model on a combined dataset, which is prohibitively expensive.
Existing inference-time methods for combining models often rely on heuristic guidance or computationally heavy Markov Chain Monte Carlo (MCMC) sampling. A major bottleneck in these approaches is density estimation: determining how likely a sample is under a specific model during the generation process. Standard methods require calculating the "divergence" of the model's vector field, which involves expensive backpropagation (Jacobian-vector products) at every single step of the diffusion process.
SUPERDIFF: Superposition via Logical Operations
To overcome these bottlenecks, the authors propose SUPERDIFF, a framework based on the physical principle of superposition. They derive two primary methods to combine models using logical operations:
- Logical OR (Mixture of Densities): Samples are drawn from the union of the models' distributions. This is highly effective for merging models trained on disjoint datasets, effectively expanding the generative scope.
- Logical AND (Sampling Equal Densities): Samples are guided toward regions where they are equally likely under all involved models. This effectively "interpolates" concepts, creating hybrid outputs that satisfy multiple conditions simultaneously.
The "Free" Likelihood: The Itô Density Estimator
The core technical innovation enabling SUPERDIFF is the Itô density estimator. Unlike the standard "Smooth density estimator" (based on the continuity equation) which requires expensive divergence calculations, the Itô estimator tracks the change in log-density along the Stochastic Differential Equation (SDE) trajectory using the drift of the forward noising process.
Because the forward process in diffusion models is usually a simple linear scaling (like the Ornstein-Uhlenbeck process), its divergence is a constant. By switching the perspective from the complex learned reverse-time vector field to the simple, predefined forward-time drift, the authors bypass the need for expensive Jacobian calculations. This makes the estimator essentially "free" in terms of additional computational overhead. SUPERDIFF uses these estimated densities to dynamically re-weight the contribution of each model at every step of the generation process, rather than just naively averaging outputs.
Key Results Across Domains
The paper validates SUPERDIFF across several diverse domains, demonstrating its versatility and effectiveness.
Faithful Concept Interpolation in Images
When combining prompts in Stable Diffusion (e.g., "A Dog" AND "A Cat"), SUPERDIFF produced more recognizable "hybrid" images than simple output averaging or joint prompting. It scored higher on CLIP and TIFA metrics, proving its ability to perform "concept alchemy." On CIFAR-10, SUPERDIFF (OR) outperformed individual models and even a model trained on the full combined dataset in terms of FID and Inception Score.
Protein Discovery and Multi-Property Molecules
- Proteins: The authors combined two state-of-the-art models, Proteus and FrameDiff, trained on the Protein Data Bank (PDB). This combination led to higher "designability" (the likelihood that a generated structure can actually fold) and "novelty" compared to using either model alone.
- Molecules: Using LDMol (a latent diffusion model for SMILES strings), SUPERDIFF (AND) successfully generated molecules that simultaneously satisfied high binding affinity and high drug-likeness (QED), outperforming standard joint prompting in drug discovery tasks.
Limitations and Future Work
While SUPERDIFF offers a powerful inference-time solution, it has limitations:
- Inference Cost: Although density estimation is efficient, SUPERDIFF still requires a forward pass through every combined model at each step. Combining five large models increases inference time fivefold.
- Model-Level vs. Weight-Level: The method operates at the output level (vector fields). A "weight-level" combination (similar to Model Soups) that avoids multiple forward passes would be a valuable future direction.
- Discrete Domains: The core theory is derived for continuous SDEs. While the paper touches on molecules via latent space, extending this framework to purely discrete diffusion models remains an open challenge.
Summary updated