Visual Autoregressive Modeling for Instruction-Guided Image Editing
Qingyang Mao, Qi Cai, Yehao Li, Yingwei Pan, Mingyue Cheng, Ting Yao, Qi Liu, Tao Mei
TL;DR
This paper addresses the limitations of diffusion-based instruction-guided image editing, notably unintended edits and slow inference, by introducing VAREdit, a visual autoregressive framework that casts editing as next-scale prediction. Built on a pre-trained VAR backbone, VAREdit generates multi-scale target residuals conditioned on a source image and textual instruction, using a Scale-Aligned Reference (SAR) to inject scale-matched conditioning in the first self-attention layer. The approach achieves state-of-the-art GPT-Balance and CLIP-based metrics on EMU-Edit and PIE-Bench, with substantial speedups (e.g., 512×512 edits in 1.2 seconds, 2.2× faster than comparable methods). Empirical results from ablations validate the SAR design and model scaling (2B vs 8B), demonstrating strong editing fidelity, robustness across editing types, and superior efficiency, signaling a promising direction for efficient, high-fidelity AR-based image editing.
Abstract
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, leading to unintended spurious modifications and compromised adherence to editing instructions. In contrast, autoregressive models offer a distinct paradigm by formulating image synthesis as a sequential process over discrete visual tokens. Their causal and compositional mechanism naturally circumvents the adherence challenges of diffusion-based methods. In this paper, we present VAREdit, a visual autoregressive (VAR) framework that reframes image editing as a next-scale prediction problem. Conditioned on source image features and text instructions, VAREdit generates multi-scale target features to achieve precise edits. A core challenge in this paradigm is how to effectively condition the source image tokens. We observe that finest-scale source features cannot effectively guide the prediction of coarser target features. To bridge this gap, we introduce a Scale-Aligned Reference (SAR) module, which injects scale-matched conditioning information into the first self-attention layer. VAREdit demonstrates significant advancements in both editing adherence and efficiency. On EMU-Edit and PIE-Bench benchmarks, VAREdit outperforms leading diffusion-based methods by a substantial margin in terms of both CLIP and GPT scores. Moreover, VAREdit completes a 512$\times$512 editing in 1.2 seconds, making it 2.2$\times$ faster than the similarly sized UltraEdit. Code is available at: https://github.com/HiDream-ai/VAREdit.
