Skip to main content
QUICK REVIEW

[論文レビュー] InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation

Xingchao Liu, Xiwen Zhang|arXiv (Cornell University)|Sep 12, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用数 20
ひとこと要約

InstaFlowはRectified Flowと蒸留を用いてStable Diffusionを高品質なワンステップのテキストから画像生成器に変換し、約0.09秒/画像でSDレベルの画像品質を実現し、低い訓練コストを達成します。

ABSTRACT

Diffusion models have revolutionized text-to-image generation with its exceptional quality and creativity. However, its multi-step sampling process is known to be slow, often requiring tens of inference steps to obtain satisfactory results. Previous attempts to improve its sampling speed and reduce computational costs through distillation have been unsuccessful in achieving a functional one-step model. In this paper, we explore a recent method called Rectified Flow, which, thus far, has only been applied to small datasets. The core of Rectified Flow lies in its \emph{reflow} procedure, which straightens the trajectories of probability flows, refines the coupling between noises and images, and facilitates the distillation process with student models. We propose a novel text-conditioned pipeline to turn Stable Diffusion (SD) into an ultra-fast one-step model, in which we find reflow plays a critical role in improving the assignment between noise and images. Leveraging our new pipeline, we create, to the best of our knowledge, the first one-step diffusion-based text-to-image generator with SD-level image quality, achieving an FID (Frechet Inception Distance) of $23.3$ on MS COCO 2017-5k, surpassing the previous state-of-the-art technique, progressive distillation, by a significant margin ($37.2$ $ ightarrow$ $23.3$ in FID). By utilizing an expanded network with 1.7B parameters, we further improve the FID to $22.4$. We call our one-step models \emph{InstaFlow}. On MS COCO 2014-30k, InstaFlow yields an FID of $13.1$ in just $0.09$ second, the best in $\leq 0.1$ second regime, outperforming the recent StyleGAN-T ($13.9$ in $0.1$ second). Notably, the training of InstaFlow only costs 199 A100 GPU days. Codes and pre-trained models are available at \url{github.com/gnobitab/InstaFlow}.

研究の動機と目的

  • 単一ステップの拡散プロセスで超高速かつ高品質なテキストから画像生成を推進する。
  • ノイズと画像の結合が不十分で大規模拄拡散モデルの蒸留が難しい点に対処する。
  • Rectified Flowのリフローを活用して確率軌道をまっすぐにし、蒸留の実行可能性を向上させる。
  • 大規模データセットでGANに匹敵するワンステップ生成性能を示す。
  • 従来の蒸留拡散手法と比較した訓練コストと推論速度を定量化する。

提案手法

  • Rectified Flowを採用して、ノイズを一次元で画像分布へ輸送するテキスト条件付き速度場を学習する。
  • リフロー手順を適用してODEの軌道をまっすぐにし、結合を改善しつつターゲット分布を保持する。
  • Stable Diffusionからファインチューニングしてk-Rectified Flowを得て、次に類似度損失(LPIPS)を用いてワンステップモデルへ蒸留する。
  • テキスト条件付き速度場をClassifier-Free Guidanceと組み込み、品質と多様性のバランスを取る(αパラメータ)。
  • SD 1.4からSD 1.5へ、より高忠実度を実現する拡張ネットワークと段階的なリフロー/蒸馏パイプラインで。

実験結果

リサーチクエスチョン

  • RQ1ワンステップ拡散ベースのテキストから画像生成モデルは大規模データセットでStable Diffusionと同等の品質に匹敵できるか?
  • RQ2Rectified Flowのリフローはノイズと画像の結合を十分に改善して、1ステップへの効果的な蒸留を可能にするか?
  • RQ3テキスト条件付けとガイダンスがワンステップ生成性能に及ぼす影響は何か?
  • RQ4大規模なワンステップSDモデルで達成可能な訓練コストと推論速度はいかなるものか?

主な発見

  • ワンステップのInstaFlowはMS COCO 2017-5kでFID 23.3のSDレベルの画像品質を達成し、進行蒸留(37.2→23.3)を上回る。
  • 拡張された1.7Bパラメータのネットワークを使用すると、MS COCO 2017-5kで0.09s/画像でFID 22.4を達成。
  • MS COCO 2014-30kでは、InstaFlowは0.09sでFID 13.1を達成し、StyleGAN-T(0.1sで13.9)を上回る。
  • InstaFlowの訓練コストは199 A100 GPU日で、SDやGANベースの対設と比較して著しく低い。
  • リフローは必須:SDからの直接蒸留は失敗し、2-Rectified Flowは効果的な蒸留と高品質のワンステップ結果を可能にする。
  • このパイプラインはテキスト条件付きリフローと蒸留をサポートし、純粋な教師あり学習と競合する結果を達成する。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。