Context-Aware Autoregressive Image Generation for Emerging Reasoning Properties

Jixuan Ying, Haoyu Liu, Timing Yang, Tingyu Zhu, Predrag Neskovic, Anand Bhattad, Cihang Xie, Zeyu Zheng, Alan Yuille, Feng WangNeurIPS 2026

TL;DR

When humans paint, we don't work from top-left to bottom-right like an inkjet printer, nor do we dab paint at completely random spots on the canvas—we sketch key subjects first and use what’s already there to guide what comes next. This paper introduces Saccade AR (SAR), a zero-training, inference-time tweak for autoregressive image generators that lets the model dynamically choose where to draw next based on the prompt. Simply changing the generation trajectory unlocks surprising visual reasoning abilities—like accurate counting and spatial layout—essentially for free.

What Problem Does This Paper Address?

Autoregressive (AR) models conquered text by predicting one word after another in a natural left-to-right order. Translating that recipe to 2D images, however, is awkward. Early AR image models flattened images into 1D sequences and generated patches in a rigid "raster-scan" order (left-to-right, top-to-bottom), which ignores 2D spatial structure.

Newer models fixed this rigidity in two ways: patch-wise masked AR (unmasking groups of image patches in a random order) and scale-wise AR (generating the whole image from blurry coarse scales to sharp fine scales, one resolution step at a time).

Yet both miss a crucial element of visual creation: intermediate reasoning. If you ask a random-order model for "four vases," it scatters tiny fragments of vases everywhere simultaneously. Because nothing is complete until the very end, the model gets muddy visual self-feedback, loses count, and often over-generates.

Figure 1: Generation order shapes reasoning-like behaviors in autoregressive image generation. With random-order decoding (top), intermediate predictions remain scattered and incomplete, weak- ening feedback for counting (e.g., “four vases") and often causing over-generation. With context- aware location selection (bottom), the same model and seed tend to complete objects more coher- ently (roughly one-by-one) and stop adding new ones once the count is met.

Methods

Inspired by saccades—the rapid, context-driven eye movements humans make when scanning a scene—the authors propose Saccade AR (SAR). Standard AR models already compute candidate representations for all ungenerated positions at every step before committing to a subset of them. Instead of picking positions randomly or all at once, SAR ranks candidates on the fly by how semantically close they are to a global conditioning "anchor" (the text prompt embedding or class token that the model already maintains).

Figure 2: Comparison to one-step and random-order generation paradigms. Our SAR model decides the generation order based on each token’s latent distance to a global token. This is only a minimal change for image AR models, but we find it crucial for the AR model’s reasoning behavior.
  • For patch-wise models (like MAR and MaskGen): At each step, SAR computes the cosine similarity between every still-masked candidate token and the conditioning anchor, unmasking the top-scoring (most relevant) patches first.
  • For scale-wise models (like VAR and Infinity): Coarse-to-fine scales $1 \dots K-1$ are left untouched. Only the final, highest-resolution scale $K$ is split into $M$ multi-step groups, committing tokens closest in $L_2$ distance to the text/class anchor first.

Crucially, SAR requires no retraining, no extra parameters, and negligible compute—it just reorders the inference trajectory.

Datasets

The authors evaluate pretrained models without retraining (plus an optional last-scale retraining study on VAR) across:

  • GenEval & DPG-Bench: Standard text-to-image benchmarks testing object counting, color/attribute binding, and spatial relationships.
  • MJHQ-30K: Used to measure aesthetic distribution quality (FID).
  • ImageNet 256×256: Used for class-conditional generation ablations.
  • New Complex Long-Prompt Benchmark: Introduced by the authors, featuring 2,000 dense, multi-constraint prompts (e.g., specific vertical stacks of textured objects at a 45-degree angle) scored on a 1–5 scale by Gemini 2.5 Pro.

Key Insights and Ideas

  • Generation order is a hidden reasoning lever: How an AR model sequences its visual commitments isn't just a low-level sampling detail; coherent intermediate states act as a "visual scratchpad" so the model knows when constraints (like object counts) have been satisfied.
  • Two distinct "planning" behaviors emerge automatically: Without any supervision, SAR elicits object-by-object completion in patch-wise models (finishing one vase before starting the next) and outline-to-detail planning in scale-wise models (locking in global geometry and counts early, then filling in background textures).
Outline-to-detail reasoning in Infinity-8B
  • Prompt alignment beats generic heuristics: SAR outperforms deterministic patterns like "inside-out" generation and MaskGIT's prediction-confidence scheduling, proving that grounding the spatial order in the prompt itself is what drives the gains.

Key Results

Across 8 checkpoints spanning MAR, MaskGen, VAR, and Infinity:

  • Compositional gains: On GenEval, SAR boosts overall pass rates across the board—e.g., MaskGen-L jumps from 53.94% to 57.49% (with Counting leaping from 40.00% to 50.00%), and Infinity-8B rises from 80.63% to 81.34% (Counting from 68.69% to 73.21%).
  • Complex reasoning: On the new 1–5 scale long-prompt benchmark, SAR improves every tested model (MaskGen-XL, Infinity-2B, Infinity-8B) by roughly +0.50 points on average.
  • Free lunch on aesthetics and latency: MJHQ-30K FID scores remain statistically tied with baselines, meaning better reasoning doesn't degrade image beauty. Compared against matched multi-step baselines on an H100 GPU, SAR's similarity ranking adds no measurable latency overhead.

Limitations and Future Work

While SAR itself adds no overhead compared to a matched multi-step baseline, applying it to scale-wise models (like VAR or Infinity) requires breaking the single-step final scale into $M$ sequential steps, which increases latency relative to standard one-step decoding. Additionally, SAR preserves rather than improves aesthetic FID. For future work, the authors suggest exploring richer semantic anchors (beyond simple pooled embeddings) and combining SAR with aesthetic-aware selection criteria.

Summary updated

Abstract

Autoregressive image generation has recently emerged as a competitive visual generation paradigm, yet its generation order is often predefined or heuristic, such as next-patch prediction, random-order prediction, or one-step generation for specific scales. We observe that these strategies can cause models to overlook important structural dependencies in images, thereby limiting both structural robustness and reasoning capability. In this work, we propose a context-aware autoregressive generation framework, where the model dynamically determines the next token location based on global context and current local information. Rather than following a fixed or random order, our method allows the generation process to adapt to image structure and semantic dependencies. Extensive experiments show that context-aware generation significantly improves structural robustness across different image AR paradigms, including masked autoregressive and scale-wise autoregressive models. Beyond quantitative improvements, we further observe emerging reasoning properties: the model can better understand complex semantic instructions and generate images that more faithfully follow the given guidance. These findings suggest that generation order is a critical yet underexplored factor in image autoregressive modeling, and that context-aware decoding can unlock stronger reasoning-aware visual generation capabilities.
BibTeX
@inproceedings{ying2026context,
  author = {Jixuan Ying and Haoyu Liu and Timing Yang and Tingyu Zhu and Predrag Neskovic and Anand Bhattad and Cihang Xie and Zeyu Zheng and Alan Yuille and Feng Wang},
  title = {{Context-Aware Autoregressive Image Generation for Emerging Reasoning Properties}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XS3R795hKo},
}
Figure