Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency
Yikai Wang, Chenjie Cao, Junqiu Yu, Ke Fan, Xiangyang Xue, Yanwei Fu
Abstract
Recent advances in image inpainting increasingly use generative models to handle large irregular masks. However, these models can create unrealistic inpainted images due to two main issues: (1) Unwanted object insertion: Even with unmasked areas as context, generative models may still generate arbitrary objects in the masked region that don't align with the rest of the image. (2) Color inconsistency: Inpainted regions often have color shifts that causes a smeared appearance, reducing image quality. Retraining the generative model could help solve these issues, but it's costly since state-of-the-art latent-based diffusion and rectified flow models require a three-stage training process: training a VAE, training a generative U-Net or transformer, and fine-tuning for inpainting. Instead, this paper proposes a post-processing approach, dubbed as ASUKA (Aligned Stable inpainting with UnKnown Areas prior), to improve inpainting models. To address unwanted object insertion, we leverage a Masked Auto-Encoder (MAE) for reconstruction-based priors. This mitigates object hallucination while maintaining the model's generation capabilities. To address color inconsistency, we propose a specialized VAE decoder that treats latent-to-image decoding as a local harmonization task, significantly reducing color shifts for color-consistent inpainting. We validate ASUKA on SD 1.5 and FLUX inpainting variants with Places2 and MISATO, our proposed diverse collection of datasets. Results show that ASUKA mitigates object hallucination and improves color consistency over standard diffusion and rectified flow models and other inpainting methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- You Only Erase Once: Erasing Anything without Bringing Unexpected Content cites High-Resolution Image Synthesis with Latent Diffusion Models
- You Only Erase Once: Erasing Anything without Bringing Unexpected Content cites Denoising Diffusion Probabilistic Models
- You Only Erase Once: Erasing Anything without Bringing Unexpected Content cites Denoising Diffusion Implicit Models
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
- Adding Conditional Control to Text-to-Image Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- Direct 3D-Aware Object Insertion via Decomposed Visual Proxies cites High-Resolution Image Synthesis with Latent Diffusion Models
- Follow-Your-Preference: Towards Preference-Aligned Image Inpainting cites High-Resolution Image Synthesis with Latent Diffusion Models
- Follow-Your-Preference: Towards Preference-Aligned Image Inpainting cites Adding Conditional Control to Text-to-Image Diffusion Models
- Follow-Your-Preference: Towards Preference-Aligned Image Inpainting cites Denoising Diffusion Probabilistic Models
- Follow-Your-Preference: Towards Preference-Aligned Image Inpainting cites Denoising Diffusion Implicit Models
- ReFocusEraser: Refocusing for Small Object Removal with Robust Context-Shadow Repair cites LoRA: Low-Rank Adaptation of Large Language Models
- ReFocusEraser: Refocusing for Small Object Removal with Robust Context-Shadow Repair cites High-Resolution Image Synthesis with Latent Diffusion Models
- ReFocusEraser: Refocusing for Small Object Removal with Robust Context-Shadow Repair cites Denoising Diffusion Implicit Models
- Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
- Precise Object and Effect Removal with Adaptive Target-Aware Attention cites High-Resolution Image Synthesis with Latent Diffusion Models
- Precise Object and Effect Removal with Adaptive Target-Aware Attention cites Denoising Diffusion Probabilistic Models
Cited by top-tier papers5
- Follow-Your-Preference: Towards Preference-Aligned Image InpaintingYutao Shen, Junkun Yuan, Toru Aonishi, Hideki Nakayama et al.ICLR 2026 · 21 citations
- Precise Object and Effect Removal with Adaptive Target-Aware AttentionJixin Zhao, Zhouxia Wang, Peiqing Yang, Shangchen ZhouCVPR 2026 · 13 citations
- Direct 3D-Aware Object Insertion via Decomposed Visual ProxiesJingbo Gong, Yikai Wang, Yushi Lan, Yuhao Wan et al.ICML 2026 · 3 citations
- You Only Erase Once: Erasing Anything without Bringing Unexpected ContentYixing Zhu, Qing Zhang, Wenju Xu, Wei-Shi ZhengCVPR 2026
- ReFocusEraser: Refocusing for Small Object Removal with Robust Context-Shadow RepairQingping Zheng, Bo Huang, Yang Liu, Haoyu Zhao et al.ICLR 2026
Builds on36
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
- Adding Conditional Control to Text-to-Image Diffusion ModelsLvmin Zhang, Anyi Rao, Maneesh AgrawalaICCV 2023 · 6,759 citations
Related papers
- Blend-Aware Latent Diffusion: Mitigating Stitched Seams in Image InpaintingYunpeng Liu, Xingzhong Hou, Jie Wu, Boxiao Liu, Yi Zhang, Guanglu Song, Yu Liu, Changyao Tian, Gen Luo, Haihang YouCVPR Findings 2026
- Diffusion Models as Masked AutoencodersChen Wei, Karttikeya Mangalam, Po-Yao Huang, Yanghao Li et al.ICCV 2023 · 82 citations
- SmartBrush: Text and Shape Guided Object Inpainting with Diffusion ModelShaoan Xie, Zhifei Zhang, Zhe Lin, Tobias Hinz et al.CVPR 2023
- Your Latent Mask is Wrong: Pixel-Equivalent Latent Compositing for Diffusion ModelsRowan Bradbury, Dazhi ZhongCVPR 2026 · 5 citations
- MTADiffusion: Mask Text Alignment Diffusion Model for Object InpaintingJun Huang, Ting Liu, Yihang Wu, Xiaochao Qu et al.CVPR 2025
