用检查清单评测大模型对代码库架构的理解能力
RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklists
- 以 GitHub Discussions 的开放问题为数据,聚焦架构理解而非修 bug
- 发现主流大模型普遍存在过早改代码的倾向,正确率不足60%
- 用可验证的清单替代打分,提升评估可靠性
大语言模型在软件工程中的应用已从函数级生成转向仓库级辅助,但现有基准多依赖 GitHub Issues 中的错误报告,使模型可通过模式匹配绕过真实理解。这导致对‘编辑偏差’(即过早生成代码)的度量严重不足。本文提出 RepoProbe,一个基于 GitHub Discussions 的新型基准,通过开放问答形式评估模型对仓库架构的理解。为确保严谨性,设计了检查清单验证协议,将回答拆解为可验证的原子事实,取代主观评分。对当前最优大模型的评估显示,尽管答案表达清晰,技术正确性证据不足;同时定量证实编辑偏差普遍存在。验证协议相比传统标量评分显著提升了评估可靠性。
原文摘要 · Abstract (English)
The integration of Large Language Models (LLMs) into software engineering has shifted the focus from function-level generation to repository-scale assistance. However, existing benchmarks largely rely on bug reports from GitHub Issues, which often allow models to bypass genuine understanding via pattern matching on error logs. This misalignment under-measures Edit Bias, which refers to premature generation, where models prematurely propose code modifications instead of understanding the existing repository architecture. Furthermore, current LLM-as-a-Judge scalar scoring suffers from high variance and low interpretability. This work introduces RepoProbe, a novel benchmark for evaluating repository-level code understanding through open-ended Q&A using GitHub Discussions, which focuses on open-ended architectural inquiries rather than defect reporting. To ensure rigorous evaluation, we propose a Checklist-Based Verification Protocol that decomposes answers into atomic, verifiable facts, thereby replacing subjective ratings with objective verification. Our evaluation of state-of-the-art (SOTA) LLMs reveals a persistent gap between high clarity and evidencegrounded technical correctness. It also quantitatively confirms the prevalence of edit bias, in which models prioritize code generation instead of architectural analysis. Finally, we demonstrate that our verification protocol significantly improves evaluation reliability compared to traditional evaluations with scalar scoring.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。