Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Xie, Danning, Yoo, Byungwoo, Jiang, Nan, Kim, Mijung, Tan, Lin, Zhang, Xiangyu, Lee, Judy S.
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2306.03324
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909484443500544
author Xie, Danning
Yoo, Byungwoo
Jiang, Nan
Kim, Mijung
Tan, Lin
Zhang, Xiangyu
Lee, Judy S.
author_facet Xie, Danning
Yoo, Byungwoo
Jiang, Nan
Kim, Mijung
Tan, Lin
Zhang, Xiangyu
Lee, Judy S.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2306_03324
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle How Effective are Large Language Models in Generating Software Specifications?
Xie, Danning
Yoo, Byungwoo
Jiang, Nan
Kim, Mijung
Tan, Lin
Zhang, Xiangyu
Lee, Judy S.
Software Engineering
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.
title How Effective are Large Language Models in Generating Software Specifications?
topic Software Engineering
url https://arxiv.org/abs/2306.03324