Image Editing As Programs with Diffusion Models

Yu-Jia Hu, Song-Hua Liu, Zhen-Xiong Tan, Xing-Yi Yang, Xin-Chao Wang
6/1/2025
12 citations
diffusion-flow

No official code found. Best implementation: YujiaHu1109/IEAP (121 stars).

Abstract

While diffusion models have achieved remarkable success in text-to-image generation, they encounter significant challenges with instruction-driven image editing. Our research highlights a key challenge: these models particularly struggle with structurally inconsistent edits that involve substantial layout changes.

Show full abstract

To mitigate this gap, we introduce Image Editing As Programs (IEAP), a unified image editing framework built upon the Diffusion Transformer (DiT) architecture. At its core, IEAP approaches instructional editing through a reductionist lens, decomposing complex editing instructions into sequences of atomic operations. Each operation is implemented via a lightweight adapter sharing the same DiT backbone and is specialized for a specific type of edit. Programmed by a vision-language model (VLM)-based agent, these operations collaboratively support arbitrary and structurally inconsistent transformations. By modularizing and sequencing edits in this way, IEAP generalizes robustly across a wide range of editing tasks, from simple adjustments to substantial structural changes. Extensive experiments demonstrate that IEAP significantly outperforms state-of-the-art methods on standard benchmarks across various editing scenarios. In these evaluations, our framework delivers superior accuracy and semantic fidelity, particularly for complex, multi-step instructions. Codes are available at https://github.com/YujiaHu1109/IEAP.

View on arXivView PDF

Code Implementations(1)

YujiaHu1109/IEAPCommunity100%

[NeurIPS 2025] IEAP: Image Editing As Programs with Diffusion Models

1215

Similar Papers

Cite this paper

@article{hu2025image,
  title  = {Image Editing As Programs with Diffusion Models},
  author = {Yu-Jia Hu and Song-Hua Liu and Zhen-Xiong Tan and Xing-Yi Yang and Xin-Chao Wang},
  year   = {2025},
  eprint = {2506.04158},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2506.04158},
  url    = {https://doi.org/10.48550/arXiv.2506.04158},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.04158.svg)](https://codeofpaper.com/paper/2506.04158)

Discussion