Wyrel: Self-Validating RL Environments for AI Chip Debugging and Verification
Wyrel is a system that turns any correct hardware design into hundreds of automatically validated reinforcement-learning tasks for AI models, with no human labelling. It injects realistic bugs with 27 mutation operators, keeps a bug only if a hidden testbench proves it changes behaviour, and labels each bug easy, medium or hard by how quickly random stimulus exposes it. It offers two tracks: debugging (find and fix the bug) and verification (write a testbench from the specification that catches hidden bugs). The current release holds 37 designs, including three real open-source cores (I2C, SPI and UART 16550), yielding 1,365 debugging tasks and 1,360 verification bugs, 244 of them hard. In preliminary experiments, frontier models catch 96 to 99% of hard bugs in hand-written designs, while cheaper models score 0.47 to 0.60, mostly by writing testbenches that reject the correct design; on a real I2C core, both frontier models tested score 0. Training on Wyrel helps at every model size tested: a short supervised warm-up on 207 automatically verified fixes raised Qwen2.5-Coder-7B from 16.3% to 64.7% and 14B from 38.0% to 70.7% of 300 held-out debugging tasks, and 14B from 39.6% to 67.8% on six designs never seen in training. We also report six flaws found in our own harness, each of which silently distorted scores, as lessons for anyone building hardware benchmarks.
Authors
- Independent Researcher Munna Kumar
Publication Details
- Journal
- Figshare
- Published
- 2026-12-03
- DOI
- https://doi.org/10.6084/m9.figshare.35202160
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- preprint