arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.04948cs.LGcs.SE
收藏

深层状态推理:面向黑盒软件系统行为模型推理

Deep State Inference: Toward Behavioral Model Inference of Black-box Software Systems

University of Calgary(卡尔加里大学);University of Sheffield(谢菲尔德大学)

Foozhan Ataiefard, Mohammad Jafar Mashhadi, Hadi Hemmati, Niel Walkinshaw

摘要:

许多软件工程任务,如测试和异常检测可以从推断软件的行为模型的能力中受益。在本文中,我们研究了一个黑盒的情况下,分析下的系统不能仪表,在这种粒度的方式。这种情况下是特别普遍的控制系统的日志分析的形式,连续的信号。在这种情况下,执行跟踪相当于输入和输出信号的多变量时间序列,其中系统的不同状态对应于时间序列中的不同“阶段”。主要的挑战是检测这些相变何时发生。不幸的是,大多数现有的解决方案要么是单变量的,对数据分布做出假设,要么学习能力有限。因此,我们提出了一种混合深度神经网络,它接受多变量时间序列作为输入,并应用一组卷积和递归层来学习信号和模式之间随时间的非线性相关性。我们展示了这种方法如何用于准确检测状态变化,以及如何将推断出的模型成功地应用于迁移学习场景,以准确地处理来自具有相似执行特征的不同产品的跟踪。两个无人机自动驾驶仪案例研究的实验结果表明,我们的方法是高度准确的(状态分类的F1得分超过90%),并显著改善基线(对于变化点检测,高达102%)。使用迁移学习,我们还表明,在开放环境中,高达90%的最大可实现F1分数,源案例研究可以通过重用来自工业案例的训练模型并且仅使用低至5个标记样本对它们进行微调来实现,这将手动标记工作减少了98%。

英文摘要:

Many software engineering tasks, such as testing, and anomaly detection can benefit from the ability to infer a behavioral model of the software.Most existing inference approaches assume access to code to collect execution sequences. In this paper, we investigate a black-box scenario, where the system under analysis cannot be instrumented, in this granular fashion.This scenario is particularly prevalent with control systems' log analysis in the form of continuous signals. In this situation, an execution trace amounts to a multivariate time-series of input and output signals, where different states of the system correspond to different `phases` in the time-series. The main challenge is to detect when these phase changes take place. Unfortunately, most existing solutions are either univariate, make assumptions on the data distribution, or have limited learning power.Therefore, we propose a hybrid deep neural network that accepts as input a multivariate time series and applies a set of convolutional and recurrent layers to learn the non-linear correlations between signals and the patterns over time.We show how this approach can be used to accurately detect state changes, and how the inferred models can be successfully applied to transfer-learning scenarios, to accurately process traces from different products with similar execution characteristics. Our experimental results on two UAV autopilot case studies indicate that our approach is highly accurate (over 90% F1 score for state classification) and significantly improves baselines (by up to 102% for change point detection).Using transfer learning we also show that up to 90% of the maximum achievable F1 scores in the open-source case study can be achieved by reusing the trained models from the industrial case and only fine tuning them using as low as 5 labeled samples, which reduces the manual labeling effort by 98%.

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

↑