Understanding the Generalization of Pretrained Diffusion Models on Out-of-Distribution Data

Authors

  • Sai Niranjan Ramachandran Indian Institute Of Science, Bangalore
  • Rudrabha Mukhopadhyay International Institute of Information Technology, Hyderabad
  • Madhav Agarwal International Institute of Information Technology, Hyderabad
  • C.V. Jawahar International Institute of Information Technology, Hyderabad
  • Vinay Namboodiri University of Bath

DOI:

https://doi.org/10.1609/aaai.v38i13.29395

Keywords:

ML: Deep Generative Models & Autoencoders, CV: Representation Learning for Vision, ML: Deep Learning Theory, ML: Dimensionality Reduction/Feature Selection, ML: Representation Learning

Abstract

This work tackles the important task of understanding out-of-distribution behavior in two prominent types of generative models, i.e., GANs and Diffusion models. Understanding this behavior is crucial in understanding their broader utility and risks as these systems are increasingly deployed in our daily lives. Our first contribution is demonstrating that diffusion spaces outperform GANs' latent spaces in inverting high-quality OOD images. We also provide a theoretical analysis attributing this to the lack of prior holes in diffusion spaces. Our second significant contribution is to provide a theoretical hypothesis that diffusion spaces can be projected onto a bounded hypersphere, enabling image manipulation through geodesic traversal between inverted images. Our analysis shows that different geodesics share common attributes for the same manipulation, which we leverage to perform various image manipulations. We conduct thorough empirical evaluations to support and validate our claims. Finally, our third and final contribution introduces a novel approach to the few-shot sampling for out-of-distribution data by inverting a few images to sample from the cluster formed by the inverted latents. The proposed technique achieves state-of-the-art results for the few-shot generation task in terms of image quality. Our research underscores the promise of diffusion spaces in out-of-distribution imaging and offers avenues for further exploration. Please find more details about our project at \url{http://cvit.iiit.ac.in/research/projects/cvit-projects/diffusionOOD}

Published

2024-03-24

How to Cite

Ramachandran, S. N., Mukhopadhyay, R., Agarwal, M., Jawahar, C., & Namboodiri, V. (2024). Understanding the Generalization of Pretrained Diffusion Models on Out-of-Distribution Data. Proceedings of the AAAI Conference on Artificial Intelligence, 38(13), 14767-14775. https://doi.org/10.1609/aaai.v38i13.29395

Issue

Section

AAAI Technical Track on Machine Learning IV