配置胜过选择:在开源LLM用于RTL生成中,超参数敏感性超过模型差异
Configuration Over Selection: Hyperparameter Sensitivity Exceeds Model Differences in Open-Source LLMs for RTL Generation
AI总结:
研究通过对比26个开源LLM在VerilogEval和RTLLM上的表现,发现超参数配置对RTL生成效果影响显著,优于模型选择,揭示了配置优化的重要性。
摘要:
开源LLM用于硬件设计的基准测试通常关注选择哪种模型,而将推理时的解码配置视为次要因素。本文表明,模型的配置方式比所选模型本身更为关键。通过对26个开源LLM在VerilogEval和RTLLM上的基准测试,研究首先映射了当前的能力图景,然后对三个主要模型进行了广泛的108种超参数扫描。扫描结果显示,同一LLM的最佳与最差设置之间的绝对通过率差距高达25.5%,这是在各种模型家族各自默认配置下观察到的平均差距的5倍。根据两个基准套件中的Spearman's ρ对所有配置进行排名,得出几乎零相关性,证明了最佳配置不具有可转移性。这些结果表明,在默认超参数下进行的基准测试会混淆模型能力与配置效果。要实现开源LLM在RTL生成中的全部潜力,需要架构和基准意识的超参数选择,这由所提出的方法论所支持。
英文摘要:
Benchmarking of open-source LLMs for hardware design focuses on which LLMs to use, while treating inference-time decoding configuration as a secondary concern. This work shows that it matters more how an LLM is configured than which model is selected. Benchmarking 26 open-source LLMs on VerilogEval and RTLLM with synthesis-in-the-loop evaluation, the study first maps the current capability landscape and then conducts an extensive 108-configuration hyperparameter sweep on three prominent models. The sweep reveals absolute pass-rate gaps of up to 25.5% between the best and worst settings for the same LLM, which is 5x larger than the average spread observed across various model families under their respective default configurations. Ranking all configurations by Spearman's $ρ$ across the two benchmark suites yields near-zero correlation, demonstrating that optimal configurations do not transfer. These results show that benchmarking conducted under default hyperparameters confounds model capabilities with configuration effects. Realizing the full potential of open-source LLMs for RTL generation requires architecture and benchmark aware hyperparameter selection, as enabled by the proposed methodology.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。