Skip to main content
QUICK REVIEW

[Paper 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 Astronomy21 citations
TL;DR

The paper introduces Orthogonal Finetuning (OFT) and its constrained variant COFT to adapt text-to-image diffusion models for subject-driven and controllable generation while preserving pretrained semantic structure via hyperspherical energy. OFT uses layer-shared orthogonal transformations to maintain neuron angles, achieving stable, data-efficient finetuning with no inference overhead.

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.

Motivation & Objective

  • Motivate effective finetuning of text-to-image diffusion models without sacrificing pretraining quality.
  • Preserve semantic generation ability by maintaining hyperspherical energy via orthogonal neuron transformations.
  • Develop an efficient, low-parameter finetuning method with stable convergence for downstream tasks.
  • Extend to two tasks: subject-driven generation and controllable generation, with improved sample efficiency and stability.

Proposed method

  • Define hyperspherical energy as a measure of pairwise neuron angular relations on the unit hypersphere.
  • Propose Orthogonal Finetuning (OFT) by learning a layer-shared orthogonal matrix R to transform pretrained weights W0 (W = R W0).
  • Ensure R is orthogonal using Cayley parameterization and implement a block-diagonal variant to reduce parameters.
  • Introduce Constrained Orthogonal Finetuning (COFT) by adding an epsilon-deviation constraint from the identity (R ~ I) to improve stability.
  • Optionally augment OFT with a diagonal scaling D (Re-scaled OFT) to further increase flexibility.
  • Discuss relationship to LoRA and provide a parameter-efficiency comparison (OFT tends to require fewer trainable parameters under similar conditions).
  • Demonstrate no additional inference overhead since the effective weight matrix is R W0.

Experimental results

Research questions

  • RQ1Can OFT preserve pretrained hyperspherical energy while adapting diffusion models to downstream tasks?
  • RQ2Does COFT improve finetuning stability by constraining the deviation from the pretrained model?
  • RQ3How do OFT and COFT perform on subject-driven generation compared to DreamBooth and LoRA?
  • RQ4How do OFT/COFT perform on controllable generation with respect to convergence speed and data efficiency?
  • RQ5Is OFT agnostic to architecture and compatible with convolutional and transformer-based layers?

Key findings

  • OFT preserves hyperspherical energy and yields stable finetuning across iterations, outperforming DreamBooth and LoRA in subject-driven generation.
  • COFT further improves finetuning stability by constraining deviations from pretrained weights, maintaining strong performance.
  • For controllable generation, OFT achieves faster convergence and better sample efficiency than ControlNet and LoRA, with no inference overhead.
  • In subject-driven tasks, OFT/COFT achieve higher DINO and CLIP-I scores and comparable or better LPIPS diversity than baselines, while maintaining prompt fidelity (CLIP-T).
  • OFT/COFT require significantly fewer training images and epochs to converge compared to baseline methods, demonstrating data efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.