BenchFuzz: Sound Differential Fuzzing, Certified Repair and LLM-Guided Generation for RISC-V Cores — A Controlled Study on PicoRV32 and a Head-to-Head Comparison on Encarsia's Rocket and BOOM Bugs

Processor verification needs stimulus, a trustworthy verdict, and a way from a long failing test to a fix. Recent LLM-guided fuzzers report large gains in coverage and bug counts, but evaluate detection alone, on different designs, metrics and budgets. We present BenchFuzz, a role-separated differential verification loop for RISC-V cores in which every LLM output is a proposal checked by a validator or a formal proof, and evaluate it in two settings. On PicoRV32, a lockstep oracle over the RISC-V Formal Interface raises no false alarm on upstream RTL (150/150 control runs), reproduces Cascade's bug P6 on the commit Cascade evaluated, and exposes a residual fence deviation on current master. Random and mutational generators saturate all reachable RTL within a few hundred programs and detect 14 of 15 injected bugs; delta debugging shrinks failures by a median 93.1%. A template repair baseline produces gate-passing patches for 9 of 14 bugs, of which whole-core formal equivalence certifies only 7; a free-tier LLM (gemini-3.5-flash-lite) repairs 12 of 14 with certified pass@1 0.74 and no gate-passing but wrong patch, and a blind control shows that on plain operator faults it uses the observed failure (0.82 against 0.33). On the 60 Rocket and BOOM bugs of the Encarsia benchmark, where DifuzzRTL, ProcessorFuzz and Cascade have per-bug results, BenchFuzz with a random generator matches DifuzzRTL and ProcessorFuzz on Rocket (one bug short of Cascade) and exceeds all three on BOOM; LLM-written generator templates, derived only from measured ISA gaps and validated on the bug-free cores, raise detection to 16 and 19 of 30 and find 6 bugs none of the three detects, with a few free-tier requests and minutes per bug. ChipFuzzer reports more (20 per core) with commercial models and 24 h per bug. Every detection is replayed on its bug-free core; these checks exposed five Rocket and BOOM floating-point and CSR behaviours that differ from Spike and would otherwise have been reported as bugs, and applied to each program instead of filtering those behaviours they add a BOOM bug none of the three detects (20 of 30 BOOM bugs). A dual-hart PicoRV32 whose arbiter log is replayed lets delta debugging shrink timing-sensitive concurrency failures to 2–13 lines, and an 11M–85M-parameter generator trained from scratch on mutant kills matches, but does not yet beat, the generators it learned from on held-out Rocket and BOOM mutants. We close with the capabilities BenchFuzz lacks and a roadmap to FPGA acceleration.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24692220
Primary Topic
Software Testing and Debugging Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

BenchFuzz: Sound Differential Fuzzing, Certified Repair and LLM-Guided Generation for RISC-V Cores — A Controlled Study on PicoRV32 and a Head-to-Head Comparison on Encarsia's Rocket and BOOM Bugs

Subodh Satish Dalvi
Zenodo (CERN European Organization for Nuclear Research)
Software Testing and Debugging Techniques
preprint

BenchFuzz: Sound Differential Fuzzing, Certified Repair and LLM-Guided Generation for RISC-V Cores — A Controlled Study on PicoRV32 and a Head-to-Head Comparison on Encarsia's Rocket and BOOM Bugs

Subodh Satish Dalvi
preprint en

Abstract

Processor verification needs stimulus, a trustworthy verdict, and a way from a long failing test to a fix. Recent LLM-guided fuzzers report large gains in coverage and bug counts, but evaluate detection alone, on different designs, metrics and budgets. We present BenchFuzz, a role-separated differential verification loop for RISC-V cores in which every LLM output is a proposal checked by a validator or a formal proof, and evaluate it in two settings. On PicoRV32, a lockstep oracle over the RISC-V Formal Interface raises no false alarm on upstream RTL (150/150 control runs), reproduces Cascade's bug P6 on the commit Cascade evaluated, and exposes a residual fence deviation on current master. Random and mutational generators saturate all reachable RTL within a few hundred programs and detect 14 of 15 injected bugs; delta debugging shrinks failures by a median 93.1%. A template repair baseline produces gate-passing patches for 9 of 14 bugs, of which whole-core formal equivalence certifies only 7; a free-tier LLM (gemini-3.5-flash-lite) repairs 12 of 14 with certified pass@1 0.74 and no gate-passing but wrong patch, and a blind control shows that on plain operator faults it uses the observed failure (0.82 against 0.33). On the 60 Rocket and BOOM bugs of the Encarsia benchmark, where DifuzzRTL, ProcessorFuzz and Cascade have per-bug results, BenchFuzz with a random generator matches DifuzzRTL and ProcessorFuzz on Rocket (one bug short of Cascade) and exceeds all three on BOOM; LLM-written generator templates, derived only from measured ISA gaps and validated on the bug-free cores, raise detection to 16 and 19 of 30 and find 6 bugs none of the three detects, with a few free-tier requests and minutes per bug. ChipFuzzer reports more (20 per core) with commercial models and 24 h per bug. Every detection is replayed on its bug-free core; these checks exposed five Rocket and BOOM floating-point and CSR behaviours that differ from Spike and would otherwise have been reported as bugs, and applied to each program instead of filtering those behaviours they add a BOOM bug none of the three detects (20 of 30 BOOM bugs). A dual-hart PicoRV32 whose arbiter log is replayed lets delta debugging shrink timing-sensitive concurrency failures to 2–13 lines, and an 11M–85M-parameter generator trained from scratch on mutant kills matches, but does not yet beat, the generators it learned from on held-out Rocket and BOOM mutants. We close with the capabilities BenchFuzz lacks and a roadmap to FPGA acceleration.

Zenodo (CERN European Organization for Nuclear Research)
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon