Visual Autoregressive Modeling for Instruction-Guided Image Editing

Qingyang Mao, Qi Cai, Yehao Li, Yingwei Pan, Mingyue Cheng, Ting Yao, Qi Liu, Tao Mei

Recent advances in diffusion models have brought remarkable visual fidelity to instruction-guided image editing. However, their global denoising process inherently entangles the edited region with the entire image context. This often leads to unintended "spurious modifications" to regions that should remain unchanged (e.g., changing the background color when only asked to add a hat). Furthermore, the iterative nature of denoising requires multiple steps, leading to high computational costs and slow inference speeds.

To address these challenges, researchers have introduced VAREdit, a novel framework that moves instruction-guided image editing away from the dominant diffusion paradigm toward a Visual Autoregressive (VAR) approach. By reframing editing as a next-scale prediction problem, VAREdit achieves superior instruction adherence and operates significantly faster than state-of-the-art diffusion models.

VAREdit demonstrates precise instruction-guided editing, such as complex style transfers, while preserving the original image structure.

The VAREdit Framework

VAREdit is built upon a pre-trained VAR Transformer. Instead of predicting images pixel-by-pixel, it treats the source image and text instructions as conditions to predict the target image's multi-scale residual maps. This "Next-Scale Prediction" generates visual tokens scale-by-scale (e.g., starting from a 1x1 representation up to 32x32).

A significant hurdle in applying the VAR paradigm to editing is the scale-mismatch challenge: the model struggles to predict coarse-grained image structures if it only has access to the finest-scale source image details. To solve this, VAREdit introduces its primary innovation: the Scale-Aligned Reference (SAR) Module. The SAR module dynamically downsamples the finest-scale source features to match the spatial dimensions of the current target scale being predicted.

Interestingly, through attention analysis, the authors discovered that this scale-matched information is only necessary in the first self-attention layer to establish the global layout. Subsequent layers can rely on the finest-scale source features for local refinement, which keeps the architecture highly efficient. Additionally, the model employs 2D Rotary Position Embeddings (2D-RoPE) with a specific positional offset to help the Transformer distinguish between source and target tokens.

Key Insights and Scaling

The development of VAREdit yielded several critical insights into autoregressive image editing:

  • Functional Transition in Attention: The first attention layer distributes attention broadly across all source scales to establish global structure. Deeper layers exhibit highly localized, diagonal attention patterns, focusing on copying and refining high-frequency details.
  • Causal Advantage: The sequential and causal nature of the autoregressive process provides a flexible mechanism for "anchoring" generation to the source image, effectively preventing the "bleeding" effect common in diffusion models.
  • Scaling Laws: Scaling the model from 2 billion to 8 billion parameters resulted in significant improvements, particularly for difficult tasks like text generation and complex motion changes. This suggests the VAR paradigm scales as effectively as Large Language Models (LLMs).

Datasets and Performance

VAREdit was trained on a curated dataset of 3.92 million paired examples, aggregated from SEED-Data-Edit and ImgEdit, and filtered using a Vision-Language Model to ensure high-quality instruction alignment.

Evaluated across major benchmarks (EMU-Edit, PIE-Bench, ImgEdit-Bench, and GEdit-Bench), VAREdit-8B established a new state-of-the-art. On the PIE-Bench, it achieved a GPT-Balance score of 8.105, surpassing the previous best (UltraEdit) by 45.3%. In human preference studies, it was chosen as the best model 36% of the time, outperforming strong competitors like FLUX.1 Kontext.

Beyond quality, VAREdit excels in efficiency. It completes a 512×512 edit in just 1.2 seconds—making it 2.2× faster than UltraEdit and 7× faster than the 17B ICEdit model. Qualitatively, the model demonstrates a remarkable ability to follow complex instructions while keeping the unedited portions of the scene bit-perfectly identical to the source.

Limitations and Future Work

Despite its impressive performance, the 8B model occasionally struggles with highly specific compositional tasks, such as correctly rendering human fingers during complex edits or generating precise text. Furthermore, the current framework is constrained to a 512×512 resolution.

Future work will likely focus on increasing image resolution and the density of processing scales to resolve fine-grained failures. Additionally, curating more diverse datasets could further close the gap with closed-source models like GPT-4o-Image.

Summary updated

BibTeX
@inproceedings{mao2026visual,
  author = {Qingyang Mao and Qi Cai and Yehao Li and Yingwei Pan and Mingyue Cheng and Ting Yao and Qi Liu and Tao Mei},
  title = {{Visual Autoregressive Modeling for Instruction-Guided Image Editing}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=elztN9Y4qw},
}
Figure