Formal requirements engineering and large language models: A two-way roadmap

Large Language Models (LLMs) have made remarkable advancements in emulating human linguistic capabilities, showing potential also in executing various requirements engineering (RE) tasks. However, despite their generally good performance, the adoption of LLM-generated solutions and artefacts prompts concerns about their correctness, fairness, and trustworthiness. This paper aims to address the concerns associated with the use of LLMs in RE activities. Specifically, it seeks to develop a roadmap that leverages formal methods (FMs) to provide guarantees of correctness, fairness, and trustworthiness when LLMs are utilised in RE. Symmetrically, it aims to explore how LLMs can be employed to make FMs more accessible. We use two sets of examples to show the current limits of FMs when used in software development and of LLMs when used for RE tasks. The highlighted limitations are addressed by proposing two roadmaps grounded in the current literature and technologies. The proposed examples show the potential and limits of FMs in supporting software development and of LLMs when used for RE tasks. The initial investigation into how these limitations can be overcome has been concretised in two detailed roadmaps for the RE and, more largely, the software engineering community. The proposed roadmaps offer a promising approach to address the concerns of correctness, fairness, and trustworthiness associated with the use of LLMs in RE tasks through the use of FMs and to enhance the accessibility of FMs by utilising LLMs. • We exemplify the use of formal methods in software development • We outline a roadmap to increase usability of formal methods with the support of LLMs • We show how LLMs can be support requirements engineers in automating manual tasks • We propose a roadmap for the use of formal techniques to make LLMs reliable

Authors

Institutions

Publication Details

Journal
Information and Software Technology
Published
2025-02-18
DOI
https://doi.org/10.1016/j.infsof.2025.107697
Citations
17
Primary Topic
Formal Methods in Verification
Type
article
Field-Weighted Citation Impact
25.57
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Formal requirements engineering and large language models: A two-way roadmap

Alessio Ferrari, Paola Spoletini
17 citations
Information and Software Technology
Formal Methods in Verification
25.57
article

Formal requirements engineering and large language models: A two-way roadmap

Alessio Ferrari, Paola Spoletini
article en
17 citations

Abstract

Large Language Models (LLMs) have made remarkable advancements in emulating human linguistic capabilities, showing potential also in executing various requirements engineering (RE) tasks. However, despite their generally good performance, the adoption of LLM-generated solutions and artefacts prompts concerns about their correctness, fairness, and trustworthiness. This paper aims to address the concerns associated with the use of LLMs in RE activities. Specifically, it seeks to develop a roadmap that leverages formal methods (FMs) to provide guarantees of correctness, fairness, and trustworthiness when LLMs are utilised in RE. Symmetrically, it aims to explore how LLMs can be employed to make FMs more accessible. We use two sets of examples to show the current limits of FMs when used in software development and of LLMs when used for RE tasks. The highlighted limitations are addressed by proposing two roadmaps grounded in the current literature and technologies. The proposed examples show the potential and limits of FMs in supporting software development and of LLMs when used for RE tasks. The initial investigation into how these limitations can be overcome has been concretised in two detailed roadmaps for the RE and, more largely, the software engineering community. The proposed roadmaps offer a promising approach to address the concerns of correctness, fairness, and trustworthiness associated with the use of LLMs in RE tasks through the use of FMs and to enhance the accessibility of FMs by utilising LLMs. • We exemplify the use of formal methods in software development • We outline a roadmap to increase usability of formal methods with the support of LLMs • We show how LLMs can be support requirements engineers in automating manual tasks • We propose a roadmap for the use of formal techniques to make LLMs reliable

Information and Software TechnologyVol. 181
University College Dublin (IE), Istituto di Scienza e Tecnologie dell'Informazione "Alessandro Faedo" (IT), Kennesaw State University (US)
Openalex Percentile: Top 0%
Formal Methods in Verification
25.57
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.