Skip to main content
QUICK REVIEW

[Paper Review] Prompt Optimization Via Diffusion Language Models

Shiyu Wang, Haolin Chen|arXiv (Cornell University)|Jan 30, 2026
Topic ModelingComputer Science0 citations
TL;DR

This paper introduces a diffusion language model (DLM) framework to iteratively refine system prompts using masked denoising, conditioned on interaction traces, to improve a frozen downstream LLM without access to its gradients.

ABSTRACT

We propose a diffusion-based framework for prompt optimization that leverages Diffusion Language Models (DLMs) to iteratively refine system prompts through masked denoising. By conditioning on interaction traces, including user queries, model responses, and optional feedback, our method enables flexible, span-level prompt updates without requiring gradient access or modifying the downstream language model. Across diverse benchmarks (e.g., $τ$-bench, SST-2, SST-5), DLM-optimized prompts consistently improve the performance of a frozen target LLM (e.g., GPT-4o-mini). We further show that moderate diffusion step counts provide the best balance between refinement quality and stability. These results highlight diffusion-based prompt optimization as a general, model-agnostic, and scalable approach for enhancing LLM performance through iterative prompt refinement.

Motivation & Objective

  • Motivate and develop a diffusion-based approach for dynamic, feedback-driven prompt optimization.
  • Enable span-level system-prompt updates without modifying the downstream model or accessing its gradients.
  • Demonstrate the generality and scalability of DLM-based prompt refinement across diverse tasks.
  • Analyze the impact of diffusion steps on prompt refinement quality and stability.

Proposed method

  • Utilize Diffusion Language Models to mask and denoise targeted spans of the system prompt within an interaction trace.
  • Condition the denoising process on the user query, model output, and optional feedback.
  • Iteratively refine the masked system prompt for a fixed number of iterations without changing the target LLM.
  • Evaluate DLM-based prompt optimization against autoregressive and gradient-based prompt methods across multiple benchmarks.
  • Investigate the effect of varying diffusion step counts on refinement quality and stability.

Experimental results

Research questions

  • RQ1Can DLMs effectively optimize system prompts by iteratively masking and refining spans in response to interaction traces?
  • RQ2Does diffusion-based prompt optimization improve performance of a frozen downstream LLM across diverse tasks?
  • RQ3What is the optimal range of diffusion steps for balancing refinement quality and stability?
  • RQ4How does DLM-based prompt optimization compare to autoregressive and gradient-based prompt editing methods?
  • RQ5Is the approach generalizable across function-calling, sentiment analysis, semantic similarity, and NLI tasks?

Key findings

  • DLM-based prompt optimization yields performance gains across all evaluated domains compared to baselines.
  • Dream-7B achieved notable improvements on reasoning and structured-generation tasks (e.g., SST-5, MRPC, SNLI).
  • Compared to AR prompt optimizers and TextGrad, DLM optimization shows competitive or superior gains without requiring model gradients.
  • Performance on SST-5 rose from 0.55 to 0.67 with DLM prompts.
  • Optimal diffusion steps around 64 offer a balance between refinement quality and stability, with diminishing returns beyond that point.
  • Prompt updates can be performed by masking only portions of the system prompt, enabling span-level edits without altering the target model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.