InpaintDPO: Mitigating Spatial Relationship Hallucinations in Foreground-conditioned Inpainting via Diverse Preference Optimization
On the map: LLM alignment / RLHF / preference optimisation → Diffusion and multimodal model alignment
Abstract (arXiv)
Foreground-conditioned inpainting, which aims at generating a harmonious background for a given foreground subject based on the text prompt, is an important subfield in controllable image generation. A common challenge in current methods, however, is the occurrence of Spatial Relationship Hallucinations between the foreground subject and the generated background, including inappropriate scale, positional relationships, and viewpoints. Critically, the subjective nature of spatial rationality makes it challenging to quantify, hindering the use of traditional reward-based RLHF methods. To address this issue, we propose InpaintDPO, the first Direct Preference Optimization (DPO) based framework dedicated to spatial rationality in foreground-conditioned inpainting, ensuring plausible spatial relationships between foreground and background elements. To resolve the gradient conflicts in standard DPO caused by identical foreground in win-lose pairs, we propose MaskDPO, which confines preference optimization exclusively to the background to enhance background spatial relationships, while retaining the inpainting loss in the foreground region for robust foreground preservation. To enhance coherence at the foreground-background boundary, we propose Conditional Asymmetric Preference Optimization, which samples pairs with differentiated cropping operations and applies global preference optimization to promote contextual awareness and enhance boundary coherence. Finally, based on the observation that winning samples share a commonality in plausible spatial relationships, we propose Shared Commonality Preference Optimization to enhance the model's understanding of spatial commonality across high-quality winning samples, further promoting shared spatial rationality.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Diffusion and multimodal model alignment, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 23 of its 75 references that are in the map. First posted on arXiv 16 Dec 2025.
Builds on
23 of 75 references.
Closest ancestors · 1
Same direction, newest first
Other references · 22
- 2023GPT-4 Technical Reportcited by 18,396
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2023IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Modelscited by 1,464
- 2025Qwen-Image Technical Reportcited by 1,044
- 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Spacecited by 1,006
- 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 890
- 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 864
10 more
- 2025Flow-GRPO: Training Flow Matching Models via Online RLcited by 661
- 2024BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusioncited by 202
- 2023A Task is Worth One Word: Learning with Task Prompts for High-Quality Versatile Image Inpaintingcited by 169
- 2024Bilateral Reference for High-Resolution Dichotomous Image Segmentationcited by 112
- 2023HD-Painter: High-Resolution and Prompt-Faithful Text-Guided Image Inpainting with Diffusion Modelscited by 67
- 2024FreeEdit: Mask-free Reference-based Image Editing with Multi-modal Instructioncited by 36
- 2024Imagen 3cited by 27
- 2025HiFlow: Training-free High-Resolution Image Generation with Flow-Aligned Guidancecited by 22
- 2024VirtualModel: Generating Object-ID-retentive Human-object Interaction Image by Diffusion Model for E-commerce Marketingcited by 15
- 2025IAR2: Improving Autoregressive Visual Generation with Semantic-Detail Associated Token Predictioncited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Follow-Your-Preference++: Rethinking Preference Alignment for Image Inpainting
- 2025Follow-Your-Preference: Towards Preference-Aligned Image Inpainting
- 2024PrefPaint: Aligning Image Inpainting Diffusion Model with Human Preference
- 2026Training-Free Inpainting Across Domains with a Frozen Text-to-Image Diffusion Model
- 2025FreeInpaint: Tuning-free Prompt Alignment and Visual Rationality Enhancement in Image Inpainting
- 2024Coherent and Multi-modality Image Inpainting via Latent Space Optimization
- 2026P2-DPO: Grounding Hallucination in Perceptual Processing via Calibration Direct Preference Optimization
- 2026Aligned Stable Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency