Mitigating hallucinations and omissions in LLMs for invertible problems: An application to hardware logic design automation
Andrew S. Cassidy, Guillaume Garreau, Jay Sivagnaname, Mike Grassi, Bernard Brezzo, John V. Arthur, Dharmendra S. Modha

TL;DR
This paper demonstrates that using LLMs as lossless encoders and decoders for invertible problems in hardware logic design can reduce hallucinations, improve accuracy, and assist developers in error detection.
Contribution
It introduces a novel approach of applying lossless encoding-decoding with LLMs to mitigate hallucinations in hardware logic automation tasks.
Findings
Generated HDL code for a network-on-chip router from LCTs using seven LLMs.
Reconstructed LCTs from generated HDL to verify correctness.
Improved productivity and error detection in hardware design workflows.
Abstract
We show for invertible problems that transform data from a source domain (for example, Logic Condition Tables (LCTs)) to a destination domain (for example, Hardware Description Language (HDL) code), an approach of using Large Language Models (LLMs) as a lossless encoder from source to destination followed by as a lossless decoder back to the source, comparable to lossless compression in information theory, can mitigate most of the LLM drawbacks of hallucinations and omissions. Specifically, using LCTs as inputs, we generate the full HDL for a two-dimensional network-on-chip router (13 units, 1500-2000 lines of code) using seven different LLMs, reconstruct the LCTs from the auto-generated HDL, and compare the original and reconstructed LCTs. This approach yields significant productivity improvements, not only confirming correctly generated LLM logic and detecting incorrectly generated…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
