arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.21748cs.CLcs.AI
收藏

通过引导数据生成构建领域专用小型语言模型

Building Domain-Specific Small Language Models via Guided Data Generation

Aman Kumar, Ekant Muljibhai Amin, Xian Yeow Lee, Lasitha Vidyaratne, Ahmed K. Farahat, Dipanjan D. Ghosh, Yuta Koreeda, Chetan Gupta

AI总结:

本文提出一种通过引导数据生成构建领域专用小型语言模型的方法,结合领域适应预训练、监督微调和偏好优化,展示了在工业诊断任务中优于开源模型的性能。

摘要:

大型语言模型(LLMs)在支持广泛的知识密集型任务方面表现出显著的成功。在专业领域中,越来越多的人有兴趣利用LLMs帮助领域专家解决特定领域的挑战。然而,将LLMs作为SaaS解决方案部署会引发数据隐私问题,而许多开源模型需要大量的计算资源才能有效进行领域适应和部署。一种有前途的替代方法是开发较小的、领域专用的LLMs,但这种方法通常受到高质量领域特定训练数据不足的限制。在本工作中,我们通过提出一个成本效益高且可扩展的训练流程来解决这些限制,该流程结合了从少量种子语料库中引导生成的合成数据与自下而上的领域数据整理。我们的流程整合了领域适应预训练(DAPT)、领域特定监督微调(DSFT)和直接偏好优化(DPO),以训练适用于特定使用案例的有效小型模型。我们通过诊断SLM,一个针对工业环境中的故障诊断、根本原因分析和修复建议定制的3B参数领域专用模型,展示了这种方法。为了评估模型性能,我们引入了四个领域专用基准测试:多项选择题(DiagnosticMCQ)、问答(DiagnosticQA)、句子补全(DiagnosticComp)和总结(DiagnosticSum)。诊断SLM在MCQ任务上比同等或更大规模的开源模型(2B-9B)的准确性提高了多达25%,同时在其他任务中也优于或匹配了这些模型,展示了有效的领域专用推理和泛化能力。

英文摘要:

Large Language Models (LLMs) have shown remarkable success in supporting a wide range of knowledge-intensive tasks. In specialized domains, there is growing interest in leveraging LLMs to assist subject matter experts with domain-specific challenges. However, deploying LLMs as SaaS solutions raises data privacy concerns, while many open-source models demand significant computational resources for effective domain adaptation and deployment. A promising alternative is to develop smaller, domain-specialized LLMs, though this approach is often constrained by the lack of high-quality domain-specific training data. In this work, we address these limitations by presenting a cost-efficient and scalable training pipeline that combines guided synthetic data generation from a small seed corpus with bottom-up domain data curation. Our pipeline integrates Domain-Adaptive Pretraining (DAPT), Domain-specific Supervised Fine-tuning (DSFT), and Direct Preference Optimization (DPO) to train effective small-scale models for specialized use cases. We demonstrate this approach through DiagnosticSLM, a 3B-parameter domain-specific model tailored for fault diagnosis, root cause analysis, and repair recommendation in industrial settings. To evaluate model performance, we introduce four domain-specific benchmarks: multiple-choice questions (DiagnosticMCQ), question answering (DiagnosticQA), sentence completion (DiagnosticComp), and summarization (DiagnosticSum). DiagnosticSLM achieves up to 25% accuracy improvement over open-source models of comparable or larger size (2B-9B) on the MCQ task, while also outperforming or matching them in other tasks, demonstrating effective domain-specific reasoning and generalization capabilities.

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

↑