P3: Prompts Promote Prompting

Xinyu Zhang, Yuanquan Hu, Fangchao Liu, Zhicheng Dou
7/21/2025
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Current large language model (LLM) applications often employ multi-component prompts, comprising both system and user prompts, to guide model behaviors. While recent advancements have demonstrated the efficacy of automatically optimizing either the system or user prompt to boost performance, such unilateral approaches often yield suboptimal outcomes due to the interdependent nature of these components. In this work, we introduce P3, a novel self-improvement framework that concurrently optimizes both system and user prompts through an iterative process. The offline optimized prompts are further leveraged to promote online prompting by performing query-dependent prompt optimization. Extensive experiments on general tasks (e.g., Arena-hard and Alpaca-eval) and reasoning tasks (e.g., GSM8K and GPQA) demonstrate that P3 achieves superior performance in the realm of automatic prompt optimization. Our results highlight the effectiveness of a holistic optimization strategy in enhancing LLM performance across diverse domains.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2025prompts,
  title  = {P3: Prompts Promote Prompting},
  author = {Xinyu Zhang and Yuanquan Hu and Fangchao Liu and Zhicheng Dou},
  year   = {2025},
  eprint = {2507.15675},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.15675v1}
}

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

Discussion