arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.09345cs.LGcs.AIstat.ML
收藏

通过概率建模对 LLM 级联进行理性调优

Rational Tuning of LLM Cascades via Probabilistic Modeling

Michael J. Zellinger, Matt Thomson

AI总结:

针对 LLM 级联中多模型错误率相互作用导致阈值难调的问题,提出参数化 Markov-copula 概率模型,并用连续优化置信阈值,显著改善错误—成本权衡与少样本效率。

摘要:

理解大型语言模型(LLM)的可靠性最近受到了广泛关注。鉴于 LLM 容易产生幻觉,并且对提示设计高度敏感,预测单个 LLM 的性能本身已经颇具挑战。然而,对于级联等复合 LLM 系统而言,问题会变得更加复杂:除了每个模型的独立性能之外,我们还必须理解不同模型的错误率如何相互作用。本文提出了一个用于描述一系列 LLM 联合性能分布的概率模型,该模型支持通过连续优化理性调优 LLM 级联置信阈值的框架。与使用贝叶斯优化选择置信阈值相比,我们的参数化 Markov-copula 模型产生了更优的错误—成本权衡,在包含 $k\geq 3$ 个模型的级联中,将错误—成本曲线下面积平均提升 4.3%。在训练样本数 $n\leq 30$ 的少样本情形下,性能提升扩大至 10.2%,这表明我们的框架关于不同 LLM 错误率之间相互作用的归纳性假设提升了样本效率。总体而言,我们的 Markov-copula 模型为调优 LLM 级联性能提供了理性基础,并指明了概率方法在分析 LLM 系统方面的潜力。

英文摘要:

Understanding the reliability of large language models (LLMs) has recently garnered significant attention. Given LLMs' propensity to hallucinate, as well as their high sensitivity to prompt design, it is already challenging to predict the performance of an individual LLM. However, the problem becomes more complex for compound LLM systems such as cascades, where in addition to each model's standalone performance, we must understand how the error rates of different models interact. In this paper, we present a probabilistic model for the joint performance distribution of a sequence of LLMs, which enables a framework for rationally tuning the confidence thresholds of a LLM cascade using continuous optimization. Compared to selecting confidence thresholds using Bayesian optimization, our parametric Markov-copula model yields more favorable error-cost trade-offs, improving the area under the error-cost curve by 4.3% on average for cascades with $k\geq 3$ models. In the low-sample regime with $n \leq 30$ training examples, the performance improvement widens to 10.2%, suggesting that our framework's inductive assumptions about the interactions between the error rates of different LLMs enhance sample efficiency. Overall, our Markov-copula model provides a rational basis for tuning LLM cascade performance and points to the potential of probabilistic methods in analyzing systems of LLMs.

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

↑