Key points
ELPO (Ensemble Learning Based Prompt Optimization) is a framework for automatic prompt optimization (APO) of large language models, addressing limitations of traditional APO approaches through three core elements: shared generation strategies, diversified search methods, and an ensemble voting mechanism (arXiv paper).
Core methodology
- Multi-generator framework: multiple generation strategies increase the diversity and quality of candidate prompts.
- Hard-Case Tracking: ELPO's signature innovation — it identifies samples that remain misclassified across iterations, analyzes the prompts responsible for the errors, and uses the LLM to generate improved, more generalizable prompts.
- Bayesian optimization: maps prompts into a continuous high-dimensional space using Gaussian process regression with an expected improvement acquisition function, enabling an intelligent exploration-exploitation trade-off and fewer LLM API calls (PDF).
- Multi-armed bandit (MAB): candidate prompts are clustered, each cluster serving as an arm, with the upper confidence bound (UCB) criterion guiding exploration — reportedly the first application of MAB in the APO domain.
- Ensemble voting: a robust voting mechanism selects the final prompt from candidates, improving stability.
- ELPO consistently outperforms state-of-the-art APO methods across classification, generation, and multiple-choice tasks.
- +7.6 F1 improvement over SOTA on the ArSarcasm (Arabic sarcasm detection) dataset.
- Evaluated datasets include:
- Removing Hard-Case Tracking causes a significant performance drop, confirming its role in generalization.
- Replacing the Bayesian + MAB search with basic methods reduces efficiency.
- Selecting a single prompt instead of ensemble voting increases performance variance.
- Designed for black-box LLMs: works via API without access to model internals, making it suitable for closed-source models.
- Reduces LLM API calls, lowering compute cost.
- Applicable to text classification, sentiment analysis, QA/reading comprehension, and complex reasoning/math tasks; relevant for enterprise AI, academic research, and product development.
Performance
| Dataset | Task | Challenge | |---|---|---| | ArSarcasm | Text classification | Arabic sarcasm detection | | LIAR | Text classification | Lie detection | | BBH-navigate | Multiple choice | Navigation reasoning | | GSM8K | Generative QA | Math problem solving |
Ablation findings
Practical significance
Conclusion
ELPO demonstrates that ensemble learning — combining diverse prompt generation, efficient search, and voting-based selection — yields prompt optimization that is more accurate, robust, and generalizable than single-strategy approaches, while remaining practical for black-box, API-only LLM deployment.