APEX: Automated Prompt Engineering eXpert with Dynamic Data Selection

Fei Wang, Si Si, Cho-Jui Hsieh, Inderjit S. Dhillon
6/9/2026
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Large Language Models are highly sensitive to prompt formulation, necessitating automatic prompt optimization to unlock their full potential. While evolutionary algorithms have emerged as the dominant paradigm, they suffer from a critical bottleneck: data efficiency.

Show full abstract

Current methods treat the development dataset as a static benchmark, wasting significant compute budget on uninformative data. In this work, we introduce APEX (Automatic Prompt Engineering eXpert), a novel framework that optimizes the data usage alongside the prompt search. APEX dynamically stratifies the dataset into Easy, Hard, and Mixed tiers based on the optimization lineage. By prioritizing the Mixed tier, which identifies the data where the LLM has mixed performance, we identify two high-leverage subsets: the addressable frontier for generating informative mutations and the rank-sensitive frontier for distinguishing candidate quality. We evaluate APEX across three diverse benchmarks: IFBench, SimpleQA Verified, and FACTS Grounding. Under a fixed budget of 5,000 evaluation calls, due to its data efficiency, APEX outperforms the initial prompt by an average of 11.2% on Gemini 2.5 Flash and 6.8% on Gemma 3 27B, demonstrating that a data-centric approach is key to efficient and effective prompt optimization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026apex,
  title  = {APEX: Automated Prompt Engineering eXpert with Dynamic Data Selection},
  author = {Fei Wang and Si Si and Cho-Jui Hsieh and Inderjit S. Dhillon},
  year   = {2026},
  eprint = {2606.11459},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.11459v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.11459.svg)](https://codeofpaper.com/paper/2606.11459)

Discussion