[论文解读] CEBench: A Benchmarking Toolkit for the Cost-Effectiveness of LLM Pipelines
CEBench 是一个开源、基于配置的多目标基准测试工具包,用于对 LLM 管道在成本与效果之间进行权衡的基准测试,支持本地部署、RAG 和在线 LLM 服务,并提供面向帕累托最优配置的计划推荐器。
Online Large Language Model (LLM) services such as ChatGPT and Claude 3 have transformed business operations and academic research by effortlessly enabling new opportunities. However, due to data-sharing restrictions, sectors such as healthcare and finance prefer to deploy local LLM applications using costly hardware resources. This scenario requires a balance between the effectiveness advantages of LLMs and significant financial burdens. Additionally, the rapid evolution of models increases the frequency and redundancy of benchmarking efforts. Existing benchmarking toolkits, which typically focus on effectiveness, often overlook economic considerations, making their findings less applicable to practical scenarios. To address these challenges, we introduce CEBench, an open-source toolkit specifically designed for multi-objective benchmarking that focuses on the critical trade-offs between expenditure and effectiveness required for LLM deployments. CEBench allows for easy modifications through configuration files, enabling stakeholders to effectively assess and optimize these trade-offs. This strategic capability supports crucial decision-making processes aimed at maximizing effectiveness while minimizing cost impacts. By streamlining the evaluation process and emphasizing cost-effectiveness, CEBench seeks to facilitate the development of economically viable AI solutions across various industries and research fields. The code and demonstration are available in https://github.com/amademicnoboday12/CEBench.
研究动机与目标
- 解决在数据隐私和硬件成本约束下对本地 LLM 部署进行成本感知基准测试的需求。
- 提供零代码、基于配置的工作流,以在 LLM、RAG 设置和提示之间实现基准测试的自动化。
- 支持多目标评估(生成质量、延迟和成本)与提示工程。
- 提供计划推荐器以在不同预算和准确性要求下识别帕累托最优部署配置。
提出的方法
- 基于配置的基准测试工作流,通过配置文件实现零编码实验。
- 数据加载器准备提示、将外部知识分块为嵌入并存储在向量数据库中。
- 查询执行接口在 LLM 推理后端上运行提示(默认 Ollama);支持自定义模型。
- 指标监控与响应质量及系统资源的日志记录;支持可定制指标。
- 计划推荐器计算并显示帕累托前沿,以平衡成本与效果。

实验结果
研究问题
- RQ1在成本约束下如何在保持可接受有效性的前提下优化 LLM 部署选择?
- RQ2在准确性、延迟和成本方面,本地部署的带 RAG 的 LLM 管道与在线 LLM 服务之间的权衡是怎样的?
- RQ3零代码基准测试如何加速在模型、数据配置和硬件上的评估?
- RQ4计划推荐器在预算和性能要求下能多大程度上识别帕累托最优配置?
主要发现
- CEBench 能实现基于帕累托前沿的成本效益配置信息推荐。
- 大多数基准测试实例的成本低于每千个提示 15 美元,表明在不同设置下有负担得起的评估选项。
- RAG 通常提高有效性,并且在某些管道中可能降低延迟,具体取决于配置和模型。
- 该框架支持多种场景(有效性、RAG 端到端、提示工程、多目标评估)并具有成本感知的建模能力。
- 在线 LLM 服务在某些任务中可提供有利的成本效益,在使用 RAG 和提示策略时有时甚至优于本地部署。
- 帕累托前沿结果为选择模型、量化、分块大小和硬件以满足预算和性能目标提供可操作的指导。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。