Skip to content
Book Open access

From Natural Language to Formal Specifications: A Metamodel-Driven LLM Pipeline

Oct 2026 · Proceedings of the ACM/IEEE 29th International Conference on Model Driven Engineering Languages and Systems · 0 citations · 32 references

TL;DR

This case study assesses the feasibility of combining LLM-based extraction, metamodel-guided refinement, automated validation, and human correction for requirements formalization and evaluates the approach on the ten published ACAS Xu safety properties.

Abstract

Formal verification relies on machine-processable specifications, whereas requirements are commonly documented in natural language, whose contextual and implicit interpretation complicates automated formalization. Existing approaches either impose a controlled or structured language on the user, or rely on large language models to formalize requirements directly, without structural guarantees on the output. We propose a metamodel-driven pipeline that transforms unrestricted natural-language requirements into verifiable formal specifications. An LLM first extracts the requirement semantics into a target-independent intermediate model, which is subsequently refined through target-specific and domain-enriched representations before generation of the concrete formal syntax. Each intermediate artifact is checked for schema conformance and cross-element consistency, with detected errors used to guide automatic correction or presented to the user for semantic review. We evaluate the approach on the ten published ACAS Xu safety properties, using WhyML as the target formalism and comparing the proposed multi-step strategy with direct single-call formalization. The case study assesses the feasibility of combining LLM-based extraction, metamodel-guided refinement, automated validation, and human correction for requirements formalization.

Read PDF

Similar papers

#artificial intelligence Preprint Oct 2026

Beyond Type-checking: Towards Holistic Evaluation of Formal Specification Generation

When generating verifiable code, natural language requirements are mapped to machine checked code using LLMs and agentic workflows. A crucial component of this pipeline is specification generation (SpecGen), which produces a formal contract against which an agent can prove implementation correctness. Proof generation c...

Srijith Nair, Aditya Vempaty, Jia Liu et al. · 0 citations
Preprint Sep 2026

LLM-enabled Behavior Driven Development Workflow for Formally Verified Hardware Designs

This work proposes an integrated view on the use of LLMs for EDA and establishes an LLM-enabled behavior driven hardware development workflow, introducing and defining Formal Verification Gherkin Scenarios (FV Gherkin Scenarios), unlocking CNL specifications as the foundation for formally verified hardware designs via...

Luca Müller, Qian Liu, Rolf Drechsler · 0 citations
Open access 2025

INTEGRATION OF LOGIC-ORIENTED VERIFICATION WITH LARGE LANGUAGE MODELS INTO SOFTWARE DEVELOPMENT

Experimental evaluation shows that increasing the proportion of successful verifications requires additional model training, a broader context, and the integration of mutation and candidate selection operations, while practical limitations of the proposed hybrid approach when using small-class models are identified.

P. Mel'nikov, Andrey Tyugashev · 0 citations
Open access Oct 2026

A Model-Driven Metamodel for the Systematic Design of Configurable NLP Pipelines

Natural Language Processing systems are increasingly built as configurable pipelines combining heterogeneous components, including data sources, task specifications, linguistic preprocessing, representation methods, learning models, training settings, evaluation protocols, explainability requirements, and deployment co...

Kamal Walji, Allae Erraissi, Abdelali Zakrani et al. · 0 citations
Book Open access Oct 2026

From Informal to Conformant Models: Benchmarking Vision--Language Models for UML Generation

Software teams routinely sketch and draw informal diagrams to capture design intent, yet these artifacts rarely evolve into conformant models that automated tooling can process or that can support later stages of development. This tension motivates flexible modeling, which aims to bridge free-form sketching and canonic...

Cecilia Eklund, Tomas Jonsson, Riccardo Rubei et al. · 0 citations
Sep 2026

Automated formalization and verification of building code requirements using knowledge graph construction

This study develops and evaluates a methodology for automated formalization and verification of building code requirements using ontology-based knowledge graphs aligned with building information modeling (BIM) data, with the goal of producing executable, traceable, and audit-ready compliance outcomes. A phas...

Z. Kabzhan, A. Shakhnovich, S. Gorshkov et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.