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

Manuscript Offprint

arXiv:2610.26020

Understanding When Reflective Prompt and Skill Optimization Helps on Locally Served Reasoning Models: A Two-Model Study of GEPA and SkillOpt

Andrea Giummarra, Carmelo Baglieri, Antonio Di Maria, Andrea Farruggio, Michele Piatto, Giovanni Micale

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

Abstract

Reflective text-space optimizers such as GEPA and SkillOpt have reported large gains on frontier and mid-size models. We test replication across two reasoning-native target-serving configurations: DeepSeek V4 Flash through DwarfStar and Qwen3.8-27B through LM Studio. For each target, we evaluate the same held-out tasks and four conditions - minimal baseline, GEPA prompt, SkillOpt skill, and manually engineered prompt - on HotpotQA (n = 500 per condition) and MATH-500 (n = 250). In the primary Qwen v2 rerun under the same frozen protocol, GEPA selects the HotpotQA seed and exactly reproduces baseline behavior, whereas SkillOpt's validation gain reverses into held-out degradation. On MATH-500, GEPA raises exact match from 0.828 to 0.904 while reducing latency but increasing token consumption, so lower response time does not imply lower token cost. DeepSeek likewise shows its strongest GEPA effect on MATH-500 (0.852 to 0.908). Across both targets, GEPA's strongest gains occur on MATH-500, while neither optimizer improves the HotpotQA baseline. Optimization is therefore task- and method-dependent, and validation gains may reverse on held-out evaluation. An earlier Qwen run is retained as serving-sensitivity evidence. These results suggest that textual headroom for a model-task pair and the observed effect of a text-space optimizer are more informative when decomposed into content/reasoning, answer-realization/evaluator alignment, and serving-completion/reliability. The cross-benchmark pattern further suggests that optimization may benefit from low-ambiguity, actionable evaluation signals.

1 Introduction

Large language models are increasingly adapted to downstream tasks without touching their weights: by evolving prompts [6, 9, 19], by compiling multi-stage programs [11, 13], or by training external textual artifacts such as skill documents [20]. Two recent systems stand out for pushing this text-space adaptation furthest. GEPA [1] evolves prompts through natural-language reflection on execution traces and Pareto-based candidate selection, reporting gains over reinforcement-learning post-training with a fraction of the rollouts. SkillOpt [20] treats a Markdown skill file as the sole trainable parameter of a frozen agent, accepting bounded edits only when they strictly improve a held-out validation score, and reports best-or-tied results across 52 (model, benchmark, harness) cells.

Both papers evaluate mostly on hosted frontier or mid-size models. Meanwhile, reasoning-native open-weight models can be served through substantially different local stacks. We study DeepSeek V4 Flash [2] through DwarfStar (ds4) [16] and Qwen3.8-27B [14] through LM Studio on Apple Silicon. This setting changes the economics of text-space optimization, but it also exposes an under-studied interaction: an artifact may change not only the correctness of completed answers but also whether a request completes under a particular serving stack.

We study this question through controlled within-target comparisons and a protocol-preserving cross-target replication that preserves datasets, splits, framework seed, conditions, metrics, and optimizer implementations. Because the serving stacks necessarily differ, the design supports paired within-model effects and cross-model replication analysis, not a pooled claim that model identity alone causes every observed difference. Our research questions are:

• RQ1. Which GEPA and SkillOpt effects replicate across two reasoning-native target models under paired held-out evaluation?

• RQ2. How do content and reasoning, answer realization and evaluator alignment, and serving completion and reliability distinguish observed text-space optimization effects?

• RQ3. How strongly do optimizer effects vary across target-serving configurations, and how do reliability and condition order affect their interpretation?

• RQ4. How reliable are validation- and selection-gated acceptance criteria at the set sizes used here?

Contributions. (i) A configuration-driven benchmarking framework that runs official GEPA and SkillOpt implementations against any OpenAI-compatible endpoint, with deterministic scoring, incremental persistence, endpoint failover, and a statistical layer (bootstrap CIs, paired permutation tests). (ii) Controlled within-target comparisons and a protocol-preserving cross-target replication spanning two models, two benchmarks, and four conditions, with 6,000 held-out task-condition observations in total. (iii) A three-layer framework distinguishing content/reasoning, answer-realization/evaluator alignment, and serving-completion/reliability, supported by response-completion and success-conditional analyses. (iv) Cross-model interaction and multiplicity analyses showing HotpotQA GEPA non-improvement across two configurations, including an exact Qwen no-intervention outcome, task-consistent MATH GEPA gains, and method-dependent SkillOpt transfer. (v) Selection-noise and optimization-trajectory analyses showing why small adaptive validation gains should be treated as diagnostics, not deployment guarantees.