Follow-Your-Preference: Towards Preference-Aligned Image Inpainting

Yutao Shen, Junkun Yuan, Toru Aonishi, Hideki Nakayama, Jack Ma

Introduction

Image inpainting—the process of filling in missing or masked parts of a photo—has advanced significantly with the advent of diffusion and flow-based models. However, a persistent "preference gap" remains. While a model might fill a hole with content that is technically accurate according to a text prompt, the result is often aesthetically unpleasing, poorly composed, or inconsistent with the surrounding lighting.

Aligning these generative models with human preferences typically requires Reinforcement Learning from Human Feedback (RLHF). Unfortunately, RLHF is notoriously expensive and slow due to its reliance on massive amounts of human-labeled data. In Follow-Your-Preference, researchers investigate a more efficient path: leveraging existing, "off-the-shelf" AI reward models to teach inpainting models what humans prefer, without changing the underlying model architecture or hiring thousands of human annotators.

An example of image inpainting where a masked cat is replaced with a girl wearing a bunny hat, demonstrating semantic and aesthetic alignment.

Methodology: Direct Preference Optimization and Ensembling

Rather than relying on a complex RLHF pipeline, the authors utilize Direct Preference Optimization (DPO). DPO offers a more stable and efficient method for fine-tuning generative models by training them on pairs of "preferred" and "dispreferred" samples.

The core innovation of this research lies in how the training data is constructed:

  1. Candidate Generation: For every prompt, the baseline model (such as BrushNet or FLUX.1 Fill) generates 16 different versions using varying random seeds.
  2. Reward Ensembling: Instead of trusting a single AI judge, the researchers employ nine different public reward models (including HPSv2, PickScore, and ImageReward).
  3. Rank Averaging: Individual reward models exhibit massive biases. To counteract this, the team developed an Ensemble Method. They rank the 16 candidates according to each reward model, average those ranks, and select the top-ranked image as the "winner" and the bottom-ranked as the "loser" to form the DPO training pair.

Key Insights: Biases and Reward Hacking

The study uncovered several critical behaviors in AI reward models that complicate preference alignment:

  • Reward Hacking is Real: If a model is trained using only one reward judge, it quickly learns to "hack" the system. For example, the HPSv2 model heavily favors high brightness and vivid colors. An inpainting model trained exclusively on HPSv2 will start producing unnaturally bright, over-saturated images simply to maximize its score.
  • Opposing Biases: Interestingly, different reward models possess opposite "personalities." While HPSv2 prefers bright and complex images, PickScore tends to favor dimmer, more muted, and simpler compositions.
  • The Ensemble Regularizer: By averaging the ranks across multiple models, these opposing biases cancel each other out. The ensemble acts as a regularizer, forcing the model to produce balanced, aesthetically pleasing images that satisfy multiple "critics" simultaneously.
  • Scaling Laws: The researchers observed robust trends in both "candidate scaling" (generating more versions to pick from) and "sample scaling" (using more unique prompts). Both improve performance, provided the reward signal is robust enough to prevent hacking.
A complex inpainting task replacing a masked region on a piece of toast with a detailed, aesthetically pleasing Shiba Inu face.

Results: Introducing BruPA and FluPA

Built upon these observations, the researchers introduced two new preference-aligned models: BruPA (based on BrushNet) and FluPA (based on FLUX.1 Fill).

Both models achieved state-of-the-art performance, outperforming all previous competitors across standard metrics and specialized benchmarks like BrushBench and EditBench. In blind tests, human raters and GPT-4-based evaluators overwhelmingly preferred the outputs of these aligned models. Notably, FluPA achieved a 91.6% win rate on EditBench when evaluated by Qwen3-VL. Crucially, these significant gains were achieved purely through better data selection and alignment training, without adding a single parameter to the underlying model structures.

Limitations and Future Directions

While the results establish a solid baseline for preference-aligned inpainting, the authors note a few areas for future exploration. The current study focused exclusively on 2D images, suggesting that these techniques should be expanded to video and 3D data. Additionally, while DPO was chosen for its efficiency, future work could investigate whether more complex RLHF methods (like PPO or GRPO) might yield even greater performance. Finally, the method remains inherently limited by the quality of the underlying reward models; as better "AI critics" are developed, this ensemble alignment process will only become more effective.

Summary updated

BibTeX
@inproceedings{shen2026follow,
  author = {Yutao Shen and Junkun Yuan and Toru Aonishi and Hideki Nakayama and Jack Ma},
  title = {{Follow-Your-Preference: Towards Preference-Aligned Image Inpainting}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=n6XbPGStit},
}
Figure