Reflection in the Dark: Exposing and Escaping the Black Box in Reflective Prompt Optimization
Organizations: University of California, Berkeley · Huazhong University of Science and Technology · Hefei University of Technology
Abstract
Automatic prompt optimization (APO) has emerged as a powerful paradigm for improving LLM performance without manual prompt engineering. Reflective APO methods such as GEPA iteratively refine prompts by diagnosing failure cases, but the optimization process remains black-box and label-free, leading to uninterpretable trajectories and systematic failure. We identify and empirically demonstrate four limitations: on GSM8K with a defective seed, GEPA degrades accuracy from 23.81% to 13.50%. We propose VISTA, a multi-agent APO framework that decouples hypothesis generation from prompt rewriting, enabling semantically labeled hypotheses, parallel minibatch verification, and interpretable optimization trace. A two-layer explore-exploit mechanism combining random restart and epsilon-greedy sampling further escapes local optima. VISTA recovers accuracy to 87.57% on the same defective seed and consistently outperforms baselines across all conditions on GSM8K and AIME2025.
Figures & tables
| GSM8K | AIME2025 | |||||
|---|---|---|---|---|---|---|
| Method | Defective | Repaired | Minimal | Defective | Repaired | Minimal |
| No Opt. | 23.81 | 85.59 | 20.67 | 38.67 | 40.00 | 40.00 |
| GEPA | 13.50 | 86.53 | 21.68 | 44.00 | 39.33 | 42.00 |
| VISTA | 87.57 | 87.34 | 85.67 | 46.00 | 46.67 | 44.00 |
| Reflector | |||
|---|---|---|---|
| Method | Qwen3-8B | GPT-4o-mini | Cross-Model |
| GEPA | 13.50 | 23.43 | 22.74 |
| VISTA | 87.57 | 87.64 | 86.05 |
| Hyper. | ||||
| Configuration | Acc. | |||
| Effect of | ||||
| VISTA | 3 | 0.2 | 0.1 | 87.57 |
| VISTA, K=1 | 1 | 0 | 0.1 | 75.97 |
| VISTA, K=3 | 3 | 0 | 0.1 | 86.81 |
| VISTA, K=5 | 5 | 0 | 0.1 | 83.89 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Automatic Prompt Optimization
Automatic prompt optimization uses model or task feedback to revise instructions for stronger, more reliable language-model performance.
See all 103 papers