基于应用程序接口依赖关系图路径搜索的工作流生成方法OA
Workflow generation method with path search on application programming interface dependency graph
工作流编程日益成为重要的软件开发模式,智能辅助工作流生成服务能够显著提升用户开发效率.然而,现有的工作流平台仅提供基本的辅助功能,如候选节点推荐或边连接的限制.尽管大语言模型驱动的智能编程服务在代码生成上取得了显著进展,但在工作流生成中仍然面临诸多挑战.本文分析了大语言模型在工作流生成过程中常见的幻觉问题,并提出了一种基于应用程序接口(application programming interface,API)依赖关系图路径搜索的工作流生成方法.通过引导模型沿API依赖关系图搜索生成路径,限制其输出解码空间,有效缓解了模型幻觉现象.此外,本文引入多种路径搜索策略,包括出边路径搜索和入边路径搜索,为工作流生成提供了全新的思维链方法.实验结果表明,本文方法在工作流生成质量上优于先前的思维链技术,并显著降低了模型幻觉率.
Workflow programming is increasingly becoming an important software development paradigm,and intelligent workflow generation services can offer users a more efficient development process.However,existing workflow de-velopment platforms only provide basic assistance,such as candidate node recommendations or edge connection constraints.Although large language model-driven intelligent programming services have made significant progress in code generation,there are still many challenges in the field of workflow generation.This paper analyzes the com-mon hallucination problems of large language models during workflow generation and proposes a workflow generation method based on application programming interface(API)dependency graph-guided path search.By using API dependency graph to guide the path search,the model's output decoding space is constrained,effectively mitiga-ting hallucinations.Furthermore,we introduce various path search strategies,including outbound and inbound path searches,providing a novel chain-of-thought approach for workflow generation.Experimental results show that the proposed method achieves better performance compared to previous chain-of-thought techniques,and significantly reduces model hallucinations.
梁冬;史骁;吕存驰;赵晓芳
中国科学院计算技术研究所 北京 100190||中国科学院大学 北京 100049中国科学院计算技术研究所 北京 100190||中科南京信息高铁研究院 南京 211135中国科学院计算技术研究所 北京 100190||中国科学院大学 北京 100049中国科学院计算技术研究所 北京 100190||中国科学院大学 北京 100049||中国科学院大学南京学院 南京 211135||中科苏州智能计算技术研究院 苏州 215028
工作流生成思维链路径搜索大语言模型幻觉应用程序接口依赖关系图
workflow generationchain-of-thoughtpath searchlarge language model hallucinationsappli-cation programming interface dependency graph
《高技术通讯》 2026 (1)
41-52,12
江苏省重大科研专项(BM2021800)和中国科学院计算技术研究所创新基金(E361060)资助项目.
评论