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

更快、更便宜、更好:面向LLM与RAG系统的多目标超参数优化

Faster, Cheaper, Better: Multi-Objective Hyperparameter Optimization for LLM and RAG Systems

Trustwise AI;New York University(纽约大学);The Alan Turing Institute(艾伦·图灵研究所)

Matthew Barker, Andrew Bell, Evan Thomas, James Carr, Thomas Andrews, Umang Bhatt

AI总结:

本文首次提出面向整个LLM与RAG系统的多目标超参数优化方法,利用贝叶斯优化在成本、延迟、安全性和对齐上取得更优Pareto前沿,并指出最优配置可能无法跨任务和目标泛化。

摘要:

尽管检索增强生成(RAG)已成为改进大语言模型(LLM)系统的流行技术,但它引入了大量必须做出或调优的选择、参数和超参数。这包括LLM、嵌入和排序模型本身,以及控制各个RAG组件的超参数。然而,在RAG或LLM系统中对整个配置进行联合优化仍然探索不足——尤其是在多目标设置下——原因在于解空间难以处理地庞大、目标评估存在噪声以及评估成本高昂。在这项工作中,我们提出了首个针对整个LLM和RAG系统在成本、延迟、安全性和对齐方面进行多目标参数优化的方法。我们发现贝叶斯优化方法显著优于基线方法,在两个新的RAG基准任务上获得了更优的Pareto前沿。我们在工作结尾为设计多目标RAG系统的实践者提出了重要考虑因素,强调了诸如最优配置可能无法跨任务和目标泛化等细微之处。

英文摘要:

While Retrieval Augmented Generation (RAG) has emerged as a popular technique for improving Large Language Model (LLM) systems, it introduces a large number of choices, parameters and hyperparameters that must be made or tuned. This includes the LLM, embedding, and ranker models themselves, as well as hyperparameters governing individual RAG components. Yet, collectively optimizing the entire configuration in a RAG or LLM system remains under-explored - especially in multi-objective settings - due to intractably large solution spaces, noisy objective evaluations, and the high cost of evaluations. In this work, we introduce the first approach for multi-objective parameter optimization of cost, latency, safety and alignment over entire LLM and RAG systems. We find that Bayesian optimization methods significantly outperform baseline approaches, obtaining a superior Pareto front on two new RAG benchmark tasks. We conclude our work with important considerations for practitioners who are designing multi-objective RAG systems, highlighting nuances such as how optimal configurations may not generalize across tasks and objectives.

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

↑