首个面向多轮代码助手中的真实项目级评测基准,揭示大模型在实际场景下的严重短板。
CodeAssistBench (CAB): Dataset & Benchmarking for Multi-turn Chat-Based Code Assistance
- 自动从GitHub问题构建带可执行环境的多轮代码协助数据集
- 模型在真实项目中仅能解决7.22%-16.49%的问题,远低于传统问答表现
- 适合研究多轮编程助手、项目上下文理解与自动化评估的开发者
基于大语言模型的编程助手虽有显著提升,但现有评测仍局限于单一回合的代码生成任务。近期工作如InfiBench和StackEval依赖于Stack Overflow问题,且受限于单轮交互、人工标注数据和孤立代码片段,而非完整项目环境。我们提出CodeAssistBench(CAB),首个可规模化评估多轮、项目上下文相关编程协助的基准。CAB通过LLM驱动的流水线,自动从标记为问题的GitHub Issues中构建数据集,实现噪声过滤、可运行上下文提取、可执行容器构建及环境正确性验证,支持跨多个仓库的持续自动化扩展。我们基于此构建了包含3,286个真实问题、覆盖214个仓库、涵盖七种编程语言的测试集。对先进模型的评估显示显著差距:尽管模型在传统问答任务中准确率达70%-83%,但在后训练截止仓库的CAB问题上仅能解决7.22%-16.49%。结果凸显当前大模型在真实项目上下文中提供有效帮助的根本挑战。CAB提供了一个可扩展、可复现的研究框架,推动多轮、代码库相关的编程智能体发展。该基准与流水线已完全自动化并公开于https://github.com/amazon-science/CodeAssistBench/。
原文摘要 · Abstract (English)
Programming assistants powered by large language models have improved dramatically, yet existing benchmarks still evaluate them in narrow code-generation settings. Recent efforts such as InfiBench and StackEval rely on Stack Overflow questions and remain limited to single-turn interactions, manually curated data, and isolated snippets rather than full project environments. We introduce CodeAssistBench (CAB), the first benchmark for evaluating multi-turn, project-grounded programming assistance at scale. CAB automatically constructs datasets from GitHub issues tagged as questions, using an LLM-driven pipeline that filters noise, extracts runnable contexts, builds executable containers, and verifies environment correctness. This enables continuous, automated expansion across diverse repositories without manual intervention. Using CAB, we create a testbed of 3,286 real-world issues across 214 repositories, spanning seven languages. Evaluating state-of-the-art models reveals a substantial gap: while models achieve 70-83% accuracy on Stack Overflow-style questions, they solve only 7.22-16.49% of CAB issues from post-training-cutoff repositories. These results highlight a fundamental challenge: current LLMs struggle to provide assistance in realistic, project-specific contexts despite strong performance on traditional Q&A benchmarks. CAB provides a scalable, reproducible framework for advancing research in multi-turn, codebase-grounded programming agents. The benchmark and pipeline are fully automated and publicly available at https://github.com/amazon-science/CodeAssistBench/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。