Hybrid-NL2SVA: Integrating RAG and Finetuning for LLM-based NL2SVA
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
SystemVerilog Assertions (SVAs) are critical for verifying the correctness of hardware designs, but manually writing them from natural language property descriptions, i.e., NL2SVA, remains a labor-intensive and error-prone task. Recent advances in large language models (LLMs) offer opportunities to automate this translation. However, existing models still struggle with understanding domain-specific syntax and semantics. To enhance LLM performance in NL2SVA, we propose a customized retrieval-augmented generation (RAG) framework and a synthetic fine-tuning dataset that together improve LLM's performance. To further improve lightweight models over NL2SVA, our fine-tuning dataset provides prompt-guided explanations that teach LLMs the layer-by-layer construction process of concurrent SVAs, enabling supervised fine-tuning that greatly improves syntax and functionality accuracy. To evaluate the performance of LLMs over NL2SVA, we construct the largest evaluation dataset for NL2SVA, comprising 40 Verilog designs and 229 formally verified SVAs with detailed annotations. Experimental results show that our customized RAG framework increases the number of functionality matched SVAs by 58.42% over GPT-4o-mini, while Qwen2.5-Coder-7B-Instruct fine-tuned on our fine-tuning dataset and integrated with HybridRetrieval achieves a 59.05% over the base Qwen model.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 16 of its 34 references that are in the map. First posted on arXiv 12 Jun 2025.
Builds on
16 of 34 references.
Closest ancestors · 1
Same direction, newest first
Other references · 15
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024Benchmarking Retrieval-Augmented Generation for Medicinecited by 331
- 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Modelscited by 60
- 2024Don't Forget to Connect! Improving RAG with Graph-based Rerankingcited by 49
- 2024MAIN-RAG: Multi-Agent Filtering Retrieval-Augmented Generationcited by 44
- 2024AssertLLM: Generating Hardware Verification Assertions from Design Specifications via Multi-LLMscited by 31
- 2024ChunkRAG: Novel LLM-Chunk Filtering Method for RAG Systemscited by 23
- 2024ChIRAAG: ChatGPT Informed Rapid and Automated Assertion Generationcited by 16
- 2024AssertionBench: A Benchmark to Evaluate Large-Language Models for Assertion Generationcited by 16
- 2024FVEval: Understanding Language Model Capabilities in Formal Verification of Digital Hardwarecited by 10
3 more
- 2024Toward Conversational Agents with Context and Time Sensitive Long-term Memorycited by 8
- 2025Spec2Assertion: Automatic Pre-RTL Assertion Generation using Large Language Models with Progressive Regularizationcited by 8
- 2024Automatic High-quality Verilog Assertion Generation through Subtask-Focused Fine-Tuned LLMs and Iterative Promptingcited by 4
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026QiMeng-CodeV-SVA: Training Specialized LLMs for Hardware Assertion Generation via RTL-Grounded Bidirectional Data Synthesiscited by 2
- 2026GUIDE: GenAI Units In Digital Design Educationcited by 1
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verificationcited by 1
- 2026LLMs for Secure Hardware Design and Related Problems: Opportunities and Challengescited by 1
- 2026Hardware Design and Security in the Era of Chiplets and LLMscited by 0
- 2026A Survey on LLM-Integrated Hardware Design Verificationcited by 0
- 2026A Survey on LLM-Integrated Hardware Design Verification6 Oct 2026
- 2026Hardware Design and Security in the Era of Chiplets and LLMs5 Aug 2026
- 2026LLMs for Secure Hardware Design and Related Problems: Opportunities and Challenges11 May 2026
- 2026GUIDE: GenAI Units In Digital Design Education18 Mar 2026
- 2026QiMeng-CodeV-SVA: Training Specialized LLMs for Hardware Assertion Generation via RTL-Grounded Bidirectional Data Synthesis15 Mar 2026
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verification6 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025SysVCoder: An LLM-Driven Framework for Systematic Generation of System-Level Design
- 2026SpecAlign: A Semantic Alignment Framework for SystemVerilog Assertion Generation
- 2025A Library of LLM Intrinsics for Retrieval-Augmented Generation
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validation
- 2024MeTMaP: Metamorphic Testing for Detecting False Vector Matching Problems in LLM Augmented Generation
- 2024New Solutions on LLM Acceleration, Optimization, and Application
- 2024AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMs
- 2025V-Seek: Accelerating LLM Reasoning on Open-hardware Server-class RISC-V Platforms