How Effective are Large Language Models in Generating Software Specifications?
Not on the map. Why?
Abstract (arXiv)
Software specifications are essential for many Software Engineering (SE) tasks such as bug detection and test generation. Many existing approaches are proposed to extract the specifications defined in natural language form (e.g., comments) into formal machine readable form (e.g., first order logic). However, existing approaches suffer from limited generalizability and require manual efforts. The recent emergence of Large Language Models (LLMs), which have been successfully applied to numerous SE tasks, offers a promising avenue for automating this process. In this paper, we conduct the first empirical study to evaluate the capabilities of LLMs for generating software specifications from software comments or documentation. We evaluate LLMs performance with Few Shot Learning (FSL) and compare the performance of 13 state of the art LLMs with traditional approaches on three public datasets. In addition, we conduct a comparative diagnosis of the failure cases from both LLMs and traditional methods, identifying their unique strengths and weaknesses. Our study offers valuable insights for future research to improve specification generation.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Jun 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 2; 2025: 5; 2026: 4.
12 papers.
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineeringcited by 28
- 2025AIReg-Bench: Benchmarking Language Models That Assess AI Regulation Compliancecited by 5
- 2023ConDefects: A New Dataset to Address the Data Leakage Concern for LLM-based Fault Localization and Program Repaircited by 4
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisionscited by 4
- 2025Agentic Specification Generator for Move Programscited by 3
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
- 2025Prompting for Performance: Exploring LLMs for Configuring Softwarecited by 1
- 2026Reversa: A Reverse Documentation Engineering Framework for Converting Legacy Software into Operational Specifications for AI Agentscited by 1
- 2024Improving Performance of Commercially Available AI Products in a Multi-Agent Configurationcited by 0
- 2026ReqGenX: An Empirical Study of Atomic Decomposition, Artifact Regeneration, and Reconstruction for Legacy SRS Documentscited by 0
- 2026How Well Can AI Generate Backlogs from App Mockups?cited by 0
- 2026On Synthesis of Metric Interval Temporal Logicscited by 0
- 2026On Synthesis of Metric Interval Temporal Logics1 Sep 2026
- 2026How Well Can AI Generate Backlogs from App Mockups?24 Jul 2026
- 2026ReqGenX: An Empirical Study of Atomic Decomposition, Artifact Regeneration, and Reconstruction for Legacy SRS Documents18 Jul 2026
- 2026Reversa: A Reverse Documentation Engineering Framework for Converting Legacy Software into Operational Specifications for AI Agents18 May 2026
- 2025AIReg-Bench: Benchmarking Language Models That Assess AI Regulation Compliance1 Oct 2025
- 2025Agentic Specification Generator for Move Programs29 Sep 2025
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems27 Sep 2025
- 2025Prompting for Performance: Exploring LLMs for Configuring Software13 Jul 2025
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisions29 Apr 2025
- 2024Improving Performance of Commercially Available AI Products in a Multi-Agent Configuration29 Oct 2024
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineering6 May 2024
- 2023ConDefects: A New Dataset to Address the Data Leakage Concern for LLM-based Fault Localization and Program Repair25 Oct 2023