CASS-RTL: Correctness-Aware Subspace Steering for RTL Generation with LLMs
Not on the map. Why?
Abstract (arXiv)
Recent advances in large language models (LLMs) have enabled the automatic synthesis (generation) of register-transfer level (RTL) code from natural language instructions, offering a promising pathway to accelerate chip design. Unlike typical natural language (and software coding) tasks, LLM-based RTL code generation demands strict cycle accuracy with concurrency, where minor logical errors can render a circuit unusable or insecure. While prior work has explored hallucination mitigation via external verification, self-evaluation prompts, retrieval-augmented prompting, domain specific fine-tuning, agentic solutions, and reasoning, these approaches largely overlook the attention-oriented internal mechanisms of LLMs that may inherently correlate with RTL correctness. This work proposes CASS-RTL, a first-of-its-kind framework for discovering and leveraging LLMs' correctness-aware components to guide RTL generation toward functionally accurate outputs. We (i) identify attention heads whose activation patterns consistently differentiate correct from incorrect RTL; (ii) construct a low-dimensional subspace capturing correctness-relevant signals; and (iii) design a lightweight, geometry-aware intervention that steers the model at inference time. CASS-RTL is fully model-agnostic, requires no additional supervision or retraining, and readily integrates into existing models. Empirically, we evaluate CASS-RTL on multiple models and observe 10%-20% improvement in pass@1/5/10 accuracy on VerilogEval and 5% improvement on CVDP, demonstrating the effectiveness of our method in enhancing reliability without sacrificing model efficiency or requiring a large labeled dataset for fine-tuning.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 29 of its 35 references that are in the map. First posted on arXiv 4 Jun 2026.
Builds on
29 of 35 references.
References · 29
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023The Internal State of an LLM Knows When It's Lyingcited by 659
- 2023HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Modelscited by 341
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 252
- 2022Language Models that Seek for Knowledge: Modular Search & Generation for Dialogue and Prompt Completioncited by 102
- 2024TruthX: Alleviating Hallucinations by Editing Large Language Models in Truthful Spacecited by 91
- 2024Self-Alignment for Factuality: Mitigating Hallucinations in LLMs via Self-Evaluationcited by 80
- 2023Retrieve-Rewrite-Answer: A KG-to-Text Enhanced LLMs Framework for Knowledge Graph Question Answeringcited by 65
- 2024OriGen:Enhancing RTL Code Generation with Code-to-Code Augmentation and Self-Reflectioncited by 56
17 more
- 2023Truth Forest: Toward Multi-Scale Truthfulness in Large Language Models through Intervention without Tuningcited by 45
- 2025Comprehensive Verilog Design Problems: A Next-Generation Benchmark Dataset for Evaluating Large Language Models and Agents on RTL Design and Verificationcited by 44
- 2024CraftRTL: High-quality Synthetic Data Generation for Verilog Code Models with Correct-by-Construction Non-Textual Representations and Targeted Code Repaircited by 42
- 2024Towards LLM-Powered Verilog RTL Assistant: Self-Verification and Self-Correctioncited by 39
- 2025QiMeng-CodeV-R1: Reasoning-Enhanced Verilog Generationcited by 35
- 2024HaluEval-Wild: Evaluating Hallucinations of Language Models in the Wildcited by 27
- 2025HaVen: Hallucination-Mitigated LLM for Verilog Code Generation Aligned with HDL Engineerscited by 25
- 2025ScaleRTL: Scaling LLMs with Reasoning Data and Test-Time Compute for Accurate RTL Code Generationcited by 22
- 2025RTL++: Graph-enhanced LLM for RTL Code Generationcited by 18
- 2025HDLCoRe: A Training-Free Framework for Mitigating Hallucinations in LLM-Generated HDLcited by 17
- 2024Self-HWDebug: Automation of LLM Self-Instructing for Hardware Security Verificationcited by 11
- 2025SAGE-HLS: Syntax-Aware AST-Guided LLM for High-Level Synthesis Code Generationcited by 9
- 2025LLM-IFT: LLM-Powered Information Flow Tracking for Secure Hardwarecited by 5
- 2025DecoRTL: A Run-time Decoding Framework for RTL Code Generation with LLMscited by 5
- 2026MeltRTL: Multi-Expert LLMs with Inference-time Intervention for RTL Code Generationcited by 2
- 2026SafeTune: Mitigating Data Poisoning in LLM Fine-Tuning for RTL Code Generationcited by 2
- 2026From Language to Logic: Bridging LLMs & Formal Representations for RTL Assertion Generationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024EDA-Aware RTL Generation with Large Language Models
- 2025Understanding and Mitigating Errors of LLM-Generated RTL Code
- 2026ACE-RTL: When Agentic Context Evolution Meets RTL-Specialized LLMs
- 2025EARL: Entropy-Aware RL Alignment of LLMs for Reliable RTL Code Generation
- 2026How LLMs Fail and Generalize in RTL Coding for Hardware Design?
- 2026LLM4RTL: Tool-Assisted LLM for RTL Generation
- 2026RTL-BenchLS: A Large-Scale Benchmark for RTL Reasoning and Generation with Large Language Models
- 2026ChipCraftBrain: Validation-First RTL Generation via Multi-Agent Orchestration