Rethinking Structure Preservation in Text-Guided Image Editing with Visual Autoregressive Models
Organizations: Beijing Institute of Technology, Beijing, China · Shenyang Institute of Automation, CAS, Shenyang, China · Meitu Inc, MTLab, Beijing, China
Abstract
Visual autoregressive (VAR) models have recently emerged as a promising family of generative models, enabling a wide range of downstream vision tasks such as text-guided image editing. By shifting the editing paradigm from noise manipulation in diffusion-based methods to token-level operations, VAR-based approaches achieve better background preservation and significantly faster inference. However, existing VAR-based editing methods still face two key challenges: accurately localizing editable tokens and maintaining structural consistency in the edited results. In this work, we propose a novel text-guided image editing framework rooted in an analysis of intermediate feature distributions within VAR models. First, we introduce a coarse-to-fine token localization strategy that can refine editable regions, balancing editing fidelity and background preservation. Second, we analyze the intermediate representations of VAR models and identify structure-related features, by which we design a simple yet effective feature injection mechanism to enhance structural consistency between the edited and source images. Third, we develop a reinforcement learning-based adaptive feature injection scheme that automatically learns scale- and layer-specific injection ratios to jointly optimize editing fidelity and structure preservation. Extensive experiments demonstrate that our method achieves superior structural consistency and editing quality compared with state-of-the-art approaches, across both local and global editing scenarios.
Figures & tables
| Method | Base Model | Structure | Background Preservation | CLIP Similarity | |||
| Distance | PSNR | SSIM | LPIPS | Whole | Edited | ||
| P2P [ 11 ] | diffusion | 0.0694 | 17.87 | 0.7114 | 0.2088 | 25.01 | 22.44 |
| Pix2Pix-Zero [ 30 ] | diffusion | 0.0617 | 20.44 | 0.7467 | 0.1722 | 22.80 | 20.54 |
| MasaCtrl [ 3 ] | diffusion | 0.0284 | 22.17 | 0.7967 | 0.1066 | 23.96 | 21.16 |
| PnP [ 48 ] | diffusion | 0.0282 | 22.28 | 0.7905 | 0.1134 | 25.41 | 22.55 |
| PnP-DirInv. [ 20 ] | diffusion | 0.0243 | 22.46 | 0.7968 | 0.1061 | 25.41 | 22.62 |
Text-Guided Image Editing
Text-guided image editing changes selected image content from natural-language instructions while aiming to preserve everything else.
See all 158 papers