Table of Contents
Fetching ...

OODEval: Evaluating Large Language Models on Object-Oriented Design

Bingxu Xiao, Yunwei Dong, Yiqi Tang, Manqing Zhang, Yifan Zhou, Chunyan Ma, Yepang Liu

TL;DR

This work addresses the underexplored area of evaluating large language models on object-oriented design by introducing OODEval, a 50-task benchmark spanning requirements to class diagrams, and OODEval-Human, a human-rated counterpart with 940 undergraduate solutions. It proposes CLUE, a unified metric set that combines global and fine-grained structural/semantic evaluation of class diagrams, validated against human scores. An empirical study of 29 diverse LLMs reveals strong syntactic accuracy but notable semantic gaps, especially in methods and relationships, with code-specialized, instruction-tuned, and larger models performing best, though still below top human designers. The findings guide model selection, benchmark development, and software engineering education, and highlight areas for improving LLMs’ design reasoning in real-world development tasks.

Abstract

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.

OODEval: Evaluating Large Language Models on Object-Oriented Design

TL;DR

This work addresses the underexplored area of evaluating large language models on object-oriented design by introducing OODEval, a 50-task benchmark spanning requirements to class diagrams, and OODEval-Human, a human-rated counterpart with 940 undergraduate solutions. It proposes CLUE, a unified metric set that combines global and fine-grained structural/semantic evaluation of class diagrams, validated against human scores. An empirical study of 29 diverse LLMs reveals strong syntactic accuracy but notable semantic gaps, especially in methods and relationships, with code-specialized, instruction-tuned, and larger models performing best, though still below top human designers. The findings guide model selection, benchmark development, and software engineering education, and highlight areas for improving LLMs’ design reasoning in real-world development tasks.

Abstract

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.
Paper Structure (38 sections, 14 equations, 8 figures, 9 tables)

This paper contains 38 sections, 14 equations, 8 figures, 9 tables.

Figures (8)

  • Figure 1: An Example of Input and Output Format in OODEval Benchmark.
  • Figure 2: Computational Dependency Graph of CLUE Metrics.
  • Figure 3: Performance Comparison of Pass@1 and CLUE Metrics.
  • Figure 4: Performance Ranking of LLMs Across Metrics (sorted by clue).
  • Figure 5: Performance Comparison of LLMs and Human.
  • ...and 3 more figures

Theorems & Definitions (10)

  • Definition 4.1: Class Diagram Model
  • Definition 4.2: Optimal Matching Similarity
  • Definition 4.3: String Semantic Similarity
  • Definition 4.4: Relationship Multiplicity Similarity
  • Definition 4.5: Attribute/Method Set Similarity
  • Definition 4.6: Parameter Set Similarity
  • Definition 4.7: Class Diagram Similarity, $\text{clue}$
  • Definition 4.8: Class Similarity, $\text{clue-class}$
  • Definition 4.9: Class Relationship Similarity, $\text{clue-relation}$
  • Definition 4.10: Class Attribute/Method Similarity, $\text{clue-attribute}$/$\text{clue-method}$