先有想法,后写代码:在评估LLM用于竞技编程时,将问题解决与代码生成解耦
Idea First, Code Later: Disentangling Problem Solving from Code Generation in Evaluating LLMs for Competitive Programming
AI总结:
本文提出通过编辑稿而非代码来评估LLM在竞技编程中的问题解决能力,并引入数据集和评估方法,强调区分问题解决与实现的重要性。
摘要:
大型语言模型(LLMs)在竞技编程问题上日益成功,但现有评估将算法推理与代码级实现混为一谈。我们主张竞技编程本质上是问题解决任务,并提出在解决方案生成和评估中都以自然语言编辑稿为中心。在代码生成之前生成编辑稿可以提高某些LLM的解决率,当使用专家撰写的黄金编辑稿时,改进更为显著。然而,即使使用黄金编辑稿,模型仍然在实现上面临困难,而生成与黄金编辑稿之间的差距揭示了在指定正确且完整的算法时持续存在的问题解决瓶颈。除了通过/失败指标外,我们通过将模型生成的编辑稿与黄金标准进行比较,利用专家注释来诊断推理错误,并验证了LLM作为评判者的协议以实现可扩展的评估。我们引入了一个包含83个ICPC风格问题及其黄金编辑稿和完整测试套件的数据集,并评估了19个LLM,认为未来的基准测试应明确将问题解决与实现区分开。
英文摘要:
Large Language Models (LLMs) increasingly succeed on competitive programming problems, yet existing evaluations conflate algorithmic reasoning with code-level implementation. We argue that competitive programming is fundamentally a problem-solving task and propose centering natural-language editorials in both solution generation and evaluation. Generating an editorial prior to code improves solve rates for some LLMs, with substantially larger gains when using expertly written gold editorials. However, even with gold editorials, models continue to struggle with implementation, while the gap between generated and gold editorials reveals a persistent problem-solving bottleneck in specifying correct and complete algorithms. Beyond pass/fail metrics, we diagnose reasoning errors by comparing model-generated editorials to gold standards using expert annotations and validate an LLM-as-a-judge protocol for scalable evaluation. We introduce a dataset of 83 ICPC-style problems with gold editorials and full test suites, and evaluate 19 LLMs, arguing that future benchmarks should explicitly separate problem solving from implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。