Skip to main content
QUICK REVIEW

[論文レビュー] Normalizing Flows are Capable Generative Models

Shuangfei Zhai, Ruixiang Zhang|arXiv (Cornell University)|Dec 9, 2024
Reservoir Engineering and Simulation MethodsEngineering被引用数 3
ひとこと要約

この論文は、3.0ビット/次元未満の尤度推定を達成するTransformerベースの正規化フロー・アーキテクチャ、TarFlowを紹介している。ImageNet 64x64において、拡散モデルと同等の高品質で多様性に富んだ画像生成が可能であり、正規化フローがガウスノイズ拡張、トレーニング後処理のノイズ除去、およびガイドランス技術を組み合わせることで、生成モデルとしての可能性を示した。

ABSTRACT

Normalizing Flows (NFs) are likelihood-based models for continuous inputs. They have demonstrated promising results on both density estimation and generative modeling tasks, but have received relatively little attention in recent years. In this work, we demonstrate that NFs are more powerful than previously believed. We present TarFlow: a simple and scalable architecture that enables highly performant NF models. TarFlow can be thought of as a Transformer-based variant of Masked Autoregressive Flows (MAFs): it consists of a stack of autoregressive Transformer blocks on image patches, alternating the autoregression direction between layers. TarFlow is straightforward to train end-to-end, and capable of directly modeling and generating pixels. We also propose three key techniques to improve sample quality: Gaussian noise augmentation during training, a post training denoising procedure, and an effective guidance method for both class-conditional and unconditional settings. Putting these together, TarFlow sets new state-of-the-art results on likelihood estimation for images, beating the previous best methods by a large margin, and generates samples with quality and diversity comparable to diffusion models, for the first time with a stand-alone NF model. We make our code available at https://github.com/apple/ml-tarflow.

研究の動機と目的

  • 正規化フロー(NFs)が従来の認識よりも強力であり、画像生成においてSOTA性能を達成できることを示すこと。
  • 拡散モデルや自己回帰モデルと比較して、実用的採用が限定的で、性能向上が停滞しているNFの課題を解決すること。
  • 離散化やトークン化を経ずにピクセルを直接モデル化する、スケーラブルでエンドツーエンドで学習可能なNFアーキテクチャを開発すること。
  • ノイズ拡張やガイドランスを含む、新たなトレーニングおよび推論技術を通じて、サンプル品質を向上させること。
  • 正規化フローを、離散化やVAEを必要としない高品質な画像生成の拡散モデルの代替手段として確立すること。

提案手法

  • 画像パッチに適用する、交互に自己回帰方向を変更する(例:左上から右下、およびその逆)自己回帰的TransformerブロックのスタックであるTarFlowを提案。
  • 因果的ビジョンTransformer(ViT)を用いて、パッチ単位の自己回帰的変換を実行し、並列トレーニングを可能にしながらも、強力なモデル表現能力を維持する。
  • トレーニング中にガウスノイズ拡張を適用し、生成サンプルの知覚的品質を向上させる。これは一般的な一様ノイズとは対照的である。
  • トレーニング中に導入されたノイズを除去するための、トレーニング後スコアベースのノイズ除去手順を導入。
  • クラス条件付きおよび非条件付きNFの両方と互換性があるガイドランス手法を開発し、クラスラベルに整合性の高い高品質な画像生成を可能にする。
  • 変数変換の公式を用いた最尤推定(MLE)により、エンドツーエンドでトレーニングを実行し、正確な尤度計算と決定論的トレーニングを保証する。
Figure 1: TarFlow demonstrates substantial progress in the domain of normalizing flow models, achieving state-of-the-art results in both density estimation and sample generation. Left : We show the historical progression of likelihood performance on ImageNet 64x64, measured in bits per dimension (BP
Figure 1: TarFlow demonstrates substantial progress in the domain of normalizing flow models, achieving state-of-the-art results in both density estimation and sample generation. Left : We show the historical progression of likelihood performance on ImageNet 64x64, measured in bits per dimension (BP

実験結果

リサーチクエスチョン

  • RQ1強力でスケーラブルなアーキテクチャを備えた正規化フローが、ImageNet 64x64のような画像データセットでSOTAの尤度推定を達成できるか?
  • RQ2トレーニング中にガウスノイズ拡張を適用することで、正規化フローにおける生成画像の知覚的品質が顕著に向上するか?
  • RQ3再トレーニングを必要とせず尤度を損なわずに、トレーニング後ノイズ除去がサンプル品質を向上させられるか?
  • RQ4拡散モデルで使用されてきたガイドランスが、正規化フローに基づく生成モデリングと互換性があり、効果的か?
  • RQ5単一の連続的でエンドツーエンドの正規化フロー・モデルが、離散化やVAEを経ずに、拡散モデルと同等の高精細で多様性に富んだ画像を生成できるか?

主な発見

  • TarFlowは、ImageNet 64x64で3.0ビット/次元未満のSOTA尤度を達成し、従来のNF手法を顕著に上回った。
  • モデルは拡散モデルと同等の品質と多様性を持つ画像サンプルを生成でき、これは単体の正規化フローがこのような性能を達成した初の事例である。
  • トレーニング時のガウスノイズ拡張は、知覚的品質を向上させる上で不可欠であり、一様ノイズよりもリアルなテクスチャーやディテールを生成する上で優れている。
  • トレーニング後ノイズ除去手順は、再トレーニングを必要とせず、FIDと知覚的忠実度を向上させながら生成サンプルのノイズを効果的に除去した。
  • ガイドランス技術により、クラスラベルに整合性の高い高品質なクラス条件付き画像生成が可能となり、NFとの互換性が実証された。
  • TarFlowのモジュール型でTransformerベースのアーキテクチャは、スケーラブルで安定的かつ効率的なトレーニングを可能にし、従来のNFの能力と性能の限界を克服した。
Figure 2: Left , TarFlow consists of $T$ flow blocks trained end to end; Right , a zoom-in view of each flow bock, which contains a sequence permutation operation, a standard causal Transformer, and an affine transformation to the permuted inputs.
Figure 2: Left , TarFlow consists of $T$ flow blocks trained end to end; Right , a zoom-in view of each flow bock, which contains a sequence permutation operation, a standard causal Transformer, and an affine transformation to the permuted inputs.

この論文を読む

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

Nubintでこの論文を読む

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