arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.10128cs.CEcond-mat.mtrl-scics.SE
收藏

在数据稀缺条件下构建可执行领域特定大语言模型的通用框架:以半导体TCAD仿真为例

A Generalizable Framework for Building Executable Domain-Specific LLMs under Data Scarcity: Demonstration on Semiconductor TCAD Simulation

Inspur Electronic Information Industry Co., Ltd(浪潮电子信息产业股份有限公司);Center for Quantum Matters, Zhejiang University(浙江大学量子物质中心)

Di Wang, Zhenhua Wu, Yu Liu, Kai Chang, Shaohua Wu

AI总结:

本文提出一种通用框架,在数据稀缺条件下构建可执行的领域特定大语言模型,通过生成合成数据和代码优化流程,实现领域知识灌输和脚本可执行性提升。

摘要:

科学与工程领域常面临数据稀缺和严格的可执行性要求:模型不仅要生成流畅的文本,还必须生成语法正确、可被工具编译的脚本。我们提出了一种以模式优先对齐的框架,用于在低资源环境下构建紧凑且可执行的领域特定大语言模型。该框架整合了三个核心组件:(i)从专家文档中生成大规模合成问答数据,以灌输基础领域知识;(ii)以代码为中心的IR->DPO工作流程,将已验证的工具集转换为可解释的中间表示(IR),执行等价保持的多样化,并构建偏好对以直接优化指令符合性和代码可执行性;(iii)对检索增强生成(RAG)的受控评估,显示虽然RAG对通用大语言模型有益,但可能略微降低已对领域对齐模型的性能。我们通过实例化TcadGPT来演示该框架,用于半导体技术计算机辅助设计(TCAD)。使用150万个合成问答对和一个基于IR驱动的DPO数据集,TcadGPT在SDE可执行性测试中实现了85.6%的语义准确率和80.0%的语法通过率,显著优于最先进的通用大语言模型,如GPT-4o。为了探测TCAD之外的可移植性,我们将相同的配方应用于开源FEM求解器Elmer,观察到在通用基线上的脚本级成功率有持续的提升。所有数据集、基准和代码(包括P1、P2和IR->DPO)都已发布以供可重复性。这些结果表明,所提出的框架为在数据稀缺的专业领域中构建可执行的大语言模型提供了一条稳健且可重复的路径。

英文摘要:

Scientific and engineering verticals often suffer from data scarcity and strict executability requirements: models must generate not only fluent text, but also syntactically valid, tool-compilable scripts. We present a schema-first alignment framework for building compact, executable domain-specific LLMs in low-resource settings. The framework integrates three core components: (i) large-scale synthetic QA data generation from expert documentation to instill foundational domain knowledge; (ii) a code-centric IR->DPO workflow that converts verified tool decks into interpretable intermediate representations (IR), performs equivalence-preserving diversification, and constructs preference pairs to directly optimize instruction compliance and code executability; and (iii) a controlled evaluation of Retrieval-Augmented Generation (RAG), showing that while RAG benefits general LLMs, it can marginally degrade the performance of already domain-aligned models. We demonstrate the framework by instantiating TcadGPT for semiconductor Technology Computer-Aided Design (TCAD). Using 1.5M synthetic QA pairs and an IR-driven DPO dataset, TcadGPT attains 85.6% semantic accuracy and an 80.0% syntax pass rate on SDE executability tests, substantially outperforming state-of-the-art general LLMs such as GPT-4o. To probe portability beyond TCAD, we apply the same recipe to the open-source FEM solver Elmer, observing consistent improvements in script-level success rates over general-purpose baselines. All datasets, benchmarks, and code (including P1, P2, and IR->DPO) are released for reproducibility. Together, these results suggest that the proposed framework provides a robust and reproducible path toward executable LLMs in specialized, data-scarce professional domains.

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

↑