arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.13020cs.CLcs.AI
收藏

使用组合优化设计高质量LLM解决方案

Using Combinatorial Optimization to Design a High quality LLM Solution

Samuel Ackerman, Eitan Farchi, Rami Katan, Orna Raz

AI总结:

本文提出一种利用组合优化和采样来设计高质量LLM解决方案的方法,通过识别关键因素、定义交互并生成小规模基准子集,高效指导方案设计,并可作为autoML方法的基线。

摘要:

我们提出了一种新颖的基于LLM的解决方案设计方法,该方法利用组合优化和采样。具体而言,首先识别出一组影响解决方案质量的因素。这些因素通常包括代表提示类型、LLM输入备选方案以及控制生成和设计备选方案的参数。识别控制LLM解决方案质量的因素能够注入领域专家知识。接下来,定义因素之间的一组交互,并使用组合优化来创建一个小子集$P$,确保所有期望的交互都发生在$P$中。然后,将$P$中的每个元素$p$开发成适当的基准。在$P$中的每个组合$p$上应用备选解决方案并评估结果,有助于设计高质量LLM解决方案流水线。当$P$中每个基准的设计和评估耗时且涉及手动步骤和人工评估时,该方法尤其适用。鉴于其效率,该方法也可用作基线,以比较和验证在控制解决方案的因素上进行搜索的autoML方法。

英文摘要:

We introduce a novel LLM based solution design approach that utilizes combinatorial optimization and sampling. Specifically, a set of factors that influence the quality of the solution are identified. They typically include factors that represent prompt types, LLM inputs alternatives, and parameters governing the generation and design alternatives. Identifying the factors that govern the LLM solution quality enables the infusion of subject matter expert knowledge. Next, a set of interactions between the factors are defined and combinatorial optimization is used to create a small subset $P$ that ensures all desired interactions occur in $P$. Each element $p \in P$ is then developed into an appropriate benchmark. Applying the alternative solutions on each combination, $p \in P$ and evaluating the results facilitate the design of a high quality LLM solution pipeline. The approach is especially applicable when the design and evaluation of each benchmark in $P$ is time-consuming and involves manual steps and human evaluation. Given its efficiency the approach can also be used as a baseline to compare and validate an autoML approach that searches over the factors governing the solution.

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

↑