arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.18869cs.LGcs.AIcs.NE
收藏

MO-CAPO:多目标成本感知提示优化

MO-CAPO: Multi-Objective Cost-Aware Prompt Optimization

Technical University of Munich (TUM), Munich Center for Machine Learning (MCML)(慕尼黑工业大学(TUM)、慕尼黑机器学习中心(MCML));LMU Munich, Munich Center for Machine Learning (MCML)(慕尼黑大学(LMU)、慕尼黑机器学习中心(MCML));University of Freiburg, ELLIS Institute Tübingen(弗赖堡大学、图宾根ELLIS研究所);TU Dortmund University, Lamarr Institute for Machine Learning(多特蒙德工业大学、拉马尔机器学习与人工智能研究所)

Jan Büssing, Moritz Schlager, Timo Heiß, Tom Zehle, Matthias Feurer

AI总结:

本文提出MO-CAPO,一种多目标提示优化算法,同时优化性能和推理成本,并通过预算分配实现高效优化,通过评估四个任务和三个LLM,证明其在噪声R2指标上优于NSGA-II基线,并在较低预算下达到竞争性性能。

摘要:

大型语言模型(LLMs)在广泛的任务上表现出色,但对提示设计高度敏感,促使需要自动提示优化。现有方法主要关注性能,忽略竞争目标如推理成本或延迟。同时,现有多目标提示优化工作依赖于现成的NSGA-II,忽略优化效率。为此,我们引入MO-CAPO,一种新的多目标提示优化算法,同时优化性能和推理成本,利用预算分配实现成本高效的优化。我们进一步提出一个面向部署的成本目标,捕捉LLM推理的完整计算概况。我们评估了我们的方法在四个任务和三个LLM上的表现,并将其与基于NSGA-II的多目标方法和最先进的单目标提示优化器进行比较。结果表明,MO-CAPO一致地识别出强、稳健和多样的Pareto前沿近似,同时保持成本效率。它在12种情况中的8种情况下在噪声R2指标上优于NSGA-II基线,并且在显著较低的预算下常能达到竞争性性能。发现的解决方案集涵盖了被单目标优化器遗漏的多样化性能-成本权衡,但顶级性能候选者仍与单目标解决方案竞争。此外,我们进行了首次多目标机器学习实验的评估,考虑了泛化和鲁棒性通过噪声R2和近似间隙,使解决方案质量的评估更加现实。MO-CAPO使从业者能够从高效发现的多个提示中选择,这些提示提供不同的性能和成本权衡。

英文摘要:

Large language models (LLMs) achieve strong performance across a wide range of tasks but are highly sensitive to prompt design, motivating the need for automatic prompt optimization. Existing methods predominantly focus on performance alone, ignoring competing objectives such as inference cost or latency. At the same time, existing work on multi-objective prompt optimization relies on off-the-shelf NSGA-II, ignoring optimization efficiency. As a remedy, we introduce MO-CAPO, a novel multi-objective prompt optimization algorithm that jointly optimizes performance and inference cost while leveraging budget allocation for cost-efficient optimization. We further propose a deployment-oriented cost objective that captures the full computational profile of LLM inference. We evaluate our approach across four tasks and three LLMs and compare it to an NSGA-II-based multi-objective method and state-of-the-art single-objective prompt optimizers. Results show that MO-CAPO consistently identifies strong, robust, and diverse Pareto front approximations while maintaining cost-efficiency. It outperforms the NSGA-II baseline on 8 out of 12 cases in terms of the noisy R2 metric and achieves competitive performances often already at a considerably lower budget. The discovered solution sets span diverse performance-cost trade-offs that are omitted by single-objective optimizers, yet the top-performance candidates remain competitive with single-objective solutions. Additionally, we conduct the first evaluation of multi-objective machine learning experiments that considers generalization and robustness through noisy R2 and approximation gap, enabling a more realistic assessment of solution quality. MO-CAPO enables practitioners to select from an efficiently discovered set of multiple prompts offering different trade-offs between performance and cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑