arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05531cs.SEcs.LGcs.PL
收藏

使用机器学习建模并发程序中的缺陷

Modelling Concurrency Bugs Using Machine Learning

Imperial College of Science, Technology and Medicine(帝国理工学院);Massachusetts Institute of Technology(麻省理工学院)

Teodor Rares Begu

AI总结:

本研究比较常见与最新的机器学习方法,利用合成数据集模拟并发程序,验证模型类型的基本限制,以支持自动检测并发缺陷并提升工具准确性与语言灵活性。

摘要:

近年来,人工智能获得了大量关注,尤其是机器学习开始在多个不同领域得到更多应用。我们特别感兴趣的一个机器学习应用是软件安全与保障,尤其是在并行程序的背景下。能够自动检测并发缺陷的问题长期以来一直吸引着程序员,因为额外的复杂性层使得并发程序更容易出错。开发此类自动检测工具为程序员带来了显著好处,包括节省调试时间以及减少意外缺陷的数量。我们相信,机器学习可能通过提供相对于现有方法的额外优势(在整体工具准确性以及编程语言灵活性方面)来帮助实现这一目标。然而,由于机器学习方法特有的众多挑战(正确标注足够大的数据集、寻找最佳模型类型/架构等),我们必须分别处理开发此类工具的每个问题。因此,本项目的重点是比较常见和最新的机器学习方法。我们通过定义一个合成数据集并生成它来模拟真实(并发)程序,从而抽象出获取并发程序标注数据集的复杂性。我们提出了关于各种机器学习模型类型基本限制的假设,然后通过在我们的合成数据集上运行大量测试来验证这些假设。我们希望我们的发现能提供更多关于使用机器学习建模程序时各种模型类型的优缺点,以及任何其他相关领域(如自然语言处理)的见解。

英文摘要:

Artificial Intelligence has gained a lot of traction in the recent years, with machine learning notably starting to see more applications across a varied range of fields. One specific machine learning application that is of interest to us is that of software safety and security, especially in the context of parallel programs. The issue of being able to detect concurrency bugs automatically has intrigued programmers for a long time, as the added layer of complexity makes concurrent programs more prone to failure. The development of such automatic detection tools provides considerable benefits to programmers in terms of saving time while debugging, as well as reducing the number of unexpected bugs. We believe machine learning may help achieve this goal by providing additional advantages over current approaches, in terms of both overall tool accuracy as well as programming language flexibility. However, due to the presence of numerous challenges specific to the machine learning approach (correctly labelling a sufficiently large dataset, finding the best model types/architectures and so forth), we have to approach each issue of developing such a tool separately. Therefore, the focus of this project is on comparing both common and recent machine learning approaches. We abstract away the complexity of procuring a labelled dataset of concurrent programs under the form of a synthetic dataset that we define and generate with the scope of simulating real-life (concurrent) programs. We formulate hypotheses about fundamental limits of various machine learning model types which we then validate by running extensive tests on our synthetic dataset. We hope that our findings provide more insight in the advantages and disadvantages of various model types when modelling programs using machine learning, as well as any other related field (e.g. NLP).

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

↑