arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.03053cs.LGcs.AIcs.ARcs.PL
收藏

缓解LLMs在可逆问题中的幻觉和遗漏:应用于硬件逻辑设计自动化

Mitigating hallucinations and omissions in LLMs for invertible problems: An application to hardware logic design automation

IBM Research(IBM研究院)

Andrew S. Cassidy, Guillaume Garreau, Jay Sivagnaname, Mike Grassi, Bernard Brezzo, John V. Arthur, Dharmendra S. Modha

AI总结:

本文提出利用LLMs作为无损编码器和解码器处理可逆问题,以减少LLMs的幻觉和遗漏,应用于硬件逻辑设计自动化,提升设计效率并检测错误。

摘要:

我们展示对于可逆问题,将数据从源域(如逻辑条件表(LCTs))转换到目标域(如硬件描述语言(HDL)代码)时,使用大型语言模型(LLMs)作为无损编码器从源到目标,随后作为无损解码器返回源,类似于信息论中的无损压缩,可以缓解LLMs的大部分缺点,即幻觉和遗漏。具体而言,使用LCTs作为输入,用七种不同的LLMs生成二维网络芯片路由器的完整HDL代码(13个单元,1500-2000行代码),从自动生成的HDL中重建LCTs,并比较原始和重建的LCTs。这种方法带来了显著的生产率提升,不仅验证了正确生成的LLM逻辑并检测了错误生成的LLM逻辑,还帮助开发者发现设计规范错误。

英文摘要:

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 LLM logic but also assisting developers in finding design specification errors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑