arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.24814cs.SEcs.AI
收藏

SWE-QA:复杂代码理解的数据库和基准测试

SWE-QA: A Dataset and Benchmark for Complex Code Understanding

LRE, EPITA(EPITA研究中心);Bpifrance(法国国家研究基金会)

Laïla Elkoussy, Julien Perez

AI总结:

本文提出SWE-QA数据集,用于评估多跳代码理解,填补了简化评估任务与真实软件开发中复杂推理之间的差距。数据集包含9072个多选问题,评估多种推理模式,评估15种语言模型显示多跳推理存在显著挑战。

摘要:

本文介绍SWE-QA,一个文本和代码语料库,旨在评估多跳代码理解,填补了简化评估任务与真实软件开发中复杂推理之间的差距。现有代码理解基准关注孤立片段,但开发者需在多个分散代码段之间连接信息。数据集包含9,072个多选问题,系统性地从12个Python仓库生成,评估多种递归推理模式,如声明-调用问题和交互实体问题。生成过程通过解析基于实体提取和大型语言模型辅助问题构建,结合精心验证的干扰项,区分真实理解与表面模式匹配。对15种语言模型(360M到671B参数)的评估显示多跳推理存在显著挑战,最佳性能达到74.41%的准确率。密集架构始终比专家混合模型高出10-14个百分点,而推理增强变体显示不一致的收益。

英文摘要:

In this paper, we introduce SWE-QA, a text and code corpus aimed at benchmarking multi-hop code comprehension, addressing the gap between simplified evaluation tasks and the complex reasoning required in real-world software development. While existing code understanding benchmarks focus on isolated snippets, developers must routinely connect information across multiple dispersed code segments. The dataset comprises 9,072 multiple-choice questions systematically generated from 12 Python repositories of SWE-bench, evaluating several recurrent reasoning patterns like Declaration-and-Call questions that link entity definitions to their usage, and Interacting-Entity questions that examine the dynamic relationships among multiple collaborating components. Generated through parsing-based entity extraction and Large Language Model assisted question construction with carefully validated distractors, the benchmark distinguishes genuine comprehension from superficial pattern matching. Evaluation of 15 language models (360M to 671B parameters) reveals significant challenges in multi-hop reasoning, with best performance reaching 74.41% accuracy. Dense architectures consistently outperform mixture-of-experts models by 10-14 percentage points, while reasoning-enhanced variants show inconsistent benefits.

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

↑