arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.08593cs.SEcs.IR
收藏

利用Graph-RAG和提示工程增强基于大语言模型的自动化需求可追溯性与合规性检查

Leveraging Graph-RAG and Prompt Engineering to Enhance LLM-Based Automated Requirement Traceability and Compliance Checks

Arsalan Masoudifard, Mohammad Mowlavi Sorond, Moein Madadi, Mohammad Sabokrou, Elahe Habibi

AI总结:

本研究针对大语言模型在需求合规检查中信息检索与推理能力不足的问题,提出结合Graph-RAG框架与思维链、思维树等提示工程技术的方案,相比基线方法显著提升了准确性与上下文感知能力,同时指出了其成本、适配性与数据依赖方面的局限。

摘要:

确保软件需求规格说明(Software Requirements Specifications,SRS)与更高层级的组织或国家要求保持一致至关重要,在金融、航空航天等受监管领域尤其如此。在这些领域中,维持一致性、遵守监管框架、最大限度减少错误并满足关键预期,是系统可靠运行的必要条件。大语言模型(large language models, LLMs)的广泛应用彰显了其巨大潜力,但在相关信息检索与推理能力提升方面仍有相当大的改进空间。本研究表明,将功能强大的Graph-RAG(图检索增强生成)框架与思维链、思维树等先进提示工程技术相结合,可显著提升性能。与基线RAG方法和简单提示策略相比,该方法能产出更准确、更具上下文感知能力的结果。尽管该方法在性能上展现出显著提升,但也存在挑战:它在不同场景中部署的成本更高、复杂度更高,需要针对特定场景进行精心适配;此外,其有效性高度依赖完整准确的输入数据,而这类数据并非总能轻易获取,这进一步限制了其可扩展性与实用性。

英文摘要:

Ensuring that Software Requirements Specifications (SRS) align with higher-level organizational or national requirements is vital, particularly in regulated environments such as finance and aerospace. In these domains, maintaining consistency, adhering to regulatory frameworks, minimizing errors, and meeting critical expectations are essential for the reliable functioning of systems. The widespread adoption of large language models (LLMs) highlights their immense potential, yet there remains considerable scope for improvement in retrieving relevant information and enhancing reasoning capabilities. This study demonstrates that integrating a robust Graph-RAG framework with advanced prompt engineering techniques, such as Chain of Thought and Tree of Thought, can significantly enhance performance. Compared to baseline RAG methods and simple prompting strategies, this approach delivers more accurate and context-aware results. While this method demonstrates significant improvements in performance, it comes with challenges. It is both costly and more complex to implement across diverse contexts, requiring careful adaptation to specific scenarios. Additionally, its effectiveness heavily relies on having complete and accurate input data, which may not always be readily available, posing further limitations to its scalability and practicality.

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

↑