SimpleDevQA:在开发知识问答上评估大语言模型
From Conversation to Evaluation: Benchmarking LLMs on Development Knowledge via SimpleDevQA
AI总结:
SimpleDevQA是一个基于真实用户对话构建的多语言基准,用于评估大语言模型在开发知识问答任务中的表现,通过三阶段流程生成2740个问答对,发现代码LLM在该任务中表现更优。
摘要:
开发知识问答(Dev Knowledge QA)任务旨在通过自然语言回答在软件开发过程中寻求知识的问题。为了研究其重要性以及已被探索的程度,我们分析了WildChat中的真实用户与LLM对话,发现:(1)Dev Knowledge QA任务占39.6%的交互(在所有任务中最高),揭示了超出代码生成(32.3%)的广泛知识需求。(2)只有27.5%的真实Dev Knowledge QA对话聚焦于代码理解,忽略了开发中的知识寻求。(3)只有17.1%的真实Dev Knowledge QA对话可以用于构建基准。现有基准在评估LLM的Dev Knowledge QA能力方面有两个主要局限。首先,现有基准提供的开发知识范围有限,主要集中在代码理解,忽略了开发过程中的更广泛知识。其次,一些基准不是从真实用户查询中构建的。为弥补这一差距,我们设计了一个三阶段流程,将真实对话转换为简单的开发知识寻求问答对。通过这一流程,我们引入了SimpleDevQA,一个从真实用户对话中衍生的多语言基准。它包含2740个问答对,涵盖三种语言(英语、中文和俄语),并专注于具有唯一、简短和可验证答案的问题,以实现准确和简单的评估。实验显示:代码LLM通常优于相似规模的一般LLM;通过检索增强生成(RAG)策略的知识注入可使LLM的准确性平均提高11.3%;LLM在Dev Knowledge QA中表现出系统性过度自信,LLM的回答准确性与它们声明的自信度呈正相关;通常,代码生成性能更强的LLM在Dev Knowledge QA中也表现出更强的性能。
英文摘要:
The Development Knowledge Question Answering (Dev Knowledge QA) task aims to provide accurate natural language answers to knowledge-seeking questions during software development. To investigate the importance of Dev Knowledge QA in AI-assisted software development and the extent to which it has been explored, we conduct a preliminary analysis of real user-LLM dialogues from WildChat. Our findings indicate that Dev Knowledge QA plays a significant role in real-world software development scenarios, and these raw dialogues cannot be directly used to construct a Dev Knowledge QA benchmark. Existing Dev Knowledge QA benchmarks are limited in development knowledge scope and often not built from real user queries. To bridge this gap, we design a three-phase pipeline that transforms real-world dialogue into simple development knowledge-seeking QA pairs. Through this pipeline, we introduce SimpleDevQA, a multilingual Dev Knowledge QA benchmark inspired by real user dialogues. This dataset covers three languages (English, Chinese, and Russian), and focuses on questions with unique, short, and verifiable answers, making evaluation more accurate and simple. Extensive experiments with 21 mainstream LLMs show that closed-source models generally perform best on SimpleDevQA. We also find that RAG-based knowledge injection improves accuracy, and that Dev Knowledge QA performance correlates with both model confidence and code-generation capability. To facilitate the replication study, we have released our data and code at: https://github.com/DeepSoftwareAnalytics/SimpleDevQA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。