Saved in:
Bibliographic Details
Main Authors: Zhang, Xinyu, Hu, Yuanquan, Liu, Fangchao, Dou, Zhicheng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.15675
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911067642265600
author Zhang, Xinyu
Hu, Yuanquan
Liu, Fangchao
Dou, Zhicheng
author_facet Zhang, Xinyu
Hu, Yuanquan
Liu, Fangchao
Dou, Zhicheng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_15675
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle P3: Prompts Promote Prompting
Zhang, Xinyu
Hu, Yuanquan
Liu, Fangchao
Dou, Zhicheng
Computation and Language
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.
title P3: Prompts Promote Prompting
topic Computation and Language
url https://arxiv.org/abs/2507.15675