FARMER: Flow AutoRegressive Transformer over Pixels
Guangting Zheng, Qinyu Zhao, Tao Yang, Fei Xiao, Zhijie Lin, Jie Wu, Jiajun Deng, Yanyong Zhang, Rui Zhu
TL;DR
FARMER addresses pixel-space image generation by unifying Normalizing Flows and Autoregressive models into an end-to-end framework that preserves exact likelihoods $p_{data}(x)$ while leveraging AR expressivity. It maps images to latent sequences through an Autoregressive Flow and models their distribution with a Gaussian Mixture autoregressor, augmented by a self-supervised dimension reduction that separates informative $Z^I$ from redundant $Z^R$ channels. A one-step distillation method accelerates inference and a resampling-based classifier-free guidance (CFG) enhances generation quality, achieving competitive results on ImageNet-256 without quantizing pixels. This approach advances pixel-space generation by combining tractable likelihoods with powerful autoregressive modeling and scalable training, offering practical benefits for high-fidelity image synthesis and exact density estimation.
Abstract
Directly modeling the explicit likelihood of the raw data distribution is key topic in the machine learning area, which achieves the scaling successes in Large Language Models by autoregressive modeling. However, continuous AR modeling over visual pixel data suffer from extremely long sequences and high-dimensional spaces. In this paper, we present FARMER, a novel end-to-end generative framework that unifies Normalizing Flows (NF) and Autoregressive (AR) models for tractable likelihood estimation and high-quality image synthesis directly from raw pixels. FARMER employs an invertible autoregressive flow to transform images into latent sequences, whose distribution is modeled implicitly by an autoregressive model. To address the redundancy and complexity in pixel-level modeling, we propose a self-supervised dimension reduction scheme that partitions NF latent channels into informative and redundant groups, enabling more effective and efficient AR modeling. Furthermore, we design a one-step distillation scheme to significantly accelerate inference speed and introduce a resampling-based classifier-free guidance algorithm to boost image generation quality. Extensive experiments demonstrate that FARMER achieves competitive performance compared to existing pixel-based generative models while providing exact likelihoods and scalable training.
