利用大语言模型从模式自动实例化保证案例
Automatic Instantiation of Assurance Cases from Patterns Using Large Language Models
AI总结:
本研究针对保证案例模式实例化依赖人工、易出错的问题,用基于谓词的规则形式化保证案例模式,利用GPT-4o、GPT-4 Turbo实现自动实例化,发现其可生成符合模式的案例但仍逊于专家,提出半自动方案更实用。
摘要:
保证案例是由证据支撑的结构化论证集合,用于证明系统的非功能需求(如安全性、安保性、可靠性)已得到正确实现。保证案例模式是从过往成功的保证案例中提炼出的模板,旨在辅助新保证案例的创建。尽管已有模式可用于生成保证案例,但模式实例化仍主要依赖人工完成,不仅容易出错,还高度依赖领域专业知识,因此探索支撑其自动实例化的技术至关重要。本研究旨在探究大语言模型(LLM)在自动化生成符合特定模式的保证案例方面的潜力。具体而言,我们采用基于谓词的规则对保证案例模式进行形式化,随后利用GPT-4o和GPT-4 Turbo两类LLM,从这些形式化后的模式中自动实例化保证案例。研究结果表明,LLM能够生成符合给定模式的保证案例,但同时也发现,LLM在理解部分与模式特定关系相关的细微差别时存在困难。尽管LLM在保证案例自动生成方面展现出潜力,但其能力仍不及人类专家,因此现阶段采用半自动方式进行保证案例实例化可能更具实用性。
英文摘要:
An assurance case is a structured set of arguments supported by evidence, demonstrating that a system's non-functional requirements (e.g., safety, security, reliability) have been correctly implemented. Assurance case patterns serve as templates derived from previous successful assurance cases, aimed at facilitating the creation of new assurance cases. Despite the use of these patterns to generate assurance cases, their instantiation remains a largely manual and error-prone process that heavily relies on domain expertise. Thus, exploring techniques to support their automatic instantiation becomes crucial. This study aims to investigate the potential of Large Language Models (LLMs) in automating the generation of assurance cases that comply with specific patterns. Specifically, we formalize assurance case patterns using predicate-based rules and then utilize LLMs, i.e., GPT-4o and GPT-4 Turbo, to automatically instantiate assurance cases from these formalized patterns. Our findings suggest that LLMs can generate assurance cases that comply with the given patterns. However, this study also highlights that LLMs may struggle with understanding some nuances related to pattern-specific relationships. While LLMs exhibit potential in the automatic generation of assurance cases, their capabilities still fall short compared to human experts. Therefore, a semi-automatic approach to instantiating assurance cases may be more practical at this time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。