All posts

research digesten May 19, 2026 4 min read

Beyond Single-Step Prompts: Structured Planning for Long-Horizon Image Editing

By kualia research desk

Modern diffusion-based image editing models have reached an impressive threshold of photorealism and prompt adherence. Tools like InstructPix2Pix, Flux Kontext, and Qwen-Image-Edit execute concrete instructions with remarkable fidelity. Ask them to "add a hat to the man" or "change the car color to red," and the results are typically convincing. Yet these systems falter when confronted with abstract, high-level objectives that require coordinated multi-step reasoning. Consider the instruction "make this advertisement more vegetarian-friendly." This demands not merely color adjustment, but semantic understanding: replacing meat products with vegetables, altering background contexts, modifying text overlays, and preserving brand identity throughout. Such tasks represent the next frontier in computational creativity, one that requires moving beyond single-step generation toward structured, executable planning.

In their paper "From Plans to Pixels: Learning to Plan and Orchestrate for Open-Ended Image Editing," Rajan and colleagues from the University of Wisconsin–Madison and Adobe Research propose a framework that explicitly decouples high-level intent from pixel-level execution through a two-stage experiential learning architecture. Their approach addresses a critical limitation in current agent-based editing systems, which typically rely on handcrafted pipelines or teacher-imitation schemes that fix execution order and decouple training from actual editing outcomes.

The Architecture of Experiential Editing

The proposed framework bifurcates the editing process into distinct planning and orchestration stages, each trained through interaction with editing tools rather than static supervision. The planner module generates structured decompositions of abstract instructions into atomic, executable subtasks. Unlike prior approaches that rely on teacher trajectories or frozen LLM prompting, this planner employs checklist-guided self-supervision, learning to generate multi-step plans from its own sampled outputs. This design choice proves crucial for mitigating distribution shift; by training on its own generated plans rather than expert demonstrations, the system avoids the compounding errors that occur when a model trained on idealized trajectories encounters its own imperfect predictions during inference.

The orchestrator functions as a policy network that grounds these abstract subtasks in specific tool invocations. Conditioned on the planner's output, it selects both the editing tool (e.g., object replacement, text modification, style transfer) and the spatial region to which it applies. Here lies the paper's most significant technical innovation: the orchestrator learns entirely from outcome-based rewards provided by a vision-language model (VLM) judge. This judge evaluates completed edits along three axes: instruction adherence, identity preservation, and visual quality. By framing tool selection as a reward maximization problem rather than classification against fixed labels, the system accommodates the inherent ambiguity of visual editing, where multiple valid solutions may satisfy the same high-level instruction.

Training such a system presents formidable challenges. No large-scale dataset exists pairing abstract instructions with multi-step editing plans, and invoking modern diffusion-based editors is computationally prohibitive, rendering standard reinforcement learning exploration intractable. The authors address this through a clever approximation: they treat trajectory reward as the sum of independently evaluated sub-task rewards. This factorization enables precomputation over tool-region pairs, transforming an exponential search over action sequences into a manageable quadratic optimization. Successful trajectories then feed back into the planner through a refinement stage that prunes infeasible subtasks, creating a closed loop where planning improves through empirical validation rather than static imitation.

Why Handcrafted Pipelines Fall Short

To appreciate the necessity of this experiential approach, one must understand the failure modes of existing agent-based editing systems. Previous methods typically employ frozen multimodal large language models (MLLMs) to generate code or API calls for specialized editing modules. While elegant, these systems rely on handcrafted heuristics that fix the relationship between high-level intent and low-level execution. They assume that "make vegetarian-friendly" always decomposes into the same sequence of operations, regardless of image content, or that tool selection can be determined syntactically from instruction text alone.

Rajan et al. identify two critical flaws in this paradigm. First, teacher-imitation approaches train planners on expert trajectories but evaluate them on the model's own generated plans. This creates a fundamental mismatch: the planner never learns to recover from its own errors or to recognize when its proposed subtasks are infeasible for a given image. Second, fixed pipelines cannot adapt to the context-dependent nature of tool selection. Replacing a background requires different operations than modifying text overlay, yet the choice between inpainting, outpainting, or generative fill depends on semantic understanding of the image content, not just the instruction string.

The experiential framework resolves these issues by grounding decisions in observed outcomes. When the orchestrator attempts a tool-region combination and receives low reward from the VLM judge, that empirical failure updates the policy. When the planner proposes a subtask that consistently yields poor orchestration results, the refinement stage removes it from future plans. This creates a system that improves through interaction with the visual world, much like human designers learn through trial and error rather than following rigid protocols.

Critical Analysis and Open Questions

While the framework represents a significant advance in long-

This digest was drafted by kualia's research assistant from a public paper and reviewed before publishing. It summarises the paper; it is not a substitute for reading it.