arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.20315cs.CLcs.AIcs.IRcs.LG
收藏

LangProBe:一个语言程序基准

LangProBe: a Language Programs Benchmark

University of California, Berkeley(加州大学伯克利分校);Stanford University(斯坦福大学);Databricks(Databricks公司)

Shangyin Tan, Lakshya A Agrawal, Arnav Singhvi, Liheng Lai, Michael J Ryan, Dan Klein, Omar Khattab, Koushik Sen, Matei Zaharia

AI总结:

LangProBe是首个大规模语言程序基准,涵盖2000余种任务、架构、优化器与模型组合,研究发现优化语言程序在质量-成本上优于直接调用模型,但最佳组合仍需人类判断。

摘要:

将语言模型(LMs)组合成多步骤语言程序并自动优化其模块化提示,现已成为构建AI系统的主流范式,但该领域中的权衡此前鲜有研究。我们推出了LangProBe,这是首个用于评估语言程序架构与优化策略的大规模基准,涵盖超过2000种任务、架构、优化器及语言模型选择的组合。利用LangProBe,我们首次研究了程序架构与优化器(及其相互组合以及不同模型的搭配)对质量与成本权衡的影响。我们发现,优化后的语言程序相对于直接调用模型,在成本-质量帕累托改进上表现显著,但同时也表明,对于应追求哪些组合,人类判断(或经验决策)仍必不可少,以获得最佳性能。我们将开源LangProBe的代码与评估数据。

英文摘要:

Composing language models (LMs) into multi-step language programs and automatically optimizing their modular prompts is now a mainstream paradigm for building AI systems, but the tradeoffs in this space have only scarcely been studied before. We introduce LangProBe, the first large-scale benchmark for evaluating the architectures and optimization strategies for language programs, with over 2000 combinations of tasks, architectures, optimizers, and choices of LMs. Using LangProBe, we are the first to study the impact of program architectures and optimizers (and their compositions together and with different models) on tradeoffs of quality and cost. We find that optimized language programs offer strong cost--quality Pareto improvement over raw calls to models, but simultaneously demonstrate that human judgment (or empirical decisions) about which compositions to pursue is still necessary for best performance. We will open source the code and evaluation data for LangProBe.

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

↑