Published August 22, 2022 | Version v2

ReqGen: Keywords-driven Software Requirements Generation

Authors/Creators

  • 1. Beihang University of China

Description

Software requirements specification is undoubtedly critical for the whole software life-cycle.  Temporarily, writing software requirement specification primarily depends on human work, although massive great work have been proposed to help eliciting and analyzing the related information. The writing task is human-effort due to the factors like time-consuming domain learning, repeated expressions usage and the compliance with certain syntax. An approach of ReqGen is proposed in this work to automatically generate the requirement specification based on certain given keywords. Particularly, keywords-oriented knowledge is selected from domain ontology and is injected to the basic Unified pre-trained Language Model (UniLM) model for domain fine-tuning. A copy mechanism is integrated to promise the occurrence of keywords in the generated statements. Finally, a requirement syntax constrained decoding is designed to close the semantic distance between the candidate and reference specification. Experiments with two public datasets show that ReqGen outperforms six popular natural language generation approaches on the hard constraint of keywords(phrases), BLEU, ROUGE and syntax compliance.

Files

req_gen_unilm.zip

Files (107.9 MB)

Name Size
md5:ced6191cb63d54c08c7fc621aa311078
110.0 kB Download
md5:9eb7bca4ee0846e163266cef161db5c7
107.7 MB Preview Download
md5:09de5198329df9c8a225fc13a6ffd51a
95.5 kB Preview Download