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

网络之网络:应用于复合人工智能系统设计的复杂性类原理

Networks of Networks: Complexity Class Principles Applied to Compound AI Systems Design

Foundry;Stanford University(斯坦福大学);Princeton University(普林斯顿大学);University of California, Berkeley(加州大学伯克利分校)

Jared Quincy Davis, Boris Hanin, Lingjiao Chen, Peter Bailis, Ion Stoica, Matei Zaharia

AI总结:

本文提出基于复杂性类原理的网络之网络系统,通过区分答案生成与验证构建带K个生成器的判断器,在数学推理等验证易于生成的任务上显著提升性能,为复合AI系统设计提供指导。

摘要:

随着从业者寻求超越单体模型当前的可靠性和质量前沿,由许多语言模型推理调用组成的复合人工智能系统正得到越来越多的应用。在这项工作中,我们构建了被称为网络之网络的系统,其组织核心围绕生成提议答案与验证其正确性之间的区分,这是复杂性理论中的一个基本概念,我们通过实验证明它可扩展至语言模型。我们引入了一个带有K个生成器的基于验证者的判断器网络之网络,它是“K选优”或“基于判断器”的复合人工智能系统的一个实例。通过在质因数分解等合成任务以及MMLU等核心基准上的实验,我们展示了显著的性能提升。例如,在对两个3位质数乘积进行因式分解时,一个简单的网络之网络将准确率从3.7%提升到了36.6%。在MMLU上,仅有3个生成器的基于验证者的判断器构造,比单个GPT-4-Turbo调用的准确率提高了2.8%。我们的分析表明,这些提升在验证明显比生成更容易的领域中最为显著——我们认为这一特征涵盖了许多推理和程序性知识任务,但通常不适用于事实性和陈述性知识场景。对于MMLU中基于数学和形式逻辑推理的科目,我们观察到5-8%或更高的提升,而在地理和宗教等其他科目上则没有提升。我们为机器学习从业者提供了关键启示,包括考虑验证复杂性的重要性、见证格式对可验证性的影响,以及一个简单的测试,用于确定这种网络之网络方法对给定问题分布的潜在益处。这项工作旨在为复合人工智能系统设计的未来研究和实践提供参考。

英文摘要:

As practitioners seek to surpass the current reliability and quality frontier of monolithic models, Compound AI Systems consisting of many language model inference calls are increasingly employed. In this work, we construct systems, which we call Networks of Networks (NoNs) organized around the distinction between generating a proposed answer and verifying its correctness, a fundamental concept in complexity theory that we show empirically extends to Language Models (LMs). We introduce a verifier-based judge NoN with K generators, an instantiation of "best-of-K" or "judge-based" compound AI systems. Through experiments on synthetic tasks such as prime factorization, and core benchmarks such as the MMLU, we demonstrate notable performance gains. For instance, in factoring products of two 3-digit primes, a simple NoN improves accuracy from 3.7\% to 36.6\%. On MMLU, a verifier-based judge construction with only 3 generators boosts accuracy over individual GPT-4-Turbo calls by 2.8\%. Our analysis reveals that these gains are most pronounced in domains where verification is notably easier than generation--a characterization which we believe subsumes many reasoning and procedural knowledge tasks, but doesn't often hold for factual and declarative knowledge-based settings. For mathematical and formal logic reasoning-based subjects of MMLU, we observe a 5-8\% or higher gain, whilst no gain on others such as geography and religion. We provide key takeaways for ML practitioners, including the importance of considering verification complexity, the impact of witness format on verifiability, and a simple test to determine the potential benefit of this NoN approach for a given problem distribution. This work aims to inform future research and practice in the design of compound AI systems.

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

↑