arXiv:2610.19084cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19084

Beyond Aggregate Accuracy: Item-Level Transitions in Prompt Optimization

Chinmoy Mitra, Tarek Mahmud

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

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.

1 Introduction

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). 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; Yang et al., 2024; Pryzant et al., 2023). 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) 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). 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