Skip to main content
QUICK REVIEW

[論文レビュー] DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis

Yao Teng, Yue Wu|arXiv (Cornell University)|May 23, 2024
Medical Image Segmentation TechniquesComputer Science被引用数 3
ひとこと要約

本論文は、状態空間モデルを活用することで、変換器の2次的な計算複雑性を克服する、効率的な高解像度画像生成のための新しいMambaベースのバックボーン、Diffusion Mamba (DiM) を提案する。多方向スキャン、学習可能なパディングトークン、局所的特徴強化を導入することで、FLOPsを大幅に削減しながら、ImageNet 512×512 でSOTAのFIDスコア(2.40)を達成し、1536×1536解像度へのトレーニングフリーのアップサンプリングを可能にする。

ABSTRACT

Diffusion models have achieved great success in image generation, with the backbone evolving from U-Net to Vision Transformers. However, the computational cost of Transformers is quadratic to the number of tokens, leading to significant challenges when dealing with high-resolution images. In this work, we propose Diffusion Mamba (DiM), which combines the efficiency of Mamba, a sequence model based on State Space Models (SSM), with the expressive power of diffusion models for efficient high-resolution image synthesis. To address the challenge that Mamba cannot generalize to 2D signals, we make several architecture designs including multi-directional scans, learnable padding tokens at the end of each row and column, and lightweight local feature enhancement. Our DiM architecture achieves inference-time efficiency for high-resolution images. In addition, to further improve training efficiency for high-resolution image generation with DiM, we investigate "weak-to-strong" training strategy that pretrains DiM on low-resolution images ($256 imes 256$) and then finetune it on high-resolution images ($512 imes 512$). We further explore training-free upsampling strategies to enable the model to generate higher-resolution images (e.g., $1024 imes 1024$ and $1536 imes 1536$) without further fine-tuning. Experiments demonstrate the effectiveness and efficiency of our DiM. The code of our work is available here: {\url{https://github.com/tyshiwo1/DiM-DiffusionMamba/}}.

研究の動機と目的

  • 高解像度画像生成における変換器ベースの拡散モデルの高い計算コストに対処すること。
  • 1次元の順序モデリングを目的として設計された線形複雑性のシーケンスモデルMambaを、2次元画像データに適応させること。
  • 『弱いものから強いものへの』ファインチューニング戦略を提案することで、高解像度画像生成のトレーニング効率を向上させること。
  • ファインチューニング後の解像度を超える高解像度画像生成を、トレーニングフリーのアップサンプリング技術を用いて可能にすること。

提案手法

  • 行優先、列優先、および逆順スキャンを組み合わせた多方向スキャンを用いて、2次元画像トークンにMambaを適応させ、グローバルな受容 field を提供する。
  • 空間的に隣接しているが、シーケンス上では不連続なトークン(例:行の終りと次の行の始め)の間に学習可能なパディングトークンを導入し、空間的連続性を維持する。
  • 入力および出力ヘッドに軽量な3×3ディープワイズ畳み込み層を統合し、局所的特徴の整合性を向上させる。
  • 浅い層と深い層の間に長距離スキップ接続を適用し、拡散ノイズ除去におけるピクセル単位の再構成を改善する。
  • 『弱いものから強いものへの』トレーニング戦略を実装:256×256 で事前学習し、512×512 でファインチューニングすることで、トレーニングコストを削減する。
  • トレーニングフリーのアップサンプリングを検討:512×512 でファインチューニング後のモデルの一般化能力を活用し、追加のチューニングなしに1024×1024 および 1536×1536 での直接生成を可能にする。
Figure 1 : The images generated by our model trained on ImageNet. The resolutions are $1024\times 1024$ , $512\times 512$ and $256\times 256$ . The classifier-free guidance weight is set to 4.0.
Figure 1 : The images generated by our model trained on ImageNet. The resolutions are $1024\times 1024$ , $512\times 512$ and $256\times 256$ . The classifier-free guidance weight is set to 4.0.

実験結果

リサーチクエスチョン

  • RQ1線形複雑性のシーケンスモデルであるMambaは、高解像度画像生成のための拡散モデルにおいて、変換器に効果的に置き換え可能か?
  • RQ2Mambaの1次元因果モデリングは、画像トークンにおける2次元空間的構造をどのように保持できるか?
  • RQ3'弱いものから強いものへの'ファインチューニング戦略は、高解像度拡散モデルのトレーニングコストを顕著に削減できるか?
  • RQ4トレーニングフリーのアップサンプリングを用いて、追加のファインチューニングなしにDiMが1024×1024 や 1536×1536 の高解像度画像を生成できるか?
  • RQ5多方向スキャン、パディングトークン、局所的畳み込みなどのアーキテクチャ的要素の中で、性能と安定性に最も寄与するのはどれか?

主な発見

  • DiM-Hugeは、わずか3億1900万個のトレーニングサンプル(U-ViTの37%未満)で、ImageNet 512×512 でFIDスコア2.40を達成し、U-ViTと同等の性能を示す。
  • 1500万個の512×512画像(U-ViTのデータの3%)を用いて、DiM-HugeはFID-50Kが3.94に達し、高いデータ効率を示す。
  • 4方向の多方向スキャン戦略が最良の性能を発揮し、単一方向スキャンと比較してFIDを1.48ポイント低減した。
  • アブレーションスタディの結果、複数のスキャン方向が性能向上に最も寄与しており、次に長距離スキップ接続とパディングトークンが続く。
  • トレーニングフリーのアップサンプリングを用いて、512×512でファインチューニングされたモデルから直接1024×1024および1536×1536の画像を視覚的に妥当な形で生成可能である。
  • DiM-Smallは、パラメータ数が同程度の他のモデルを上回り、CIFAR-10でFID2.92を達成し、スケールにわたる強力な性能を確認した。
Figure 2 : Overview. The inputs of our framework is a noisy image/latent, with a timestep and a class condition. The noisy inputs are transformed into patch-wise features, processed by a depth-wise convolution, and appended with time, class, and padding tokens. The features are flattened and scanned
Figure 2 : Overview. The inputs of our framework is a noisy image/latent, with a timestep and a class condition. The noisy inputs are transformed into patch-wise features, processed by a depth-wise convolution, and appended with time, class, and padding tokens. The features are flattened and scanned

この論文を読む

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

Nubintでこの論文を読む

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