When Does GEPA Merge Help? A Mechanism-Level Diagnostic
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/GEPAMERGE .
Create a lesson
Metadata
- Comments
- 12 pages, 5 figures. Code: https://github.com/ChongZZZZ/GEPA_MERGE
Related papers
DKnown-Jev-2: Article-Level Answer-Evidence Classification and Efficient Inference with a Pre-trained Language Model
Shared title terminologycs.CLQi Li, Jianjun Xu, Jiu Li et al.
Empirical Margin Sensitivity: An Interventional Neuron-Level Probe of Post-Trained Medical LLMs
Shared title terminologycs.CLAniruddh Shreyas, Aarnav Kembhavi, Minal Moharir
When Does Continual Pre-Training Help? An Empirical Study of Decoupled Knowledge and Generation Trajectories in Clinical LLMs
Shared title terminologycs.CLNiclas Doll, Jasper Schulze Buschhoff, Shalaka Satheesh et al.
When Does Reasoning Help Entity Disambiguation? Small LLMs In-Domain and Under Shift
Shared title terminologycs.CLSamy Haffoudhi, Fabian M Suchanek, Nils Holzenberger
Language models seek help despite guaranteed score losses in question answering
Shared title terminologycs.CLJiahao You, Ziye Jia, Chao Dong et al.
The Answer Is Not the State: Trajectory-Level Corrigibility in Diffusion Language Models
Shared title terminologycs.CLJunchi Liao, Wentao Li