基于Transformer的归一化流模型实现图像生成新高度
Normalizing Flows are Capable Generative Models
- 用Transformer结构堆叠图像块,交替方向实现自回归建模
- 在图像似然估计上超越现有方法,生成样本质量媲美扩散模型
- 适合追求高效生成与高似然建模的图像生成研究者
归一化流(Normalizing Flows, NFs)是针对连续输入的概率密度建模方法,在密度估计和生成建模任务中表现优异,但近年关注度较低。本文证明NFs的能力远超以往认知。提出TarFlow:一种简单且可扩展的架构,使高性能NF模型成为可能。TarFlow是掩码自回归流(MAFs)的Transformer变体,由多个自回归Transformer块组成,作用于图像块,并在层间交替自回归方向。该模型可端到端直接训练,能直接建模并生成像素。提出三项关键技术提升样本质量:训练时加入高斯噪声增强、训练后去噪处理、以及适用于条件与无条件设置的有效引导方法。综合这些技术,TarFlow在图像似然估计上达到新的基准,显著超越先前最佳方法,首次实现独立归一化流模型在生成质量与多样性上媲美扩散模型的效果。代码已开源:https://github.com/apple/ml-tarflow。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。