NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Imagine Before You Draw: Visual Prompt Engineering for Image Generation

Liyu Jia, Fengda Zhang, Jiachun Pan, Kesen Zhao, Saining Zhang, Wang Lin, Weijia Wu, Yue Liao, Aojun Zhou, Hanwang Zhang

NeurIPS page · OpenReview · Open on the map

Category: Diffusion & Image Generation › Training-Free Diffusion Image Editing · Type: new method · Keywords: visual prompt engineering, image generation, semantic tokens, text-to-image, editing preservation

Areas: Multimodal › Multimodal Creation and Editing › Diffusion-Based Image Generation; Generative Models (Diffusion & Flows) › Visual Editing and Conditioning › Text-to-Image Conditioning

Summary

Visual Prompt Engineering (VPE) generates visual semantic tokens as intermediate prompts to improve image generation quality and editing preservation.

Explained to a 5-year-old

We look at a picture and think about what should be there. Then we draw the picture step by step using those thoughts. This helps the drawing be clearer and easier to change. It works for making new pictures and fixing old ones. It makes the pictures look better and keep their details.

Explained to a 5-year-old, longer

When we want to draw something, we first imagine what it should look like. We write down the main ideas of that picture in a simple form. Then we use those ideas as a guide while we actually draw. This way the drawing follows the plan and becomes more accurate. It also makes it easier to change parts of the picture later. The method works for brand-new drawings and for editing pictures we already have. It helps the picture stay clear even after we cut or move things around. By thinking before we draw, we can make the picture look nicer and more detailed. This approach lets us create better images and fix them without losing quality. It is simple enough that anyone can try it to improve their artwork. The idea is useful for both learning to draw and for professional design work. It turns a messy sketch into a clear, editable image.

For a technical reader

The paper proposes generating semantic tokens as an intermediate step before producing image tokens, allowing the model to jointly consider the plan and the image. This reduces the gap between text descriptions and pixel outputs, improving fidelity and editability. By integrating the token generation inside the model, information bottlenecks present in two-stage pipelines are avoided. Experiments show higher PSNR on editing tasks and faster convergence compared to external approaches. The technique is architecture-agnostic and can be applied to various diffusion-based generators.

Problem

Existing image generation models struggle with the text-to-pixel modeling gap, and two-stage pipelines that separate semantic planning from diffusion decoding suffer from information bottlenecks that limit detail preservation, especially in editing tasks.

Method

The approach first autoregressively generates visual semantic tokens (e.g., SigLIP 2) that capture a semantic layout, then uses these tokens as conditioning to generate full image tokens within a single model, enabling cross-modal interaction and reducing the modeling gap.

Results

The approach achieves a PSNR of 26.76 versus 19.92 on editing preservation and accelerates convergence while maintaining competitive editing responsiveness.

Contributions

It introduces intermediate visual semantic token generation that can be integrated into existing internal frameworks, improving generation quality, convergence speed, and editing preservation compared to external two-stage pipelines.

Practical relevance

The method enables higher-quality image synthesis and more reliable editing with reduced computational overhead, benefiting applications such as content creation and design.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction