cs.CVMar 11, 2026

A2^2-Edit: Precise Reference-Guided Image Editing of Arbitrary Objects and Ambiguous Masks

Authors: Huayu Zheng, Guangzhao Li, Baixuan Zhao, Siqi Luo, Hantao Jiang, Guangtao Zhai, Xiaohong Liu

Organizations: Shanghai Jiao Tong University · Shanghai Innovation Institute

Abstract

We propose A^2-Edit, a unified inpainting framework for arbitrary object categories, which allows users to replace any target region with a reference object using only a coarse mask. To address the issues of severe homogenization and limited category coverage in existing datasets, we construct a large-scale multi-category dataset, UniEdit-500K, which includes 8 major categories, 209 fine-grained subcategories, and a total of 500,104 image pairs. Such rich category diversity poses new challenges for the model, requiring it to automatically learn semantic relationships and distinctions across categories. To this end, we introduce the Mixture of Transformer module, which performs differentiated modeling of various object categories through dynamic expert selection, and further enhances cross-category semantic transfer and generalization through collaboration among experts. In addition, we propose a Mask Annealing Training Strategy (MATS) that progressively relaxes mask precision during training, reducing the model's reliance on accurate masks and improving robustness across diverse editing tasks. Extensive experiments on benchmarks such as VITON-HD and AnyInsertion demonstrate that A^2-Edit consistently outperforms existing approaches across all metrics, providing a new and efficient solution for arbitrary object editing.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. BindEdit: Taming Attention Leakage for Precise Multi-Object Image Editing

    Jun 17, 2026Chaewon Park, Soyoon Lee, Naeun Lee +3Text-Guided Image EditingAttention Control in Diffusion Models

  2. Masked Generative Transformer Is What You Need for Image Editing

    May 11, 2026Wei Chow, Linfeng Li, Xian Sun +14TransformerText-Guided Image Editing

  3. Refinement Is Inherently Editable: Training-Free Prompt-to-Prompt Image Editing with Generative Refinement Network

    Sep 17, 2026Yulong Chen, Ziqian Zhang, Haoyu Zhang +4Text-Guided Image EditingTraining-Free Image Editing