OODEval: 对象导向设计上评估大型语言模型
OODEval: Evaluating Large Language Models on Object-Oriented Design
AI总结:
OODEval评估了29个大型语言模型在面向对象设计任务上的表现,揭示了LLMs在语义上的不足,并提出了CLUE度量集以评估类图生成质量。
摘要:
近年来,大型语言模型(LLMs)的进步推动了软件工程中的广泛评估。然而,大多数先前的工作集中在代码层面的任务上,使软件设计能力的研究不足。为填补这一空白,我们进行了一项全面的实证研究,评估了29个LLMs在面向对象设计(OOD)任务上的表现。由于缺乏标准化的基准和度量标准,我们引入了OODEval,一个人工构建的基准,包含50个难度各异的OOD任务,以及OODEval-Human,第一个由人类评分的OOD基准,其中包括940个由本科生提交的类图,由教师评估。我们进一步提出了CLUE(类相似度统一评估),一个统一的度量集,评估类图生成中的全局正确性和细粒度设计质量。使用这些基准和度量,我们调查了五个研究问题:整体正确性、与人类的比较、模型维度分析、任务特征分析和不良案例分析。结果表明,尽管LLMs在语法准确性上表现良好,但在语义缺陷方面存在显著问题,尤其是在方法和关系生成方面。在评估的模型中,Qwen3-Coder-30B在整体表现上最佳,与DeepSeek-R1和GPT-4o相当,而Gemma3-4B-IT尽管参数规模较小,却优于GPT-4o-Mini。虽然表现最佳的LLMs几乎接近本科生的平均水平,但仍然显著低于最佳的人类设计师水平。进一步分析显示,参数规模、代码专业化和指令微调对性能有显著影响,而增加的设计复杂性和较低的要求可读性会降低性能。不良案例分析揭示了常见的失败模式,包括关键词误用、缺少类或关系以及遗漏方法。
英文摘要:
Recent advances in large language models (LLMs) have driven extensive evaluations in software engineering. however, most prior work concentrates on code-level tasks, leaving software design capabilities underexplored. To fill this gap, we conduct a comprehensive empirical study evaluating 29 LLMs on object-oriented design (OOD) tasks. Owing to the lack of standardized benchmarks and metrics, we introduce OODEval, a manually constructed benchmark comprising 50 OOD tasks of varying difficulty, and OODEval-Human, the first human-rated OOD benchmark, which includes 940 undergraduate-submitted class diagrams evaluated by instructors. We further propose CLUE (Class Likeness Unified Evaluation), a unified metric set that assesses both global correctness and fine-grained design quality in class diagram generation. Using these benchmarks and metrics, we investigate five research questions: overall correctness, comparison with humans, model dimension analysis, task feature analysis, and bad case analysis. The results indicate that while LLMs achieve high syntactic accuracy, they exhibit substantial semantic deficiencies, particularly in method and relationship generation. Among the evaluated models, Qwen3-Coder-30B achieves the best overall performance, rivaling DeepSeek-R1 and GPT-4o, while Gemma3-4B-IT outperforms GPT-4o-Mini despite its smaller parameter scale. Although top-performing LLMs nearly match the average performance of undergraduates, they remain significantly below the level of the best human designers. Further analysis shows that parameter scale, code specialization, and instruction tuning strongly influence performance, whereas increased design complexity and lower requirement readability degrade it. Bad case analysis reveals common failure modes, including keyword misuse, missing classes or relationships, and omitted methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。