arXiv:2610.13287cs.CLOct 2026

Manuscript Offprint

arXiv:2610.13287

Do Prompt Optimizers Break Requirements They Are Not Scored On? A Preregistered Study

Sangdo Han, Moonsoo Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Prompt optimizers search over prompt text to maximize a metric on a development set. The prompt being optimized is rarely a bare task description. It usually also states requirements about the form and conduct of the output: respond in a given schema, cite evidence, decline when the context does not support an answer, keep the answer short. The target metric typically scores only one of these, most often answer correctness. The optimizer is free to rewrite everything.

This raises a practical question. When an optimizer improves the target metric, what happens to the requirements that the metric does not score? A practitioner who checks only the target metric would not see a loss there.

We study this question with three published optimizers on three public tasks. We fix the hypotheses, metric definitions, statistical tests, and stopping rules before the main runs, and we judge every requirement with deterministic code, with no human or model-based grading. For each test item we compare the output of the initial prompt with the output of the optimized prompt and count new violations and repaired violations. Our findings are as follows.

• Regressions occur by the preregistered criterion, and are substantial on one task. All three optimizers show significant net regression on HotpotQA in citation validity and answer length. SQuAD 2.0 shows improvement on unscored requirements, and IFEval shows essentially no target change.

• The regressions are extraction failures caused by truncation. Optimized prompts make the model write its reasoning before the JSON object. With a 200-token output cap, a large share of responses end before the object appears, and our preregistered rule counts an unparseable output as a violation of every content requirement. Among parseable outputs there is no content regression.

• A larger output budget removes the effect. With a 1,024-token cap the same prompts produce no extraction failures, net regression on content requirements is below 1 point, and exact match is higher. What remains is a change in the kind of format violation, from a code fence around the object to a reasoning preamble before it.

• The requirement text survives, and simple gates fall short. In 61 of 63 cases the key phrase of each requirement is still present in the optimized prompt. A selection-time filter rejects every optimized candidate on HotpotQA, and an in-loop constraint stalls one optimizer entirely.

The broad form of our hypothesis, that single-objective optimization erodes unscored requirements in general, is not supported. The narrower result is that optimizers arrive at prompts that are more accurate and that break an explicit output contract, and that the cost of the break depends on a deployment parameter, the output budget, which the target metric does not reflect.