Do Prompt Optimizers Break Requirements They Are Not Scored On? A Preregistered Study
Organizations: CEO Business School
Abstract
Prompt optimizers rewrite a prompt to raise one target metric, but prompts also state requirements the metric does not score, such as an output format, citations, or abstention. In a preregistered study, we run GEPA, MIPROv2, and TextGrad on HotpotQA, SQuAD 2.0, and IFEval and count per-item violations of unscored requirements with deterministic checks. By the preregistered criterion, all three optimizers produce regressions, substantially on HotpotQA, where net regression in citation validity reaches 10.7 to 41.6 points while exact match rises by 21 to 34 points. A post-hoc decomposition changes this reading. The optimized prompts elicit reasoning before the required JSON object, and under the 200-token output cap used throughout, 13.9% to 47.0% of responses end before any answer appears. Among parseable outputs, net regression is within 3 points of zero. With a 1,024-token cap, extraction failures disappear, content regression stays below 1 point, and exact match rises further. Two simple gates fail the preregistered criterion. The side effect is narrower than hypothesized: optimized prompts are more accurate and break an explicit output contract, and a lenient target metric does not show the cost.
Figures & tables
| Task | Target metric | Tr./val | Test |
|---|---|---|---|
| HotpotQA | EM, answerable | 100/150 | 450 a |
| SQuAD 2.0 | EM, answerable | 100/150 | 400 b |
| IFEval | Instr. followed (strict) | 100/150 | 291 |
| Requirement | Sentence in the initial prompt | Check |
|---|---|---|
| Format | Respond with a single JSON object and nothing else, using exactly the keys shown. | The whole output parses as JSON with the exact schema |
| Citation (HotpotQA) | In “citations”, list the titles of the paragraphs that support your answer, using only titles that appear in the context. | Every cited title appears in the input; at least one citation on answerable items |
| Abstention | If the context does not contain enough information to answer, set “answer” to “UNANSWERABLE”. | On unanswerable items, the answer equals UNANSWERABLE |
| Length | Keep “answer” to at most 20 words. | Whitespace word count of the answer is at most 20 |
| Task | Initial | GEPA | MIPRO | TG |
|---|---|---|---|---|
| HotpotQA (EM) | 0.193 | 0.536 | 0.406 | 0.517 |
| SQuAD 2.0 (EM) | 0.350 | 0.748 | 0.720 | 0.780 |
| IFEval | 0.908 | 0.899 | 0.909 | 0.902 |
| Req. ( ) | GEPA | MIPROv2 | TextGrad |
|---|---|---|---|
| Citation (3) | .223 | .416 | .107 |
| [.191, .280] | [.262, .580] | [.016, .156] | |
| Length (6) | .142 | .247 | .073 |
| [.045, .247] | [.059, .449] | [.006, .136] | |
| Abstain (6) | .078 | .092 | .046 |
| [ .013, .162] | [ .010, .190] | [ .013, .105] |
| Measure | Cap | Init. | GEPA | MIPRO | TG |
|---|---|---|---|---|---|
| Extract. fail (%) | 200 | 0.7 | 27.5 | 47.0 | 13.9 |
| 1024 | 0.0 | 0.0 | 0.0 | 0.0 | |
| EM | 200 | .193 | .536 | .406 | .517 |
| 1024 | .193 | .622 | .639 | .549 | |
| Citation, net | 200 | .223 | .416 | .107 | |
| 1024 | .036 | .033 | .022 |
| HotpotQA, cap 200 | GEPA | MIPRO | TG |
|---|---|---|---|
| EM, ungated | .536 | .406 | .517 |
| EM, in-loop gate | .474 | .186 | .377 |
| Extract. fail, ungated (%) | 27.5 | 47.0 | 13.9 |
| Extract. fail, in-loop (%) | 19.0 | 0.6 | 10.1 |
| Strict JSON, ungated (%) | 19.2 | 32.7 | 63.6 |
| Strict JSON, in-loop (%) | 73.7 | 9.5 | 78.4 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Tag | Cause | Scope |
|---|---|---|
| infra1 | A request that received no response could not be retried | Retry logic, cost ledger |
| infra2 | The test-leak guard matched short test IDs as substrings of development IDs | ID comparison in the guard |
| infra3 | The revised guard misread escaped newlines next to IDs | ID comparison in the guard |
| infra4 | Batch results could not be downloaded because a client was closed early | Batch collection |
Prompt Optimization
Prompt optimization automates the revision or selection of instructions and other prompt components to improve model behavior for specific tasks.
See all 141 papers