MATdiff: Mask-aware transformer with diffusion model for large-mask image inpainting

Diffusion models have shown strong performance in image inpainting, yet their stochastic nature often leads to semantic inconsistencies between inpainted regions and known parts of the image, especially under large-mask settings. While Transformers excel at capturing long-range semantic dependencies, their high computational complexity restricts their applicability in handling large missing areas, potentially compromising structural consistency. To address these challenges, we propose MATdiff, a unified framework that effectively integrates Transformer-based semantic modeling with the generative capabilities of diffusion models. Specifically, we leverage a mask-aware transformer (MAT) as a conditional encoder to capture semantically coherent features from visible regions, thereby constraining stochastic generation and preserving global structural consistency during the reverse diffusion process. Moreover, we introduce a distribution-guided diffusion training (DGDT) strategy that utilizes a pre-trained unconditional latent diffusion model alongside a frozen conditional encoder, enabling end-to-end optimization of the MATdiff framework. DGDT leverages the underlying data distribution learned by the diffusion model to facilitate the generation of plausible overall structures for large-mask inpainting. Extensive experiments on the CelebA-HQ and Places datasets demonstrate that MATdiff achieves strong image inpainting performance, producing semantically coherent and structurally consistent results with high visual fidelity in large-mask scenarios, while also showing consistent improvements over the baseline MAT.

Authors

Institutions

Publication Details

Journal
Neurocomputing
Published
2026-02-12
DOI
https://doi.org/10.1016/j.neucom.2026.133042
Primary Topic
Generative Adversarial Networks and Image Synthesis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

MATdiff: Mask-aware transformer with diffusion model for large-mask image inpainting

WEIMIN ZHANG, Jianbing Liang, Wenjing Zhao, Shuang Zhao et al.
Neurocomputing
Generative Adversarial Networks and Image Synthesis
article

MATdiff: Mask-aware transformer with diffusion model for large-mask image inpainting

WEIMIN ZHANG, Jianbing Liang, Wenjing Zhao, Shuang Zhao, Suxia Wang
article en

Abstract

Diffusion models have shown strong performance in image inpainting, yet their stochastic nature often leads to semantic inconsistencies between inpainted regions and known parts of the image, especially under large-mask settings. While Transformers excel at capturing long-range semantic dependencies, their high computational complexity restricts their applicability in handling large missing areas, potentially compromising structural consistency. To address these challenges, we propose MATdiff, a unified framework that effectively integrates Transformer-based semantic modeling with the generative capabilities of diffusion models. Specifically, we leverage a mask-aware transformer (MAT) as a conditional encoder to capture semantically coherent features from visible regions, thereby constraining stochastic generation and preserving global structural consistency during the reverse diffusion process. Moreover, we introduce a distribution-guided diffusion training (DGDT) strategy that utilizes a pre-trained unconditional latent diffusion model alongside a frozen conditional encoder, enabling end-to-end optimization of the MATdiff framework. DGDT leverages the underlying data distribution learned by the diffusion model to facilitate the generation of plausible overall structures for large-mask inpainting. Extensive experiments on the CelebA-HQ and Places datasets demonstrate that MATdiff achieves strong image inpainting performance, producing semantically coherent and structurally consistent results with high visual fidelity in large-mask scenarios, while also showing consistent improvements over the baseline MAT.

NeurocomputingVol. 677
National University of Defense Technology (CN)
Openalex Percentile: Top 58%
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.