面向船舶焊接工艺问答与推理的大语言模型知识增强生成框架设计
Design of large language model-based knowledge-augmented generation framework for question answering and reasoning of ship welding processes
摘要 船舶焊接工艺具有规范复杂、工序耦合紧密及工程约束强等特点,传统依赖人工经验和分散规范文档查阅的技术支持方式,在涉及多条款、多工序和多参数约束的复杂推理场景下难以满足准确性、可追溯性和一致性要求.尽管大语言模型(large language model,LLM)在通用自然语言任务中表现突出,但在船舶焊接等专业工程领域仍面临知识幻觉、推理不稳定及结果可验证性不足等问题.针对上述挑战,提出了一种面向船舶焊接工艺问答与推理的LLM知识增强生成框架——SW-KAG(ship welding knowledge-augmented generation,船舶焊接知识增强生成).该框架在统一的领域Schema约束下构建焊接知识图谱,实现多源异构焊接知识的结构化表达,并与LLM的语义理解与推理能力相结合,为船舶焊接工艺选择、适用性分析及质量验证提供决策支持.实验采用F1分数、语义相似度及LLM裁判相结合的多维评价方法,从准确性、完整性与专业性等方面对框架性能进行分析.结果表明,SW-KAG在多项指标上均显著优于RAG(retrieval-augmented generation,检索增强生成)与GraphRAG(图检索增强生成)两种对比方法,有效提升了工程语义一致性并抑制了模型幻觉.所提出的SW-KAG框架有效提升了LLM在船舶焊接领域的知识理解与推理能力,为焊接知识问答、工艺分析与辅助决策提供了支持.
Abstract:
Ship welding processes involve complex specifications,tightly coupled procedures,and strong engineering constraints,making traditional technical support methods that rely on manual experience and consultation of scattered specification documents inadequate for accurate,traceable and consistent reasoning in complex scenarios with multiple requirements,procedures,and parameter constraints.Although large language models(LLMs)perform well in general-purpose natural language tasks,their application in specialized engineering domains remains limited by hallucinations,unstable reasoning,and insufficient verifiability.Aiming at these challenges,an LLM-based knowledge-augmented generation framework for ship welding process question answering and reasoning is proposed,named SW-KAG.Under the unified domain Schema constraints,this framework constructed a welding knowledge graph to achieve structured expression of multi-source heterogeneous welding knowledge,and integrated it with the semantic understanding and reasoning capabilities of LLMs to provide decision support for ship welding process selection,suitability analysis,and quality verification.The experiment employed a multi-dimensional evaluation method combining F1 score,semantic similarity,and LLM-as-a-Judge to analyze the framework performance in terms of accuracy,completeness,and professionalism.Experiment results demonstrated that the SW-KAG consistently outperformed RAG(retrieval-augmented generation)and GraphRAG methods across multiple metrics,improving engineering semantic consistency and mitigating hallucinations.The proposed SW-KAG framework effectively enhances the knowledge understanding and reasoning capabilities of LLMs in the ship welding field,providing support for welding knowledge question answering,process analysis,and auxiliary decision-making.
刊 名 工程设计学报 ISTICPKU
年,卷(期): 2026, 33(5)
分类号: TP391 U671
机标分类号: TP3 TP273 H310.1
在线出版日期: 2026年11月9日
基金项目: 2025A1515011306:广东省基础与应用基础研究基金自然科学基金面上项目,