In NLP, reusing pre-trained models instead of training from scratch has gained popularity; however, NLP models are mostly black boxes, very large, and often require significant resources. To ease, models trained with large corpora are made available, and developers reuse them for different problems. In contrast, developers mostly build their models from scratch for traditional DL-related problems. By doing so, they have control over the choice of algorithms, data processing, model structure, tuning hyperparameters, etc. Whereas in NLP, due to the reuse of the pre-trained models, NLP developers are limited to little to no control over such design decisions. They either apply tuning or transfer learning on pre-trained models to meet their requirements. Also, NLP models and their corresponding datasets are significantly larger than the traditional DL models and require heavy computation. Such reasons often lead to bugs in the system while reusing the pre-trained models. While bugs in traditional DL software have been intensively studied, the nature of extensive reuse and black-box structure motivates us to understand the different types of bugs that occur while reusing NLP models? What are the root causes of those bugs? How do these bugs affect the system? To answer these questions, We studied the bugs reported while reusing the 11 popular NLP models. We mined 9,214 issues from GitHub repositories and identified 984 bugs. We created a taxonomy with bug types, root causes, and impacts. Our observations led to several findings, including limited access to model internals resulting in a lack of robustness, lack of input validation leading to the propagation of algorithmic and data bias, and high-resource consumption causing more crashes, etc. Our observations suggest several bug patterns, which would greatly facilitate further efforts in reducing bugs in pre-trained models and code reuse.
QBugs: A Collection of Reproducible Bugs in Quantum Algorithms and a Supporting Infrastructure to Enable Controlled Quantum Software Testing and Debugging Experiments
An Empirical Study on Bugs Inside PyTorch: A Replication Study
Concordia University(康考迪亚大学);Polytechnique Montréal(蒙特利尔理工学院);University of Alberta(阿尔伯塔大学);Université du Québec à Montréal(魁北克大学蒙特利尔分校);Queen’s University(女王大学)
A Comprehensive Empirical Study of Bugs in Open-Source Federated Learning Frameworks
ShanghaiTech University(上海科技大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Tianjin University(天津大学);Nankai University(南开大学)
What Bugs Do Prolog Students Write? An Empirical Taxonomy and Data-Driven Mutation Framework
INESC-ID / IST, Universidade de Lisboa(里斯本大学);Artificial Intelligence Research Institute, Consejo Superior de Investigaciones Científicas(西班牙国家研究委员会人工智能研究所);Carnegie Mellon University(卡内基梅隆大学)
How Different Is It Between Machine-Generated and Developer-Provided Patches? An Empirical Study on The Correct Patches Generated by Automated Program Repair Techniques
背景资料:多年来,自动程序修复(Automated Program Repair,APR)由于能够降低修复错误的成本而受到学术界和工业界的广泛关注。然而,如何评估补丁的正确性仍然是一个开放的挑战。两种广泛采用的方法来应对这一挑战,包括手动检查和使用自动生成的测试进行验证,都是有偏见的(即,分别遭受主观性和低精度)。目的:为了解决这一问题,我们建议进行实证研究,了解正确的补丁,由现有的国家的最先进的APR技术,旨在为未来的补丁评估提供指导方针。方法:为此,我们首先提出了一个文献综述(LR)报告的正确补丁生成的最新技术的缺陷4J基准和收集177个正确的补丁后,健全检查的过程。我们研究了这些机器生成的正确补丁是如何实现语义等价的,但与开发人员提供的补丁相比在语法上存在差异,这些补丁如何在不同的项目和APR技术中分布,以及错误的特征如何影响为其生成的补丁。我们的主要发现包括:1)我们不需要像开发人员那样修复bug,因为我们观察到25.4%(45/177)2)机器生成的正确补丁的分布在Defects 4J项目和APR技术方面存在差异;以及3)APR技术倾向于生成与开发者针对具有大补丁大小的错误所生成的补丁不同的补丁。结论:我们的研究不仅验证了以前的研究结论,但也强调了未来的研究对评估补丁的正确性的影响。
二进制条件中的错误是许多软件系统中的错误来源。它们发生在开发人员使用,例如,< or >而不是<=或>=。这些边界错误很难发现,并为软件开发人员带来了手动的劳动密集型工作。虽然以前的研究已经提出了解决方案,以确定边界条件中的错误,这个问题仍然悬而未决。在本文中,我们探讨了深度学习模型在学习和预测边界条件错误方面的有效性。我们在大约160万个具有不同边界条件的故障的示例上训练不同的模型。我们在平衡数据集上实现了85%的精确度和84%的召回率,但在不平衡数据集上的数字较低。我们还对从GitHub上发现的41个真实边界条件错误进行了测试,其中模型仅显示出适度的性能。最后,我们测试了一个大规模的Java代码库Adyen,我们的工业合作伙伴的模型。该模型报告了36个错误的方法,但没有一个得到开发人员的证实。
Why Aren't Regular Expressions a Lingua Franca? An Empirical Study on the Re-use and Portability of Regular Expressions
本文探讨了正则表达式(regex)跨程序设计语言的可移植性。许多语言都提供类似的正则表达式语法,因此很自然地认为正则表达式可以跨语言边界移植。但是,正则表达式是否可以跨语言边界复制/粘贴,同时保留其语义和性能特征?在我们对158名专业软件开发人员的调查中,大多数人表示他们跨语言边界重用regex,大约一半的人报告说他们认为regex是一种通用语言。我们使用一个新的正则表达式语料库对这种做法的风险进行了实验性评估--来自193,524个项目的537,806个正则表达式,这些项目使用JavaScript、Java、PHP、Python、Ruby、Go、Perl和Rust编写。使用我们的polyglot正则表达式语料库,我们探讨了迄今尚未研究的正则表达式可移植性问题:由于语义差异的逻辑错误,由于性能差异的安全漏洞。我们报告说,开发人员对regex lingua franca的信念是可以理解的,但没有根据。虽然大多数正则表达式跨语言边界编译,但15%的正则表达式表现出跨语言的语义差异,10%的正则表达式表现出跨语言的性能差异。我们使用regex文档解释了这些差异,并通过调查regex引擎实现进一步阐明了我们的发现。在此过程中,我们发现了JavaScript-V8、Python、Ruby和Rust的正则表达式引擎中的错误,以及数千个模块中潜在的语义和性能正则表达式错误。