mlsanityData to 7 Oct 2026

CAPO: Cost-Aware Prompt Optimization

arXiv 2504.16005 ↗First posted 22 Apr 2025cs.CL cs.AI cs.NEcited by 6

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have revolutionized natural language processing by solving a wide range of tasks simply guided by a prompt. Yet their performance is highly sensitive to prompt formulation. While automatic prompt optimization addresses this challenge by finding optimal prompts, current methods require a substantial number of LLM calls and input tokens, making prompt optimization expensive. We introduce CAPO (Cost-Aware Prompt Optimization), an algorithm that enhances prompt optimization efficiency by integrating AutoML techniques. CAPO is an evolutionary approach with LLMs as operators, incorporating racing to save evaluations and multi-objective optimization to balance performance with prompt length. It jointly optimizes instructions and few-shot examples while leveraging task descriptions for improved robustness. Our extensive experiments across diverse datasets and LLMs demonstrate that CAPO outperforms state-of-the-art discrete prompt optimization methods in 11/15 cases with improvements up to 21%p in accuracy. Our algorithm achieves better performances already with smaller budgets, saves evaluations through racing, and decreases average prompt length via a length penalty, making it both cost-efficient and cost-aware. Even without few-shot examples, CAPO outperforms its competitors and generally remains robust to initial prompts. CAPO represents an important step toward making prompt optimization more powerful and accessible by improving cost-efficiency.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 37 of its 76 references that are in the map. First posted on arXiv 22 Apr 2025.

Builds on

37 of 76 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  5. 2024Qwen2.5 Technical Reportcited by 4,713
  6. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  8. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  9. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  10. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  11. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  12. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
25 more
  1. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  2. 2019How Can We Know What Language Models Know?cited by 953
  3. 2023Large Language Models as Optimizerscited by 830
  4. 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 688
  5. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  6. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  7. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
  8. 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 466
  9. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  10. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  11. 2015Non-stochastic Best Arm Identification and Hyperparameter Optimizationcited by 219
  12. 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 115
  13. 2014ParamILS: An Automatic Algorithm Configuration Frameworkcited by 88
  14. 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 88
  15. 2023InstructZero: Efficient Instruction Optimization for Black-Box Large Language Modelscited by 68
  16. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  17. 2023TELeR: A General Taxonomy of LLM Prompts for Benchmarking Complex Taskscited by 48
  18. 2019When Choosing Plausible Alternatives, Clever Hans can be Clevercited by 39
  19. 2024Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplarscited by 37
  20. 2024PromptWizard: Task-Aware Prompt Optimization Frameworkcited by 32
  21. 2023Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformerscited by 29
  22. 2024Teach Better or Show Smarter? On Instructions and Exemplars in Automatic Prompt Optimizationcited by 28
  23. 2024Aviary: training language agents on challenging scientific taskscited by 23
  24. 2024Automatic Prompt Selection for Large Language Modelscited by 9
  25. 2024Hyperband-based Bayesian Optimization for Black-box Prompt Selectioncited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.