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

$\textit{MADFormer}$: Mixed Autoregressive and Diffusion Transformers for Continuous Image Generation

Junhao Chen, Yulia Tsvetkov, Xiaochuang Han

Abstract

Generative modeling for images has traditionally been divided between Autoregressive (AR) models, which excel at global structure, and Diffusion models, which provide high-fidelity local details. MADFormer introduces a unified Transformer architecture that blends these paradigms. By partitioning images into spatial blocks and splitting the Transformer depth into AR and Diffusion layers, MADFormer optimizes the trade-off between global structure and local refinement. Experiments on FFHQ-1024 and ImageNet demonstrate that AR-heavy configurations excel under low-compute constraints, while diffusion-heavy models provide superior refinement with more inference steps.

Introduction

The current landscape of image generation is dominated by two distinct approaches: Autoregressive (AR) models and Diffusion models. AR models, typically operating on discrete tokens, are adept at capturing long-range dependencies and global structure but often suffer from quantization artifacts. Conversely, Diffusion models generate high-fidelity continuous details through iterative denoising but are computationally intensive. MADFormer addresses the lack of a systematic framework for combining these strengths, proposing a hybrid architecture that treats the AR-vs-Diffusion balance as a tunable spectrum.

Architecture and Methodology

MADFormer utilizes a unified Transformer backbone, specifically a Llama-style decoder, to process continuous VAE latents. The core innovation lies in two axes of hybridization:

  1. Spatial Block-wise Partitioning: Images are divided into coarse-grained blocks (e.g., a $4 \times 4$ grid). The model applies AR modeling across these blocks—where each block is conditioned on previously generated ones—and Diffusion modeling within each block to capture fine-grained textures.
  2. Vertical Layer Splitting: The Transformer's depth is partitioned into an AR Module (early layers) and a Diffusion Module (late layers). The AR layers generate a structural "prior" based on previous blocks, which then conditions the Diffusion layers as they denoise the current block.
The MADFormer architecture integrates blockwise causal attention with a split between AR and Diffusion modules to generate images from continuous latents.

This "vertical mixing" allows the model to run the AR component once per block, while only the Diffusion layers are iterated during the denoising process, significantly reducing total computation compared to full-depth diffusion models.

Experimental Evaluation

The researchers evaluated MADFormer on the FFHQ-1024 and ImageNet datasets. A key discovery was the "Compute-Quality Flip": the optimal ratio of AR to Diffusion layers depends on the inference budget.

  • Low-Compute Efficiency: In scenarios with limited inference steps (e.g., 10 steps), AR-heavy configurations improved FID scores by up to 75% compared to pure diffusion baselines. AR layers are more compute-efficient for establishing global structure.
  • High-Resolution Synthesis: On the FFHQ-1024 dataset, MADFormer successfully generated coherent, high-resolution human faces in as few as 9 inference steps, a task that typically requires much more compute for standard diffusion models.
Qualitative samples from MADFormer on the FFHQ-1024 dataset, demonstrating high-fidelity face generation with minimal inference steps.

Ablation studies confirmed that both the "Clean Tower" (conditioning on previous clean blocks) and the specific AR-Diffusion layer split are critical for maintaining image quality and structural integrity.

Conclusion

MADFormer provides a roadmap for hybrid generative modeling, demonstrating that the choice between AR and Diffusion is not binary but a trade-off to be optimized based on available compute. While the model shows strong performance on high-resolution faces, future work will focus on improving fine-grained details on complex datasets like ImageNet and exploring faster sampling techniques like consistency models. By bridging the gap between structure and detail, MADFormer sets a new precedent for efficient, high-fidelity visual AI.

Summary updated

BibTeX
@inproceedings{chen2026textit,
  author = {Junhao Chen and Yulia Tsvetkov and Xiaochuang Han},
  title = {{$\textbackslash\{\}textit\{MADFormer\}$: Mixed Autoregressive and Diffusion Transformers for Continuous Image Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=9zUJbyR62q},
}
Figure