Skip to main content
QUICK REVIEW

[论文解读] Controlling Text-to-Image Diffusion by Orthogonal Finetuning

Zeju Qiu, Weiyang Liu|arXiv (Cornell University)|Jun 12, 2023
Model Reduction and Neural NetworksPhysics and Astronomy被引用 21
一句话总结

本论文提出正交微调(OFT)及其受限变体COFT,以在不牺牲预训练语义结构的前提下,通过 hyperspherical energy 适应文本到图像扩散模型实现主体驱动和可控生成。OFT 使用层共享的正交变换以保持神经元角度,实现数据高效、无推理开销的稳定微调。

ABSTRACT

Large text-to-image diffusion models have impressive capabilities in generating photorealistic images from text prompts. How to effectively guide or control these powerful models to perform different downstream tasks becomes an important open problem. To tackle this challenge, we introduce a principled finetuning method -- Orthogonal Finetuning (OFT), for adapting text-to-image diffusion models to downstream tasks. Unlike existing methods, OFT can provably preserve hyperspherical energy which characterizes the pairwise neuron relationship on the unit hypersphere. We find that this property is crucial for preserving the semantic generation ability of text-to-image diffusion models. To improve finetuning stability, we further propose Constrained Orthogonal Finetuning (COFT) which imposes an additional radius constraint to the hypersphere. Specifically, we consider two important finetuning text-to-image tasks: subject-driven generation where the goal is to generate subject-specific images given a few images of a subject and a text prompt, and controllable generation where the goal is to enable the model to take in additional control signals. We empirically show that our OFT framework outperforms existing methods in generation quality and convergence speed.

研究动机与目标

  • 在不牺牲预训练质量的前提下,推动文本到图像扩散模型的有效微调。
  • 通过正交神经元变换来维持 hyperspherical energy,从而保持语义生成能力。
  • 开发一种高效、低参数的微调方法,确保下游任务的稳定收敛。
  • 扩展到两类任务:主题驱动生成与可控生成,同时提升样本效率和稳定性。

提出的方法

  • 将 hyperspherical energy 定义为单位超球面上成对神经元角度关系的度量。
  • 提出通过学习一个层共享的正交矩阵 R 来变换预训练权重 W0(W = R W0)来实现正交微调(OFT)。
  • 使用 Cayley 参数化确保 R 为正交,并实现一个块对角变体以减少参数。
  • 通过添加一个从单位矩阵的 epsilon 偏离约束(R ~ I)来引入受限正交微调(COFT),以提高稳定性。
  • 可选地用对角缩放 D 增强 OFT(再缩放的 OFT),以进一步提高灵活性。
  • 讨论与 LoRA 的关系并给出参数效率比较(在类似条件下 OFT 往往需要更少的可训练参数)。
  • 证明由于有效权重矩阵是 R W0,因此没有额外的推理开销。

实验结果

研究问题

  • RQ1OFT 在将扩散模型适配到下游任务的同时,是否能保持预训练的 hyperspherical energy?
  • RQ2通过限制偏离预训练模型的程度,COFT 是否提高了微调的稳定性?
  • RQ3与 DreamBooth 和 LoRA 相比,OFT 与 COFT 在主题驱动生成上的表现如何?
  • RQ4在可控生成方面,OFT/COFT 在收敛速度和数据效率方面的表现如何?
  • RQ5OFT 是否对体系结构不敏感,且与卷积和基于变换器的层兼容?

主要发现

  • OFT 保持 hyperspherical energy,并在迭代中实现稳定微调,在主题驱动生成方面优于 DreamBooth 和 LoRA。
  • COFT 通过约束与预训练权重的偏离,进一步提高微调稳定性,保持强劲性能。
  • 在可控生成方面,OFT 在收敛速度和样本效率方面优于 ControlNet 和 LoRA,且无推理开销。
  • 在主题驱动任务中,OFT/COFT 获得更高的 DINO 和 CLIP-I 分数,且 LPIPS 多样性与基线相比相当或更好,同时保持提示保真度(CLIP-T)。
  • OFT/COFT 相比基线方法需要显著更少的训练图像和训练轮次即可收敛,体现数据效率。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。