Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side

Haipeng Liu, Yang Wang, Biao Qian, Yong Rui, Meng WangarXiv 2026

TL;DR

Convolutional downsampling in image inpainting networks inevitably discards critical structural and textural details, leading to blurry or artifact-ridden reconstructions. This paper introduces a novel encoder-decoder framework that uses a spatially-adaptive normalization/denormalization strategy to reconstruct dense texture feature maps from sparse structure maps at both global and local scales. By preventing information loss inside the convolution, the method achieves state-of-the-art inpainting quality across multiple resolutions and can serve as a drop-in encoder replacement for existing models.

What Problem Does This Paper Address?

Modern image inpainting relies heavily on encoder-decoder Convolutional Neural Network (CNN) architectures. The encoder extracts high-frequency structural features (like edges) and low-frequency textural features (like color and patterns) while downsampling the image to capture high-level semantics.

However, this downsampling process causes a massive loss of information. Existing multi-stream networks try to share information between structure and texture branches, but they often do so via simple fusion. This either dilutes the sparse, sharp structural boundaries or fails to provide meaningful guidance to the dense texture maps, resulting in visual artifacts or unrealistic textures in the final inpainted image. The authors systematically investigate how structure and texture feature maps can mutually help each other to alleviate this downsampling information loss.

Methods

The authors propose a new pipeline that "thinks inside the convolution" by actively reconstructing features during downsampling rather than just fusing them later:

  1. Feature Extraction: Structure features are extracted using Partial Convolutions (PConv) on Canny edge maps and grayscale images. Texture features are extracted using a combination of PConv and a Vision Transformer (ViT) on edge-preserved smoothed images to capture both local details and long-range global correlations.
  2. Spatially-Adaptive Normalization and Denormalization: Instead of standard fusion, the network normalizes the texture feature maps and uses the structure feature maps to denormalize (reconstruct) them.
  3. Global and Local Dual Guidance: They discover an asymmetrical relationship: sparse structure maps excel at reconstructing locally normalized textures, while global texture properties are best restored using a local residual structure map (derived by subtracting upsampled lower-layer textures).
  4. Cross-Layer Balance Module: Because global structure dominates early downsampling stages and local residual structure dominates later stages, a feature equalization module balances these streams before passing them to the decoder.
Fig. 2: Illustration of our proposed overall pipeline. Our basic idea is to reconstruct the texture feature map via the structure feature map under both global and local side during the convolutional downsampling process from encoder (II), which is achieved via the statistical normalization and denormalization strategy between them. We augment the guidance from global structure feature map twice to keep balance with local residual structure feature map, upon the cross-layer balance module (III) via the feature equalization strategy to benefit the upsampling from decoder (IV); see Sec.III-B4 for more details.

Datasets

The model was trained and evaluated on several standard image synthesis benchmarks:

  • Paris StreetView (PSV): A collection of 14,900 training and 100 validation images of street scenes.
  • CelebA: A human face dataset containing 30,000 aligned images (28,000 for training, 2,000 for validation).
  • Places2: A massive dataset containing over 1.8 million natural images across diverse scenes.
  • ADE20K: Used specifically in ablation studies to evaluate performance against different structural priors (like semantic segmentation maps and gradient maps).

Key Insights and Ideas

  • Asymmetric Reconstruction: Structure can effectively reconstruct texture, but the inverse is not true. Dense texture maps easily destroy the clean, sparse boundaries of structural maps if used to reconstruct them.
  • Structure Acts as a Semantic Boundary: Reconstructing texture via structure prevents different semantic regions (e.g., eyes, nose, face contours) from blending and overlapping during downsampling, keeping boundaries distinct even at low resolutions.
  • Complementary Scales: Global structure maps lose information quickly in deep layers, whereas local residual structure maps (capturing position-specific changes) retain details longer. Using both dynamically across different stages prevents deep feature degradation.

Key Results

The proposed method significantly outperforms state-of-the-art models like CTSDG, ZITS, LaMa, and MAT across PSNR, SSIM, and FID metrics:

  • CelebA (256×256): At high mask ratios (40-50%), the model achieves an FID score of 4.35, compared to CTSDG's 8.58 and IR-SDE's 5.38.
  • Places2 (256×256): At a 40-50% mask ratio, it reaches an FID of 34.80, outperforming competitive baselines like ZITS (which struggled with texture map loss) and IR-SDE (38.38).
  • Drop-in Versatility: Replacing the encoders of older architectures (like PENNet and HiFill) with the proposed encoder yielded massive performance boosts, proving that mitigating downsampling loss is universally beneficial.

Limitations and Future Work

The authors note that maintaining absolute semantic coherence between denoised texture and structure remains a challenging frontier for high-resolution images, particularly when dealing with highly complex, non-repetitive scenes. While their cross-layer balance module mitigates this, future work could explore tighter integration with generative diffusion processes or scaling the architecture to handle ultra-high-definition inputs more efficiently without increasing computational overhead.

Summary updated

BibTeX
@misc{liu2026thinking,
  author = {Haipeng Liu and Yang Wang and Biao Qian and Yong Rui and Meng Wang},
  title = {{Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side}},
  year = {2026},
  eprint = {2602.03013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.03013},
}
Figure