arXiv(opens in a new tab)cs.CLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.39927

AdaGEPA: Adaptive Feedback Allocation for Reflective Prompt Optimization

Junyang Chen, Zecheng Wang, Jingbang Chen

ABSTRACT

Prompt optimization improves the performance of language-model systems on downstream tasks by refining their prompts. Classical methods evaluate prompts on task examples and use the resulting feedback to guide prompt revisions through reflection. However, when feedback selection does not account for the prompt's weaknesses, these revisions may improve performance on selected examples without yielding broader task improvements. To address this issue, we propose AdaGEPA, an adaptive feedback-allocation method that uses the prompt's performance and task structure to select examples for the next prompt revision. Our method replaces at most one example in each feedback minibatch to target an identified weakness while preserving the remaining feedback context. Across our main experiments on six downstream benchmarks, AdaGEPA achieves higher mean validation scores than non-adaptive feedback selection under matched rollout budgets. AdaGEPA also finds high-performing prompts earlier across several tasks. In the initial Schema-Guided Dialogue (SGD) study, its half-budget prompts outperform the non-adaptive baseline's full-budget prompts in joint goal accuracy on new dialogues from services seen and unseen during search. Overall, our findings highlight the potential of adaptive feedback allocation to improve both the effectiveness and rollout-budget efficiency of reflective prompt optimization.

1 INTRODUCTION

Prompt optimization adapts language-model systems to downstream tasks by refining their instructions without updating model weights (Yang et al., 2024; Pryzant et al., 2023). These tasks include task-oriented dialogue (Rastogi et al., 2020; Budzianowski et al., 2018), mathematical reasoning (Dekoninck et al., 2026), instruction following (Pyatkin et al., 2025), and multi-hop verification (Jiang et al., 2020). Beyond scalar outcomes, task executions can provide richer evidence, including reasoning traces, tool outputs, and evaluator feedback that can reveal why an output failed. Reflective prompt optimizers use this evidence to guide subsequent prompt revisions. Agrawal et al. (2025) introduced GEPA, a reflective prompt optimizer that maintains a pool of candidate prompts and uses natural-language reflection to revise a selected parent based on feedback from a minibatch of task examples. Because the examples in that minibatch determine which evidence shapes the next prompt revision, their selection can affect both the revised candidate and the subsequent search trajectory. This raises a natural question: how should feedback examples be selected to address the current prompt's weaknesses and improve performance beyond the selected minibatch?

The GEPA default shuffles feedback examples without targeting the selected parent's weaknesses. A natural alternative is to resample the entire minibatch to favor examples with larger loss gaps, repeated failures, or underrepresented task groups. However, our initial experiments reveal a gap between early progress and the final search outcome: although this strategy can improve early candidate quality and produce more candidates that improve on their parents, it does not consistently improve the best validation score found by the end of search. One challenge is that reflection turns feedback from a small minibatch into a prompt revision that affects behavior across the task. A revision that fixes the selected errors may leave other errors unresolved or weaken behavior that was

Figure

Does the update transfer beyond this minibatch?

Figure 1: AdaGEPA adapts the feedback minibatch before reflection. (a) Cached evaluation records provide task-specific signals about the selected parent and search state. (b) A task adapter prioritizes eligible proposals and replaces at most one example in the default minibatch. If none passes the support checks, the default minibatch is retained. (c) The selected minibatch supplies feedback for the next prompt revision. The resulting candidate is compared with its parent on that minibatch and proceeds to full validation if its local score improves.

already correct. This tension echoes two established observations: example choice and ordering matter in curriculum learning, while a shared update can help one behavior but harm another in multi-task learning (Bengio et al., 2009; Yu et al., 2020). These observations suggest that difficulty and coverage alone do not reliably identify feedback that leads to broader task improvements. We therefore study how task structure and the parent prompt's performance can guide feedback selection toward revisions that benefit examples beyond the minibatch.

In this paper, we study pre-reflection feedback allocation and propose AdaGEPA, a lightweight method that uses cached evaluation records and task structure to select examples for the next prompt revision. Figure 1 shows how AdaGEPA makes this choice after parent selection and before feedback generation. Depending on the task, this structure may describe service categories, evaluation components, or intermediate execution stages. Rather than resampling the entire minibatch, AdaGEPA replaces at most one example in the default minibatch. Retaining the other examples preserves most of the default feedback context while adding targeted evidence about the prompt's weaknesses. If no eligible replacement is available, AdaGEPA uses the default minibatch.

For example, in dialogue state tracking, cached evaluations can reveal whether the current parent struggles with intent prediction or slot-value tracking. A task-specific adapter can then propose an example whose task profile is aligned with those weaknesses. The replacement is applied only if it satisfies the task-specific eligibility and scheduling rules. The selected examples then provide feedback for the prompt revision. The resulting candidate is evaluated on the same minibatch and, if it improves on the parent, proceeds to full validation to determine whether it improves the best score found so far.

Our contributions are summarized as follows:

• We formalize pre-reflection feedback allocation as a distinct decision in reflective prompt search: after parent selection, the optimizer chooses which examples inform reflection. We define its immediate utility as the expected one-step gain in the best-so-far validation score.

• We propose AdaGEPA, a lightweight method that uses task structure and cached evaluations to target a prompt’s weaknesses through at most one minibatch replacement, without adding language-model calls or altering subsequent reflection and evaluation.

• Across six downstream benchmarks, AdaGEPA yields higher mean final validation scores than default feedback selection at matched budgets and finds high-scoring prompts earlier. In the initial Schema-Guided Dialogue (SGD) study, prompts found using half the budget outperform full-budget baseline prompts on new dialogues from seen and unseen services.

• Through task-specific controls and trajectory analyses, we trace feedback choices through candidate evaluation, best-score improvements, and the parent-child path to the final winner (winner lineage). This shows how early candidate improvements relate to final outcomes and whether they persist as search continues.

References (87)