arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.05500cs.AIcs.LGcs.SE
收藏

Prism:基于蒙特卡洛树搜索的LLM代码生成动态灵活基准测试

Prism: Dynamic and Flexible Benchmarking of LLMs Code Generation with Monte Carlo Tree Search

Huawei(华为);Polytechnique Montreal(蒙特利尔理工学院)

Vahid Majdinasab, Amin Nikanjam, Foutse Khomh

AI总结:

Prism提出基于蒙特卡洛树搜索和多智能体评估流水线的动态基准测试框架,通过树结构状态表示与难度分层诊断,实现对LLM代码生成能力的全面评估,并在五个先进模型上验证了其有效性。

摘要:

大型语言模型(LLMs)的快速发展已超越传统评估方法。静态基准测试无法捕捉LLM能力的深度与广度,并最终过时,而大多数动态方法要么过度依赖基于LLM的评估,要么仍受预定义测试集的限制。我们提出Prism,一个灵活的动态基准测试框架,旨在实现全面的LLM评估。Prism建立在三个关键组件之上:(1)基于树的状态表示,将评估建模为马尔可夫决策过程;(2)经适配的蒙特卡洛树搜索算法,用于发现具有挑战性的评估场景;(3)多智能体评估流水线,支持同时评估多种能力。为确保评估稳健,Prism将树探索模式的结构化测量与跨难度级别的性能指标相结合,提供关于错误模式、测试覆盖率和解题方法的详细诊断。通过在五个最先进的LLM上进行大量实验,我们分析了模型架构和规模如何影响不同任务难度下的代码生成性能。结果表明,Prism作为一种动态基准测试是有效的,它能随模型进步而演进,同时对其局限性提供更深入的洞察。

英文摘要:

The rapid advancement of Large Language Models (LLMs) has outpaced traditional evaluation methods. Static benchmarks fail to capture the depth and breadth of LLM capabilities and eventually become obsolete, while most dynamic approaches either rely too heavily on LLM-based evaluation or remain constrained by predefined test sets. We introduce Prism, a flexible, dynamic benchmarking framework designed for comprehensive LLM assessment. Prism builds on three key components: (1) a tree-based state representation that models evaluation as a Markov Decision Process, (2) a Monte Carlo Tree Search algorithm adapted to uncover challenging evaluation scenarios, and (3) a multi-agent evaluation pipeline that enables simultaneous assessment of diverse capabilities. To ensure robust evaluation, Prism integrates structural measurements of tree exploration patterns with performance metrics across difficulty levels, providing detailed diagnostics of error patterns, test coverage, and solution approaches. Through extensive experiments on five state-of-the-art LLMs, we analyze how model architecture and scale influence code generation performance across varying task difficulties. Our results demonstrate Prism's effectiveness as a dynamic benchmark that evolves with model advancements while offering deeper insights into their limitations.

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

↑