[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.
Towards explainable formal methods: from LTL to natural language with neural machine translation
Ferrari A;
2022
Abstract
[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.| File | Dimensione | Formato | |
|---|---|---|---|
|
prod_461513-doc_183237.pdf
Open Access dal 09/03/2023
Descrizione: Towards explainable formal methods: from LTL to natural language with neural machine translation
Tipologia:
Versione Editoriale (PDF)
Dimensione
191.24 kB
Formato
Adobe PDF
|
191.24 kB | Adobe PDF | Visualizza/Apri |
|
prod_461513-doc_180083.pdf
Open Access dal 09/03/2023
Descrizione: Preprint - Towards explainable formal methods: from LTL to natural language with neural machine translation
Tipologia:
Versione Editoriale (PDF)
Dimensione
128.18 kB
Formato
Adobe PDF
|
128.18 kB | Adobe PDF | Visualizza/Apri |
|
prod_461513-doc_181601.pdf
Open Access dal 09/03/2023
Descrizione: Postprint - Towards explainable formal methods: from LTL to natural language with neural machine translation
Tipologia:
Versione Editoriale (PDF)
Dimensione
138.76 kB
Formato
Adobe PDF
|
138.76 kB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


