iScript: 一种领域适应的大型语言模型和基准,用于物理设计 Tcl 脚本生成
iScript: A Domain-Adapted Large Language Model and Benchmark for Physical Design Tcl Script Generation
AI总结:
iScript 是一种专门用于物理设计 Tcl 脚本生成的领域适应大语言模型,通过多阶段数据合成和两阶段训练策略提升脚本生成性能。
摘要:
现代电子设计自动化流程严重依赖 Tcl 脚本,但通用大语言模型在这一领域表现不佳,原因在于数据稀缺、领域特定语义以及物理设计所需的高可靠性。我们提出了 iScript,一种专门用于 Innovus Tcl 脚本生成的 Qwen3-8B 领域适应模型,以及 iScript-Bench,涵盖五个任务类别和三个难度级别的综合基准。为克服训练数据不足的问题,我们引入了多阶段数据合成管道,整合了命令提取、静态检查、需求反推和思维链生成,产生了一个包含 10000 个(需求,思维链,脚本)的数据集。iScript 通过结合领域适应预训练和监督微调的两阶段策略进行训练。为高效评估脚本正确性,我们进一步提出一个两步验证框架,包括静态语法验证和基于 LLM 的功能评估。在我们的基准测试中,iScript 在平均上比目前最先进的 LLMs 的 pass@k 分数更高。这些结果展示了领域适应和数据合成在 EDA 脚本任务中的有效性。
英文摘要:
Modern EDA flows rely heavily on Tcl scripting, yet general LLMs perform poorly in this domain due to extreme data scarcity, domain-specific semantics, and the high reliability required in physical design. We present iScript, a domain-adapted Qwen3-8B model for Innovus Tcl script generation, and iScript-Bench, a comprehensive benchmark covering five task categories and three difficulty levels. To overcome the lack of training data, we introduce a multi-stage data synthesis pipeline that integrates command extraction, static linting, requirement back-inference, and Chain-of-Thought generation, producing a 10K-tuple (requirement, CoT, script) dataset. iScript is trained through a two-stage strategy combining domain-adaptive pretraining and supervised fine-tuning. To evaluate script correctness efficiently, we further propose a two-step verification framework consisting of static syntax verification and LLM-based functional evaluation. On our benchmark, iScript shows higher pass@k scores than currently state-of-the-art LLMs on average. These results demonstrate the effectiveness of domain adaptation and data synthesis for EDA scripting tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。