TL;DR
This paper demonstrates that image inpainting models can be significantly improved by aligning them with human preferences using Direct Preference Optimization (DPO) and off-the-shelf reward models. By identifying and mitigating the distinct aesthetic biases of individual reward models through a simple rank-based ensemble, the authors achieve state-of-the-art inpainting quality without altering model architectures or introducing new datasets.
What Problem Does This Paper Address?
Image inpainting—the task of filling in missing or masked regions of an image realistically based on a text prompt—has advanced rapidly with diffusion and flow-based models. However, ensuring that the generated content aligns with human aesthetic preferences and text prompts remains a challenge.
While text generation and text-to-image models have benefited immensely from preference alignment techniques like Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO), preference alignment for image inpainting is largely unexplored. Gathering human preference data is expensive and hard to scale, prompting researchers to use automated reward models. This paper investigates how effective these automated reward models are, how preference data scales, and how to prevent "reward hacking" (where a model exploits a reward function's flaws rather than generating truly better images).
Methods
Instead of proposing a brand-new architecture, the authors revisit the basics of preference alignment using Direct Preference Optimization (DPO). They apply this to two distinct baseline architectures: BrushNet (a U-Net-based diffusion model) and FLUX.1 Fill (a Transformer-based rectified flow model).
To build preference datasets without human annotators, they generate 16 candidate inpainting outputs per prompt using different random seeds. They then score these candidates using nine different public reward models (including HPSv2, PickScore, and ImageReward). The highest and lowest-scoring images form the preferred and dispreferred pairs for DPO training.
Crucially, to overcome individual model biases, they introduce an Ensemble approach: instead of relying on a single reward model, they rank candidates based on the average ranking across all nine reward models. This simple ensemble acts as a robust data constructor that resists reward hacking.
Datasets
- BrushData: Used as the primary training dataset to generate candidate images.
- BrushBench & EditBench: Two representative evaluation benchmarks used to test the models across various metrics.
- I Dream My Painting: A newer dataset used to conduct ablation studies and verify the generalization capability of their approach across different data distributions.
Key Insights and Ideas
- Aesthetic Biases & Reward Hacking: Reward models have explicit, predictable biases. For instance, HPSv2 heavily favors bright lighting, complex compositions with rich details, and vivid colors. Conversely, PickScore prefers dim lighting, simple compositions, and muted colors. Training solely on a single model leads to reward hacking where the model over-exaggerates these traits to chase higher scores, degrading actual human-perceived quality.
- Baseline-Reward Synergy: Biases interact uniquely with baseline architectures. BrushNet naturally generates vibrant images, making PickScore a good regularizer for it. FLUX.1 Fill produces flatter, plainer images, which aligns well with HPSv2's preference for boosting brightness and detail.
- The Power of Ensembling: A simple average-ranking ensemble weakens individual model biases. While scaling up data with a single biased reward model eventually causes performance to tank due to reward hacking, the ensemble approach shows robust, monotonic improvement as candidate and sample sizes scale.
- Unreliable Evaluators: Some popular reward models (like CLIPScore, VQAScore, and Perception) fail the "oracle" test—they do not reliably assign higher scores to models trained on their own preference data, likely due to coarse pre-training or overly simplistic evaluation structures.
Key Results
- The ensemble-aligned models, named BruPA (BrushNet + Preference Alignment) and FluPA (FLUX.1 Fill + Preference Alignment), set new state-of-the-art results on BrushBench and EditBench, outperforming prior models across standard metrics and GPT-4 assessments.
- User studies with 30 human volunteers confirmed that the ensemble-aligned models significantly outperformed existing methods. For example, FluPA achieved a 58% win rate against ASUKA and a 62% win rate against HD-Painter.
Limitations and Future Work
The authors note that their current investigation is strictly confined to static images and the offline DPO framework. They highlight that promising future directions include extending these preference-alignment insights to video generation, 3D data synthesis, and exploring online reinforcement learning methods (like RLHF) to dynamically refine alignment.
Summary updated