扭转局势:基于存储库的代码反射
Turning the Tide: Repository-based Code Reflection
摘要:
代码大语言模型(LLM)通过理解和生成跨语言的代码来增强编程,通过反射提供智能反馈、错误检测和代码更新,提高开发效率和可访问性。虽然基准(例如HumanEval/LiveCodeBench)评估代码生成和现实世界的相关性,以前的作品忽略了修改代码库中的代码的情况。考虑到在提高反射能力和避免动态基准测试中的数据污染方面仍然存在的挑战,我们引入了LiveRepoReflection,这是一个具有挑战性的基准测试,用于评估多文件存储库上下文中的代码理解和生成,具有1,888个严格过滤的测试用例,跨$6$程序设计语言,以确保多样性,正确性和高难度。此外,我们创建RepoReflection-Instruct,这是一个来自不同来源的大规模质量过滤的修复调优数据集,用于通过涉及代码生成和错误驱动修复的两轮对话过程来训练RepoReflectionCoder。排行榜评估了40多个LLM,以反映基于存储库的代码反射的模型性能。
英文摘要:
Code large language models (LLMs) enhance programming by understanding and generating code across languages, offering intelligent feedback, bug detection, and code updates through reflection, improving development efficiency and accessibility. While benchmarks (e.g. HumanEval/LiveCodeBench) evaluate code generation and real-world relevance, previous works ignore the scenario of modifying code in repositories. Considering challenges remaining in improving reflection capabilities and avoiding data contamination in dynamic benchmarks, we introduce LiveRepoReflection, a challenging benchmark for evaluating code understanding and generation in multi-file repository contexts, featuring 1,888 rigorously filtered test cases across $6$ programming languages to ensure diversity, correctness, and high difficulty. Further, we create RepoReflection-Instruct, a large-scale, quality-filtered instruction-tuning dataset derived from diverse sources, used to train RepoReflectionCoder through a two-turn dialogue process involving code generation and error-driven repair. The leaderboard evaluates over 40 LLMs to reflect the model performance of repository-based code reflection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。