Impact of Large Language Models on Generating Software Specifications

06/06/2023
by   Danning Xie, et al.
0

Software specifications are essential for ensuring the reliability of software systems. Existing specification extraction approaches, however, suffer from limited generalizability and require manual efforts. We study the effectiveness of Large Language Models (LLMs) in generating software specifications from software documentation, utilizing Few-Shot Learning (FSL) to enable LLMs to generalize from a small number of examples. We compare the performance of LLMs with FSL to that of state-of-the-art specification extraction techniques and study the impact of prompt construction strategies on LLM performance. In addition, we conduct a comprehensive analysis of their symptoms and root causes of the failures to understand the pros and cons of LLMs and existing approaches. We also compare 11 LLMs' performance, cost, and response time for generating software specifications. Our findings include that (1) the best performing LLM outperforms existing approaches by 9.1–13.7 a few similar examples, (2) the two dominant root causes combined (ineffective prompts and missing domain knowledge) result in 57–60 (3) most of the 11 LLMs achieve better or comparable performance compared to traditional techniques. Our study offers valuable insights for future research to improve specification generation.

READ FULL TEXT
research
04/18/2023

Large Language Models Based Automatic Synthesis of Software Specifications

Software configurations play a crucial role in determining the behavior ...
research
03/29/2021

Adversarial Specification Mining

There have been numerous studies on mining temporal specifications from ...
research
09/20/2022

Assisted Specification of Code Using Search

We describe an intelligent assistant based on mining existing software r...
research
05/23/2023

Debiasing should be Good and Bad: Measuring the Consistency of Debiasing Techniques in Language Models

Debiasing methods that seek to mitigate the tendency of Language Models ...
research
09/12/2023

Online Name-Based Navigation for Software Meta-languages

Software language design and implementation often involve specifications...
research
01/10/2023

Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models

Incident management for cloud services is a complex process involving se...
research
05/10/2022

Metamorphic Testing and Debugging of Tax Preparation Software

This paper presents a data-driven debugging framework to improve the tru...

Please sign up or login with your details

Forgot password? Click here to reset