CAPO: Cost-Aware Prompt Optimization
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
25 more
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2019How Can We Know What Language Models Know?cited by 953
- 2023Large Language Models as Optimizerscited by 830
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 688
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 466
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2015Non-stochastic Best Arm Identification and Hyperparameter Optimizationcited by 219
- 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 115
- 2014ParamILS: An Automatic Algorithm Configuration Frameworkcited by 88
- 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 88
- 2023InstructZero: Efficient Instruction Optimization for Black-Box Large Language Modelscited by 68
- 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
- 2023TELeR: A General Taxonomy of LLM Prompts for Benchmarking Complex Taskscited by 48
- 2019When Choosing Plausible Alternatives, Clever Hans can be Clevercited by 39
- 2024Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplarscited by 37
- 2024PromptWizard: Task-Aware Prompt Optimization Frameworkcited by 32
- 2023Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformerscited by 29
- 2024Teach Better or Show Smarter? On Instructions and Exemplars in Automatic Prompt Optimizationcited by 28
- 2024Aviary: training language agents on challenging scientific taskscited by 23
- 2024Automatic Prompt Selection for Large Language Modelscited by 9
- 2024Hyperband-based Bayesian Optimization for Black-box Prompt Selectioncited by 9
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agentscited by 22
- 2026TextReg: Mitigating Prompt Distributional Overfitting via Regularized Text-Space Optimizationcited by 2
- 2026CANTANTE: Optimizing Agentic Systems via Contrastive Credit Attributioncited by 1
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Banditscited by 1
- 2026How to Ask the AI: A User Perspective Survey for Large Language Model Promptingcited by 1
- 2026CROP: Token-Efficient Reasoning in Large Language Models via Regularized Prompt Optimizationcited by 0
- 2026How to Ask the AI: A User Perspective Survey for Large Language Model Prompting17 Jun 2026
- 2026TextReg: Mitigating Prompt Distributional Overfitting via Regularized Text-Space Optimization20 May 2026
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits14 May 2026
- 2026CANTANTE: Optimizing Agentic Systems via Contrastive Credit Attribution13 May 2026
- 2026CROP: Token-Efficient Reasoning in Large Language Models via Regularized Prompt Optimization8 Apr 2026
- 2026From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents23 Mar 2026