Visually Guided Decoding: Gradient-Free Hard Prompt Inversion with Language Models

Donghoon Kim, Minji Bae, Kyuhong Shim, B. Shim
2/12/2026

No official code found. Best implementation: DonghoonKim-1938/VGD (2 stars, MIT, last commit 2025-07-09).

Abstract

Text-to-image generative models like DALL-E and Stable Diffusion have revolutionized visual content creation across various applications, including advertising, personalized media, and design prototyping. However, crafting effective textual prompts to guide these models remains challenging, often requiring extensive trial and error. Existing prompt inversion approaches, such as soft and hard prompt techniques, are not so effective due to the limited interpretability and incoherent prompt generation. To address these issues, we propose Visually Guided Decoding (VGD), a gradient-free approach that leverages large language models (LLMs) and CLIP-based guidance to generate coherent and semantically aligned prompts. In essence, VGD utilizes the robust text generation capabilities of LLMs to produce human-readable prompts. Further, by employing CLIP scores to ensure alignment with user-specified visual concepts, VGD enhances the interpretability, generalization, and flexibility of prompt generation without the need for additional training. Our experiments demonstrate that VGD outperforms existing prompt inversion techniques in generating understandable and contextually relevant prompts, facilitating more intuitive and controllable interactions with text-to-image models.

View on arXivView PDF

Code Implementations(1)

MIT
22Shell, PythonJul 8, 20251 years agoMIT

Similar Papers

Cite this paper

@article{kim2026visually,
  title  = {Visually Guided Decoding: Gradient-Free Hard Prompt Inversion with Language Models},
  author = {Donghoon Kim and Minji Bae and Kyuhong Shim and B. Shim},
  year   = {2026},
  eprint = {2505.08622},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.08622},
  journal = {ICLR 2025 2025}
}

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

Discussion