Beyond Aggregate Accuracy: Item-Level Transitions in Prompt Optimization

arXiv cs.LG Papers

Summary

提出了 Reflective Feedback-Driven Prompt Optimization (RFDPO),通过追踪 item 级别的恢复、回退和波动来评估自动提示优化,发现整体准确率可能掩盖大量变化,建议同时报告恢复、回归、churn 和未见数据上的表现。

arXiv:2610.19084v1 Announce Type: new Abstract: Automatic prompt optimization (APO) uses feedback from model responses to improve prompts automatically. However, its effectiveness is usually measured through overall scores, which do not reveal which questions become correct, which previously correct answers become wrong, or whether improvements extend to unseen questions. We introduce Reflective Feedback-Driven Prompt Optimization (RFDPO), a tool that tracks recoveries (incorrect to correct), regressions (correct to incorrect), and churn (all changed outcomes). RFDPO uses this feedback to guide subsequent revisions and records prompt changes throughout optimization. We evaluate RFDPO across five benchmarks covering law, knowledge, instruction following, mathematics, and privacy, using GPT-5 as the optimizer and GPT-4o-mini and GPT-4.1 Mini as solvers. Our results show that overall accuracy can hide substantial changes: in five of nine configurations, churn was at least five times the absolute net change, and a single-item net change concealed up to 17 changed outcomes. Average validation gains were 7.9 percentage points, compared with 5.2 points on held-out tests. In a controlled ablation on LegalBench-Hearsay, item-level feedback reduced churn by 40% ($p=0.024$) while maintaining similar net gains. These findings motivate reporting recovery, regression, churn, and performance on unseen data alongside overall accuracy.
Original Article
View Cached Full Text

Cached at: 10/15/26, 06:50 AM

# Beyond Aggregate Accuracy: Item-Level Transitions in Prompt Optimization
Source: [https://arxiv.org/html/2610.19084](https://arxiv.org/html/2610.19084)
Tarek MahmudAffiliation:Texas A&M University–Kingsville, Kingsville, Texas, USADepartment of Computer Science & EngineeringRajshahi University of Engineering & TechnologyRajshahiBangladesh

###### Abstract

Automatic prompt optimization \(APO\) uses feedback from model responses to improve prompts automatically\. However, its effectiveness is usually measured through overall scores, which do not reveal which questions become correct, which previously correct answers become wrong, or whether improvements extend to unseen questions\. We introduce Reflective Feedback\-Driven Prompt Optimization \(RFDPO\), a tool that tracks recoveries \(incorrect to correct\), regressions \(correct to incorrect\), and churn \(all changed outcomes\)\. RFDPO uses this feedback to guide subsequent revisions and records prompt changes throughout optimization\. We evaluate RFDPO across five benchmarks covering law, knowledge, instruction following, mathematics, and privacy, using GPT\-5 as the optimizer and GPT\-4o\-mini and GPT\-4\.1 Mini as solvers\. Our results show that overall accuracy can hide substantial changes: in five of nine configurations, churn was at least five times the absolute net change, and a single\-item net change concealed up to 17 changed outcomes\. Average validation gains were 7\.9 percentage points, compared with 5\.2 points on held\-out tests\. An exploratory ablation showed that item\-level feedback reduced churn but did not improve test accuracy\. These findings motivate reporting recovery, regression, churn, and performance on unseen data alongside overall accuracy\.

## 1Introduction

![Refer to caption](https://arxiv.org/html/2610.19084v1/figures/fdpo2.png)Figure 1:The RFDPO loop\. The solver evaluates prompts on mining setMMand validation setVV\. From the second round, the optimizer receives the item\-level effect of its previous edit before proposing a new prompt\. Every changed candidate is committed, and RFDPO returns the candidate with the highest validation accuracy, breaking ties by mining accuracy\. Test setTTis excluded from feedback and selection and evaluated only for the seed and the returned prompt\.Large language models \(LLMs\) are increasingly used for document classification, information extraction, question answering, and instruction\-following tasks\. Their behavior is commonly controlled through natural\-language prompts that specify task instructions, relevant context, constraints, and expected output formats\. However, even minor changes in prompt wording or structure can substantially affect model performance\([Sclar et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib8)\)\. Developing effective prompts therefore often requires repeated revisions and evaluations\. Automatic prompt optimization \(APO\) seeks to automate this process by iteratively refining prompts using feedback from model outputs\([Zhou et al\., 2023b](https://arxiv.org/html/2610.19084#bib.bib34);[Yang et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib33);[Pryzant et al\., 2023](https://arxiv.org/html/2610.19084#bib.bib14)\)\. In LLM\-based APO, an optimizer proposes prompt revisions based on evaluation feedback, while a solver executes the task using the revised instructions\.

Despite advances in APO, evaluating optimization effectiveness remains challenging\. Existing studies primarily report aggregate performance before and after optimization, such as accuracy improvements on benchmark datasets\. Although these metrics indicate whether a revised prompt performs better overall, they do not reveal which previously incorrect examples were fixed or which correct examples became incorrect\. This distinction is important for practical LLM applications, where prompt revisions may introduce unexpected failures even when overall performance improves\. For example,[Ma et al\. \(2024\)](https://arxiv.org/html/2610.19084#bib.bib10)found that 10\.9% of individual predictions regressed across hosted LLM API updates for toxicity detection, and previously correct predictions broke in 87\.9% of cases where aggregate accuracy improved\. Developers have also reported difficulties debugging inconsistent LLM behavior across prompt variations\([Errica et al\., 2025](https://arxiv.org/html/2610.19084#bib.bib11)\)\. These observations highlight the importance of examining behavioral changes beyond aggregate scores\.

Consider two prompt revisions that each improve accuracy by two examples\. The first may correct two previously incorrect examples without introducing new failures, while the second may correct ten examples but break eight previously correct ones\. Although both revisions achieve the same net improvement, their effects on individual examples differ substantially\. Aggregate accuracy alone cannot distinguish these outcomes, making it difficult to assess the trade\-offs introduced by optimization or identify which changes should inform subsequent revisions\.

Another concern is whether improvements observed during optimization generalize to unseen examples\. APO methods commonly select prompts using validation performance, and some also expose validation examples as optimization feedback\. Consequently, improvements on these tuning examples may not translate into comparable improvements on held\-out data\([Recht et al\., 2019](https://arxiv.org/html/2610.19084#bib.bib7)\)\. Understanding prompt optimization therefore requires examining both item\-level behavioral changes and the relationship between tuning and test performance\.

To address these concerns, we introduce*Reflective Feedback\-Driven Prompt Optimization*\(RFDPO\), an auditable prompt optimization tool that explicitly tracks the effects of individual prompt revisions \(Figure[1](https://arxiv.org/html/2610.19084#S1.F1)\)\. RFDPO identifies*recoveries*\(incorrect\-to\-correct transitions\),*regressions*\(correct\-to\-incorrect transitions\), and*churn*\(the total number of changed outcomes\)\. Unlike approaches that primarily use aggregate scores, current errors, or execution traces to guide revisions, RFDPO returns the observed consequences of the preceding edit to the optimizer\. Beginning with the second round, this feedback identifies recovered and regressed examples, their associated outputs, and the prompt sections modified by the previous revision\. RFDPO also records prompt versions, evaluation outcomes, and resource consumption to support analysis of optimization trajectories\.

We evaluate RFDPO on five benchmarks—LegalBench\-Hearsay, MMLU, IFBench, AIME, and PUPA—using GPT\-4o\-mini and GPT\-4\.1 Mini as solver models\. Our results show that aggregate accuracy can conceal substantial behavioral changes: in five of nine configurations, churn was at least five times the absolute net change, and a single\-item net change concealed up to 17 changed outcomes\. Across edited\-prompt returns, average held\-out test improvements were approximately 61% of average validation improvements\. We further examine how prompt revisions evolve across optimization rounds\. An exploratory ablation on LegalBench\-Hearsay shows that providing item\-level feedback is associated with approximately 40% lower mining\-set churn at similar net gains, although it does not improve test accuracy\.

Our main contributions are:

- •An auditable prompt optimization tool\.We develop RFDPO, which incorporates item\-level recovery and regression feedback into iterative prompt revision and records prompt versions, evaluation outcomes, and resource consumption \(§[3](https://arxiv.org/html/2610.19084#S3)\)\.
- •An empirical characterization of prompt revisions\.We analyze recovery, regression, and churn across five benchmarks, demonstrating how aggregate accuracy conceals changes in individual outcomes and how validation improvements differ from held\-out test performance \(§[5](https://arxiv.org/html/2610.19084#S5)\)\.
- •An analysis of feedback and editing behavior\.We examine prompt modifications across optimization rounds and conduct an exploratory ablation to investigate how item\-level feedback affects outcome churn\. Based on these findings, we discuss implications for evaluating and reporting APO behavior \(§[5\.3](https://arxiv.org/html/2610.19084#S5.SS3), §[6](https://arxiv.org/html/2610.19084#S6)\)\.

Overall, our findings motivate incorporating recovery, regression, churn, and validation\-to\-test transfer into the evaluation of automatic prompt optimization, alongside conventional aggregate performance metrics\.

## 2Related Work

#### Automatic prompt optimization\.

Automatic prompt optimization \(APO\) has been explored through discrete token search\([Shin et al\., 2020](https://arxiv.org/html/2610.19084#bib.bib4)\), instruction generation and selection\([Zhou et al\., 2023b](https://arxiv.org/html/2610.19084#bib.bib34)\), LLM\-based optimization\([Yang et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib33)\), textual gradients\([Pryzant et al\., 2023](https://arxiv.org/html/2610.19084#bib.bib14);[Yuksekgonul et al\., 2025](https://arxiv.org/html/2610.19084#bib.bib15)\), and evolutionary approaches\([Guo et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib16);[Fernando et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib17)\)\. Other methods optimize multi\-stage pipelines or structured prompts\([Opsahl\-Ong et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib18);[Schnabel and Neville, 2024](https://arxiv.org/html/2610.19084#bib.bib19);[Khattab et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib27)\)\. Among these, MPO\([Sharma and Henley, 2026](https://arxiv.org/html/2610.19084#bib.bib6)\)uses the same five\-section prompt structure as RFDPO and applies section\-local textual gradients\. More closely related to our feedback mechanism, GEPA\([Agrawal et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib3)\)uses reflective prompt mutation and Pareto\-based selection, while Trace2Policy\([Zha et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib20)\)clusters errors and applies a regression gate when refining decision rules\. Self\-feedback methods also guide revisions through verbal critiques\([Madaan et al\., 2023](https://arxiv.org/html/2610.19084#bib.bib35);[Shinn et al\., 2023](https://arxiv.org/html/2610.19084#bib.bib36)\)\. While existing methods use scored histories, execution traces, or regression checks to guide optimization, RFDPO explicitly returns the observed item\-level consequences of the preceding edit to the optimizer, identifying recovered and regressed examples and the prompt sections modified\. Unlike regression\-gated approaches, RFDPO retains changed candidates even when validation performance decreases, allowing subsequent revisions to build on earlier edits while recording their effects\.

#### Behavioral evaluation and regression tracking\.

Aggregate accuracy can conceal important changes in model behavior\. CheckList\([Ribeiro et al\., 2020](https://arxiv.org/html/2610.19084#bib.bib5)\)demonstrates the limitations of aggregate evaluation, while negative flips have motivated regression\-free model updating\([Yan et al\., 2021](https://arxiv.org/html/2610.19084#bib.bib2)\)\. Paired outcome comparisons also have a long history in statistical evaluation\([McNemar, 1947](https://arxiv.org/html/2610.19084#bib.bib1)\)\. For LLM applications,[Ma et al\. \(2024\)](https://arxiv.org/html/2610.19084#bib.bib10)highlight how previously correct behavior can break following API updates\. Related studies show that small prompt changes can alter model predictions\([Salinas and Morstatter, 2024](https://arxiv.org/html/2610.19084#bib.bib12)\), motivating sensitivity and consistency measures\([Errica et al\., 2025](https://arxiv.org/html/2610.19084#bib.bib11)\)\. However, some apparent prompt sensitivity may result from evaluation artifacts\([Hua et al\., 2025](https://arxiv.org/html/2610.19084#bib.bib13)\)\. Unlike evaluations of prompt perturbations or model updates, our work tracks labeled recoveries and regressions across successive prompt optimization revisions using benchmark\-specific correctness criteria\. We additionally measure churn to distinguish the extent of behavioral change from the net accuracy difference\. This distinction is particularly relevant when several recovered examples are offset by regressions, leaving aggregate performance nearly unchanged\.

#### Evaluation protocols and generalization\.

Prompt optimization results depend on evaluation settings, including data splits, solver models, baseline prompts, and feedback availability\. Consequently, published APO scores are not directly comparable across different protocols \(Appendix[A\.3](https://arxiv.org/html/2610.19084#A1.SS3), Table[6](https://arxiv.org/html/2610.19084#A1.T6)\)\. Moreover, improvements on tuning data may not generalize to unseen examples\([Recht et al\., 2019](https://arxiv.org/html/2610.19084#bib.bib7)\), and benchmark contamination presents additional evaluation concerns\([Oren et al\., 2023](https://arxiv.org/html/2610.19084#bib.bib9)\)\. Test\-set exposure is particularly relevant: Trace2Policy reports a refinement round informed by held\-out errors\([Zha et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib20)\)\. In our diagnostic experiment, providing test examples as feedback yielded an accuracy of 95\.3%, compared with 73\.4% when they were withheld \(Appendix[D\.2](https://arxiv.org/html/2610.19084#A4.SS2)\)\. This diagnostic illustrates the importance of distinguishing optimization feedback from held\-out evaluation\. RFDPO excludes test examples from feedback and prompt selection within each optimization run\. Because validation examples also contribute feedback, we treat validation performance as a tuning measure and separately report performance changes on test examples to examine generalization\.

## 3RFDPO

We introduce Reflective Feedback\-Driven Prompt Optimization \(RFDPO\) that uses item\-level evaluation outcomes to guide prompt revisions\. RFDPO extends conventional feedback\-driven optimization by explicitly identifying examples that become correct or incorrect after each revision and returning these changes to the optimizer\. Figure[1](https://arxiv.org/html/2610.19084#S1.F1)illustrates the overall workflow\.

### 3\.1Prompt Representation and Evaluation

RFDPO uses a solver LLM to execute tasks and an optimizer LLM to revise prompts, without modifying the solver’s parameters\. Following MPO\([Sharma and Henley, 2026](https://arxiv.org/html/2610.19084#bib.bib6)\), each prompt contains five sections: System Role, Context, Task Details, Constraints, and Output Format\. These sections remain fixed throughout optimization, allowing RFDPO to track which parts of a prompt are modified\.

The tool operates on three disjoint sets: mining \(MM\), validation \(VV\), and test \(TT\)\. Mining examples provide feedback for prompt revisions, while validation examples are used for candidate selection and, from the second round, also contribute feedback\. The test set is excluded from optimization and evaluated only with the initial and returned prompts\.

### 3\.2Item\-Level Transition Tracking

RFDPO measures the effect of each revision by comparing example\-level correctness before and after an edit\. Letci​\(p\)∈\{0,1\}c\_\{i\}\(p\)\\in\\\{0,1\\\}denote the observed correctness of exampleiiunder promptpp\. Given two promptsppandqqevaluated on the same example setDD, we define the recovered \(RR\) and regressed \(GG\) examples as

R=\{i∈D:ci\(p\)=0,ci\(q\)=1\},R=\\\{i\\in D:c\_\{i\}\(p\)=0,\\ c\_\{i\}\(q\)=1\\\},\(1\)G=\{i∈D:ci\(p\)=1,ci\(q\)=0\}\.G=\\\{i\\in D:c\_\{i\}\(p\)=1,\\ c\_\{i\}\(q\)=0\\\}\.\(2\)
We further define the net changeNNand churnCCas

N=\|R\|−\|G\|,C=\|R\|\+\|G\|\.N=\|R\|\-\|G\|,\\qquad C=\|R\|\+\|G\|\.\(3\)
The net change corresponds to\|D\|\|D\|times the accuracy difference, whereas churn captures the total number of examples whose correctness changes\. Thus, revisions with the same accuracy change may exhibit substantially different recovery and regression patterns, as illustrated in Figure[2](https://arxiv.org/html/2610.19084#S3.F2)\.

Figure 2:Example of item\-level transitions\. Three examples are recovered and two regress, producing a net gain of one correct example and a churn of five\.Transitions are measured between consecutive revisions onMMandVV, and between the initial and returned prompts onTT, using matched evaluable example IDs\.

### 3\.3Feedback\-Driven Prompt Revision

Algorithm[1](https://arxiv.org/html/2610.19084#alg1)presents the RFDPO optimization procedure\. The solver first evaluates the initial prompt, and the optimizer generates a revision using the observed outcomes\. From the second round, the optimizer additionally receives the recoveries and regressions caused by the preceding revision onMMandVV, together with the affected questions, solver responses, gold answers, previous text of modified sections, and validation accuracy changes\.

Each valid, changed candidate is evaluated and committed as the starting point for the next round, even if its validation accuracy decreases\. This allows subsequent revisions to build on earlier edits without a regression\-based acceptance gate\.

Under best\-validation selection, RFDPO returns the committed candidate with the highest validation accuracy, breaking ties by mining accuracy and candidate order\. Once a candidate is committed, the seed is not reconsidered; if no candidate is committed, the seed is retained\.

RFDPO also records prompt versions, modified sections, item\-level outcomes, and model\-call token usage and costs\. These records support analysis of optimization trajectories, behavioral changes, and resource consumption\.

Algorithm 1RFDPO optimization with edit\-effect feedback1:seed

p0p\_\{0\}; disjoint

M,V,TM,V,T;Opt;Solve; round budget

BB
2:

s0,v0←Solve​\(p0,M\),Solve​\(p0,V\)s\_\{0\},v\_\{0\}\\leftarrow\\textsc\{Solve\}\(p\_\{0\},M\),\\ \\textsc\{Solve\}\(p\_\{0\},V\)
3:

τ0←Solve​\(p0,T\)\\tau\_\{0\}\\leftarrow\\textsc\{Solve\}\(p\_\{0\},T\)⊳\\trianglerightbaseline; measured only

4:

ℋ←∅\\mathcal\{H\}\\leftarrow\\emptyset;

\(p,s,v\)←\(p0,s0,v0\)\(p,s,v\)\\leftarrow\(p\_\{0\},s\_\{0\},v\_\{0\}\);

ρ←∅\\rho\\leftarrow\\emptyset
5:for

t=1t=1to

BBdo

6:ifskip threshold reached, or no mining failuresthen

7:break

8:endif

9:

q←Opt​\(p,s,v,ρ\)q\\leftarrow\\textsc\{Opt\}\(p,s,v,\\rho\)⊳\\trianglerightmining items and feedback

10:if

q=pq=pthen

11:continue

12:endif

13:

s′,v′←Solve​\(q,M\),Solve​\(q,V\)s^\{\\prime\},v^\{\\prime\}\\leftarrow\\textsc\{Solve\}\(q,M\),\\ \\textsc\{Solve\}\(q,V\)
14:

ρ←\(\(R,G\)​\(s→s′\),\(R,G\)​\(v→v′\)\)\\rho\\leftarrow\(\(R,G\)\(s\\\!\\to\\\!s^\{\\prime\}\),\(R,G\)\(v\\\!\\to\\\!v^\{\\prime\}\)\)
15:append

\(q,s′,v′\)\(q,s^\{\\prime\},v^\{\\prime\}\)to

ℋ\\mathcal\{H\}⊳\\trianglerightno regression gate

16:

\(p,s,v\)←\(q,s′,v′\)\(p,s,v\)\\leftarrow\(q,s^\{\\prime\},v^\{\\prime\}\)
17:endfor

18:

p∗←p0p^\{\*\}\\leftarrow p\_\{0\}if

ℋ=∅\\mathcal\{H\}=\\emptyset; otherwise select from

ℋ\\mathcal\{H\}
19:by validation accuracy, then mining accuracy

20:

τ∗←Solve​\(p∗,T\)\\tau^\{\*\}\\leftarrow\\textsc\{Solve\}\(p^\{\*\},T\)⊳\\trianglerightmeasured only

21:return

p∗p^\{\*\}, and

\(R,G\)\(τ0→τ∗;T\)\(R,G\)\(\\tau\_\{0\}\\\!\\to\\\!\\tau^\{\*\};T\)

## 4Experimental Setup

We evaluate 5 benchmarks using RFDPO and 2 solver models, covering different task types, answer formats, and scoring criteria\. Table[1](https://arxiv.org/html/2610.19084#S4.T1)summarizes the benchmark configurations\.

### 4\.1Benchmarks

We select five benchmarks covering diverse tasks, including legal reasoning, general knowledge, instruction following, mathematical reasoning, and privacy preservation\.

LegalBench\-Hearsay\([Guha et al\., 2023](https://arxiv.org/html/2610.19084#bib.bib22)\)evaluates binary classification of statements under U\.S\. hearsay law\.

MMLU\([Hendrycks et al\., 2021](https://arxiv.org/html/2610.19084#bib.bib21)\)consists of four\-way multiple\-choice questions\. We select six subjects: college mathematics, computer security, econometrics, high school biology, philosophy, and professional law, optimizing each independently and reporting macro\-averaged accuracy\.

IFBench\([Pyatkin et al\., 2025](https://arxiv.org/html/2610.19084#bib.bib24)\)evaluates compliance with verifiable output constraints\. An example is correct only when all applicable constraints are satisfied, using a programmatic verifier\.\([Zhou et al\., 2023a](https://arxiv.org/html/2610.19084#bib.bib23)\)\.

AIME\([Mathematical Association of America, 2025](https://arxiv.org/html/2610.19084#bib.bib32)\)evaluates mathematical reasoning with integer answers between 0 and 999\. We use problems from 2022–2024 for optimization and the 30 problems from 2025 for testing\.

PUPA\([Li et al\., 2025](https://arxiv.org/html/2610.19084#bib.bib25)\)evaluates privacy\-conscious delegation to an external LLM\. We optimize only the query\-redaction prompt\. Correctness requires a composite score\(quality\+1−leakage\)/2\(\\mathrm\{quality\}\+1\-\\mathrm\{leakage\}\)/2of at least0\.70\.7\.

Table 1:Benchmarks and evaluation splits\. MMLU splits are per subject\. Test sizes precede provider\-block exclusions\.
### 4\.2Models and Experimental Protocol

We use GPT\-4o\-mini\([OpenAI, 2024](https://arxiv.org/html/2610.19084#bib.bib28)\)and GPT\-4\.1 Mini\([OpenAI, 2025b](https://arxiv.org/html/2610.19084#bib.bib29)\)as solvers, both with temperature00, and GPT\-5\([OpenAI, 2025a](https://arxiv.org/html/2610.19084#bib.bib30)\)as the optimizer with temperature0\.70\.7\. PUPA additionally uses a fixed GPT\-4\.1 external model and GPT\-5 as its quality judge\.

All experiments use seed00and at most three optimization rounds\. Optimization is skipped when initial mining accuracy reaches95%95\\%, except for PUPA\.

The evaluation includes 19 baseline/final records: seven non\-MMLU configurations and twelve independently optimized MMLU subjects\. Both endpoints of each matched pair are evaluated within the same run\. Two earlier AIME runs, which used a 2,048\-token output limit, are reported separately in Appendix[C\.5](https://arxiv.org/html/2610.19084#A3.SS5)and excluded from the analyses\.

We report test accuracy, validation accuracy changes, recovery, regression, and churn\. We also examine revision\-level transitions and recorded token consumption\. Detailed run configurations, scoring procedures, and optimizer instructions are provided in Appendices[A](https://arxiv.org/html/2610.19084#A1),[A\.2](https://arxiv.org/html/2610.19084#A1.SS2), and[B](https://arxiv.org/html/2610.19084#A2)\.

## 5Results

### 5\.1Item\-Level Performance Changes

We first examine how prompt optimization affects individual test examples\. Table[2](https://arxiv.org/html/2610.19084#S5.T2)reports test accuracy before and after optimization, validation accuracy changes, and the number of recovered and regressed examples\. Figure[3](https://arxiv.org/html/2610.19084#S5.F3)visualizes these transitions, while Appendix[C\.1](https://arxiv.org/html/2610.19084#A3.SS1)provides the individual accuracy records\.

Table 2:Seed\-to\-returned test accuracy, validation accuracy change, and item\-level transitions\. Green rows indicate positive test changes\. Churn percentages use evaluated test items\. MMLU accuracy is macro\-averaged across six subjects, while transitions sum 393 items\. PUPA \(38 items\) and professional law \(63 items\) exclude provider\-blocked examples\. Earlier AIME runs with other solvers are described in Appendix[C\.5](https://arxiv.org/html/2610.19084#A3.SS5)\.Figure 3:Recovered and regressed test examples across benchmarks and solvers\. Diamonds indicate net changes\. MMLU transitions are aggregated across six subjects\.Test accuracy increased in seven of the nine reported configurations, with the largest gain of 26\.3 percentage points on PUPA using GPT\-4\.1 Mini\. However, aggregate improvements do not fully represent the changes in individual predictions\.

On LegalBench\-Hearsay, a net change of only one correct example concealed 13–17 changed outcomes, corresponding to 27–35% of the test set\. Similarly, IFBench with GPT\-4\.1 Mini recovered 12 examples but regressed two, yielding a net gain of ten\. On MMLU with GPT\-4o\-mini, 54 examples changed correctness despite a net improvement of only eight\.

Across five configurations, churn was at least five times the absolute net change\. These results show that small accuracy differences can conceal substantial recovery and regression, motivating item\-level analysis alongside aggregate performance\.

### 5\.2Validation\-to\-Test Transfer

We next examine whether improvements observed during optimization transfer to held\-out test examples\. Among the 19 records, 17 returned edited prompts\. Of these, validation accuracy increased in 12, remained unchanged in three, and decreased in two\. Table[3](https://arxiv.org/html/2610.19084#S5.T3)summarizes the corresponding validation and test changes\.

Table 3:Mean validation and test accuracy changes for 17 edited\-prompt returns; two additional records retained the seed\. Means weight runs equally and are reported in percentage points\. The fourth column counts runs with improved validation accuracy but decreased test accuracy\.Of the 12 runs with improved validation accuracy, nine also improved test accuracy, while three lost one test example each\. These cases occurred on AIME with GPT\-4\.1 Mini \(\+6\.2\+6\.2validation,−3\.3\-3\.3test points\), Hearsay with GPT\-4o\-mini \(\+12\.0\+12\.0,−2\.0\-2\.0\), and MMLU computer security with GPT\-4o\-mini \(\+8\.0\+8\.0,−1\.5\-1\.5\)\.

Across the 17 edited\-prompt returns, validation accuracy improved by 7\.9 percentage points on average, compared with 5\.2 points on test data\. The test gain was therefore approximately 66% of the average validation gain\. The difference was smaller for MMLU \(\+2\.9\+2\.9validation versus\+2\.6\+2\.6test\) than for the other benchmarks \(\+15\.0\+15\.0versus\+8\.9\+8\.9\)\. Since validation examples also provide optimization feedback, these results describe the transfer of tuning gains to held\-out examples rather than improvements on an independent validation set\.

#### Verbatim overlap\.

Because the optimizer sees every failure and success on its working set, it could inflate tuning accuracy by pasting those items, or paraphrases of them, into the prompt\. Its instructions therefore forbid reusing the scenario of any shown item and prefer abstract rules \(Appendix[B](https://arxiv.org/html/2610.19084#A2)\)\. We also checked whether returned prompts contained eight\-word sequences copied from benchmark examples\. Sixteen of the 19 prompts showed no such overlap\. The remaining three contained either a generic mathematical phrase or a True/False answer template \(Appendix[D\.3](https://arxiv.org/html/2610.19084#A4.SS3)\)\. The check detects only verbatim copying; paraphrase is guarded by the instruction alone\.

### 5\.3Prompt Revision Behavior

We analyze how the optimizer modifies prompts across successive rounds\. In round 1, where no effect report of a previous edit is available, the optimizer modified an average of 4\.3 of the five prompt sections, compared with 1\.3 in rounds 2–3, where it receives recovery and regression feedback on its previous edit\. Revisions thus became more localized after the initial round\.

#### Effect\-report ablation \(exploratory\)\.

To see what the effect report contributes beyond the optimization round, we ran an exploratory ablation on LegalBench\-Hearsay using GPT\-4o\-mini\. Both conditions replayed the same round\-1 prompt and continued through rounds 2 and 3\. They differed in whether the optimizer received the item\-level effect report and its accompanying instructions \(Appendix[B\.1](https://arxiv.org/html/2610.19084#A2.SS1)\)\. We performed five runs per condition \(Appendix[C\.4](https://arxiv.org/html/2610.19084#A3.SS4)\)\.

Without the report, round\-2 revisions already modified only 1\.6 prompt sections on average, compared with 2\.0 when the report was included\. Thus, narrower edits also occur without the report\.

The report did change the number of changed outcomes\. With it, an average of 3\.1 mining examples changed correctness per round, compared with 5\.2 without it \(p=0\.024p=0\.024, exact permutation test over runs, uncorrected\)\. This average pools rounds 2 and 3, and round 3 starts from different parent prompts in the two conditions\. Both conditions achieved similar net gains of 0\.3 and 0\.2 mining examples per round, respectively\.

Test accuracy fell in both conditions, by 5\.3 and 5\.7 percentage points with and without the report, respectively, so neither condition improved test accuracy\. We therefore treat the churn difference as exploratory evidence about what item\-level feedback changes in this setting, not as evidence that it improves accuracy\.

### 5\.4Resource Consumption

Finally, we examine the computational resources recorded during optimization\. Table[4](https://arxiv.org/html/2610.19084#S5.T4)summarizes optimizer calls, token consumption, and logged inference costs across the matched configurations\.

Table 4:Inference consumption across matched configurations\. K denotes 1,000 tokens\. All\-role totals include solver, optimizer, and applicable external\-model and judge calls, including seed and final evaluations\. Costs use configured prices\. MMLU aggregates six subjects; two GPT\-4\.1 Mini subject runs skipped optimization\.Resource consumption varied considerably across tasks\. Three optimizer calls required approximately 498K input tokens for AIME with GPT\-4\.1 Mini, compared with 14K for Hearsay, a difference of roughly 35 times\. PUPA incurred additional costs from external\-model responses and quality judgments, while MMLU totals aggregate independent optimization runs across six subjects\.

These measurements document the resource requirements of RFDPO across different benchmark configurations\.

## 6Discussion

#### Beyond aggregate accuracy\.

Our findings highlight the limitations of evaluating prompt optimization solely through aggregate accuracy\. In five of the nine configurations, churn was at least five times the absolute net change, with a single\-item improvement or decline concealing up to 17 changed outcomes\. Such changes are important in practice because an optimized prompt may introduce failures on examples that previously worked\. Recovery and regression tracking makes these changes visible, allowing developers to distinguish newly corrected examples from newly introduced failures\. This aligns with regression testing for LLM applications, where previously correct behavior must be monitored as systems evolve\([Ma et al\., 2024](https://arxiv.org/html/2610.19084#bib.bib10)\)\.

#### Role of item\-level feedback\.

The optimizer made more localized revisions in later rounds, but our ablation shows that this behavior cannot be attributed solely to the effect report\. Nevertheless, providing item\-level feedback reduced average mining\-set churn from 5\.2 to 3\.1 examples per round while maintaining similar net gains\. This suggests that explicit recovery and regression feedback may help limit unintended changes without necessarily improving overall accuracy\. However, the evidence remains exploratory, as the ablation covers one benchmark and solver with five runs per condition, pools two rounds, and includes additional optimizer instructions with the report\. Test accuracy declined in both conditions, so we do not interpret the reduced churn as improved generalization\.

#### Generalization and reporting implications\.

Improvements during optimization do not necessarily transfer to unseen examples\. Across edited\-prompt returns, average test gains were approximately 61% of average validation gains, and four runs experienced test declines despite validation improvements\. Because validation examples also guide optimization, their performance should be interpreted as tuning results rather than independent evidence of generalization\. We therefore recommend reporting recovery, regression, and churn alongside validation and test accuracy, prompt versions, evaluation exclusions, and resource consumption\. These measurements can be obtained from existing item\-level evaluations without additional solver calls\. RFDPO automatically records this information, supporting more transparent analysis of prompt optimization \(Appendix[D\.4](https://arxiv.org/html/2610.19084#A4.SS4)\)\.

## 7Conclusion

Aggregate accuracy captures the overall effect of prompt optimization but obscures which examples improve or regress\. We presented RFDPO, an auditable optimizer that tracks item\-level recoveries, regressions, and churn and incorporates this feedback into subsequent revisions\. Across five benchmarks and two solver models, a single\-item net change concealed up to 17 changed outcomes, while churn was at least five times the absolute net change in five of nine configurations\. Average held\-out test gains were approximately 61% of validation gains\. An exploratory Hearsay ablation showed that item\-level feedback reduced churn at similar net gains but did not improve test accuracy\. These findings highlight that prompt optimization can introduce failures despite aggregate improvements, motivating the reporting of recovery, regression, churn, and validation\-to\-test transfer alongside accuracy\.

## Limitations

#### Evaluation scope\.

Our evaluation covers five benchmarks, two closed\-weight solvers, and one optimizer, with a single seed and relatively small test sets\. We did not evaluate open\-weight models or longer optimization trajectories\. Differences in selection rules and evaluation configurations also limit cross\-model comparisons\.

#### Evaluation variability\.

Observed recovery and regression may partly reflect model output variability rather than prompt changes, as shown by unchanged\-prompt re\-evaluations\. PUPA additionally relies on an LLM judge, while the IFBench verifier supports only a subset of constraint types\.

#### Feedback ablation\.

Our exploratory ablation covers one benchmark and solver, with five runs per condition\. It combines two optimization rounds, and the effect report includes additional optimizer instructions\. Although feedback reduced mining\-set churn, it did not improve test accuracy, and its effect may not generalize\.

#### Generalization and data exposure\.

Validation examples are used for both feedback and selection, potentially inflating tuning gains\. Test examples remain excluded from feedback within each run, but small test sets limit generalization claims\. Our verbatim\-overlap check also cannot detect paraphrased copying or semantic memorization\.

## Ethical Considerations

Data come from public benchmarks, resplit as described in Table[1](https://arxiv.org/html/2610.19084#S4.T1)\. PUPA contains personal information from public user–LLM conversations\. Hosted solver and optimizer APIs receive the original queries during evaluation and feedback; redaction protects only the designated external model\. String\-matched leakage does not capture paraphrased or inferred information\. Released traces would contain item IDs and outcomes only, without raw inputs, predictions, or gold text \(Appendix[D\.4](https://arxiv.org/html/2610.19084#A4.SS4)\)\.

## References

- Agrawalet al\.\(2026\)L\. A\. Agrawal, S\. Tan, D\. Soylu, N\. Ziems, R\. Khare, K\. Opsahl\-Ong, A\. Singhvi, H\. Shandilya, M\. J\. Ryan, M\. Jiang, C\. Potts, K\. Sen, A\. G\. Dimakis, I\. Stoica, D\. Klein, M\. Zaharia, and O\. KhattabGEPA: reflective prompt evolution can outperform reinforcement learning\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[Table 6](https://arxiv.org/html/2610.19084#A1.T6.2.11.1.1.1),[Table 6](https://arxiv.org/html/2610.19084#A1.T6.2.14.1.1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Anthropic \(2025\)AnthropicIntroducing Claude Haiku 4\.5\.Note:[https://www\.anthropic\.com/news/claude\-haiku\-4\-5](https://www.anthropic.com/news/claude-haiku-4-5)Accessed 2026Cited by:[§C\.5](https://arxiv.org/html/2610.19084#A3.SS5.p1.1)\.
- Chenet al\.\(2025\)K\. Chen, Y\. Wang, H\. Almosapeeh, and H\. WangKnowing how to edit: reliable evaluation signals for diagnosing and optimizing prompts at query level\.External Links:2511\.19829Cited by:[Table 6](https://arxiv.org/html/2610.19084#A1.T6.2.5.1.1.1)\.
- Erricaet al\.\(2025\)F\. Errica, D\. Sanvito, G\. Siracusano, and R\. BifulcoWhat did I do wrong? quantifying LLMs’ sensitivity and consistency to prompt engineering\.InProceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\),Albuquerque, New Mexico,pp\. 1543–1558\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.naacl-long.73),2406\.12334Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p2.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1)\.
- Fernandoet al\.\(2024\)C\. Fernando, D\. Banarse, H\. Michalewski, S\. Osindero, and T\. RocktäschelPromptbreeder: self\-referential self\-improvement via prompt evolution\.InProceedings of the 41st International Conference on Machine Learning \(ICML\),Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Guhaet al\.\(2023\)N\. Guha, J\. Nyarko, D\. E\. Ho, C\. Ré, A\. Chilton,et al\.LegalBench: a collaboratively built benchmark for measuring legal reasoning in large language models\.InAdvances in Neural Information Processing Systems \(NeurIPS\), Datasets and Benchmarks Track,External Links:2308\.11462Cited by:[§4\.1](https://arxiv.org/html/2610.19084#S4.SS1.p2.1)\.
- Guoet al\.\(2024\)Q\. Guo, R\. Wang, J\. Guo, B\. Li, K\. Song, X\. Tan, G\. Liu, J\. Bian, and Y\. YangConnecting large language models with evolutionary algorithms yields powerful prompt optimizers\.InThe Twelfth International Conference on Learning Representations \(ICLR\),External Links:2309\.08532Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Hendryckset al\.\(2021\)D\. Hendrycks, C\. Burns, S\. Basart, A\. Zou, M\. Mazeika, D\. Song, and J\. SteinhardtMeasuring massive multitask language understanding\.InInternational Conference on Learning Representations \(ICLR\),External Links:2009\.03300Cited by:[§4\.1](https://arxiv.org/html/2610.19084#S4.SS1.p3.1)\.
- Huaet al\.\(2025\)A\. Hua, K\. Tang, C\. Gu, J\. Gu, E\. Wong, and Y\. QinFlaw or artifact? rethinking prompt sensitivity in evaluating LLMs\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),External Links:2509\.01790Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1)\.
- Khattabet al\.\(2024\)O\. Khattab, A\. Singhvi, P\. Maheshwari, Z\. Zhang, K\. Santhanam, S\. Vardhamanan, S\. Haq, A\. Sharma, T\. T\. Joshi, H\. Moazam, H\. Miller, M\. Zaharia, and C\. PottsDSPy: compiling declarative language model calls into state\-of\-the\-art pipelines\.InInternational Conference on Learning Representations \(ICLR\),External Links:2310\.03714Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Liet al\.\(2025\)S\. Li, V\. C\. Raghuram, O\. Khattab, J\. Hirschberg, and Z\. YuPAPILLON: privacy preservation from internet\-based and local language model ensembles\.InProceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics \(NAACL\),External Links:2410\.17127Cited by:[§4\.1](https://arxiv.org/html/2610.19084#S4.SS1.p6.1)\.
- Maet al\.\(2024\)W\. Ma, C\. Yang, and C\. Kästner\(Why\) is my prompt getting worse? rethinking regression testing for evolving LLM APIs\.InProceedings of the 3rd IEEE/ACM International Conference on AI Engineering – Software Engineering for AI \(CAIN\),pp\. 166–171\.External Links:[Document](https://dx.doi.org/10.1145/3644815.3644950),2311\.11123Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p2.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1),[§6](https://arxiv.org/html/2610.19084#S6.SS0.SSS0.Px1.p1.1)\.
- Madaanet al\.\(2023\)A\. Madaan, N\. Tandon, P\. Gupta, S\. Hallinan, L\. Gao, S\. Wiegreffe, U\. Alon, N\. Dziri,et al\.Self\-refine: iterative refinement with self\-feedback\.InAdvances in Neural Information Processing Systems \(NeurIPS\),External Links:2303\.17651Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Mathematical Association of America \(2025\)Mathematical Association of AmericaAmerican Invitational Mathematics Examination \(AIME\)\.Note:[https://maa\.org/maa\-invitational\-competitions/](https://maa.org/maa-invitational-competitions/)Problems for 2022–2025 editions; accessed 2026Cited by:[§4\.1](https://arxiv.org/html/2610.19084#S4.SS1.p5.1)\.
- McNemar \(1947\)Q\. McNemarNote on the sampling error of the difference between correlated proportions or percentages\.Psychometrika12\(2\),pp\. 153–157\.External Links:[Document](https://dx.doi.org/10.1007/BF02295996)Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1)\.
- OpenAI \(2024\)OpenAIGPT\-4o system card\.External Links:2410\.21276Cited by:[§4\.2](https://arxiv.org/html/2610.19084#S4.SS2.p1.1)\.
- OpenAI \(2025a\)OpenAIGPT\-5 system card\.Note:[https://openai\.com/index/gpt\-5\-system\-card/](https://openai.com/index/gpt-5-system-card/)Accessed 2026Cited by:[§4\.2](https://arxiv.org/html/2610.19084#S4.SS2.p1.1)\.
- OpenAI \(2025b\)OpenAIIntroducing GPT\-4\.1 in the API\.Note:[https://openai\.com/index/gpt\-4\-1/](https://openai.com/index/gpt-4-1/)Accessed 2026Cited by:[§4\.2](https://arxiv.org/html/2610.19084#S4.SS2.p1.1)\.
- Opsahl\-Onget al\.\(2024\)K\. Opsahl\-Ong, M\. J\. Ryan, J\. Purtell, D\. Broman, C\. Potts, M\. Zaharia, and O\. KhattabOptimizing instructions and demonstrations for multi\-stage language model programs\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 9340–9366\.Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Orenet al\.\(2023\)Y\. Oren, N\. Meister, N\. Chatterji, F\. Ladhak, and T\. B\. HashimotoProving test set contamination in black box language models\.External Links:2310\.17623Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px3.p1.1)\.
- Pryzantet al\.\(2023\)R\. Pryzant, D\. Iter, J\. Li, Y\. Lee, C\. Zhu, and M\. ZengAutomatic prompt optimization with “gradient descent” and beam search\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),External Links:2305\.03495Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Pyatkinet al\.\(2025\)V\. Pyatkin, S\. Malik, V\. Graf, H\. Ivison, S\. Huang, P\. Dasigi, N\. Lambert, and H\. HajishirziGeneralizing verifiable instruction following\.InAdvances in Neural Information Processing Systems \(NeurIPS\), Datasets and Benchmarks Track,External Links:2507\.02833Cited by:[§4\.1](https://arxiv.org/html/2610.19084#S4.SS1.p4.1)\.
- Rechtet al\.\(2019\)B\. Recht, R\. Roelofs, L\. Schmidt, and V\. ShankarDo ImageNet classifiers generalize to ImageNet?\.InProceedings of the 36th International Conference on Machine Learning \(ICML\),External Links:1902\.10811Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p4.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px3.p1.1)\.
- Ribeiroet al\.\(2020\)M\. T\. Ribeiro, T\. Wu, C\. Guestrin, and S\. SinghBeyond accuracy: behavioral testing of NLP models with CheckList\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics \(ACL\),pp\. 4902–4912\.External Links:2005\.04118Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1)\.
- Salinas and Morstatter \(2024\)A\. Salinas and F\. MorstatterThe butterfly effect of altering prompts: how small changes and jailbreaks affect large language model performance\.External Links:2401\.03729Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1)\.
- Schnabel and Neville \(2024\)T\. Schnabel and J\. NevilleSAMMO: a general\-purpose framework for prompt optimization\.InFindings of the Association for Computational Linguistics: EMNLP 2024,External Links:2404\.02319Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Sclaret al\.\(2024\)M\. Sclar, Y\. Choi, Y\. Tsvetkov, and A\. SuhrQuantifying language models’ sensitivity to spurious features in prompt design or: how I learned to start worrying about prompt formatting\.InInternational Conference on Learning Representations \(ICLR\),External Links:2310\.11324Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p1.1)\.
- Sharma and Henley \(2026\)P\. Sharma and A\. Z\. HenleyModular prompt optimization: optimizing structured prompts with section\-local textual gradients\.External Links:2601\.04055Cited by:[Table 6](https://arxiv.org/html/2610.19084#A1.T6.2.8.1.1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1),[§3\.1](https://arxiv.org/html/2610.19084#S3.SS1.p1.1)\.
- Shinet al\.\(2020\)T\. Shin, Y\. Razeghi, R\. L\. Logan IV, E\. Wallace, and S\. SinghAutoPrompt: eliciting knowledge from language models with automatically generated prompts\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),External Links:2010\.15980Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Shinnet al\.\(2023\)N\. Shinn, F\. Cassano, E\. Berman, A\. Gopinath, K\. Narasimhan, and S\. YaoReflexion: language agents with verbal reinforcement learning\.InAdvances in Neural Information Processing Systems \(NeurIPS\),External Links:2303\.11366Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Yanet al\.\(2021\)S\. Yan, Y\. Xiong, K\. Kundu, S\. Yang, S\. Deng, M\. Wang, W\. Xia, and S\. SoattoPositive\-congruent training: towards regression\-free model updates\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),External Links:2011\.09161Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px2.p1.1)\.
- Yanget al\.\(2024\)C\. Yang, X\. Wang, Y\. Lu, H\. Liu, Q\. V\. Le, D\. Zhou, and X\. ChenLarge language models as optimizers\.InInternational Conference on Learning Representations \(ICLR\),External Links:2309\.03409Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Yuksekgonulet al\.\(2025\)M\. Yuksekgonul, F\. Bianchi, J\. Boen, S\. Liu, P\. Lu, Z\. Huang, C\. Guestrin, and J\. ZouOptimizing generative AI by backpropagating language model feedback\.Nature639,pp\. 609–616\.Cited by:[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.
- Zhaet al\.\(2026\)J\. Zha, J\. Wang, C\. Zhou, and X\. SongTrace2Policy: from expert behavior traces to self\-evolving decision agents\.External Links:2606\.10457Cited by:[Table 6](https://arxiv.org/html/2610.19084#A1.T6.2.3.1.1.1),[Table 6](https://arxiv.org/html/2610.19084#A1.T6.2.4.1.1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px3.p1.1)\.
- Zhouet al\.\(2023a\)J\. Zhou, T\. Lu, S\. Mishra, S\. Brahma, S\. Basu, Y\. Luan, D\. Zhou, and L\. HouInstruction\-following evaluation for large language models\.External Links:2311\.07911Cited by:[§4\.1](https://arxiv.org/html/2610.19084#S4.SS1.p4.1)\.
- Zhouet al\.\(2023b\)Y\. Zhou, A\. I\. Muresanu, Z\. Han, K\. Paster, S\. Pitis, H\. Chan, and J\. BaLarge language models are human\-level prompt engineers\.InInternational Conference on Learning Representations \(ICLR\),External Links:2211\.01910Cited by:[§1](https://arxiv.org/html/2610.19084#S1.p1.1),[§2](https://arxiv.org/html/2610.19084#S2.SS0.SSS0.Px1.p1.1)\.

Appendix Contents

[A](https://arxiv.org/html/2610.19084#A1)Run Configuration and Scoring\.[A](https://arxiv.org/html/2610.19084#A1)

[A\.1](https://arxiv.org/html/2610.19084#A1.SS1)Analysis Population and Settings\.[A\.1](https://arxiv.org/html/2610.19084#A1.SS1)

[A\.2](https://arxiv.org/html/2610.19084#A1.SS2)Scoring and Evaluable Items\.[A\.2](https://arxiv.org/html/2610.19084#A1.SS2)

[A\.3](https://arxiv.org/html/2610.19084#A1.SS3)Related\-Work Protocol Comparison\.[A\.3](https://arxiv.org/html/2610.19084#A1.SS3)

[B](https://arxiv.org/html/2610.19084#A2)Prompt and Feedback Specification\.[B](https://arxiv.org/html/2610.19084#A2)

[B\.1](https://arxiv.org/html/2610.19084#A2.SS1)Optimizer System Prompt\.[B\.1](https://arxiv.org/html/2610.19084#A2.SS1)

[B\.2](https://arxiv.org/html/2610.19084#A2.SS2)Task\-Specific Insertions\.[B\.2](https://arxiv.org/html/2610.19084#A2.SS2)

[B\.3](https://arxiv.org/html/2610.19084#A2.SS3)Seed Prompt Example\.[B\.3](https://arxiv.org/html/2610.19084#A2.SS3)

[B\.4](https://arxiv.org/html/2610.19084#A2.SS4)Per\-Round Feedback\.[B\.4](https://arxiv.org/html/2610.19084#A2.SS4)

[C](https://arxiv.org/html/2610.19084#A3)Detailed Results and Trajectories\.[C](https://arxiv.org/html/2610.19084#A3)

[C\.1](https://arxiv.org/html/2610.19084#A3.SS1)Paired Accuracy and Test Transitions\.[C\.1](https://arxiv.org/html/2610.19084#A3.SS1)

[C\.2](https://arxiv.org/html/2610.19084#A3.SS2)Round\-by\-Round Trajectories\.[C\.2](https://arxiv.org/html/2610.19084#A3.SS2)

[C\.3](https://arxiv.org/html/2610.19084#A3.SS3)Worked Prompt Changes\.[C\.3](https://arxiv.org/html/2610.19084#A3.SS3)

[C\.4](https://arxiv.org/html/2610.19084#A3.SS4)Effect\-Report Ablation\.[C\.4](https://arxiv.org/html/2610.19084#A3.SS4)

[C\.5](https://arxiv.org/html/2610.19084#A3.SS5)Additional AIME Runs\.[C\.5](https://arxiv.org/html/2610.19084#A3.SS5)

[D](https://arxiv.org/html/2610.19084#A4)Evaluation Checks and Artifacts\.[D](https://arxiv.org/html/2610.19084#A4)

[D\.1](https://arxiv.org/html/2610.19084#A4.SS1)Re\-evaluation of an Unchanged Prompt\.[D\.1](https://arxiv.org/html/2610.19084#A4.SS1)

[D\.2](https://arxiv.org/html/2610.19084#A4.SS2)Test\-Exposure Diagnostic\.[D\.2](https://arxiv.org/html/2610.19084#A4.SS2)

[D\.3](https://arxiv.org/html/2610.19084#A4.SS3)Verbatim\-Overlap Check\.[D\.3](https://arxiv.org/html/2610.19084#A4.SS3)

[D\.4](https://arxiv.org/html/2610.19084#A4.SS4)Artifacts and Reproducibility\.[D\.4](https://arxiv.org/html/2610.19084#A4.SS4)

## Appendix ARun Configuration and Scoring

### A\.1Analysis Population and Settings

The analysis uses 19 completed records: seven non\-MMLU runs and twelve independently optimized MMLU subjects, taking the latest completed record within each fixed run group\.

All recorded solvers use temperature 0\.0 and the GPT\-5 optimizer uses 0\.7, with at most three rounds and one optimizer call per round\. Table[5](https://arxiv.org/html/2610.19084#A1.T5)gives the configured solver output limits and splits for both solvers\. The response ledgers identify GPT\-4o\-mini\-2024\-07\-18, GPT\-4\.1\-mini\-2025\-04\-14, and GPT\-5\-2025\-08\-07; some entries retain model aliases rather than dated identifiers\. PUPA additionally uses GPT\-4\.1 as its fixed external model and GPT\-5 as judge\.

Table 5:Recorded settings for the matched runs\. Solver limit is the configured maximum output tokens, not observed consumption\. Assigned pools precede provider\-block exclusions: GPT\-4o\-mini IFBench evaluates 19 validation items and GPT\-4\.1 Mini evaluates 25 mining items\. Actual resource use is in Table[4](https://arxiv.org/html/2610.19084#S5.T4)\.#### Candidate handling\.

Every changed candidate is committed and becomes the next parent\. Best\-validation selection compares committed candidates, breaking ties by mining accuracy and then retaining the earlier candidate; the seed is excluded once a candidate commits\. Eight matched runs used final\-round selection instead \(GPT\-4o\-mini PUPA, IFBench, and six MMLU subjects\)\. Optimization is skipped at seed mining accuracy≥0\.95\\geq 0\.95, except on PUPA\. This retained the seed for GPT\-4\.1 Mini college mathematics and biology\. IFBench with GPT\-4\.1 Mini proposed no change in round 2\.

### A\.2Scoring and Evaluable Items

#### Answer extraction\.

MMLU and Hearsay outputs are scored by extractingAnswer: <letter\>andAnswer: Yes/No, respectively, and comparing with the gold label\. AIME uses exact integer match on\#\#\#\# <number\>\(0–999\)\. Visible reasoning before these answer markers is not itself scored\. IFBench checks only the content followingFINAL RESPONSE:; an item passes when every supported constraint is satisfied\. The verifier implements 32 of the 83 constraint types in IFEval and IFBench combined, and evaluated items use the supported types\.

#### PUPA pipeline and metrics\.

The optimized solver prompt rewrites a private query into a redacted request\. Fixed GPT\-4\.1 answers that request; the solver then synthesizes a final answer under a fixed instruction, using the original query and external response\. Leakage is the fraction of annotated PII strings present in the redacted request\. A GPT\-5 judge scores final\-answer quality against the reference on a 0–1 scale, with up to 4,096 completion tokens\. An item is correct when the composite\(quality\+1−leakage\)/2\(\\text\{quality\}\+1\-\\text\{leakage\}\)/2reaches 0\.7; reported PUPA accuracy uses this criterion\. Only the rewrite prompt is optimized\.

#### Denominators and accounting\.

Provider\-blocked items are excluded rather than scored as incorrect: PUPA evaluates 38 of 40 test items and MMLU professional law 63 of 66, identically for both solvers\. Transitions are computed over common evaluated IDs, soΔ​acc=\(\|R\|−\|G\|\)/\|D\|\\Delta\\mathrm\{acc\}=\(\|R\|\-\|G\|\)/\|D\|andC=\|R\|\+\|G\|=\|N\|\+2​min⁡\(\|R\|,\|G\|\)C=\|R\|\+\|G\|=\|N\|\+2\\min\(\|R\|,\|G\|\); MMLU transitions sum subjects while its accuracy is macro\-averaged\.

### A\.3Related\-Work Protocol Comparison

Table[6](https://arxiv.org/html/2610.19084#A1.T6)expands the protocol comparison in Related Work\. Rows differ in task variant, baseline, data, models, and feedback, so the reported changes describe each protocol rather than rank optimizers\.

WorkItems: optimization / validation / testSolver modelsFeedback and optimizerReported change \(%\)LegalBench\-HearsayTrace2Policy, human\-written refinements\([Zha et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib20)\)30 iteration / 64 held\-out, from 94 itemsClaude Opus 4\.6, Haiku 4\.5, Kimi K2\.5human curator; round 1 also read held\-out errorsHaiku 4\.5:79\.7→93\.879\.7\\rightarrow 93\.8Trace2Policy, LLM\-written refinements\([Zha et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib20)\)61 test itemsDeepSeek\-v3\.2, Kimi K2\.5, Kimi K2\.6 \(mean\)LLM, with a regression gate69\.4→72\.769\.4\\rightarrow 72\.7Chen et al\.\([2025](https://arxiv.org/html/2610.19084#bib.bib26)\)\(definition classification, a different LegalBench task\)100 train / 100 test \(50 / 50 if under 200 items\)LLaMA\-3\-8B, LLaMA\-3\.1\-8B, GPT\-4oevaluator\-guided rewriting, up to 3 iterations55→7055\\rightarrow 70;56→6956\\rightarrow 69;83→9083\\rightarrow 90This paper25 / 25 / 49, recut from 99 itemsGPT\-4o\-mini, GPT\-4\.1 MiniGPT\-5, item\-level effect report71\.4→69\.471\.4\\rightarrow 69\.4;71\.4→73\.571\.4\\rightarrow 73\.5MMLUMPO\([Sharma and Henley, 2026](https://arxiv.org/html/2610.19084#bib.bib6)\)3,000 train / 1,400 test, all subjectsLLaMA\-3\-8B\-Instruct, Mistral\-7B\-Instructcritic LLM, section\-local gradients57\.21→61\.5057\.21\\rightarrow 61\.50;53\.79→55\.5053\.79\\rightarrow 55\.50This papersix subjects, 25 / 25 / 66 eachGPT\-4o\-mini, GPT\-4\.1 MiniGPT\-5, item\-level effect report75\.1→77\.275\.1\\rightarrow 77\.2;81\.0→83\.381\.0\\rightarrow 83\.3AIMEGEPA\([Agrawal et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib3)\)2022–24 problems \(90\) split into train and validation; test: 2025, 30 problems, 5 runs eachQwen3\-8B, GPT\-4\.1 Mini; DSPy chain\-of\-thought baselinereflective LLM, Pareto selection27\.33→32\.0027\.33\\rightarrow 32\.00;49\.33→59\.3349\.33\\rightarrow 59\.33This paper58 / 32 / 30; bare seed promptGPT\-4\.1 MiniGPT\-5, item\-level effect report53\.3→50\.053\.3\\rightarrow 50\.0PUPAGEPA\([Agrawal et al\., 2026](https://arxiv.org/html/2610.19084#bib.bib3)\)111 / 111 / 221Qwen3\-8B, GPT\-4\.1 Minireflective LLM, Pareto selection80\.82→91\.8580\.82\\rightarrow 91\.85;78\.57→94\.4778\.57\\rightarrow 94\.47This paper30 / 30 / 40 \(38 scored\)GPT\-4o\-mini, GPT\-4\.1 MiniGPT\-5, item\-level effect report68\.5→79\.968\.5\\rightarrow 79\.9;68\.2→80\.768\.2\\rightarrow 80\.7Table 6:Published evaluation protocols on shared benchmarks\. Rows differ in data, solver, baseline prompt, feedback access, and evaluation budget\. Changes follow solver\-column order; PUPA changes are composite scores, as reported by GEPA\.

## Appendix BPrompt and Feedback Specification

The specification below comprises the optimizer system prompt, task\-specific insertions, and per\-round feedback\. The quoted template is the best\-validation version; runs using final\-round selection received an earlier version stating that the last round is returned\.

### B\.1Optimizer System Prompt

\{task\_description\}and\{max\_rounds\}are filled per benchmark and run\. The template’s wording is preserved, with reflowed lines and ASCII arrows typeset as→\\rightarrow\.

Optimizer system prompt\(best\-validation version\)You are working with an expert prompt engineer to help a smaller LLM \(the “solver”\) solve\{task\_description\}more reliably\.HOW THIS PROCESS WORKS\(read carefully – this is a measured, multi\-round experiment, not a one\-shot rewrite\):1\. You get up to\{max\_rounds\}rewrite rounds\. After each round, your rewritten prompt is run on a WORKING SET of examples and on a VALIDATION set – a second, disjoint batch meant to approximate unseen data\.2\. From round 2 on, you are shown the measured EFFECT of your previous rewrite, IN FULL, on BOTH sets: every working\-set item it RECOVERED \(wrong→\\rightarrowright\), every item it REGRESSED \(right→\\rightarrowwrong\) together with the solver’s new wrong answer, the previous text of every section you changed, and – just as fully – every VALIDATION item it recovered and every validation item it regressed, with the same detail\. Nothing about validation is held back from you\.3\. In those later rounds your job is causal: first diagnose WHICH of your previous edits caused WHICH regressions and recoveries on EITHER set, then rewrite – keep the edits that recovered items, revert or repair the edits that regressed items, and address the remaining failures\. Do not churn wording that was not implicated by the evidence\.4\. There is no “last round always ships” rule\. Every round commits unconditionally to a version history, and at the end, whichever COMMITTED round scores BEST on validation accuracy is the one that actually ships – not necessarily the last round, and not necessarily this one\. Validation accuracy is therefore not just a diagnostic number: it is literally the criterion your rewrite is competing on\. Treat every round as a real, standalone candidate for shipping, not a throwaway step toward some final round\.5\. Because you now see every validation item that flips, a rewrite that merely patches the specific items shown – without addressing the underlying rule that produced them – will look good this round and can still fail on the next genuinely new case\. Prefer fixing the general rule that explains the failures over specific patches to the exact items shown\.You will see: the solver’s current markdown\-formatted prompt; \(from round 2\) the EFFECT REPORT of your previous rewrite described above; EVERY question the solver currently gets wrong on the working set, with the solver’s answer and the correct answer alongside \(not a sample – all of them\); and EVERY question the current prompt already gets right on the working set \(not a sample – all of them\), so you know exactly what must not break\.CRITICAL RULE ABOUT EXAMPLES– READ BEFORE WRITING ANYTHING: you are shown every failure, every success, and every validation item so you can DIAGNOSE what is going wrong, NOT so you can turn them into illustrative examples\. When you write an invented example in the Context or Task Details section: \(a\) Do NOT reuse the underlying scenario, fact pattern, or entities of ANY failure, gold, or validation item shown to you in this conversation – not verbatim, and not paraphrased with different names\. Changing “Linda and her editors” to “Sarah and her colleagues” is still copying; the solver pattern\-matches on the STORY, not the names\. \(b\) Before writing an invented example, actively check: does this resemble the setup of anything I was just shown \(a lab report, a bystander pointing, an email admitting knowledge, a customer asking for a refund, someone hearing about a planned crime, a doctor’s diagnosis, and so on\)? If yes, discard it and invent a genuinely different scenario\. \(c\) Prefer stating the principle abstractly with NO example at all over reusing a shown scenario’s shape\. An abstract rule generalizes; a disguised replay of a shown item does not – it is memorization with a different name attached, and it is exactly what causes a prompt to score well on the items you were shown and fail on the next genuinely new one\.CRITICAL FACT ABOUT THE SOLVER:it has NO hidden scratchpad\. Its ONLY reasoning space is the text it actually writes out\. So “think step by step” works only if the solver WRITES the steps in its output, before the final answer line\. Instructions like “reason internally”, “use a scratchpad but do not show it”, or “output only the answer” DESTROY the reasoning entirely – for this model they are identical to “do not reason”, regardless of task type\. Where a task does not need reasoning, the correct instruction is to keep the answer direct – never phrasings like these\.FIRST, identify the task type from the failures you are shown:\(i\) Reasoning tasks – anything needing calculation, derivation, formal logic, OR applying a rule/definition to a specific scenario \(e\.g\. mathematics, econometrics, and hearsay / most legal analysis\): the solver RELIABLY does better when it WRITES OUT its working step by step before the final answer line\. A bare answer starves it\. \(ii\) Pure factual\-recall / lookup tasks – where the answer is simply known or not, with no intermediate steps \(e\.g\. a memorised definition or fact\): forced step\-by\-step reasoning can make the solver over\-think and second\-guess a fact it already recalled, LOWERING accuracy\. Sharpen the definitions and framing instead, and keep the answer direct\. When unsure which it is, ALLOW visible reasoning – it helps more often than it hurts, and the final answer line is extracted either way\. Match your rewrite to the task type before doing anything else\.A good rewrite:surfaces the general reasoning principle that separates correct from incorrect answers on this task, and states it in terms the solver can apply to any new case it has not seen before; gives the solver the mental scaffolding it needs – a clearer way to think about the problem, a checklist, a decision procedure, a definition it can lean on; illustrates principles with GENUINELY INVENTED examples when helpful – different scenario, different entities, different setup from anything you were shown – or no example at all; keeps the fixed markdown schema \(\#\# System Role, Context, Task Details, Constraints, Output Format\), where you may edit any section but must not add or remove these headers; keeps the FINAL answer line’s format exactly \(e\.g\. a lineAnswer: <LETTER\>orAnswer: Yes/No\), which is ALL the scorer reads and is searched for anywhere in the output, so you MAY, and for reasoning tasks SHOULD, let the solver write visible step\-by\-step working BEFORE it \(NEVER add “output only the answer”, “do not show your working”, or “reason internally”\); and MATCHES the reasoning style to the task type, with the objective being accuracy, never verbosity for its own sake\.RESPONSE FORMAT:you MAY begin your reply with a short\#\# Analysissection \(2\-6 sentences diagnosing which previous edit caused which regression or recovery – state the cause before the fix; in round 1 you may use it to state your hypothesis instead\)\. The\#\# Analysissection is discarded automatically by the parser\. After it, output the full rewritten markdown with the five standard section headers\. No other prose, no code fences, nothing after the last section\.

#### No\-report variant\.

In the ablation of Appendix[C\.4](https://arxiv.org/html/2610.19084#A3.SS4), the no\-report arm receives the same prompt without points 2, 3, and 5, without the effect\-report entry in the list of inputs, and without the references to validation items in the example rule\. Point 4 keeps its shipping rule without the remark on validation accuracy, and the response\-format note asks for a hypothesis about the failures instead of a diagnosis of the previous edit\. The user message contains no effect report and no promise of one\. Everything else is identical\.

### B\.2Task\-Specific Insertions

\{task\_description\}supplies fixed task\-specific guidance, quoted below\. The MMLU guidance distinguishes computational from recall subjects\.

Task descriptions inserted into the system promptHearsay\.a binary hearsay classification task under U\.S\. Federal Rule of Evidence 801 \(deciding whether a courtroom statement is hearsay\)\. The output is Yes or No\.MMLU\.a 4\-way multiple\-choice exam question \(options A, B, C, D\) from one academic subject\. Computational subjects \(mathematics, econometrics\) need multi\-step working; factual\-recall subjects \(law, computer security, and similar\) are usually answered best directly, without forced step\-by\-step reasoning\. The final answer is a single letter A, B, C, or D on an “Answer:” line\.AIME\.a competition\-level \(AIME\) math problem, substantially harder than grade\-school word problems – multi\-step algebra, combinatorics, number theory, geometry, or probability\. The correct answer is always a specific integer between 0 and 999\. The output must end with a line containing the final numeric answer\.IFBench\.an instruction\-following task with the same mechanically verifiable constraint structure and the sameFINAL RESPONSE:marker convention as IFEval \(see that description for the full explanation\), but drawn from a broader set of constraint types \(word/consonant/vowel counts, keyword\-frequency and forbidden\-word rules, formatting requirements, and more\)\. Correctness means the text after the marker satisfies every listed constraint; there is no single gold answer to match\.PUPA\.a privacy\-conscious query\-rewriting task: the input is a PRIVATE user request \(may contain names, contact info, employers, or other personal details\)\. You are ONLY editing the REWRITE instruction – the prompt that tells a model how to anonymize/generalize the request before it is sent to a separate, untrusted external model\. You are NOT editing how the final answer to the user is composed; that step is fixed elsewhere\. A failure means the rewritten request still leaked one or more specific private details \(shown to you as “leakedN/MN/MPII units”\) – the fix is to make the rewrite instruction more systematic about generalizing/abstracting every private detail \(names→\\rightarrowroles, specific employers→\\rightarrowgeneric descriptions, exact locations→\\rightarrowbroader regions, etc\.\) while still preserving enough of the request’s substance that the external model’s answer stays useful\. The “gold”/quality signal shown to you reflects the FINAL answer’s usefulness \(not directly under your control\), so do not sacrifice the request’s meaning purely to hide details – an unusable rewrite scores just as badly as a leaky one\.

### B\.3Seed Prompt Example

The AIME seed illustrates the five\-section schema\. Other benchmark seeds are included in the source archive\. Only line breaks are adjusted below\.

```
## System Role
You are a competition mathematician.

## Context
You will be given a competition-style math problem whose answer is always
an integer between 0 and 999.

## Task Details
Solve the problem.

## Constraints
The final answer must be an integer between 0 and 999.

## Output Format
After your work, write the final numeric answer on its own line in exactly
this form:
#### <number>
```

### B\.4Per\-Round Feedback

The user message contains the iteration number and budget, the current prompt, every mining failure \(question, wrong output, gold answer\), and every mining success \(question and gold\)\. From round 2, its effect report adds the previous text of changed sections, recovered and regressed items on bothMMandVV, and before/after validation accuracy\. Recovered items include question and gold; regressed items also include the new wrong output, truncated to its last 400 characters\. The message ends with a request to diagnose the observations and return the five\-section markdown\. The parser discards an optional\#\# Analysispreamble; a no\-change response does not commit a new version\. IFBench pins Output Format to preserve its answer marker; the other four sections remain editable\.

## Appendix CDetailed Results and Trajectories

The following records expand the aggregate results: paired accuracy and test transitions, then round\-level tuning outcomes, followed by prompt excerpts illustrating the recorded revisions\.

### C\.1Paired Accuracy and Test Transitions

Table[7](https://arxiv.org/html/2610.19084#A3.T7)lists all 19 matched records, including each MMLU subject\. It combines the tuning/test accuracy pairs with the test recoveries and regressions\. Summing the subject counts gives the MMLU totals in Table[2](https://arxiv.org/html/2610.19084#S5.T2)\. “Edited” distinguishes returned candidates from retained seeds, not an improvement gate\.

RunSolverEditedValidation \(%\)seed→\\rightarrowreturnedΔ​V\\Delta VTest \(%\)seed→\\rightarrowreturnedΔ​T\\Delta TRec\./Reg\.AIME4\.1 Miniyes62\.5→\\rightarrow68\.8\+6\.2\+6\.253\.3→\\rightarrow50\.0−3\.3\-3\.33/4PUPA4o\-miniyes40\.0→\\rightarrow53\.3\+13\.3\+13\.355\.3→\\rightarrow65\.8\+10\.5\+10\.57/3PUPA4\.1 Miniyes46\.7→\\rightarrow70\.0\+23\.3\+23\.344\.7→\\rightarrow71\.1\+26\.3\+26\.310/0IFBench4o\-miniyes36\.8→\\rightarrow52\.6\+15\.8\+15\.840\.5→\\rightarrow45\.2\+4\.8\+4\.86/4IFBench4\.1 Miniyes57\.1→\\rightarrow71\.4\+14\.3\+14\.342\.9→\\rightarrow66\.7\+23\.8\+23\.812/2Hearsay4o\-miniyes68\.0→\\rightarrow80\.0\+12\.0\+12\.071\.4→\\rightarrow69\.4−2\.0\-2\.08/9Hearsay4\.1 Miniyes76\.0→\\rightarrow96\.0\+20\.0\+20\.071\.4→\\rightarrow73\.5\+2\.0\+2\.07/6MMLU college math\.4o\-miniyes84\.0→\\rightarrow80\.0−4\.0\-4\.075\.8→\\rightarrow77\.3\+1\.5\+1\.56/5MMLU computer sec\.4o\-miniyes72\.0→\\rightarrow80\.0\+8\.0\+8\.090\.9→\\rightarrow89\.4−1\.5\-1\.51/2MMLU econometrics4o\-miniyes60\.0→\\rightarrow72\.0\+12\.0\+12\.066\.7→\\rightarrow72\.7\+6\.1\+6\.110/6MMLU high sch\. biol\.4o\-miniyes92\.0→\\rightarrow96\.0\+4\.0\+4\.087\.9→\\rightarrow89\.4\+1\.5\+1\.52/1MMLU philosophy4o\-miniyes80\.0→\\rightarrow84\.0\+4\.0\+4\.077\.3→\\rightarrow80\.3\+3\.0\+3\.05/3MMLU prof\. law4o\-miniyes59\.1→\\rightarrow68\.2\+9\.1\+9\.152\.4→\\rightarrow54\.0\+1\.6\+1\.67/6MMLU college math\.4\.1 Minino–0\.092\.4→\\rightarrow92\.40\.00/0MMLU computer sec\.4\.1 Miniyes80\.0→\\rightarrow76\.0−4\.0\-4\.087\.9→\\rightarrow90\.9\+3\.0\+3\.03/1MMLU econometrics4\.1 Miniyes80\.0→\\rightarrow80\.00\.081\.8→\\rightarrow80\.3−1\.5\-1\.51/2MMLU high sch\. biol\.4\.1 Minino–0\.087\.9→\\rightarrow87\.90\.00/0MMLU philosophy4\.1 Miniyes88\.0→\\rightarrow88\.00\.080\.3→\\rightarrow86\.4\+6\.1\+6\.14/0MMLU prof\. law4\.1 Miniyes81\.8→\\rightarrow81\.80\.055\.6→\\rightarrow61\.9\+6\.3\+6\.39/5Table 7:All matched accuracy pairs and test transition counts\. Deltas are percentage points computed before rounding; green rows have positive test deltas\. MMLU subjects have 66 assigned test items \(63 evaluated for professional law\)\. Dashes denote unmeasured validation after a high\-baseline skip; zeroΔ​V\\Delta Vdenotes the retained seed\.
### C\.2Round\-by\-Round Trajectories

Table[8](https://arxiv.org/html/2610.19084#A3.T8)records the seven matched non\-MMLU trajectories\. Round 0 is the seed; each later row compares with the preceding committed prompt, not with the seed\. Stars mark best\-validation returns and daggers final\-round returns\. MMLU subject\-level endpoints remain in Table[7](https://arxiv.org/html/2610.19084#A3.T7); full committed trajectories are in the analysis records\.

Table 8:Round\-by\-round trajectories \(accuracy in %\)\. Sections: SR system role, Ctx context, TD task details, Con constraints, OF output format\. In IFBench with GPT\-4\.1 Mini, rounds 1 and 3 tie on validation and round 1 is returned on its higher mining accuracy\.Across the 20 committed rounds in Table[8](https://arxiv.org/html/2610.19084#A3.T8), nine regressed more mining items than they recovered and six lowered validation accuracy\.

### C\.3Worked Prompt Changes

The excerpts below show the returned Task Details of two runs\. Context and Constraints also changed in Hearsay; System Role and Output Format were unchanged there, and IFBench’s Output Format was pinned\.

#### Hearsay, GPT\-4\.1 Mini\.

The seed’s Task Details consisted of “Decide whether the given statement is hearsay\.” The returned round\-2 section is reproduced below with formatting adjusted\. Validation changed from 76\.0% to 96\.0%, while test accuracy changed from 35/49 to 36/49: seven recoveries and six regressions\. The explicit procedure raised validation sharply while moving thirteen test outcomes for a one\-item net gain\.

Hearsay: returned Task Details\(round 2 excerpt\)Decide whether the given statement is hearsay by applying this decision procedure and explain your steps briefly before the final answer:Step 1\.Is there a “statement”? Identify whether the evidence is an assertion \(oral/written\) or assertive conduct\. Non\-assertive words \(questions, commands, offers\) and non\-assertive conduct are not statements\.Step 2\.Was it made out of court? In\-court testimony in this proceeding is not hearsay for this purpose\.Step 3\.What specific proposition is the evidence offered to prove \(ultimate or intermediate\)? Then apply the independent relevance test: would the evidence still be probative of that proposition even if the content of the statement were false? If yes, it is offered for a non\-truth purpose; if no, it is offered for its truth\.Step 4\.If the evidence is offered solely for a non\-truth purpose, answer No\. Common non\-truth purposes: effect on the listener, notice, knowledge or motive where only the hearing of the words matters; proving that a conversation or words occurred; and circumstantial use of words to show a condition or state of the speaker unrelated to their truth\.Step 5 \(guardrail on embedded assertions\)\.If the proponent relies on the statement to establish an intermediate fact that itself depends on the truth of an asserted proposition within it \(e\.g\., “I heard/know/saw X”\), the statement is used for its truth; treat as hearsay\. Do not invoke the guardrail when the use is only to show that words were spoken, the speaker’s state, or an effect on the listener where content truth is irrelevant under Step 3\.Step 6\.If out\-of\-court and offered for the truth of what it asserts, answer Yes; otherwise answer No\.

#### IFBench, GPT\-4\.1 Mini\.

The seed’s Task Details was “Answer the user’s request\.” Round 1 rewrote four sections, adding constraint extraction, planning, and verification; the excerpt below shows its Task Details\. Validation changed from 57\.1% to 71\.4%, and test accuracy from 18/42 to 28/42 \(twelve recoveries, two regressions\)\. TheFINAL RESPONSE:marker stayed fixed, so only the post\-marker answer was checked\.

IFBench: returned Task Details\(round 1 excerpt\)Your job is to: read the prompt and explicitly extract every constraint; plan content that satisfies all constraints exactly; verify counts and formats on your draft before producing the final response\. Prefer visible reasoning for these rule\-application tasks: write your working steps before the final answer line so you can check and fix issues\. Only the content after the final marker is scored\.

### C\.4Effect\-Report Ablation

Both arms use the seed prompt, splits \(25 mining, 25 validation, and 49 test items\), solver, optimizer, and selection rule of the main Hearsay GPT\-4o\-mini run\. Each run replays that run’s round\-1 prompt, which changes Context, Task Details, and Constraints, and then runs rounds 2 and 3\. The arms differ only in what the optimizer is shown: with the report it receives the item\-level effect of its previous edit; without it, it receives the current failures and successes only, and the report\-specific instructions are removed from its system prompt \(Appendix[B\.1](https://arxiv.org/html/2610.19084#A2.SS1)\)\. We ran five runs per arm and alternated which arm ran first\. Table[9](https://arxiv.org/html/2610.19084#A3.T9)gives edit sizes and item transitions per round; Table[10](https://arxiv.org/html/2610.19084#A3.T10)gives run\-level means\.

Table 9:Edit sizes and item transitions of the five runs per arm, summed over runs\. Round 3 starts from different round\-2 prompts in the two arms, so only round 2 compares edits from an identical parent prompt\.Run\-level meanReportNo reportppMining items changing outcome, per round3\.15\.20\.024Mining net gain, per round0\.30\.21\.000Mining regressions, per round1\.42\.50\.024Validation items changing outcome, per round4\.16\.20\.206Validation gain \(points\)4\.82\.40\.571Test items changing outcome, per run14\.217\.20\.270Test regressions, per run8\.410\.00\.127Test change from seed \(points\)−5\.3\-5\.3−5\.7\-5\.71\.000Table 10:Run\-level means over five runs per arm\. Per\-round metrics average the two optimizer rounds of a run\.ppis an exact two\-sided permutation test on run means, uncorrected for multiple comparisons\.Validation and test differences between the arms are within run\-to\-run variation\.

### C\.5Additional AIME Runs

Two earlier AIME runs used a 2,048\-token output limit and the earlier final\-round selection rule, and are excluded from the matched analyses\. With Claude Haiku 4\.5\([Anthropic, 2025](https://arxiv.org/html/2610.19084#bib.bib31)\)as solver, three rounds were committed and the third was returned; validation accuracy rose from 62\.5% to 78\.1% and test accuracy from 26\.7% to 33\.3% \(8/30 to 10/30, two recoveries and no regressions\)\. With GPT\-4o\-mini, the last round’s validation accuracy \(12\.5%\) fell below the baseline’s \(15\.6%\), so the seed prompt was returned\. Its two test evaluations of this identical prompt solved 4 and 3 of 30 problems\. Table[11](https://arxiv.org/html/2610.19084#A3.T11)also lists later re\-evaluations of that prompt, and of the round\-1 prompt returned in the GPT\-4\.1 Mini run \(Table[2](https://arxiv.org/html/2610.19084#S5.T2)\), with GPT\-4o\-mini as solver\. The 16,000\-token limit used for GPT\-4\.1 Mini solved one more problem than the 2,048\-token limit, and the GPT\-4\.1 Mini prompt regressed three problems against the baseline at the same limit\.

Table 11:Problems solved out of the 30 AIME 2025 test problems in the earlier runs and in re\-evaluations of fixed prompts\. The GPT\-4o\-mini returned prompt is identical to its seed, so the 4/30 and 3/30 rows differ only by re\-evaluation noise\.

## Appendix DEvaluation Checks and Artifacts

### D\.1Re\-evaluation of an Unchanged Prompt

A GPT\-4o\-mini IFBench run that returned no edited prompt re\-evaluated an unchanged prompt on the same 42 test items: one outcome changed \(no recoveries, one regression\)\. The edited prompt of the main GPT\-4o\-mini IFBench run, which started from a different seed prompt, changed ten outcomes \(six recoveries, four regressions\)\. A GPT\-4o\-mini AIME run that returned its seed prompt shows the same effect: two evaluations of the identical prompt solved 4 and 3 of 30 problems \(Appendix[C\.5](https://arxiv.org/html/2610.19084#A3.SS5)\)\.

### D\.2Test\-Exposure Diagnostic

A diagnostic on LegalBench\-Hearsay used an earlier variant of the optimizer with GPT\-5, seed 42, two rounds, 30 training items, and 64 test items\. With the test items held out, accuracy changed from 44/64 to 47/64 \(68\.8% to 73\.4%\)\. Supplying the same test items as optimizer feedback raised accuracy to 61/64 \(95\.3%\), a gain more than five times the held\-out gain\. This run is excluded from all other analyses\.

### D\.3Verbatim\-Overlap Check

For each run we lowercase the returned prompt \(the seed when none was returned\), keep alphanumeric tokens, and intersect its word 8\-grams with all string fields in the train and test dataset files, including answer\-option text\. Sixteen of the 19 prompts share none, and three share some \(Table[12](https://arxiv.org/html/2610.19084#A4.T12)\)\. The mathematical phrase occurs only in the test file; the True/False template occurs in both train and test\.

Table 12:Runs with any shared 8\-gram\. “Prompt” is the number of distinct 8\-grams in the returned prompt\. The shared strings are a generic mathematical phrase and a True/False answer\-option pattern\.The optimizer prompt also prohibits reusing the scenario of any shown item \(Appendix[B](https://arxiv.org/html/2610.19084#A2)\)\.

### D\.4Artifacts and Reproducibility

The anonymous source archive contains the implementation, seed prompts, the analysis scripts that produce every table, tests, the dependency lock, and setup instructions; credentials, endpoints, local paths, repository history, and dataset corpora are excluded\. Per\-item traces are retained by the authors; any release will exclude personal information, predictions, and gold text\.

Similar Articles

Explore More, Validate Less: Efficient Reflective Prompt Optimization

arXiv cs.CL

The paper proposes a two-stage framework for reflective prompt optimization that decouples candidate-pool construction from validation allocation, achieving up to 11.22 percentage point gains over the initial solver on five benchmarks using Qwen3.5-9B and Llama-3.1-8B-Instruct.

RECAP: Regression Evaluation for Continual Adaptation of Prompts

arXiv cs.LG

Introduces RECAP, a benchmark for evaluating continual learning of prompts under evolving constraints in a proactive adaptation setting. Results show that existing prompt optimization methods fail in this setting, highlighting the need for new methods.