Formal Modeling in Software Engineering with LLMs: A Systematic Literature Review
Alexandra Newcomb, Omar Ochoa
Abstract
Formal verification provides strong correctness guarantees for software systems but remains hindered by the substantial expertise and manual effort required to construct and maintain formal models. The recent rise of Large Language Models (LLMs) has prompted growing interest in whether their natural language understanding and generation capabilities can be leveraged to automate labor-intensive modeling activities. This paper presents a Systematic Literature Review (SLR) examining how LLMs have been applied to automate model checking and the generation of formal and semi-formal models within software engineering. The review follows established SLR methodologies and a PICOC-driven search strategy across four major digital libraries. From an initial search of 1,193 articles, 34 peer-reviewed conference, journal, and workshop articles published between 2022 and April 2026 were selected and analyzed using a structured data extraction form. The review identifies six recurring trends in the literature, including the automated generation of formal models for model checking, LLM-assisted downstream formal verification, iterative and repair-based generation pipelines, and the generation of semi-formal UML and SysML artifacts whose underlying techniques are transferable to formal modeling contexts. Across these trends, LLMs are generally found to perform well on syntactic generation and repair tasks but struggle with semantic correctness, motivating widespread use of counterexample-guided repair loops, intermediate representations, and human-in-the-loop validation. Notably, this review finds that the use of LLMs specifically to automate model checking remains a largely unexplored area, with comparatively little research published on this narrower task.
Create a lesson
Related papers
Large Language Models for Software Engineering Diagrams: A Systematic Review of UML and ER modelling
Shared title terminology · Mojdeh Rahmanian, Ashkan Sami, Yanchao Yu
Systematic Mapping Protocol. Generative AI-Augmented Requirements Engineering: A Systematic Mapping Study of Practices, Specifications, and Reuse in Software Development
Shared title terminology · Fernando Pinciroli
Think Before You Code: A Benchmark for Testing LLMs on Software Engineering Deliberation
Shared title terminology · Ashman Mehra
Post-Quantum Cryptography Education for Software Developers: A Multivocal Literature Review
Shared title terminology · R. D. N. Shakya, C. P. Wijesiriwardana, S. M. Vidanagamachchi et al.
The Impact of LLM-Assistants on Software Developer Productivity: A Systematic Review and Mapping Study
Shared title terminology · Amr Mohamed, Maram Assi, Mariam Guizani
Model-Driven Approaches for DevOps: A Systematic Literature Review
Shared title terminology · Hugo da Gião, Rui Pereira, Jácome Cunha