UCRBench: Benchmarking LLMs on Use Case Recovery

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Xiao, Shuyuan, Zhang, Yiran, Sun, Weisong, Chen, Xiaohong, Liu, Yang, Jin, Zhi
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908712732459008
author Xiao, Shuyuan
Zhang, Yiran
Sun, Weisong
Chen, Xiaohong
Liu, Yang
Jin, Zhi
author_facet Xiao, Shuyuan
Zhang, Yiran
Sun, Weisong
Chen, Xiaohong
Liu, Yang
Jin, Zhi
contents Use cases are widely employed to specify functional requirements, yet existing benchmarks are scarce and face the risk of being misaligned with actual system behavior, similarly limiting the rigorous evaluation of large language models (LLMs) in generating use cases from source code. We address this gap by introducing code-aligned use case benchmarks, constructed through manual validation of both user-goal and subfunction use cases across nine real-world software projects. Using this benchmark, we conduct the first systematic study of LLMs and propose a hierarchical evaluation protocol that assesses actor correctness, name accuracy, path fidelity, and behavioral coverage. The results show that while LLMs can partially reconstruct system functionality, their performance varies significantly across projects, with particularly noticeable shortcomings in domain-specific and multi-module systems. The models also exhibit high omission rates and struggle to maintain consistent abstraction when aggregating subfunctions into user-goal use cases, highlighting both the potential and current limitations of LLM-based use case reverse engineering.
format Preprint
id arxiv_https___arxiv_org_abs_2512_13360
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle UCRBench: Benchmarking LLMs on Use Case Recovery
Xiao, Shuyuan
Zhang, Yiran
Sun, Weisong
Chen, Xiaohong
Liu, Yang
Jin, Zhi
Software Engineering
Use cases are widely employed to specify functional requirements, yet existing benchmarks are scarce and face the risk of being misaligned with actual system behavior, similarly limiting the rigorous evaluation of large language models (LLMs) in generating use cases from source code. We address this gap by introducing code-aligned use case benchmarks, constructed through manual validation of both user-goal and subfunction use cases across nine real-world software projects. Using this benchmark, we conduct the first systematic study of LLMs and propose a hierarchical evaluation protocol that assesses actor correctness, name accuracy, path fidelity, and behavioral coverage. The results show that while LLMs can partially reconstruct system functionality, their performance varies significantly across projects, with particularly noticeable shortcomings in domain-specific and multi-module systems. The models also exhibit high omission rates and struggle to maintain consistent abstraction when aggregating subfunctions into user-goal use cases, highlighting both the potential and current limitations of LLM-based use case reverse engineering.
title UCRBench: Benchmarking LLMs on Use Case Recovery
topic Software Engineering
url https://arxiv.org/abs/2512.13360