DARS: Dual-Level Credit Assignment RL with Structured Reasoning for Instruction-Based Image Editing
Organizations: South China Normal University · KlingAI Research
Abstract
Instruction-based image editing uses a planner-renderer pipeline: a vision-language model (VLM) first converts the instruction into an edit plan, and a diffusion model then executes that plan. Training such systems with only final-image rewards is inefficient because a poor edit does not reveal whether additional optimization should place more emphasis on the planner or the renderer, and even planner-dominant cases remain difficult to localize within a free-form reasoning trace. We present DARS, a reinforcement learning framework for dual-level credit assignment in this two-stage setting. Across modules, multi-plan multi-render rollouts estimate between-plan and within-plan reward variability for soft module routing, while rollout mean rewards provide hardness estimates for an adaptive curriculum. Within the planner, a four-field structured reasoning output enables a prefix-gated reward and token-level advantage reweighting, turning outcome-level feedback into localized supervision. Experiments on five benchmarks show that DARS outperforms a Joint~RL baseline with the same backbone, data, reward model, and rollout budget, with the largest gains on reasoning-intensive edits.
Figures & tables
| Method | KRIS-Bench | RISE-Bench | ImgEdit-Bench | GEdit-Bench-EN | PICA-Bench |
| Other baselines | |||||
| ThinkGen ( Jiao et al., 2025 ) | 59.57 | 10.56 | 3.97 | 7.16 | 60.82/65.09 |
| UniREdit ( Han et al., 2025 ) | 61.02 | 13.33 | 3.70 | 6.47 | 60.40/66.55 |
| PromptRL ( Wang et al., 2026b ) | 61.24 | 10.00 | 3.87 | 6.74 | 51.02/60.38 |
| Step1X-Edit-v1p2 ( Yin et al., 2025 ) | 62.58 | 11.67 | 4.00 | 7.47 | 56.15/60.55 |
| UniReason 1.0 ( Wang et al., 2026a ) | 63.26 | 15.00 | 4.06 | 6.52 | 57.30/61.62 |
| Variant | RISE | GEdit |
| Curriculum | ||
| No Curriculum | 18.89 | 6.87 |
| Static Curriculum | 24.56 | 7.15 |
| Adaptive Curriculum | 27.50 | 7.86 |
| Routing | ||
| No Routing | 20.05 | 7.12 |
| Variant | RISE | GEdit |
| Planner structure | ||
| Free-form Reasoning | 23.94 | 6.98 |
| Modify Only | 25.21 | 7.11 |
| Without Preserve | 26.08 | 7.34 |
| Without Overall | 26.42 | 7.51 |
| Without Tips | 26.87 | 7.69 |
| Setting | Accuracy | Macro-F1 | AUROC |
| Planner vs. Renderer | 86.0 | 85.8 | 0.930 |
| Planner vs. Mixed | 84.7 | 84.1 | 0.918 |
| Renderer vs. Mixed | 85.3 | 84.9 | 0.923 |
| Category | Hyperparameter | Value |
| VLM Policy | Base model | Qwen3-VL-4B-Instruct |
| Optimizer | AdamW | |
| Learning rate | ||
| Plans per input ( ) | 4 | |
| Total rollouts per input ( ) | 16 | |
| Global update batch size | 256 |
| Model | Factual Knowledge | Conceptual Knowledge | Procedural Knowledge | Overall | |||||||
| Attribute Perception | Spatial Perception | Temporal Perception | Average Score | Social Science | Natural Science | Average Score | Logical Reasoning | Instruction Decomposition | Average Score | ||
| Other baselines | |||||||||||
| ThinkGen | 64.03 | 55.17 | 56.31 | 59.57 | 66.00 | 63.19 | 63.86 | 38.04 | 64.83 | 49.52 | 59.57 |
| UniREdit | 61.10 | 66.75 | 58.45 | 62.42 | 66.20 | 63.04 | 63.80 | 53.08 | 54.61 | 53.74 | 61.02 |
| PromptRL | 67.85 | 64.83 | 79.17 | 69.04 | 58.65 | 57.39 | 57.69 | 51.38 | 67.29 | 58.24 | 61.24 |
| Step1X-Edit-v1p2 | 69.67 | 64.33 | 80.18 | 70.21 | 63.50 | 60.62 | 61.32 | 49.75 | 62.67 | 55.29 | 62.58 |
| Method | Temporal | Causal | Spatial | Logical | Overall |
| Other baselines | |||||
| ThinkGen | 15.29 | 16.67 | 7.00 | 3.52 | 10.56 |
| UniREdit | 15.29 | 20.00 | 14.00 | 3.53 | 13.33 |
| PromptRL | 3.53 | 8.89 | 23.00 | 2.34 | 10.00 |
| Step1X-Edit-v1p2 | 14.12 | 13.30 | 13.00 | 5.88 | 11.67 |
| UniReason 1.0 | 16.47 | 27.78 | 13.00 | 2.35 | 15.00 |
| Method | Add | Adjust | Extract | Replace | Remove | Background | Style | Hybrid | Action | Overall |
| Other baselines | ||||||||||
| ThinkGen | 4.20 | 3.96 | 3.45 | 4.35 | 3.35 | 4.22 | 4.91 | 3.45 | 4.16 | 3.97 |
| UniREdit | 4.09 | 3.53 | 2.27 | 4.27 | 3.81 | 3.83 | 4.65 | 2.46 | 4.37 | 3.70 |
| PromptRL | 4.07 | 4.19 | 2.95 | 4.23 | 3.67 | 4.09 | 4.46 | 3.04 | 4.13 | 3.87 |
| Step1X-Edit-v1p2 | 4.28 | 4.40 | 2.29 | 4.36 | 4.17 | 3.94 | 4.74 | 3.61 | 4.23 | 4.00 |
| UniReason 1.0 | 4.18 | 3.78 | 2.65 | 4.50 | 4.39 | 4.01 | 4.73 | 2.78 | 4.36 | 4.06 |
| Method | Intersection subset | Full set | ||||
| G_SC | G_PQ | G_O | G_SC | G_PQ | G_O | |
| Other baselines | ||||||
| ThinkGen | 7.49 | 7.80 | 7.22 | 7.43 | 7.76 | 7.16 |
| UniREdit | 7.31 | 6.96 | 6.67 | 7.10 | 6.89 | 6.47 |
| PromptRL | 7.32 | 7.60 | 6.90 | 7.15 | 7.58 | 6.74 |
| Step1X-Edit-v1p2 | 8.32 | 7.89 | 7.73 | 8.05 | 7.85 | 7.47 |
| Method | LP | LSE | Reflection | Refraction | Deformation | Causality | GST | LST | Overall |
| Other baselines | |||||||||
| ThinkGen | 64.39 | 66.34 | 64.51 | 65.46 | 50.06 | 51.26 | 68.38 | 66.34 | 60.82 |
| UniREdit | 61.99 | 66.17 | 67.50 | 54.38 | 53.11 | 52.90 | 65.68 | 56.83 | 60.40 |
| PromptRL | 56.04 | 52.24 | 59.27 | 41.35 | 50.42 | 45.60 | 52.91 | 45.67 | 51.02 |
| Step1X-Edit-v1p2 | 63.52 | 58.12 | 66.61 | 62.44 | 53.41 | 48.76 | 52.60 | 51.89 | 56.15 |
| UniReason 1.0 | 62.15 | 63.20 | 62.73 | 51.35 | 52.55 | 48.84 | 60.21 | 54.76 | 57.30 |
| Method | LP | LSE | Reflection | Refraction | Deformation | Causality | GST | LST | Overall Score |
| Other baselines | |||||||||
| ThinkGen | 66.17 | 68.29 | 64.82 | 62.63 | 59.43 | 58.57 | 74.48 | 61.12 | 65.09 |
| UniREdit | 64.34 | 66.80 | 67.50 | 59.77 | 63.72 | 62.17 | 72.81 | 68.41 | 66.55 |
| PromptRL | 61.20 | 59.68 | 63.66 | 43.02 | 55.11 | 62.88 | 66.96 | 55.50 | 60.38 |
| Step1X-Edit-v1p2 | 58.92 | 61.60 | 66.02 | 49.12 | 56.68 | 59.30 | 61.36 | 63.91 | 60.55 |
| UniReason 1.0 | 59.32 | 64.85 | 60.03 | 49.77 | 56.47 | 60.83 | 69.23 | 61.09 | 61.62 |
| Method | Main Backbone | Key Structural Characteristics |
| ThinkRL-Edit | Qwen3-VL-30B-A3B + Qwen-Image-Edit | Checklist-style reward-driven RL with explicit CoT planning and reflection before image-to-image diffusion editing. |
| ThinkGen | Qwen3-VL-8B-Think + OmniGen2-4B DiT | Alternating GRPO between a reasoning VLM and a DiT generator. |
| Step1X-Edit-v1p2 | Qwen2.5-VL-7B + Step1X-Edit | Multi-round reflection pipeline (up to five rounds) with coupled VLM and editor tuning. |
| RePlan | Qwen2.5-VL-7B + Qwen-Image-Edit-2511 | Region-aware decomposition: an RL-trained VLM predicts boxes and localized prompts for editing. |
| EditThinker | Qwen3-VL-8B + Qwen-Image-Edit | Up to five rounds of reflection, with reasoning refinement concentrated on the VLM side. |
| UniReason 1.0 | Bagel-14B | World-knowledge-aware prompt enhancement with reflection and consistency control. |
| ID | Raw | Modify | Preserve | Overall | Tips |
| 1 | Draw what it will look like after 30 seconds in summer. | Show the dry leaf catching fire under the concentrated sunlight from the magnifying glass, with a small flame and a plume of grey smoke rising from the bright focal point on the leaf. | Preserve the surrounding green grass, the hand holding the magnifying glass, the position of the lens, and the overall sunny daylight illumination. | The scene should depict the early stage of combustion in a visually coherent and physically plausible way under strong summer sunlight. | Add a charred, blackened texture around the focal point and ensure the smoke and flame originate naturally from the concentrated light spot on the brown leaf. |
| 2 | Draw what it will look like ten seconds later. | Edit the image to depict the scene ten seconds later by removing the suspended water droplets, the central splash pillar, and the concentric ripple rings. | Preserve the background mountains, the tree-covered hills, the cloudy sky, the soft natural lighting, and the original lake setting. | The final image should look calm, smooth, and undisturbed, as if the splash event has fully settled into a serene static scene. | Maintain the original low camera angle, depth of field, and color grading, and ensure the reflections on the still water align naturally with the surrounding landscape. |
| 3 | Draw what it will look like after 30 minutes. | Change the scene to show the pot after the milk has been boiling for 30 minutes, with messy frothy milk spills down the black pot and onto the gas stove grate, along with a reduced, thickened, overheated surface inside the pot. | Preserve the shape and material of the pot, the visible gas flame, the stove grate structure, the blurred background, and the original warm lighting and perspective. | The result should convey a realistic long-boiling, overheating situation with coherent interactions between milk, pot, stove, steam, and smoke. | Add bubbly and browned residue along the inner rim, mix darker smoke with the steam, and make the spilled milk follow gravity and pool plausibly on the stove surfaces. |
| 4 | The caterpillar wants to find the shortest path to the leaf. Please mark the two shortest paths in the diagram. | Mark the two shortest surface paths from the orange caterpillar at the bottom front corner of the cube to the green leaf on the top face using two distinct overlaid lines. | Preserve the original blue cube, the green leaf, the orange caterpillar, and the white background exactly as they are. | The final image should look like a clean diagrammatic solution that remains geometrically consistent with the cube’s perspective. | Draw one path across the front-left face and top face, and the other across the front-right face and top face, rendering both lines clearly and aligned to the cube surface geometry. |
| 5 | Move only two matchsticks on the left side of the equation to make the equation true. Draw the final equation. | Transform the left side of the matchstick equation so the final result reads 3 - 3 = 0 by changing the two left digits accordingly. | Preserve the minus sign, the equals sign, the digit 0 on the right, the white background, and the overall matchstick style. | The final image must show a coherent, mathematically correct, and well-aligned matchstick equation. | Turn the 8 into a 3 by removing the two left vertical matches, turn the 7 into a 3 by adding a middle and bottom horizontal match, and match the existing dark match heads and rectangular shafts. |
| 6 | Remove the water from the glass cup. | Remove the water from the glass cup so the glass interior appears empty and dry, and the tennis ball appears without liquid-induced distortion. | Preserve the “HEAD ATP” text, the fuzzy tennis-ball texture, the shape and material of the clear glass cup, and the bright cyan background. | The final result should look like a realistic dry glass container holding the ball naturally at the bottom under the same viewing conditions. | Eliminate optical refraction, magnification, and distortion from the ball, while maintaining the original lighting, shadows, and camera viewpoint. |
RL for Image Editing
Reinforcement learning for image editing trains models to follow visual instructions while preserving identity, context, and untouched regions.
See all 28 papers