A Closer Look at Parameter-Efficient Tuning in Diffusion Models

Chendong Xiang, Fan Bao, Chongxuan Li, Hang Su, Jun Zhu
3/31/2023
cs.CVcs.LG

No official code found. Best implementation: Xiang-cd/unet-finetune (43 stars, MIT, last commit 2023-06-05).

Abstract

Large-scale diffusion models like Stable Diffusion are powerful and find various real-world applications while customizing such models by fine-tuning is both memory and time inefficient. Motivated by the recent progress in natural language processing, we investigate parameter-efficient tuning in large diffusion models by inserting small learnable modules (termed adapters). In particular, we decompose the design space of adapters into orthogonal factors -- the input position, the output position as well as the function form, and perform Analysis of Variance (ANOVA), a classical statistical approach for analyzing the correlation between discrete (design options) and continuous variables (evaluation metrics). Our analysis suggests that the input position of adapters is the critical factor influencing the performance of downstream tasks. Then, we carefully study the choice of the input position, and we find that putting the input position after the cross-attention block can lead to the best performance, validated by additional visualization analyses. Finally, we provide a recipe for parameter-efficient tuning in diffusion models, which is comparable if not superior to the fully fine-tuned baseline (e.g., DreamBooth) with only 0.75 \% extra parameters, across various customized tasks.

View on arXivView PDF

Code Implementations(1)

MIT

fixed official code for paper "A Closer Look at Parameter-Efficient Tuning in Diffusion Models".

435Shell, PythonApr 10, 20233 years agoMIT

Similar Papers

Cite this paper

@article{xiang2023closer,
  title  = {A Closer Look at Parameter-Efficient Tuning in Diffusion Models},
  author = {Chendong Xiang and Fan Bao and Chongxuan Li and Hang Su and Jun Zhu},
  year   = {2023},
  eprint = {2303.18181},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.18181v2}
}

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/2303.18181.svg)](https://codeofpaper.com/paper/2303.18181)

Discussion