Overview
ELPO (Ensemble Learning Based Prompt Optimization) addresses two fundamental weaknesses of existing automatic prompt optimization (APO) methods: the brittleness of relying on a single optimization algorithm, and inefficient use of the candidate prompt pool. Motivated by the No Free Lunch theorem and the observation that individual APO methods are "good but unstable," ELPO treats diverse optimization strategies as ensemble members and aggregates them via voting — the first systematic application of ensemble learning ideas to APO.
Key points
- Three-part framework: a shared multi-generator prompt strategy, diversified search algorithms, and a final ensemble voting mechanism.
- Hard-Case Tracking: a novel generation strategy that pairs repeatedly misclassified samples with the prompts that caused the failures, prompting the LLM to diagnose root causes and produce fundamentally improved, more generalizable prompts — rather than superficial one-off fixes.
- Complementary generators: Bad-Case Reflection (self-critique plus few-shot examples from failures) and Evolutionary Reflection (direct mutation and zero-order generation, inspired by genetic algorithms) balance depth of analysis with breadth of exploration.
- Efficient search:
- Bayesian optimization using Gaussian Process regression over a continuous high-dimensional embedding space of prompts, with Expected Improvement as the acquisition function — enabling "evaluate a few, infer the whole space" efficiency.
- Multi-Armed Bandit (first combined with Bayesian search in APO): prompts are clustered (e.g., K-means) into "arms," and Upper Confidence Bound (UCB) allocates evaluation budgets across clusters.
- Ensemble voting: high-performing, structurally diverse candidates from all generators and searchers are aggregated, acting as a "prompt optimization committee" that suppresses single-strategy bias and reduces performance variance.
- Consistently beats state-of-the-art APO methods across classification, generation, and multiple-choice tasks.
- +7.6 F1 over prior best on ArSarcasm (Arabic sarcasm detection); strong gains also on LIAR (lie detection) and BBH-navigate (navigation reasoning).
- Evaluation datasets span task types:
- Baselines compared include APE, PromptAgent (MCTS), EvoPrompt/PromptBreeder (evolutionary), ProTeGi (textual gradients), and RLPrompt/TEMPERA (reinforcement learning).
- Ablation studies confirm each component's contribution, and show that removing ensemble voting increases performance variance.
- Black-box friendly: operates purely on prompt–response interactions, so it works with closed-source, API-only LLMs where gradient-based soft prompt methods are inapplicable.
- Cost-efficient: Bayesian + MAB search minimizes expensive LLM evaluations and avoids wasting compute on hopeless prompt variants.
- Robust and generalizable: Hard-Case Tracking plus ensemble voting yields prompts that generalize beyond training data, addressing the "myopic" overfitting of feedback-only methods.
Experimental results
| Dataset | Task | Challenge | | --- | --- | --- | | ArSarcasm | Classification | Arabic sarcasm detection | | LIAR | Classification | Deception detection | | BBH-navigate | Multiple-choice | Multi-step logical instruction following | | ETHOS | Classification | Hate speech detection | | WSC | Multiple-choice | Coreference / commonsense reasoning | | GSM8K | Generative QA | Grade-school math problem solving |