DeepSTL --从英语需求到信号时序逻辑
DeepSTL -- From English Requirements to Signal Temporal Logic
摘要:
形式化方法为复杂系统的设计和分析提供了非常强大的工具和技术。然而,它们的实际应用仍然有限,因为人们普遍认为形式方法需要广泛的专业知识和陡峭的学习曲线。以逻辑公式的形式编写正确的形式规范仍然被认为是一项困难且容易出错的任务。在本文中,我们提出了DeepSTL,一种工具和技术,用于将非正式需求(以自由英语句子形式给出)翻译成信号时序逻辑(STL),这是一种用于网络物理系统的正式规约语言,被学术界和工业界的高级研究实验室使用。设计这样一个翻译器的一个主要挑战是缺乏公开的非正式需求和正式规范。我们提出了一个两步工作流程来应对这一挑战。我们首先设计了一个基于语法的合成数据生成技术,其中每个输出是一个随机的STL公式及其相关的一组可能的英文翻译。在第二步中,我们使用最先进的transformer为基础的神经翻译技术,训练一个准确的注意翻译英语STL。实验结果表明,经过良好训练的英语要求模式的翻译质量很高,使这个工作流程有望扩展到处理更复杂的翻译任务。
英文摘要:
Formal methods provide very powerful tools and techniques for the design and analysis of complex systems. Their practical application remains however limited, due to the widely accepted belief that formal methods require extensive expertise and a steep learning curve. Writing correct formal specifications in form of logical formulas is still considered to be a difficult and error prone task. In this paper we propose DeepSTL, a tool and technique for the translation of informal requirements, given as free English sentences, into Signal Temporal Logic (STL), a formal specification language for cyber-physical systems, used both by academia and advanced research labs in industry. A major challenge to devise such a translator is the lack of publicly available informal requirements and formal specifications. We propose a two-step workflow to address this challenge. We first design a grammar-based generation technique of synthetic data, where each output is a random STL formula and its associated set of possible English translations. In the second step, we use a state-of-the-art transformer-based neural translation technique, to train an accurate attentional translator of English to STL. The experimental results show high translation quality for patterns of English requirements that have been well trained, making this workflow promising to be extended for processing more complex translation tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。