mlsanityData to 7 Oct 2026

Evaluating LLM-driven User-Intent Formalization for Verification-Aware Languages

arXiv 2406.09757 ↗First posted 14 Jun 2024cs.PL cs.LG cs.SEcited by 16

Not on the map. Why?

Abstract (arXiv)

Verification-aware programming languages such as Dafny and F* provide means to formally specify and prove properties of a program. Although the problem of checking an implementation against a specification can be defined mechanically, there is no algorithmic way of ensuring the correctness of the it user-intent formalization for programs, expressed as a formal specification. This is because intent or requirement is expressed it informally in natural language and the specification is a formal artefact. Despite, the advent of large language models (LLMs) has made tremendous strides bridging the gap between informal intent and formal program implementations recently, driven in large parts by benchmarks and automated metrics for evaluation. Recent work has proposed a framework for evaluating the it user-intent formalization problem for mainstream programming languages~citeendres-fse24. However, such an approach does not readily extend to verification-aware languages that support rich specifications (using quantifiers and ghost variables) that cannot be evaluated through dynamic execution. Previous work also required generating program mutants using LLMs to create the benchmark. We advocate an alternate, perhaps simpler approach of it symbolically testing specifications to provide an intuitive metric for evaluating the quality of specifications for verification-aware languages. We demonstrate that our automated metric agrees closely on a human-labeled dataset of Dafny specifications for the popular MBPP code-generation benchmark, yet demonstrates cases where the human labeling is not perfect. We also outline formal verification challenges that need to be addressed to apply the technique more widely. We believe our work provides a stepping stone to enable the establishment of a benchmark and research agenda for the problem of user-intent formalization for programs.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 8 of its 23 references that are in the map. First posted on arXiv 14 Jun 2024.

Builds on

8 of 23 references.

References · 8

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
  4. 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 53
  5. 2022Interactive Code Generation via Test-Driven User-Intent Formalizationcited by 50
  6. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
  7. 2023Finding Inductive Loop Invariants using Large Language Modelscited by 35
  8. 2017Verified Low-Level Programming Embedded in F*cited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 11.

16 papers.

Sort:

By area: