When LLMs Meet SBFL: Combining Semantics and Spectra for RTL Bug Localization
Jianan Mu, Yuxuan Zou, Jiaping Tang, Jing Ye, Jiaxi Zhang, Huawei Li
Abstract
Accurately localizing the statements responsible for functional bugs is essential for efficient debugging of register-transfer-level (RTL) designs. Spectrum-based fault localization (SBFL) ranks suspicious statements using execution evidence, but its effectiveness depends strongly on test-vector quality, and its statistical scores often cannot distinguish the root cause from structurally related statements. Large language models (LLMs) provide complementary semantic evidence: they can precisely identify the buggy statement when their reasoning is correct, but may produce severe long-tail ranking errors when it fails. These contrasting characteristics suggest that LLM reasoning and SBFL should be integrated rather than treated as competing alternatives. Based on this observation, we propose LASER, a bidirectional framework in which LLM semantics improve spectrum construction while spectrum evidence stabilizes LLM reasoning. LASER introduces LLM-guided spectrum augmentation, which uses semantic guidance from the LLM to configure heuristic mutations of the bug-revealing test. The resulting tests are used to construct informative passing and failing execution spectra. LASER further introduces constraint-aware buggy-statement reasoning, which uses SBFL suspiciousness as an execution-grounded prior to constrain LLM-based semantic reranking and suppress unstable predictions.
Create a lesson
Related papers
TSUMIKI: Local Open-Weight LLMs for Analog IC Layout Behind the Foundry Firewall
Shared title terminologycs.ARKentaro Yoshioka
Local LLMs for Analog Circuit Reasoning: Diagnosing and Mitigating a Composition Failure
Shared title terminologycs.ARAhmet Efe
VeriSegue: Local RL and Cloud LLM Collaborative Verification Across RISC-V Processors and AI Accelerators
Shared title terminologycs.ARYiran He, Haihua Shen, Pei Chen et al.
RTLDetective: Agentic RTL Debugging through Dataflow Analysis and Simulation-Guided Fault Localization
Shared title terminologycs.ARNeusha Javidnia, Ruisi Zhang, Farinaz Koushanfar
Bridging the Semantic Gap from Natural Language Specifications to RTL with Layered Formal Guidance
Shared title terminologycs.ARYan Tan, Xiangchen Meng, Yangdi Lyu
Gossamer: A Utility-Driven Architecture for Constant-Budget KV Cache Compression in Reasoning LLMs
Shared title terminologycs.ARFeng Cheng, Cong Guo, Junyao Zhang et al.