MetRex: A Benchmark for Verilog Code Metric Reasoning Using LLMs
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large Language Models (LLMs) have been applied to various hardware design tasks, including Verilog code generation, EDA tool scripting, and RTL bug fixing. Despite this extensive exploration, LLMs are yet to be used for the task of post-synthesis metric reasoning and estimation of HDL designs. In this paper, we assess the ability of LLMs to reason about post-synthesis metrics of Verilog designs. We introduce MetRex, a large-scale dataset comprising 25,868 Verilog HDL designs and their corresponding post-synthesis metrics, namely area, delay, and static power. MetRex incorporates a Chain of Thought (CoT) template to enhance LLMs' reasoning about these metrics. Extensive experiments show that Supervised Fine-Tuning (SFT) boosts the LLM's reasoning capabilities on average by 37.0%, 25.3%, and 25.7% on the area, delay, and static power, respectively. While SFT improves performance on our benchmark, it remains far from achieving optimal results, especially on complex problems. Comparing to state-of-the-art regression models, our approach delivers accurate post-synthesis predictions for 17.4% more designs (within a 5% error margin), in addition to offering a 1.7x speedup by eliminating the need for pre-processing. This work lays the groundwork for advancing LLM-based Verilog code metric reasoning.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 18 of its 32 references that are in the map. First posted on arXiv 5 Nov 2024.
Builds on
18 of 32 references.
References · 18
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 223
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 197
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 175
- 2023RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Modelcited by 143
- 2023ChatEDA: A Large Language Model Powered Autonomous Agent for EDAcited by 118
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2022Benchmarking Large Language Models for Automated Verilog RTL Code Generationcited by 112
- 2023RTLFixer: Automatically Fixing RTL Syntax Errors with Large Language Modelscited by 98
- 2023RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solutioncited by 69
6 more
- 2023GPT4AIGChip: Towards Next-Generation AI Accelerator Design Automation via Large Language Modelscited by 59
- 2020DAVE: Deriving Automatically Verilog from Englishcited by 46
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2024RTLRewriter: Methodologies for Large Models aided RTL Code Optimizationcited by 30
- 2023MasterRTL: A Pre-Synthesis PPA Estimation Framework for Any RTL Designcited by 19
- 2023PANDA: Architecture-Level Power Evaluation by Unifying Analytical and Machine Learning Solutionscited by 3
Built on by
Citing papers per year: 2025: 6; 2026: 1.
7 papers.
- 2025VeriThoughts: Enabling Automated Verilog Code Generation using Reasoning and Formal Verificationcited by 15
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Aheadcited by 7
- 2025ResBench: Benchmarking LLM-Generated FPGA Designs with Resource Awarenesscited by 5
- 2025Automated Multi-Agent Workflows for RTL Designcited by 3
- 2025Pluto: A Benchmark for Evaluating Efficiency of LLM-generated Hardware Codecited by 3
- 2025RocketPPA: Code-Level Power, Performance, and Area Prediction via LLM and Mixture of Expertscited by 0
- 2026Benchmarking LLMs for Verilog Design Flowscited by 0
- 2026Benchmarking LLMs for Verilog Design Flows23 Jul 2026
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Ahead29 Oct 2025
- 2025Pluto: A Benchmark for Evaluating Efficiency of LLM-generated Hardware Code16 Oct 2025
- 2025Automated Multi-Agent Workflows for RTL Design24 Sep 2025
- 2025VeriThoughts: Enabling Automated Verilog Code Generation using Reasoning and Formal Verification16 May 2025
- 2025RocketPPA: Code-Level Power, Performance, and Area Prediction via LLM and Mixture of Experts27 Mar 2025
- 2025ResBench: Benchmarking LLM-Generated FPGA Designs with Resource Awareness11 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025VeriMind: Agentic LLM for Automated Verilog Generation with a Novel Evaluation Metric
- 2025Comprehensive Verilog Design Problems: A Next-Generation Benchmark Dataset for Evaluating Large Language Models and Agents on RTL Design and Verification
- 2025Towards LLM-based Root Cause Analysis of Hardware Design Failures
- 2026RTL-BenchLS: A Large-Scale Benchmark for RTL Reasoning and Generation with Large Language Models
- 2026Synthesis-in-the-Loop Evaluation of LLMs for RTL Generation: Quality, Reliability, and Failure Modes
- 2026A Survey on LLM-Integrated Hardware Design Verification
- 2025VFlow: Discovering Optimal Agentic Workflows for Verilog Generation
- 2025Can Reasoning Models Reason about Hardware? An Agentic HLS Perspective