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

保持行为程序活性:活性需求的规约与执行

Keeping Behavioral Programs Alive: Specifying and Executing Liveness Requirements

Tom Yaacov, Achiya Elyasaf, Gera Weiss

AI总结:

本文提出在行为编程中用“必须完成”状态标记来直接建模活性需求,并给出基于 Büchi 自动机和 MDP 的两种执行机制,以支持深度强化学习处理大型系统。

摘要:

使用行为编程(BP)等可执行规约的好处之一是能够使系统实现与其需求保持一致。BP 通过一种协议促进了这一点,该协议允许独立的实现模块规定系统可以、必须和不得做什么。由此,每个模块可以强制执行单一系统需求,包括诸如“在 Y 之后不要做 X”之类的否定性规约。然而,现有的 BP 协议仅允许强制执行安全性需求,并不支持诸如“至少做三次 X”之类的活性属性的执行。为了在 BP 中直接且独立地建模活性需求,我们提出了用“必须完成”标记状态的惯用法,表示任务尚未完成。我们展示了该惯用法允许对文献中已知的需求模式进行直接规约。我们还提供了语义和两种执行机制,一种基于到 Büchi 自动机的转换,另一种基于马尔可夫决策过程(MDP)。后一种方法提供了利用深度强化学习(DRL)算法的可能性,这些算法具有有效处理大型软件系统的潜力。本文使用概念验证工具对所提出的方法进行了定性和定量评估。基于 MDP 的执行机制的形式化分析在附录中给出。

英文摘要:

One of the benefits of using executable specifications such as Behavioral Programming (BP) is the ability to align the system implementation with its requirements. This is facilitated in BP by a protocol that allows independent implementation modules that specify what the system may, must, and must not do. By that, each module can enforce a single system requirement, including negative specifications such as "don't do X after Y." The existing BP protocol, however, allows only the enforcement of safety requirements and does not support the execution of liveness properties such as "do X at least three times." To model liveness requirements in BP directly and independently, we propose idioms for tagging states with "must-finish," indicating that tasks are yet to be completed. We show that this idiom allows a direct specification of known requirements patterns from the literature. We also offer semantics and two execution mechanisms, one based on a translation to Büchi automata and the other based on a Markov decision process (MDP). The latter approach offers the possibility of utilizing deep reinforcement learning (DRL) algorithms, which bear the potential to handle large software systems effectively. This paper presents a qualitative and quantitative assessment of the proposed approach using a proof-of-concept tool. A formal analysis of the MDP-based execution mechanism is given in an appendix.

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

↑