arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.18181cs.CVcs.LG
收藏

扩散模型中参数高效微调的深入审视

A Closer Look at Parameter-Efficient Tuning in Diffusion Models

Tsinghua University(清华大学);Renmin University of China(中国人民大学);Pazhou Lab(琶洲实验室)

Chendong Xiang, Fan Bao, Chongxuan Li, Hang Su, Jun Zhu

AI总结:

本文研究扩散模型的参数高效微调,通过方差分析发现适配器输入位置是关键因素,并提出将输入置于交叉注意力块之后,仅用0.75%额外参数即可达到甚至超越完全微调的性能。

摘要:

像Stable Diffusion这样的大规模扩散模型功能强大,在现实世界中有多种应用,但通过微调来定制此类模型在内存和时间上都效率低下。受自然语言处理领域近期进展的启发,我们通过插入小型可学习模块(称为适配器)来研究大型扩散模型中的参数高效微调。具体而言,我们将适配器的设计空间分解为正交因素——输入位置、输出位置以及函数形式,并进行方差分析(ANOVA),这是一种用于分析离散变量(设计选项)与连续变量(评估指标)之间相关性的经典统计方法。我们的分析表明,适配器的输入位置是影响下游任务性能的关键因素。随后,我们仔细研究了输入位置的选择,发现将输入位置置于交叉注意力块之后可以获得最佳性能,并通过额外的可视化分析加以验证。最后,我们为扩散模型中的参数高效微调提供了一套方案,在仅增加0.75%额外参数的情况下,其性能与完全微调基线(例如DreamBooth)相当甚至更优,适用于各种定制任务。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑