Learning to Expand Images for Efficient Visual Autoregressive Modeling

Ruiqing Yang, Kaixin Zhang, Zheng Zhang, Shan You, Tao HuangarXiv 2025 · DOI

Abstract

Autoregressive (AR) models for image generation typically rely on raster scanning, which suffers from spatial discontinuity and slow sequential inference. We present Expanding Autoregressive Representation (EAR), a novel paradigm that employs a center-outward spiral ordering. By mimicking human visual perception and enabling parallel token prediction, EAR achieves state-of-the-art performance on ImageNet 256×256, offering up to an 8x speedup over standard AR models while improving image quality.

Introduction

Autoregressive (AR) models have revolutionized natural language processing, but their application to visual data remains challenging. Traditionally, these models flatten a 2D grid of image tokens into a 1D sequence using a raster scan (top-left to bottom-right). This approach has two major flaws:

  1. Spatial Discontinuity: A pixel at the end of one row is physically adjacent to the pixel at the start of the next row in 2D space, but in a 1D sequence, they are separated by the entire width of the image. This makes it difficult for the model to maintain local consistency.
  2. Inference Bottleneck: Predicting tokens one-by-one is computationally expensive for high-resolution images. While multi-scale models have improved speed, they often introduce complex, multi-stage tokenizers and high memory overhead.

The EAR Framework

EAR introduces a biologically inspired "center-outward" generation order. Instead of a raster scan, EAR starts at the center of the image and unfolds tokens in a clockwise spiral. This mimics the human "center-surround" attention profile, where we prioritize the central fovea and expand toward the periphery.

The EAR spiral unfolding process.

As shown in Figure 3, the process begins with a VQ-VAE encoder that discretizes the image. These tokens are then unfolded in a clockwise spiral starting from the center ($S_1$). This approach ensures that newly generated tokens are almost always spatially adjacent to previously generated ones, preserving local context more effectively than row-by-row scanning.

Furthermore, EAR utilizes Next-Any-Tokens Parallelization. Rather than predicting one token at a time, EAR predicts "rings" of tokens in parallel. The authors use a length-adaptive decoding strategy, predicting fewer tokens in the early, high-stakes central stages and more tokens as the generation expands outward. To make this parallel prediction efficient, they designed a custom Key-Value (KV) cache mechanism that allows the model to process multiple tokens per step without redundant computations.

Experimental Results

EAR sets a new benchmark for efficiency in the AR space. The models were trained and evaluated on the ImageNet 256×256 benchmark, utilizing pre-trained tokenizers from LlamaGen (VQ-VAE) and XQGAN.

FID vs. Inference Time comparison.

As illustrated in Figure 1, EAR-31 (ours) occupies the bottom-left quadrant of the FID-Inference Time plot, indicating both lower error (FID) and faster generation compared to existing baselines. Key results include:

  • Speed: EAR-XL is 8x faster than LlamaGen while maintaining the same parameter count.
  • Quality: On ImageNet 256×256, EAR-XL achieved a Frechet Inception Distance (FID) of 2.54, outperforming both traditional AR models and many diffusion-based models like DiT-XL/2.
  • Computational Efficiency: EAR-L achieves a better FID (2.76) than the multi-scale VAR model (3.30) while using significantly fewer GFLOPs (103G vs 214G).

Discussion and Conclusion

EAR demonstrates that generation order is a critical factor in visual AR modeling. By starting with the most perceptually relevant part of an image (the center), the model builds a stronger foundation for the rest of the scene. Additionally, because of its center-outward nature, EAR is natively excellent at image outpainting, producing diverse and coherent completions from central crops.

While EAR shows impressive results, future work may address tokenizer dependency and the computational cost of transformers on very long sequences for higher resolutions. The current fixed geometric path could also be evolved into a "content-aware" expansion path that follows the most important features of a specific image.

Summary updated

BibTeX
@misc{yang2025learning,
  author = {Ruiqing Yang and Kaixin Zhang and Zheng Zhang and Shan You and Tao Huang},
  title = {{Learning to Expand Images for Efficient Visual Autoregressive Modeling}},
  year = {2025},
  eprint = {2511.15499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.15499},
}
Figure