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

软件生产线的自适应行为模型学习

Adaptive Behavioral Model Learning for Software Product Lines

Shaghayegh Tavassoli, Carlos Diego Nascimento Damasceno, Ramtin Khosravi, Mohammad Reza Mousavi

摘要:

行为模型能够分析软件产品线(SPL)的功能,例如,模型检验和基于模型的测试。模型学习的目的是以某种形式的有限状态机为软件系统构建行为模型。由于SPL产品之间的共性,在模型学习过程中可以重用先前学习的模型。本文在$L^*$算法的基础上,提出了一种自适应学习SPL产品模型的方法($\text{PL}^*$方法)。在该方法中,在每个产品的模型学习之后,最终观察表中的序列被存储在存储库中,该存储库将用于初始化剩余待学习产品的观察表。该算法在两个开源的SPL上进行了评估,总的学习成本是根据轮数、重置总数和输入符号来衡量的。结果表明,对于复杂的SPL,总的学习成本的$\text{PL}^*$方法是显着低于所有三个指标的非自适应学习方法。此外,据观察,产品的学习顺序会影响$\text{PL}^*$方法的效率。基于这一观察,我们引入了一个启发式来确定一个排序,这降低了两个案例研究中自适应学习的总成本。

英文摘要:

Behavioral models enable the analysis of the functionality of software product lines (SPL), e.g., model checking and model-based testing. Model learning aims at constructing behavioral models for software systems in some form of a finite state machine. Due to the commonalities among the products of an SPL, it is possible to reuse the previously learned models during the model learning process. In this paper, an adaptive approach (the $\text{PL}^*$ method) for learning the product models of an SPL is presented based on the well-known $L^*$ algorithm. In this method, after model learning of each product, the sequences in the final observation table are stored in a repository which will be used to initialize the observation table of the remaining products to be learned. The proposed algorithm is evaluated on two open-source SPLs and the total learning cost is measured in terms of the number of rounds, the total number of resets and input symbols. The results show that for complex SPLs, the total learning cost for the $\text{PL}^*$ method is significantly lower than that of the non-adaptive learning method in terms of all three metrics. Furthermore, it is observed that the order in which the products are learned affects the efficiency of the $\text{PL}^*$ method. Based on this observation, we introduced a heuristic to determine an ordering which reduces the total cost of adaptive learning in both case studies.

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

↑