Controlling Text-to-Image Diffusion by Orthogonal Finetuning

Zeju Qiu, Weiyang Liu, Haiwen Feng, Yuxuan Xue, Yao Feng +4 more
6/12/2023
cs.CVcs.AIcs.GR

No official code found. Best implementation: zqiu24/oft (301 stars, MIT, last commit 2025-08-29). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

tripplyons/oftCommunity70%
MIT

Diffusers Implementation of Controlling Text-to-Image Diffusion by Orthogonal Finetuning

351PythonSep 23, 20233 years agoMIT
zqiu24/oftCommunity64%
MIT

Official implementation of "Controlling Text-to-Image Diffusion by Orthogonal Finetuning".

30116Shell, PythonJun 11, 20231 years agoMIT

Similar Papers

Cite this paper

@article{qiu2023controlling,
  title  = {Controlling Text-to-Image Diffusion by Orthogonal Finetuning},
  author = {Zeju Qiu and Weiyang Liu and Haiwen Feng and Yuxuan Xue and Yao Feng and Zhen Liu and Dan Zhang and Adrian Weller and Bernhard Schölkopf},
  year   = {2023},
  eprint = {2306.07280},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.07280v3},
  journal = {NEURIPS 2023 2023}
}

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

Discussion