$p1$: Better Prompt Optimization with Fewer Prompts

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Gao, Zhaolin, Yu, Wang, Liu, Bo, Joachims, Thorsten, Brantley, Kianté, Sun, Wen
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908950904963072
author Gao, Zhaolin
Yu
Wang
Liu, Bo
Joachims, Thorsten
Brantley, Kianté
Sun, Wen
author_facet Gao, Zhaolin
Yu
Wang
Liu, Bo
Joachims, Thorsten
Brantley, Kianté
Sun, Wen
contents Prompt optimization improves language models without updating their weights by searching for a better system prompt, but its effectiveness varies widely across tasks. We study what makes a task amenable to prompt optimization. We show that the reward variance across different system prompts can be decomposed into two components: variance among responses, which captures generation stochasticity, and variance among system prompts, which captures differences in system prompt quality. Prompt optimization succeeds when variance among system prompts is sufficiently large, but fails when variance among responses dominates the variance of the system prompts. Surprisingly, we further show that scaling to more user prompts can hurt optimization by reducing variance among system prompts, especially on heterogeneous datasets where different user prompts favor different system prompts. Motivated by this insight, we propose $p1$, a simple user prompt filtering method that selects a small subset of user prompts with high variance across candidate system prompts. This subset of user prompts allows one to distinguish a good system prompt from a bad one, making system optimization easier. Experiments on reasoning benchmarks show that $p1$ substantially improves prompt optimization over training on the full dataset and outperforms strong baselines such as GEPA. Notably, training on only two prompts from AIME 24 yields a system prompt that generalizes well to other reasoning benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2604_08801
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle $p1$: Better Prompt Optimization with Fewer Prompts
Gao, Zhaolin
Yu
Wang
Liu, Bo
Joachims, Thorsten
Brantley, Kianté
Sun, Wen
Machine Learning
Computation and Language
Prompt optimization improves language models without updating their weights by searching for a better system prompt, but its effectiveness varies widely across tasks. We study what makes a task amenable to prompt optimization. We show that the reward variance across different system prompts can be decomposed into two components: variance among responses, which captures generation stochasticity, and variance among system prompts, which captures differences in system prompt quality. Prompt optimization succeeds when variance among system prompts is sufficiently large, but fails when variance among responses dominates the variance of the system prompts. Surprisingly, we further show that scaling to more user prompts can hurt optimization by reducing variance among system prompts, especially on heterogeneous datasets where different user prompts favor different system prompts. Motivated by this insight, we propose $p1$, a simple user prompt filtering method that selects a small subset of user prompts with high variance across candidate system prompts. This subset of user prompts allows one to distinguish a good system prompt from a bad one, making system optimization easier. Experiments on reasoning benchmarks show that $p1$ substantially improves prompt optimization over training on the full dataset and outperforms strong baselines such as GEPA. Notably, training on only two prompts from AIME 24 yields a system prompt that generalizes well to other reasoning benchmarks.
title $p1$: Better Prompt Optimization with Fewer Prompts
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2604.08801