Skip to content

When LLMs Meet SBFL: Combining Semantics and Spectra for RTL Bug Localization

Jianan Mu, Yuxuan Zou, Jiaping Tang, Jing Ye, Jiaxi Zhang, Huawei Li

cs.AR

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