mlsanityData to 7 Oct 2026

Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verification

arXiv 2404.00762 ↗First posted 31 Mar 2024cs.SEcited by 55

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 22; 2026: 29.

55 papers.

Sort:

By area:

  1. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  2. 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
  3. 2025From Informal to Formal -- Incorporating and Evaluating LLMs on Natural Language Requirements to Verifiable Formal Proofscited by 17
  4. 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inferencecited by 14
  5. 2025ClassInvGen: Class Invariant Synthesis using Large Language Modelscited by 11
  6. 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
  7. 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Veruscited by 8
  8. 2024Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Modelscited by 7
  9. 2025Validating Network Protocol Parsers with Traceable RFC Document Interpretationcited by 7
  10. 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinementcited by 6
  11. 2025Local Success Does Not Compose: Benchmarking Large Language Models for Compositional Formal Verificationcited by 6
  12. 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?cited by 5
38 more
  1. 2025Towards Repository-Level Program Verification with Large Language Modelscited by 4
  2. 2025RAG-Verus: Repository-Level Program Verification with LLMs using Retrieval Augmented Generationcited by 3
  3. 2025Integrating Expert Knowledge into Logical Programs via LLMscited by 3
  4. 2025Requirements Development and Formalization for Reliable Code Generation: A Multi-Agent Visioncited by 3
  5. 2025PAT-Agent: Autoformalization for Model Checkingcited by 3
  6. 2025Agentic Specification Generator for Move Programscited by 3
  7. 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
  8. 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 3
  9. 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
  10. 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
  11. 2025textttReMind: Understanding Deductive Code Reasoning in LLMscited by 2
  12. 2026Doc2Spec: Synthesizing Formal Programming Specifications from Natural Language via Grammar Inductioncited by 2
  13. 2026FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversightcited by 2
  14. 2026Automated Lemma Discovery in Agentic Program Verificationcited by 2
  15. 2026Spec-Harness: Measuring and Improving Behavioral Adequacy of LLM-Synthesized Formal Specificationscited by 2
  16. 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
  17. 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generationcited by 1
  18. 2026ModelWisdom: An Integrated Toolkit for TLA+ Model Visualization, Digest and Repaircited by 1
  19. 2026Evaluating LLM-Generated ACSL Annotations for Formal Verificationcited by 1
  20. 2026Can LLM Aid in Solving Constraints with Inductive Definitions?cited by 1
  21. 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 1
  22. 2026Fidelity Probes for Specification--Code Alignmentcited by 1
  23. 2024Specification Generation for Neural Networks in Systemscited by 0
  24. 2025BRIDGE: Building Representations In Domain Guided Program Synthesiscited by 0
  25. 2025AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolutioncited by 0
  26. 2025A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoningcited by 0
  27. 2026Verification Modulo Tested Library Contractscited by 0
  28. 2026Towards an Agentic LLM-based Approach to Requirement Formalization from Unstructured Specificationscited by 0
  29. 2026Natural Language based Specification and Verificationcited by 0
  30. 2026Agentic Model Checkingcited by 0
  31. 2026Agentic Separation Logic Specification Synthesiscited by 0
  32. 2026AutoACSL: Synthesizing ACSL Specifications by Integrating LLMs with CPG-Based Static Analysiscited by 0
  33. 2026An Empirical Study of LLM-Generated Specifications for VeriFastcited by 0
  34. 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)cited by 0
  35. 2026Privilege and confidentiality in generative AI workflowscited by 0
  36. 2026Partial Contracts Suffice: Sound, LLM-Inferred Regression Verificationcited by 0
  37. 2026Faithful Autoformalization of Natural Language Assertionscited by 0
  38. 2026Specula: Scaling formal specifications for autonomous model checking of system codecited by 0

50 most cited of 55 All 55 (JSON)