TL;DR
This paper introduces a novel image inpainting framework that eliminates structural blur and "color bleeding" artifacts by decoupling structure reconstruction from color generation. By routing the inpainting process through a grayscale (monochromic) bottleneck, the method leverages external deep learning datasets to reconstruct semantic structures, and then uses internal learning from the test image itself to propagate consistent, realistic colors.
What Problem Does This Paper Address?
Image inpainting—the task of filling in missing or masked regions of an image—traditionally faces a difficult trade-off. Deep learning models excel at understanding external semantic context (e.g., knowing how to complete a face or a landscape) because they are trained on massive datasets. However, they frequently suffer from color bleeding and texture artifacts because they try to optimize directly in the complex $\mathbb{R}^3$ color space, often introducing colors that clash with the specific test image.
Conversely, traditional patch-matching methods rely purely on the internal statistics of the single input image. While this ensures excellent color consistency, these methods completely fail when the missing region requires semantic awareness.
The authors tackle this problem by combining the best of both worlds: using external learning for semantic structure and internal learning for color harmony.
Methods
The proposed framework splits the inpainting task into a two-stage pipeline connected by a monochromic bottleneck:
-
Stage I: External Monochromic Reconstruction
The input image is converted to grayscale, reducing the optimization space from $\mathbb{R}^3$ to $\mathbb{R}^1$. An off-the-shelf deep inpainting network (the authors test GatedConv, EdgeConnect, HiFill, and GMCNN) is trained externally on large-scale datasets to fill in the missing structures within this monochrome space. -
Stage II: Internal Color Restoration
To colorize the completed monochrome image, the authors design a progressive conditional generator pyramid ($G_0, G_1, ..., G_N$). This network is trained on-the-fly solely on the unmasked, valid regions of the single test image. It learns the unique color mapping function of that specific image and implicitly propagates those colors into the missing regions, guided by the dense structural cues from the monochromic bottleneck.
Datasets
The authors evaluated their approach across four diverse public datasets to demonstrate generalization:
- Places2 Standard: Over 18 million natural scene images, used to test general semantic inpainting.
- Paris StreetView: 15,000 outdoor architectural images.
- CelebA-HQ: 30,000 high-quality face images.
- DTD (Describable Textures Dataset): 5,640 texture images, ideal for evaluating fine structural reconstruction.
Testing was performed using dense, irregular masks to simulate real-world user editing behaviors.
Key Insights and Ideas
- The Power of Dimension Reduction ($\mathbb{R}^3 \rightarrow \mathbb{R}^1$): Stripping color information simplifies the structural completion task. Networks don't get distracted by complex color boundaries, allowing them to reconstruct sharper lines and more accurate geometry.
- Color Bleeding is an External Bias: Inconsistent colors in deep inpainting typically happen because the network recalls color distributions from its training set rather than the test image. Restricting color generation to internal learning completely bypasses this bias.
- Cross-Dataset Generalization: Grayscale structures (like edges and gradients) generalize far better across different domains than color distributions do. As a result, a model trained on natural images (Places2) performs significantly better on textures (DTD) when operating purely in the monochromic space.
Key Results
The external-internal scheme was applied as a plug-and-play enhancement to several state-of-the-art baselines, consistently yielding improvements:
- Quantitative Gains: Across all datasets and baselines, the proposed method consistently improved PSNR, SSIM, and LPIPS metrics. For example, on the Places2 dataset using GatedConv as the backbone, PSNR improved from 23.94 to 24.58, and the LPIPS perceptual metric dropped from 0.112 to 0.098.
- Qualitative Improvements: The framework successfully eliminated abrupt color discrepancies, producing visually harmonized results with seamless boundaries, even when large portions of the image were missing.
- User Study: In a blind perceptual study on Amazon Mechanical Turk, users overwhelmingly preferred the results of the proposed scheme over the baseline models by a large margin.
Limitations and Future Work
The primary limitation of this approach is inference speed. Because Stage II relies on deep internal learning, the colorization network must undergo test-time optimization (training on the single test image) for every new inference, making it slower than pure feed-forward deep learning models.
Additionally, the model can struggle with colorization if the missing region contains a unique foreground object that is completely masked out, leaving the internal network with zero color hints to learn from. The authors suggest that incorporating sparse user-guided color points could be a promising direction to resolve these ambiguous cases.
Summary updated