paper-with-me

Papers

DDPT: Diffusion-Driven Prompt Tuning for Large Language Model Code Generation

2025-04-06 · Jinyang Li, Sangwon Hyun, M. Ali Babar

Large Language Models (LLMs) have demonstrated remarkable capabilities in code generation. However, the quality of the generated code is heavily dependent on the structure and composition of the prompts used. Crafting high-quality prompts is a challenging task that requires significant knowledge and skills of prompt engineering. To advance the automation support for the prompt engineering for LLM-based code generation, we propose a novel solution Diffusion-Driven Prompt Tuning (DDPT) that learns how to generate optimal prompt embedding from Gaussian Noise to automate the prompt engineering for code generation. We evaluate the feasibility of diffusion-based optimization and abstract the optimal prompt embedding as a directional vector toward the optimal embedding. We use the code generation loss given by the LLMs to help the diffusion model capture the distribution of optimal prompt embedding during training. The trained diffusion model can build a path from the noise distribution to the optimal distribution at the sampling phrase, the evaluation result demonstrates that DDPT helps improve the prompt optimization for code generation.

📄 PDF Abstract BibTeX arXiv:2504.04351

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationLanguage ModelingLanguage ModellingLarge Language ModelPrompt Engineering

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

BLIP-Diffusion: Pre-trained Subject Representation for Controllable Text-to-Image Generation and Editing

2023-05-24 · NeurIPS 2023 11 · Dongxu Li, Junnan Li, Steven C. H. Hoi

Subject-driven text-to-image generation models create novel renditions of an input subject based on text prompts. Existing models suffer from lengthy fine-tuning and difficulties preserving the subject fidelity. To overc…

Image GenerationPersonalized Image GenerationRepresentation LearningText to Image Generation+1

UNIMO-G: Unified Image Generation through Multimodal Conditional Diffusion

2024-01-24 · Wei Li, Xue Xu, Jiachen Liu, Xinyan Xiao

Existing text-to-image diffusion models primarily generate images from text prompts. However, the inherent conciseness of textual descriptions poses challenges in faithfully synthesizing images with intricate details, su…

Conditional Image GenerationDenoisingImage GenerationImage Segmentation+6

Prompt Tuning Inversion for Text-Driven Image Editing Using Diffusion Models

2023-05-08 · ICCV 2023 1 · Wenkai Dong, Song Xue, Xiaoyue Duan, Shumin Han

Recently large-scale language-image models (e.g., text-guided diffusion models) have considerably improved the image generation capabilities to generate photorealistic images in various domains. Based on this success, cu…

Image Generation

Controlling Text-to-Image Diffusion by Orthogonal Finetuning

2023-06-12 · NeurIPS 2023 11 · Zeju Qiu, Weiyang Liu, Haiwen Feng, Yuxuan Xue 외

Large text-to-image diffusion models have impressive capabilities in generating photorealistic images from text prompts. How to effectively guide or control these powerful models to perform different downstream tasks bec…

TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition

2023-07-24 · ICCV 2023 1 · Shilin Lu, Yanzhu Liu, Adams Wai-Kin Kong

Text-driven diffusion models have exhibited impressive generative capabilities, enabling various image editing tasks. In this paper, we propose TF-ICON, a novel Training-Free Image COmpositioN framework that harnesses th…

Image-Guided CompositionText-to-Image Generation