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
一句话总结

该论文提出TarFlow,一种基于Transformer的归一化流架构,在ImageNet 64x64上实现了低于3.0比特/维度的最先进似然估计,并生成了质量高、多样性好的图像,与扩散模型相当——表明当结合高斯噪声增强、训练后去噪和指导技术时,归一化流具备了强大的生成能力。

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)比以往认为的更具能力,可在图像生成中实现最先进性能。
  • 解决归一化流在与扩散模型和自回归模型对比时实际应用有限且性能提升停滞的问题。
  • 开发一种可扩展、端到端可训练的归一化流架构,直接建模像素而无需离散化或标记化。
  • 通过新颖的训练与推理技术(包括噪声增强和指导)提升样本质量。
  • 确立归一化流作为扩散模型在高质量图像生成中的可行替代方案。

提出的方法

  • 提出TarFlow,一种将自回归Transformer块应用于图像块的堆叠结构,采用交替的自回归方向(例如从左上到右下,反之亦然)。
  • 使用因果视觉Transformer(ViT)对图像块执行分块自回归变换,实现在保持强大建模能力的同时实现并行训练。
  • 在训练期间应用高斯噪声增强,以提升生成样本的感知质量,与常见的均匀噪声形成对比。
  • 提出一种训练后基于分数的去噪程序,通过去除训练期间引入的噪声来优化生成样本。
  • 开发一种与类别条件和无条件归一化流均兼容的指导方法,实现高质量的条件图像生成。
  • 通过变量变换公式使用最大似然估计(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等图像数据集上实现最先进似然估计?
  • RQ2在训练期间应用高斯噪声增强是否显著提升归一化流生成图像的感知质量?
  • RQ3训练后去噪是否能在不损害似然或无需重训的情况下提升样本质量?
  • RQ4指导技术——此前仅在扩散模型中使用——是否与基于归一化流的生成建模兼容且有效?
  • RQ5一个单一的、连续的、端到端的归一化流模型是否能生成与扩散模型相当的高保真、多样化图像,而无需离散化或VAE?

主要发现

  • TarFlow在ImageNet 64x64上实现了低于3.0比特/维度(BPD)的最先进似然,显著优于以往的归一化流方法。
  • 该模型生成的图像在质量和多样性上可与扩散模型相媲美,这是首个实现此类性能的独立归一化流模型。
  • 训练期间的高斯噪声增强对感知质量至关重要,其在生成真实纹理和细节方面优于均匀噪声。
  • 训练后去噪程序能有效去除生成样本中的噪声,提升FID和感知保真度,且无需重新训练。
  • 指导技术可实现高质量的类别条件图像生成,提升与类别标签的对齐度,证明其与归一化流的兼容性。
  • TarFlow模块化、基于Transformer的架构实现了可扩展、稳定且高效的训练,克服了以往归一化流在容量和性能上的局限。
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 根据论文原文生成,引用前请核对原文。