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

Transfer Learning for Diffusion Models

Yidong Ouyang, Liyan Xie, Hongyuan Zha, Guang Cheng

Diffusion models have revolutionized generative AI, yet their reliance on massive datasets remains a significant hurdle. Adapting a high-performing model trained on a large "source" dataset to a niche "target" task with limited samples typically forces a compromise: training from scratch often fails to generalize, while finetuning weights risks overfitting or breaking the model's pre-trained logic.

In their NeurIPS 2024 paper, "Transfer Learning for Diffusion Models," researchers from UCLA, UMN, and CUHK Shenzhen introduce the Transfer Guided Diffusion Process (TGDP). This novel approach treats pre-trained models as "plug-and-play" priors, using a separate guidance network to steer them toward the target domain without modifying original weights.

The Challenge of Data Scarcity

Standard transfer learning via finetuning attempts to warp complex high-dimensional manifolds using minimal information. This frequently leads to overfitting, where the model memorizes training images, or performance degradation, where it loses the high-quality priors learned from the source. The authors address this by mathematically defining the optimal target model relative to a known source model.

Transfer Guided Diffusion Process (TGDP)

The core innovation is Theorem 3.1, which proves that the optimal score function for a target domain is the sum of the source score function and a guidance term derived from the density ratio between target and source distributions.

The implementation involves:

  1. Domain Classifier: A binary classifier learns to distinguish between source and target samples, effectively capturing the density ratio.
  2. Guidance Network: A small network estimates the expectation of this ratio as data evolves through the diffusion process.
  3. Plug-and-Play Inference: During generation, the large source model remains frozen. Its output is augmented by the gradient of the guidance network at each step.
The guidance term effectively learns the target distribution even with very few samples (n=10), approaching the oracle distribution as data increases.

To ensure robustness, the authors incorporate Cycle Regularization to maximize target data utility and Consistency Regularization to prevent score drift during generation.

Experimental Validation

TGDP was validated on two benchmarks:

  • Gaussian Mixture Simulation: A 2D toy problem demonstrating shifts between clusters with as few as 10 samples.
  • ECG Data (Electrocardiogram): A real-world biomedical task using the PTB-XL dataset as the source and ICBEB2018 as the target. This multi-label transfer task highlights TGDP's ability to handle distribution shifts in sensitive domains.
Visual comparison of TGDP against baseline methods. TGDP maintains better structure and diversity, especially in low-data regimes (n=10).

Key Results and Impact

TGDP demonstrates that learning a classifier to distinguish domains is significantly easier than learning a generative distribution from scratch. This leads to several advantages:

  • Parameter Efficiency: In ECG experiments, TGDP required training only 2.8M parameters, compared to 50.2M for full finetuning.
  • Superior Performance: On the ECG benchmark, TGDP achieved a Frechet Inception Distance (FID) of 10.46, outperforming both vanilla diffusion (11.01) and full finetuning (12.26).
  • Enhanced Diversity: TGDP achieved a coverage metric of 0.53, surpassing finetuning's 0.47 and suggesting better resistance to mode collapse.
  • Computational Speed: Training the guidance network took roughly half the time of standard training.

Conclusion

By shifting from weight-hacking to mathematical steering, TGDP provides a robust framework for applying large-scale diffusion models to data-scarce fields like medicine and specialized engineering. While challenges remain in scaling to massive text-to-image models and handling complete label mismatches, TGDP represents a significant step toward more efficient and reliable transfer learning in generative AI.

Summary updated

BibTeX
@inproceedings{ouyang2024transfer,
  author = {Yidong Ouyang and Liyan Xie and Hongyuan Zha and Guang Cheng},
  title = {{Transfer Learning for Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=6emETARnWi},
}
Figure