2022
Conference article  Open Access

Towards explainable formal methods: from LTL to natural language with neural machine translation

Cherukuri H., Ferrari A., Spoletini P.

NLP  Linear temporal logic  Temporal logic  Neural machine translation  Machine translation  Requirements Engineering  Requirements specification 

[Context and motivation] Requirements formalisation facilitates reasoning about inconsistencies, detection of ambiguities and identification of critical issues in system models. Temporal logic formulae are the natural choice when it comes to formalise requirements associated to desired system behaviours. [Ques tion/problem] Understanding and mastering temporal logic require a formal background. Means are therefore needed to make temporal logic formulae interpretable by engineers, domain experts and other stakeholders involved in the development process. [Principal ideas/results] In this paper, we propose to use a neural machine translation tool, named OPENNMT, to translate Linear Temporal Logic (LTL) formulae into corresponding natural language descriptions. Our results show that our translation system achieves an average BLEU (BiLingual Evaluation Understudy) score of 93.53%, which corresponds to high-quality translations. [Contribution] Our neural model can be applied to assess if requirements have been correctly formalised. This can be useful to requirements analysts, who may have limited confidence with LTL, and to other stakeholders involved in the requirements verification process. Overall, our research preview contributes to bridging the gap between formal methods and requirements engineering, and opens to further research in explainable formal methods.

Source: REFSQ 2022 - 28th International Working Conference on Requirement Engineering: Foundation for Software Quality, pp. 79–86, Birmingham, UK, 21-24/03/2022


Metrics



Back to previous page
BibTeX entry
@inproceedings{oai:it.cnr:prodotti:461513,
	title = {Towards explainable formal methods: from LTL to natural language with neural machine translation},
	author = {Cherukuri H. and Ferrari A. and Spoletini P.},
	doi = {10.1007/978-3-030-98464-9_7},
	booktitle = {REFSQ 2022 - 28th International Working Conference on Requirement Engineering: Foundation for Software Quality, pp. 79–86, Birmingham, UK, 21-24/03/2022},
	year = {2022}
}

4SECURAIL
FORMAL METHODS AND CSIRT FOR THE RAILWAY SECTOR


OpenAIRE