Focus-and-Disperse: A Fine-to-Broad Context Aggregation for Image Inpainting

Although generative models have achieved impressive visual plausibility in image inpainting, they still face challenges in high-fidelity content restoration, as the generated structures may deviate from real-world appearances. In this paper, to achieve accurate inpainting results, we propose the Focus-and-Disperse Inpainting (FDInpaint), a fine-to-broad context aggregation network that follows a focus-and-disperse paradigm. Specifically, FDInpaint first focuses on accurately identifying and reconstructing subtle details and textures through optimized gradient propagation, and subsequently disperses these refined cues across the entire image to seamlessly integrate restored regions with known content, thereby maintaining global visual consistency. Firstly, considering that image textures are intrinsically characterized by local intensity variations and geometric transitions, gradient information provides essential structural priors for accurately recovering missing content. By capturing complementary edge variations and curvature changes, gradient propagation effectively guides the reconstruction of sharp boundaries, delicate textures, and coherent structures, while reducing ambiguity and artifacts introduced during content generation. According to that, we design the Multi-Granularity Gradient-based Detail Perceptron (MGDP) within a scale-cross augmentation framework to explicitly localize and restore subtle micro-structures that are difficult to recover through semantic features alone. Furthermore, we propose the Patch-based Hybrid Consistency Aggregation (PHCA), a hierarchical consistency propagation module that progressively enlarges the optimization region from small local patches to larger contextual patches and ultimately the whole image. Through this patch-to-image aggregation process, PHCA continuously aligns reconstructed content with known regions by modeling local details and global dependencies, thereby achieving seamless transitions and maintaining global visual consistency. This refinement process enables seamless transitions between inpainted and known areas while maintaining global structural coherence without relying on stochastic sampling. Extensive experiments on Places2, CelebA-HQ, ICDAR, and COCO datasets demonstrate that FDInpaint achieves superior restoration accuracy and visual quality compared with state-of-the-art inpainting methods.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-10-27
DOI
https://doi.org/10.3390/app162110642
Primary Topic
Generative Adversarial Networks and Image Synthesis
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Focus-and-Disperse: A Fine-to-Broad Context Aggregation for Image Inpainting

Shuangjiao Zhai, Jia Qin, Mengli Wang, Pinle Qin et al.
3 links
Applied Sciences
Generative Adversarial Networks and Image Synthesis
article

Focus-and-Disperse: A Fine-to-Broad Context Aggregation for Image Inpainting

Shuangjiao Zhai, Jia Qin, Mengli Wang, Pinle Qin, Yue Jing Lv, Zanxia Jin
article en

Abstract

Although generative models have achieved impressive visual plausibility in image inpainting, they still face challenges in high-fidelity content restoration, as the generated structures may deviate from real-world appearances. In this paper, to achieve accurate inpainting results, we propose the Focus-and-Disperse Inpainting (FDInpaint), a fine-to-broad context aggregation network that follows a focus-and-disperse paradigm. Specifically, FDInpaint first focuses on accurately identifying and reconstructing subtle details and textures through optimized gradient propagation, and subsequently disperses these refined cues across the entire image to seamlessly integrate restored regions with known content, thereby maintaining global visual consistency. Firstly, considering that image textures are intrinsically characterized by local intensity variations and geometric transitions, gradient information provides essential structural priors for accurately recovering missing content. By capturing complementary edge variations and curvature changes, gradient propagation effectively guides the reconstruction of sharp boundaries, delicate textures, and coherent structures, while reducing ambiguity and artifacts introduced during content generation. According to that, we design the Multi-Granularity Gradient-based Detail Perceptron (MGDP) within a scale-cross augmentation framework to explicitly localize and restore subtle micro-structures that are difficult to recover through semantic features alone. Furthermore, we propose the Patch-based Hybrid Consistency Aggregation (PHCA), a hierarchical consistency propagation module that progressively enlarges the optimization region from small local patches to larger contextual patches and ultimately the whole image. Through this patch-to-image aggregation process, PHCA continuously aligns reconstructed content with known regions by modeling local details and global dependencies, thereby achieving seamless transitions and maintaining global visual consistency. This refinement process enables seamless transitions between inpainted and known areas while maintaining global structural coherence without relying on stochastic sampling. Extensive experiments on Places2, CelebA-HQ, ICDAR, and COCO datasets demonstrate that FDInpaint achieves superior restoration accuracy and visual quality compared with state-of-the-art inpainting methods.

Applied SciencesVol. 16(21)
North University of China (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 17%
Generative Adversarial Networks and Image Synthesis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon