WACV 2027

MAIQ: Mask-Aware No-Reference Image Quality Assessment for Inpainting

Yota Koshimoto Taiki Uchiyama Mariko Isogawa
Keio University, Yokohama, Japan

Abstract

Image inpainting aims to restore or modify missing regions in images, but evaluating the perceptual quality of inpainted results remains challenging because valid completions can be diverse and a unique ground-truth reference is often unavailable in practical scenarios. Existing no-reference IQA and MLLM-based IQA methods provide promising alternatives, but they are generally designed for global image quality and lack explicit awareness of the restored region.

To address this limitation, we propose MAIQ, a mask-aware framework for no-reference inpainting quality assessment. MAIQ extends MLLM-based IQA by using the inpainting mask as spatial guidance, combining token-level visual modulation with region-level consistency modeling between the restored region and its surrounding context. Experiments on NIQAD, a human-rated benchmark of 8,000 images generated by diverse inpainting methods, show that MAIQ achieves stronger correlation with human perceptual judgments than representative NR-IQA, object erasure, and reasoning-based IQA baselines.

Method

Architecture of MAIQ
The inpainted image is encoded into visual tokens and the binary mask is converted into token-level guidance. Mask-aware visual tokens are passed to the MLLM with text instructions to predict a perceptual quality score.

1. Visual Mask Adapter

The token-level mask is mapped to token-wise FiLM scale and shift parameters. Unlike hard masking, background tokens are preserved, so the model keeps full-image context while learning which features matter for the restored region.

2. Region-Consistency Module

Channel-wise means and standard deviations of tokens inside and outside the mask form an inner-outer descriptor, which is projected to region-level FiLM parameters applied only to restored-region tokens.

3. Reasoning & Rewards

Built on VisualQuality-R1-7B, MAIQ outputs a reasoning trace and a score. GRPO-style training combines format, differential ranking, and absolute-score rewards, with LoRA on the LLM decoder.

NIQAD Dataset

8,000

Images: 1,000 COCO originals and 7,000 inpainted results

7

Inpainting methods, from GAN-based to diffusion-based

40,000

Ratings from 167 annotators, five per image

The Naturalness-based Inpainting Quality Assessment Dataset (NIQAD) masks COCO objects covering 5–20% of the image and inpaints them with MAT, EdgeConnect, LaMa, RePaint, PowerPaint, SD2-inpainting, and OmniPaint. Annotators rate perceptual naturalness as a standalone image on a 5-point scale.

MOS statistics of NIQAD: mean MOS per source, mask area ratio distribution, and overall MOS distribution
Mean MOS for the original image and each inpainting method, the distribution of mask area ratios, and the overall MOS distribution.

Results

0.758

SRCC with human MOS on the NIQAD test set

+0.066

SRCC gain over the strongest baseline (TOPIQ)

0.665

Zero-shot SRCC on CelebAMask-HQ inpainted images

MethodSRCC ↑PLCC ↑
QualiCLIP0.4560.418
DBCNN0.6390.644
MANIQA0.6770.681
TOPIQ0.6920.693
Q-Align w/ original prompt0.5450.552
Q-Align w/ inpainting prompt0.5580.563
Q-Align w/ mask prompt0.5700.575
Q-Hawkeye0.2900.292
VisualQuality-R1 zero-shot0.3540.282
VisualQuality-R10.6040.597
ReMOVE-0.082-0.085
MAIQ (Ours)0.7580.752

Quantitative comparison on NIQAD. Trainable image-only baselines are re-trained on NIQAD.

VariantSRCC ↑PLCC ↑
MAIQ full0.7580.752
w/o Visual Mask Adapter0.6920.685
w/o Region-Consistency Module0.7170.708
w/o Abs reward0.7460.738
w/o Diff rank reward0.7430.751

Ablation study. Removing the Visual Mask Adapter causes the largest drop, and both reward terms contribute.

Qualitative Analysis

Predicted scores and reasoning traces of VisualQuality-R1 and MAIQ for an inpainted image with human MOS 1.20
For an inpainted image with human MOS 1.20, VisualQuality-R1 mistakes the restoration failure for a double-exposure effect (3.40 zero-shot, 2.00 after LoRA fine-tuning). MAIQ predicts 1.00 and identifies ghosting, structural distortion, and poor background integration. Green text marks correct region-aware observations; red text marks inappropriate reasoning.

Citation

@InProceedings{Koshimoto_MAIQ_WACV2027,
  author = {Koshimoto, Yota AND Uchiyama, Taiki AND Isogawa, Mariko},
  title = {{MAIQ: Mask-Aware No-Reference Image Quality Assessment for Inpainting}},
  booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
  year = {2027}
}