paper-with-me

Papers

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

2024-06-14 · Shuvendu K. Lahiri

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~\cite{endres-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.

📄 PDF Abstract BibTeX arXiv:2406.09757

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generationmbpp

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Intent Formalization: A Grand Challenge for Reliable Coding in the Age of AI Agents

2026-03-17 · Shuvendu K. Lahiri arxiv

Agentic AI systems can now generate code with remarkable fluency, but a fundamental question remains: \emph{does the generated code actually do what the user intended?} The gap between informal natural language requireme…

Safeguarding Mobile GUI Agent via Logic-based Action Verification

2025-03-24 · Jungjae Lee, Dongjae Lee, Chihun Choi, Youngmin Im 외

Large Foundation Models (LFMs) have unlocked new possibilities in human-computer interaction, particularly with the rise of mobile Graphical User Interface (GUI) Agents capable of interpreting GUIs. These agents promise …

Interactive Code Generation via Test-Driven User-Intent Formalization

2022-08-11 · Shuvendu K. Lahiri, Sarah Fakhoury, Aaditya Naik, Georgios Sakkas 외

Large language models (LLMs) have shown great potential in automating significant aspects of coding by producing natural code from informal natural language (NL) intent. However, when interacting with LLMs, users have no…

Code GenerationHumanEvalmbpp

Description Logics based Formalization of Wh-Queries

2013-12-25 · Sourish Dasgupta, Rupali KaPatel, Ankur Padia, Kushal Shah

The problem of Natural Language Query Formalization (NLQF) is to translate a given user query in natural language (NL) into a formal language so that the semantic interpretation has equivalence with the NL interpretation…

Information RetrievalQuestion AnsweringRetrievalTranslation

Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalization

2026-05-26 · Anmol Agarwal, Natalie Neamtu, Pranjal Aggarwal, Seungone Kim 외 arxiv

AI coding agents are increasingly used to write real-world software, but ensuring that their outputs are correct remains a fundamental challenge. Formal verification offers a promising path: an agent generates code toget…