cs.CVSep 13, 2026

Context-Aware Mutual Learning for Blind Image Inpainting and Beyond

Authors: Haoru Zhao, Yufeng Wang, Zhaorui Gu, Bing Zheng, Haiyong Zheng

Organizations: Department of Economic Crime Investigation, Shandong Police College, Jinan 250200, China · College of Electronic Engineering, Ocean University of China, Qingdao 266000, China · Sanya Oceanographic Institution, Ocean University of China, Sanya 572000, China

Abstract

Blind image inpainting, aiming to recover contaminated images in the case of unknown masks, is a challenging task. Motivated by the perspective of human vision and knowledge, blind image inpainting can be decomposed into two stages: mask estimation and image inpainting based on the estimated mask. The two-stage idea exhibits evident advantages in enhancing inpainting quality and augmenting the generalization capability of unknown real-world contamination by explicitly employing the estimated mask for image inpainting compared to one-stage scheme. This two-stage idea has also been intuitively implemented. However, existing two-stage methods excessively emphasize the unilateral relationship of mask estimation to image inpainting, and may overlook the mutual relations between them. Specifically, mask estimation can provide more contextual semantics for image inpainting to strengthen the understanding of semantics, and image inpainting can offer more contextual details (e.g., textures and edges) for mask estimation to improve the learning of details. In this work, we propose a novel Context-Aware Mutual Learning (CAML) framework for blind image inpainting that joints mask estimation and image inpainting to mutually exploit contextual information. In the CAML framework, we design the Inpainting-Guided Context-Mutual (IGCM) learner to acquire the complementary contextual details from image inpainting for assisting mask estimation, and the Estimation-Guided Context-Mutual (EGCM) learner to strengthen the understanding of contextual semantics from mask estimation for assisting image inpainting. Ablation studies validate the efficacy of our CAML. Extensive experiments show that our CAML achieves state-of-the-art performance on both blind image inpainting and additional vision tasks, i.e., snow removal, shadow removal, and watermark removal, indicating its superiority.

Figures & tables

Explore similar work

CardsList
  1. Image Inpainting via Stochastic Dynamics

    Jul 27, 2026Jiaqi Kuang, Zihao Guo, Zhongmin QianImage RestorationImage Inpainting

  2. SONIC: Spectral Optimization of Noise for Inpainting with Consistency

    Nov 25, 2025Seungyeon Baek, Erqun Dong, Shadan Namazifard +2Diffusion Model InversionImage Inpainting