Proof2Silicon: Prompt Repair for Verified Code and Hardware Generation via Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated impressive capabilities in automated code generation but frequently produce code that fails formal verification, an essential requirement for hardware and safety-critical domains. To overcome this fundamental limitation, we previously proposed PREFACE, a model-agnostic framework based on reinforcement learning (RL) that iteratively repairs the prompts provided to frozen LLMs, systematically steering them toward generating formally verifiable Dafny code without costly fine-tuning. This work presents Proof2Silicon, a novel end-to-end synthesis framework that embeds the previously proposed PREFACE flow to enable the generation of correctness-by-construction hardware directly from natural language specifications. Proof2Silicon operates by: (1) leveraging PREFACE's verifier-driven RL agent to optimize prompt generation iteratively, ensuring Dafny code correctness; (2) automatically translating verified Dafny programs into synthesizable high-level C using Dafny's Python backend and PyLog; and (3) employing Vivado HLS to produce RTL implementations. Evaluated rigorously on a challenging 100-task benchmark, PREFACE's RL-guided prompt optimization consistently improved Dafny verification success rates across diverse LLMs by up to 21%. Crucially, Proof2Silicon achieved an end-to-end hardware synthesis success rate of up to 72%, generating RTL designs through Vivado HLS synthesis flows. These results demonstrate a robust, scalable, and automated pipeline for LLM-driven, formally verified hardware synthesis, bridging natural-language specification and silicon realization.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 20 of its 29 references that are in the map. First posted on arXiv 7 Sep 2025.
Builds on
20 of 29 references.
References · 20
- 2023GPT-4 Technical Reportcited by 18,132
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023Guiding Pretraining in Reinforcement Learning with Large Language Modelscited by 185
- 2024Evaluation of OpenAI o1: Opportunities and Challenges of AGIcited by 127
- 2024Learning Dynamics of LLM Finetuningcited by 93
- 2024Towards AI-Assisted Synthesis of Verified Dafny Methodscited by 58
- 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 54
- 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 51
- 2024HLSPilot: LLM-based High-Level Synthesiscited by 24
- 2021ScaleHLS: A New Scalable High-Level Synthesis Framework on Multi-Level Intermediate Representationcited by 21
8 more
- 2024CreativEval: Evaluating Creativity of LLM-Based Hardware Code Generationcited by 19
- 2025Spec2RTL-Agent: Automated Hardware Code Generation from Complex Specifications Using LLM Agent Systemscited by 17
- 2024VerilogReader: LLM-Aided Hardware Test Generationcited by 16
- 2024YOLO-MARL: You Only LLM Once for Multi-Agent Reinforcement Learningcited by 9
- 2025LERO: LLM-driven Evolutionary framework with Hybrid Rewards and Enhanced Observation for Multi-Agent Reinforcement Learningcited by 9
- 2024dafny-annotator: AI-Assisted Verification of Dafny Programscited by 8
- 2024Combining LLM Code Generation with Formal Specifications and Reactive Program Synthesiscited by 7
- 2025Dafny as Verification-Aware Intermediate Language for Code Generationcited by 6
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025A Survey of Reinforcement Learning for Large Reasoning Modelscited by 175