Unraveling the Temporal Dynamics of the Unet in Diffusion Models

Vidya Prasad, Chen Zhu-Tian, Anna Vilanova, Hanspeter Pfister, Nicola Pezzotti +1 more
12/17/2023
cs.CVcs.LG
diffusion-flow

No confident code implementation found for this paper.

Abstract

Diffusion models have garnered significant attention since they can effectively learn complex multivariate Gaussian distributions, resulting in diverse, high-quality outcomes. They introduce Gaussian noise into training data and reconstruct the original data iteratively.

Show full abstract

Central to this iterative process is a single Unet, adapting across time steps to facilitate generation. Recent work revealed the presence of composition and denoising phases in this generation process, raising questions about the Unets' varying roles. Our study dives into the dynamic behavior of Unets within denoising diffusion probabilistic models (DDPM), focusing on (de)convolutional blocks and skip connections across time steps. We propose an analytical method to systematically assess the impact of time steps and core Unet components on the final output. This method eliminates components to study causal relations and investigate their influence on output changes. The main purpose is to understand the temporal dynamics and identify potential shortcuts during inference. Our findings provide valuable insights into the various generation phases during inference and shed light on the Unets' usage patterns across these phases. Leveraging these insights, we identify redundancies in GLIDE (an improved DDPM) and improve inference time by ~27% with minimal degradation in output quality. Our ultimate goal is to guide more informed optimization strategies for inference and influence new model designs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{prasad2023unraveling,
  title  = {Unraveling the Temporal Dynamics of the Unet in Diffusion Models},
  author = {Vidya Prasad and Chen Zhu-Tian and Anna Vilanova and Hanspeter Pfister and Nicola Pezzotti and Hendrik Strobelt},
  year   = {2023},
  eprint = {2312.14965},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.14965v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.14965.svg)](https://codeofpaper.com/paper/2312.14965)

Discussion