InpaintDPO: Mitigating Spatial Relationship Hallucinations in Foreground-conditioned Inpainting via Diverse Preference Optimization
Qirui LiYizhe Tang
Ran YiGuangben LuFangyuan ZouPeng ShuHuan YuJie Jiang Qirui Li
Yizhe Tang

Ran Yi
Guangben Lu
Fangyuan Zou
Peng Shu
Huan Yu
Jie Jiang
+8
InpaintDPO applies Direct Preference Optimization (DPO) to mitigate spatial relationship hallucinations in foreground-conditioned inpainting, where generated backgrounds are implausible in scale, position, or viewpoint relative to the inserted foreground. The authors propose MaskDPO, which restricts preference optimization to the background region to avoid gradient conflicts from identical foregrounds, and Conditional Asymmetric Preference Optimization, which uses global preference on cropped sample pairs to improve boundary coherence. Additionally, Shared Commonality Preference Optimization reinforces spatial rationality by learning commonalities across winning samples.

arXiv ·
· December 16, 2025