Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verification
Not on the map. Why?
Abstract (arXiv)
Formal verification provides a rigorous and systematic approach to ensure the correctness and reliability of software systems. Yet, constructing specifications for the full proof relies on domain expertise and non-trivial manpower. In view of such needs, an automated approach for specification synthesis is desired. While existing automated approaches are limited in their versatility, i.e., they either focus only on synthesizing loop invariants for numerical programs, or are tailored for specific types of programs or invariants. Programs involving multiple complicated data types (e.g., arrays, pointers) and code structures (e.g., nested loops, function calls) are often beyond their capabilities. To help bridge this gap, we present AutoSpec, an automated approach to synthesize specifications for automated program verification. It overcomes the shortcomings of existing work in specification versatility, synthesizing satisfiable and adequate specifications for full proof. It is driven by static analysis and program verification, and is empowered by large language models (LLMs). AutoSpec addresses the practical challenges in three ways: (1) driving name by static analysis and program verification, LLMs serve as generators to generate candidate specifications, (2) programs are decomposed to direct the attention of LLMs, and (3) candidate specifications are validated in each round to avoid error accumulation during the interaction with LLMs. In this way, AutoSpec can incrementally and iteratively generate satisfiable and adequate specifications. The evaluation shows its effectiveness and usefulness, as it outperforms existing works by successfully verifying 79% of programs through automatic specification synthesis, a significant improvement of 1.592x. It can also be successfully applied to verify the programs in a real-world X509-parser project.
Key facts. Cited by 55 papers in the map (data through 7 Oct 2026). First posted on arXiv 31 Mar 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 4; 2025: 22; 2026: 29.
55 papers.
Sort:
By area:
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
- 2025From Informal to Formal -- Incorporating and Evaluating LLMs on Natural Language Requirements to Verifiable Formal Proofscited by 17
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inferencecited by 14
- 2025ClassInvGen: Class Invariant Synthesis using Large Language Modelscited by 11
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
- 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Veruscited by 8
- 2024Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Modelscited by 7
- 2025Validating Network Protocol Parsers with Traceable RFC Document Interpretationcited by 7
- 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinementcited by 6
- 2025Local Success Does Not Compose: Benchmarking Large Language Models for Compositional Formal Verificationcited by 6
- 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?cited by 5
38 more
- 2025Towards Repository-Level Program Verification with Large Language Modelscited by 4
- 2025RAG-Verus: Repository-Level Program Verification with LLMs using Retrieval Augmented Generationcited by 3
- 2025Integrating Expert Knowledge into Logical Programs via LLMscited by 3
- 2025Requirements Development and Formalization for Reliable Code Generation: A Multi-Agent Visioncited by 3
- 2025PAT-Agent: Autoformalization for Model Checkingcited by 3
- 2025Agentic Specification Generator for Move Programscited by 3
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 3
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMscited by 2
- 2026Doc2Spec: Synthesizing Formal Programming Specifications from Natural Language via Grammar Inductioncited by 2
- 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversightcited by 2
- 2026Automated Lemma Discovery in Agentic Program Verificationcited by 2
- 2026Spec-Harness: Measuring and Improving Behavioral Adequacy of LLM-Synthesized Formal Specificationscited by 2
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generationcited by 1
- 2026ModelWisdom: An Integrated Toolkit for TLA+ Model Visualization, Digest and Repaircited by 1
- 2026Evaluating LLM-Generated ACSL Annotations for Formal Verificationcited by 1
- 2026Can LLM Aid in Solving Constraints with Inductive Definitions?cited by 1
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 1
- 2026Fidelity Probes for Specification--Code Alignmentcited by 1
- 2024Specification Generation for Neural Networks in Systemscited by 0
- 2025BRIDGE: Building Representations In Domain Guided Program Synthesiscited by 0
- 2025AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolutioncited by 0
- 2025A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoningcited by 0
- 2026Verification Modulo Tested Library Contractscited by 0
- 2026Towards an Agentic LLM-based Approach to Requirement Formalization from Unstructured Specificationscited by 0
- 2026Natural Language based Specification and Verificationcited by 0
- 2026Agentic Model Checkingcited by 0
- 2026Agentic Separation Logic Specification Synthesiscited by 0
- 2026AutoACSL: Synthesizing ACSL Specifications by Integrating LLMs with CPG-Based Static Analysiscited by 0
- 2026An Empirical Study of LLM-Generated Specifications for VeriFastcited by 0
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)cited by 0
- 2026Privilege and confidentiality in generative AI workflowscited by 0
- 2026Partial Contracts Suffice: Sound, LLM-Inferred Regression Verificationcited by 0
- 2026Faithful Autoformalization of Natural Language Assertionscited by 0
- 2026Specula: Scaling formal specifications for autonomous model checking of system codecited by 0
50 most cited of 55 All 55 (JSON)
- 2026Self-Spec Verifiable Code Generation30 Sep 2026
- 2026From Verification Failures to Reusable Guidance for Coding Agents30 Sep 2026
- 2026SkillForge: Compositional Skill Synthesis with Verification-in-the-Loop for Generating Formally Verified Dafny Programs30 Aug 2026
- 2026GenOS: Compositional Certificates for Semantic Robustness in AI Code Generation4 Aug 2026
- 2026VeriSkill: A Self-Evolution Framework for Program Verification Skills30 Jul 2026
- 2026Specula: Scaling formal specifications for autonomous model checking of system code28 Jul 2026
- 2026Faithful Autoformalization of Natural Language Assertions14 Jul 2026
- 2026Partial Contracts Suffice: Sound, LLM-Inferred Regression Verification11 Jul 2026
- 2026Privilege and confidentiality in generative AI workflows6 Jul 2026
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)6 Jul 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026AutoACSL: Synthesizing ACSL Specifications by Integrating LLMs with CPG-Based Static Analysis18 Jun 2026
38 more
- 2026Agentic Separation Logic Specification Synthesis26 May 2026
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems22 May 2026
- 2026Agentic Model Checking20 May 2026
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2026Fidelity Probes for Specification--Code Alignment17 May 2026
- 2026Natural Language based Specification and Verification11 May 2026
- 2026Towards an Agentic LLM-based Approach to Requirement Formalization from Unstructured Specifications20 Apr 2026
- 2026Verification Modulo Tested Library Contracts16 Apr 2026
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation14 Apr 2026
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinement12 Apr 2026
- 2026Spec-Harness: Measuring and Improving Behavioral Adequacy of LLM-Synthesized Formal Specifications31 Mar 2026
- 2026Automated Lemma Discovery in Agentic Program Verification23 Mar 2026
- 2026Can LLM Aid in Solving Constraints with Inductive Definitions?4 Mar 2026
- 2026Evaluating LLM-Generated ACSL Annotations for Formal Verification14 Feb 2026
- 2026ModelWisdom: An Integrated Toolkit for TLA+ Model Visualization, Digest and Repair12 Feb 2026
- 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversight11 Feb 2026
- 2026Doc2Spec: Synthesizing Formal Programming Specifications from Natural Language via Grammar Induction30 Jan 2026
- 2025A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoning17 Dec 2025
- 2025AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolution8 Dec 2025
- 2025BRIDGE: Building Representations In Domain Guided Program Synthesis26 Nov 2025
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs1 Nov 2025
- 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Verus28 Oct 2025
- 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?14 Oct 2025
- 2025Agentic Specification Generator for Move Programs29 Sep 2025
- 2025PAT-Agent: Autoformalization for Model Checking28 Sep 2025
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems27 Sep 2025
- 2025Local Success Does Not Compose: Benchmarking Large Language Models for Compositional Formal Verification27 Sep 2025
- 2025Towards Repository-Level Program Verification with Large Language Models31 Aug 2025
- 2025Requirements Development and Formalization for Reliable Code Generation: A Multi-Agent Vision26 Aug 2025
- 2025VERINA: Benchmarking Verifiable Code Generation29 May 2025
- 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinement21 May 2025
- 2025Validating Network Protocol Parsers with Traceable RFC Document Interpretation25 Apr 2025
- 2025ClassInvGen: Class Invariant Synthesis using Large Language Models26 Feb 2025
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference22 Feb 2025
- 2025Integrating Expert Knowledge into Logical Programs via LLMs17 Feb 2025
- 2025RAG-Verus: Repository-Level Program Verification with LLMs using Retrieval Augmented Generation7 Feb 2025
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysis5 Feb 2025
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generation28 Jan 2025
50 newest of 55 All 55 (JSON)
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2025Requirements Development and Formalization for Reliable Code Generation: A Multi-Agent Visioncited by 3
- 2025PAT-Agent: Autoformalization for Model Checkingcited by 3
- 2025Agentic Specification Generator for Move Programscited by 3
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversightcited by 2
- 2026Automated Lemma Discovery in Agentic Program Verificationcited by 2
- 2026Towards an Agentic LLM-based Approach to Requirement Formalization from Unstructured Specificationscited by 0
- 2026Agentic Model Checkingcited by 0
- 2026Agentic Separation Logic Specification Synthesiscited by 0
- 2026VeriSkill: A Self-Evolution Framework for Program Verification Skillscited by 0
- 2026GenOS: Compositional Certificates for Semantic Robustness in AI Code Generationcited by 0
12 most cited of 14 All 14 (JSON)
- 2026From Verification Failures to Reusable Guidance for Coding Agents30 Sep 2026
- 2026SkillForge: Compositional Skill Synthesis with Verification-in-the-Loop for Generating Formally Verified Dafny Programs30 Aug 2026
- 2026GenOS: Compositional Certificates for Semantic Robustness in AI Code Generation4 Aug 2026
- 2026VeriSkill: A Self-Evolution Framework for Program Verification Skills30 Jul 2026
- 2026Agentic Separation Logic Specification Synthesis26 May 2026
- 2026Agentic Model Checking20 May 2026
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2026Towards an Agentic LLM-based Approach to Requirement Formalization from Unstructured Specifications20 Apr 2026
- 2026Automated Lemma Discovery in Agentic Program Verification23 Mar 2026
- 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversight11 Feb 2026
- 2025Agentic Specification Generator for Move Programs29 Sep 2025
- 2025PAT-Agent: Autoformalization for Model Checking28 Sep 2025
12 newest of 14 All 14 (JSON)
- 2025From Informal to Formal -- Incorporating and Evaluating LLMs on Natural Language Requirements to Verifiable Formal Proofscited by 17
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inferencecited by 14
- 2025Integrating Expert Knowledge into Logical Programs via LLMscited by 3
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMscited by 2
- 2025A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoningcited by 0
- 2025A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoning17 Dec 2025
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs1 Nov 2025
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference22 Feb 2025
- 2025Integrating Expert Knowledge into Logical Programs via LLMs17 Feb 2025
- 2025From Informal to Formal -- Incorporating and Evaluating LLMs on Natural Language Requirements to Verifiable Formal Proofs27 Jan 2025
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
- 2025ClassInvGen: Class Invariant Synthesis using Large Language Modelscited by 11
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
- 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Veruscited by 8
- 2024Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Modelscited by 7
- 2025Validating Network Protocol Parsers with Traceable RFC Document Interpretationcited by 7
- 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinementcited by 6
- 2025Local Success Does Not Compose: Benchmarking Large Language Models for Compositional Formal Verificationcited by 6
- 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?cited by 5
- 2025Towards Repository-Level Program Verification with Large Language Modelscited by 4
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 3
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
12 most cited of 34 All 34 (JSON)
- 2026Self-Spec Verifiable Code Generation30 Sep 2026
- 2026Specula: Scaling formal specifications for autonomous model checking of system code28 Jul 2026
- 2026Faithful Autoformalization of Natural Language Assertions14 Jul 2026
- 2026Partial Contracts Suffice: Sound, LLM-Inferred Regression Verification11 Jul 2026
- 2026Privilege and confidentiality in generative AI workflows6 Jul 2026
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)6 Jul 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026AutoACSL: Synthesizing ACSL Specifications by Integrating LLMs with CPG-Based Static Analysis18 Jun 2026
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems22 May 2026
- 2026Fidelity Probes for Specification--Code Alignment17 May 2026
- 2026Natural Language based Specification and Verification11 May 2026
- 2026Verification Modulo Tested Library Contracts16 Apr 2026
12 newest of 34 All 34 (JSON)