arXiv:2610.34027cs.CLOct 2026

Manuscript Offprint

arXiv:2610.34027

When Does GEPA Merge Help? A Mechanism-Level Diagnostic

Chong Zhao, Ruyi Yang, Changming Liu, Alice Zhao

Abstract

GEPA is among the strongest reflective prompt optimizers for language-model programs, but its system-aware merge operator is unstable across models: merge improves gpt-4.1-mini on average while degrading Qwen3-8B, an asymmetry noted but left unexplained by the GEPA paper. We investigate this instability across five datasets and two models. Our nine-configuration sweep over merge timing and merge operator shows that merge can improve both models when configured appropriately. This suggests that merge instability is better explained by configuration sensitivity than by an inherent flaw in the merge operator. We then test whether prompt-level features predict GEPA's merge-accept decisions and find that they do not, ruling out static-feature gating. As a proof of concept, a behavior-based probe built from these diagnostics avoids large merge failures in our multi-seed runs by abstaining on high-risk tasks, although it does not consistently outperform NoMerge. Code is available as GEPA-MergeProbe at https://github.com/ChongZZZZ/GEPA_MERGE.

1. Introduction

Prompt optimization without parameter updates has emerged as a central technique for adapting language models to new tasks, and evolutionary search has become competitive with reinforcement learning at a fraction of the rollout cost, offering a parameter-free alternative to fine-tuning (Agrawal et al., 2026). GEPA is one of the strongest such methods. It maintains a Pareto frontier of candidates and iteratively applies two operators: reflective mutation, which rewrites instructions based on model self-critique, and a crossover-style merge that synthesizes a new candidate from two evolved parents sharing a common ancestor.

Merge behavior, however, is unstable across models and datasets. In the results reported by Agrawal et al. (2026), using an identical configuration, merge improves gpt-4.1-mini by +1.14 pp on average while degrading Qwen3-8B by -2.45 pp (Figure 1). The original paper labels this asymmetry and leaves the underlying mechanism unexplained.

Figure

Figure 1. Test-score change from adding merge to GEPA (GEPA+Merge – GEPA), computed from Tables 1–2 of Agrawal et al. (2026). Merge helps gpt-4.1-mini but hurts Qwen3-8B; dashed lines mark the six-task aggregate change (+1.14 and -2.45 pp).

The GEPA paper attributes this asymmetry to fixed merge parameters, such as the timing schedule and number of merges. These parameters are shared across model scales rather than adapted to each model's optimization dynamics, and the paper argues that they should be adaptive. However, the paper does not ablate either one. We perform these ablations directly.

We ask whether the instability is algorithmic, meaning intrinsic to the merge operator itself, or hyperparametric, meaning fixable by adjusting when and how merge is invoked. We answer this question through a configuration sweep, a diagnostic analysis of merge outcomes, and a behavior-based probe that operationalizes the resulting mechanisms.