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

通过开放世界数据的迁移学习增强自动化软件可跟踪性

Enhancing Automated Software Traceability by Transfer Learning from Open-World Data

Jinfeng Lin, Amrit Poudel, Wenhao Yu, Qingkai Zeng, Meng Jiang, Jane Cleland-Huang

摘要:

软件需求可追溯性是软件工程过程的关键组成部分,支持需求确认、合规性验证和安全保证等活动。然而,手工创建一套完整的跨自然语言工件(如需求、设计和测试用例)的跟踪链接的成本和工作量可能非常昂贵。因此,研究人员提出了主要基于信息检索(IR)技术的自动链接生成解决方案;然而,这些解决方案未能提供工业项目全面采用所需的准确性。可以使用深度学习可追溯性模型来实现改进;然而,它们的有效性受到项目级工件和链接的有限大小和可用性的阻碍,以用作训练数据。在本文中,我们通过提出和评估几种用于文本到文本可追溯性的深度学习方法来解决这个问题。我们的方法名为NLTrace,探索了三种使用从开放世界平台挖掘的数据集的迁移学习策略。通过预训练语言模型(LM)和利用相邻的跟踪任务,我们证明了NLTrace可以显着提高性能的LM为基础的跟踪模型时,训练链接可用。在这种情况下,NLTrace优于性能最佳的经典IR方法,F2分数提高了188%,平均精度(MAP)提高了94.01%。对于F2和MAP,它也分别比基于一般LM的跟踪模型高出7%和23%。此外,NLTrace可以适应其他LM模型无法适应的低资源跟踪场景。从相邻的任务中学习到的知识使NLTrace在生成挑战中的表现优于VSM模型28%F2,当提供少量训练样本时。

英文摘要:

Software requirements traceability is a critical component of the software engineering process, enabling activities such as requirements validation, compliance verification, and safety assurance. However, the cost and effort of manually creating a complete set of trace links across natural language artifacts such as requirements, design, and test-cases can be prohibitively expensive. Researchers have therefore proposed automated link-generation solutions primarily based on information-retrieval (IR) techniques; however, these solutions have failed to deliver the accuracy needed for full adoption in industrial projects. Improvements can be achieved using deep-learning traceability models; however, their efficacy is impeded by the limited size and availability of project-level artifacts and links to serve as training data. In this paper, we address this problem by proposing and evaluating several deep-learning approaches for text-to-text traceability. Our method, named NLTrace, explores three transfer learning strategies that use datasets mined from open world platforms. Through pretraining Language Models (LMs) and leveraging adjacent tracing tasks, we demonstrate that NLTrace can significantly improve the performance of LM based trace models when training links are available. In such scenarios NLTrace outperforms the best performing classical IR method with an 188% improvement in F2 score and 94.01% in Mean Average Precision (MAP). It also outperforms the general LM based trace model by 7% and 23% for F2 and MAP respectively. In addition, NLTrace can adapt to low-resource tracing scenarios where other LM models can not. The knowledge learned from adjacent tasks enables NLTrace to outperform VSM models by 28% F2 on generation challenges when presented with a small number of training examples.

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

↑