NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PixelFlow: Pixel-Space Generative Models with Flow

Shoufa Chen, Chongjian Ge, Shilong Zhang, Peize Sun, Ping LuoarXiv 2025 · OpenReview

Abstract

We present PixelFlow, a family of image generation models that operate directly in the raw pixel space, in contrast to the predominant latent-space models. This approach simplifies the image generation process by eliminating the need for a pre-trained Variational Autoencoder (VAE) and enabling the whole model end-to-end trainable. Through efficient cascade flow modeling, PixelFlow achieves affordable computation cost in pixel space. It achieves an FID of 1.98 on 256×256 ImageNet class-conditional image generation benchmark. The qualitative text-to-image results demonstrate that PixelFlow excels in image quality, artistry, and semantic control. We hope this new paradigm will inspire and open up new opportunities for next-generation visual generation models.

Introduction

Most modern image generators, such as Stable Diffusion, are Latent Diffusion Models (LDMs). These models operate by using a Variational Autoencoder (VAE) to compress images into a lower-dimensional "latent space." While this reduction in dimensionality saves on computation, it introduces two significant drawbacks: information loss, where fine textures or small details (like text) are blurred beyond recovery, and decoupled training, which prevents the generator and compressor from being optimized as a single unit.

Comparison of generative model paradigms: (a) Latent-based, (b) traditional Pixel-based, and (c) the proposed PixelFlow approach.

PixelFlow addresses these issues by ditching the VAE and generating images directly in raw pixel space. By utilizing a unified Transformer architecture and a multi-scale "cascade flow" strategy, PixelFlow achieves state-of-the-art performance while remaining end-to-end trainable and computationally efficient.

Methodology

The core of PixelFlow is Cascade Flow Modeling. Rather than attempting to generate a high-resolution image in a single step, the model progressively increases resolution across different stages of the denoising process.

Flow Matching and Unified Architecture

Unlike standard diffusion models that follow curved paths, PixelFlow employs Flow Matching. This technique uses a simpler, linear probability path to transform noise into data, resulting in more stable training and faster inference. The model is built on a Diffusion Transformer (DiT) backbone, where the same set of parameters is shared across all resolution scales.

Architectural Innovations

To support this unified approach, several key components were integrated:

  • 2D-RoPE: Standard positional encodings were replaced with 2D Rotary Positional Embeddings to better handle varying resolutions and aspect ratios.
  • Resolution Embedding: A specific resolution signal is injected into the timestep embedding, helping the model distinguish between different scales.
  • Sequence Packing: To maintain high GPU utilization, flattened token sequences of different lengths are "packed" into a single batch during training.

Key Insights

PixelFlow's success relies on several strategic optimizations:

  • The "Kickoff" Resolution: The authors discovered that starting generation at an 8×8 resolution—rather than 1×1—provides sufficient initial structure to guide the model while significantly reducing computational overhead.
  • Stage-wise CFG: Classifier-Free Guidance (CFG) is applied using a stage-wise schedule. By increasing the CFG scale as resolution increases, the model focuses on global layout in early stages and fine-grained semantic detail in later stages.
  • End-to-End Synergy: Training all scales together allows the "upsampling" logic to be inherently part of the denoising process, preventing the artifacts often seen in separate upscaler models.

Experimental Results

PixelFlow demonstrates superior performance on the ImageNet 256×256 benchmark, achieving an FID of 1.98. This outperforms prominent latent models like DiT (2.27) and SiT (2.06).

The model also scales effectively to 1024×1024 resolution, producing images with remarkable detail in complex textures like animal fur and fabric. On the GenEval benchmark for text-to-image generation, PixelFlow scored 0.64, placing it in the same performance tier as industry leaders like DALL-E 3.

Limitations and Future Work

Despite its efficiency, the final high-resolution stage of PixelFlow remains a bottleneck, accounting for approximately 80% of total inference time. Additionally, training convergence slows as sequence lengths increase. Future research will explore more efficient attention mechanisms, such as linear or flash attention variants, to further reduce costs and potentially extend the paradigm to video generation.

Summary updated

BibTeX
@misc{chen2025pixelflow,
  author = {Shoufa Chen and Chongjian Ge and Shilong Zhang and Peize Sun and Ping Luo},
  title = {{PixelFlow: Pixel-Space Generative Models with Flow}},
  year = {2025},
  eprint = {2504.07963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.07963},
}
Figure