构建交互式代码生成评估基准,测试大模型在真实开发场景中的表现。
SIMCOPILOT: Evaluating Large Language Models for Copilot-Style Code Generation
- 设计模拟开发者助手的互动式代码补全与插入任务评测框架。
- 覆盖算法、数据库、计算机视觉等多领域,验证模型在复杂依赖下的逻辑一致性。
- 关注变量作用域、上下文理解等细节,揭示现有评测忽略的关键问题。
我们提出SIMCOPILOT,一个模拟大型语言模型(LLMs)作为交互式“代码助手”角色的基准。针对代码补全(完成不完整的函数或代码块)和代码插入(填充现有代码中的缺失段落)任务,SIMCOPILOT提供了全面的评估框架。该基准包含针对Java(SIMCOPILOTJ)和Python(SIMCOPILOTP)的专用子基准,涵盖大小和复杂度各异的代码库。主要贡献包括:(a) 建立贴近实际编码场景的精细评估环境,以衡量LLM在真实开发中的实用性;(b) 提供细粒度分析,解决现有基准常忽视的关键因素,如任务特异性性能差异、跨代码片段的上下文理解能力,以及对变量作用域的敏感性。在算法、数据库、计算机视觉和神经网络等领域的评估揭示了模型的优势,并突显了在复杂依赖结构中保持逻辑一致性的持续挑战。研究不仅用于基准测试,还揭示了当前基于LLM的代码生成的局限性,强调了大模型正从仅关注语法的生成器向可靠的智能开发伙伴演进。
原文摘要 · Abstract (English)
We introduce SIMCOPILOT, a benchmark that simulates the role of large language models (LLMs) as interactive, "copilot"-style coding assistants. Targeting both completion (finishing incomplete methods or code blocks) and infill tasks (filling missing segments within existing code), SIMCOPILOT provides a comprehensive framework for evaluating LLM coding capabilities. The benchmark comprises dedicated sub-benchmarks for Java (SIMCOPILOTJ) and Python (SIMCOPILOTP), covering diverse codebases varying in size and complexity. Our key contributions include: (a) establishing a realistic, detailed evaluation environment to assess LLM utility in practical coding scenarios, and (b) providing fine-grained analyses that address critical factors frequently overlooked by existing benchmarks, such as task-specific performance nuances, contextual understanding across code segments, and sensitivity to variable scope. Evaluations conducted across domains-including algorithms, databases, computer vision, and neural networks-offer insights into model strengths and highlight persistent challenges in maintaining logical consistency within complex dependency structures. Beyond benchmarking, our study sheds light on the current limitations of LLM-driven code generation and underscores the ongoing transition of LLMs from merely syntax-aware generators toward reliable, intelligent software development partners.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。