Metraipolis › archive › dc_4783d1b83ee6
Self-Spec Verifiable Code Generation — arXiv:2609.39568
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.39568
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T12:45:31.030Z
- SHA-256 of the archived text
f7c8a3933b0296f853bed70504069e56c0b0237aa17a1c4e287d04cae5788b34- Stable URL of this page
https://metraipolis.com/documento/dc_4783d1b83ee6
How to cite
Self-Spec Verifiable Code Generation — arXiv:2609.39568 — arXiv (en), https://arxiv.org/abs/2609.39568 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4783d1b83ee6 (Metraipolis archive dc_4783d1b83ee6, sha256 f7c8a3933b0296f853bed70504069e56c0b0237aa17a1c4e287d04cae5788b34)
BibTeX
@misc{dc4783d1b83ee6,
title = {Self-Spec Verifiable Code Generation — arXiv:2609.39568},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.39568},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4783d1b83ee6; sha256 f7c8a3933b0296f853bed70504069e56c0b0237aa17a1c4e287d04cae5788b34},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.39568. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language models (LLMs) may generate unreliable code on corner cases missed by testing, while formal verification can provide machine-checkable guarantees. Recently, researchers have proposed several benchmarks to evaluate the capabilities of LLMs in generating formally verifiable code, where LLMs need to formulate formal specifications, generate the corresponding code, and verify its correctness. However, existing benchmarks have two key limitations: (I) They primarily evaluate specification and code generation stage-wise, with code generation typically conditioned on an oracle specification. This setup overlooks whether strong stage-wise performance translates into end-to-end success. (II)They mainly focus on a single proof-oriented language and mathematically structured tasks, offering limited coverage of tasks common in software development. In this paper, we introduce VeriCodeBench, a benchmark for self-spec verifiable code generation, where the LLM relies solely on its own generated specification and code throughout the entire process. VeriCodeBench contains 400 language-native problems across C, Java, Rust, and Python, covering practical concerns in software development. We evaluate specification coverage, code validity, and joint problem-level success. We further introduce CodeNova to enhance the capabilities of LLMs in self-spec verifiable code generation. CodeNova makes requirements explicit through constraint-guided specification and uses verifier feedback to guide targeted implementation repairs. Experimental results reveal that self-generated specifications remain a major bottleneck, while providing more sophisticated specifications may not necessarily lead to higher verification success rates. CodeNova substantially improves performance across all evaluation metrics, enabling Claude Sonnet 5 to achieve the strongest results under the self-spec protocol. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-01 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.39568 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T12:14:14.104Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-10-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).