Textualize Visual Prompt for Image Editing via Diffusion Bridge

Pengcheng Xu, Qingnan Fan, Fei Kou, Shuai Qin, Hong Gu +3 more
1/7/2025
cs.CVcs.LG

No official code found. Best implementation: Pengchengpcx/TextVDB (4 stars, last commit 2025-01-08). 1 more below.

Abstract

Visual prompt, a pair of before-and-after edited images, can convey indescribable imagery transformations and prosper in image editing. However, current visual prompt methods rely on a pretrained text-guided image-to-image generative model that requires a triplet of text, before, and after images for retraining over a text-to-image model. Such crafting triplets and retraining processes limit the scalability and generalization of editing. In this paper, we present a framework based on any single text-to-image model without reliance on the explicit image-to-image model thus enhancing the generalizability and scalability. Specifically, by leveraging the probability-flow ordinary equation, we construct a diffusion bridge to transfer the distribution between before-and-after images under the text guidance. By optimizing the text via the bridge, the framework adaptively textualizes the editing transformation conveyed by visual prompts into text embeddings without other models. Meanwhile, we introduce differential attention control during text optimization, which disentangles the text embedding from the invariance of the before-and-after images and makes it solely capture the delicate transformation and generalize to edit various images. Experiments on real images validate competitive results on the generalization, contextual coherence, and high fidelity for delicate editing with just one image pair as the visual prompt.

View on arXivView PDF

Code Implementations(2)

[AAAI2025] Textualize Visual Prompt for Image Editing via Diffusion Bridge

40Dec 15, 20241 years ago
diffusion-modelsimage-editingimage-generationtransfer-learning

Textualize visual prompt for image editing via diffusion bridge(Unofficial Implementation)

00Python, Jupyter NotebookDec 2, 202510 months ago

Similar Papers

Cite this paper

@article{xu2025textualize,
  title  = {Textualize Visual Prompt for Image Editing via Diffusion Bridge},
  author = {Pengcheng Xu and Qingnan Fan and Fei Kou and Shuai Qin and Hong Gu and Ruoyu Zhao and Charles Ling and Boyu Wang},
  year   = {2025},
  eprint = {2501.03495},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.03495v2}
}

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/2501.03495.svg)](https://codeofpaper.com/paper/2501.03495)

Discussion