TL;DR
HP-Edit is a novel post-training framework that aligns image editing diffusion models with human preferences using reinforcement learning. By leveraging a vision-language model (VLM) as a task-aware reward scorer and filtering out "easy" training examples to focus purely on hard cases, it significantly boosts both the realism and instruction-following capabilities of state-of-the-art editing models.
What Problem Does This Paper Address?
While text-to-image (T2I) generation has advanced rapidly, image-to-image (I2I) editing remains a challenging frontier. Current state-of-the-art editing models typically rely on Supervised Fine-Tuning (SFT) using mixed datasets that contain synthetic or stylized images (like cartoons). This often causes the model's outputs to deviate from real-world human aesthetic preferences.
Applying Reinforcement Learning from Human Feedback (RLHF)—which has successfully aligned large language models and T2I models—to image editing is exceptionally difficult due to a dual-objective dilemma. An editing model must not only be accurate (faithfully executing instructions like removing an object) but also preference-aligned (ensuring the final image looks natural and seamlessly blended). Furthermore, gathering human preference data for eight or more distinct editing sub-tasks is prohibitively expensive and difficult to scale.
Methods
The authors introduce HP-Edit, a three-stage post-training framework designed to automate and scale preference alignment without human-in-the-loop bottlenecks:
- HP-Scorer (Stage 1): Instead of relying on continuous human annotation, the framework uses a pretrained Visual Large Language Model (VLM), such as Qwen2.5-VL. The authors optimize the VLM using an iterative, task-aware prompt engineering strategy. By injecting specific reasoning questions (e.g., "Is there any color bleed?" or "Is the original object completely replaced?"), the VLM learns to score image edits on a 0–5 scale, closely mimicking human judgment.
- Hard-Case Data Filtering (Stage 2): Pretrained editing models are already quite capable at simple tasks. If an RL model trains on these "easy" cases, the rewards saturate quickly, yielding weak gradients. HP-Edit uses the HP-Scorer to evaluate a raw dataset and deliberately discards all perfect-scoring examples (score 5), keeping only the low-score, challenging "hard cases" to maximize learning efficiency.
- Flow-GRPO Post-Training (Stage 3): The framework applies Group Relative Policy Optimization (GRPO) adapted for flow-matching diffusion models. The HP-Scorer serves as the reward function, guiding a lightweight LoRA fine-tuning process to iteratively improve the base model's outputs based on group-relative advantages.
Datasets
The paper introduces two major contributions to the image editing community:
- RealPref-50K: A large-scale dataset containing 55,795 real-world editing cases across eight common sub-tasks: addition, removal, background replacement, object swapping, color change, bokeh (background blur), relighting, and style transfer. The dataset uses CLIP embeddings to ensure a balanced distribution of common MS-COCO object categories (e.g., people, cars, cakes).
- RealPref-Bench: A verified evaluation benchmark consisting of 1,638 cases (~200 per sub-task) paired with human-verified instructions.
The authors also evaluate their framework on GEdit-Bench-EN to demonstrate its generalizability to external standard benchmarks.
Key Insights and Ideas
- The "Easy Case" Trap: A major bottleneck in visual RLHF is data redundancy. Training on scenarios where the base model already excels provides virtually no useful optimization signal. Filtering out perfect edits forces the model to confront its subtle flaws, leading to much steeper and more stable reward improvements during training.
- VLMs as Granular Evaluators: Standard multi-modal prompts often fail to notice fine-grained visual artifacts like color bleeding or edge distortions. Breaking down the evaluation into a checklist of task-specific verification questions allows a VLM to act as a highly reliable, scalable proxy for human aesthetic preference.
Key Results
HP-Edit was evaluated against several strong baselines, using Qwen-Image-Edit-2509 as its core base model.
Quantitative Performance
On the RealPref-Bench, HP-Edit achieved the highest overall preference score, outperforming foundational editing models and specialized frameworks alike:
- HP-Edit (Ours): 4.667
- Qwen-Image-Edit-2509 (Baseline): 4.472
- Step1X-Edit: 4.070
- FLUX.1-Kontext-Dev: 3.590
HP-Edit consistently ranked first across all eight sub-tasks, showing the most pronounced gains in complex visual tasks like color change (+0.392 over baseline) and relighting (+0.373 over baseline).
Qualitative & User Study Alignment
Qualitative evaluations show that HP-Edit preserves background structures better, introduces fewer visual artifacts, and adheres more strictly to fine-grained prompts than the baseline models.
A user study conducted with five human annotators confirmed that the human preference scores closely mirrored the automated metrics provided by the HP-Scorer, validating the framework's evaluation accuracy.
Limitations and Future Work
Despite its strong performance, HP-Edit inherits certain language processing limitations from its underlying base models. Specifically, it struggles with code-switching or mixed-language instructions (e.g., a prompt that asks the model to "Translate the English text in the image into Chinese"). The authors plan to address multi-lingual text rendering and mixed-language instruction editing in future iterations of this work.
Summary updated