FuzzAug:通过覆盖引导的模糊测试进行数据增强以用于神经测试生成
FuzzAug: Data Augmentation by Coverage-guided Fuzzing for Neural Test Generation
AI总结:
本文提出了一种名为FuzzAug的新型数据增强技术,通过引入模糊测试的覆盖引导输入和有效测试语义,将训练数据集规模扩大一倍,从而显著提升了大型语言模型在神经测试生成任务中的性能。
摘要:
测试对于现代软件工程构建可靠软件至关重要。鉴于手动创建测试用例成本高昂,自动化测试用例生成,特别是利用大型语言模型的方法,变得越来越流行。这些神经方法生成具有语义意义的测试,与模糊测试等传统自动化测试方法相比更易于维护。然而,当前数据集中单元测试的多样性和数量有限,特别是对于较新但重要的语言。在本文中,我们提出了一种新颖的数据增强技术FuzzAug,它通过引入有效的测试语义并提供多样化的覆盖引导输入,将模糊测试的优势引入大型语言模型。通过将训练数据集的大小增加一倍,FuzzAug显著提升了基线方法的性能。该技术展示了引入来自动态软件分析的先验知识以改进神经测试生成的潜力,为神经测试生成提供了显著的增强效果。
英文摘要:
Testing is essential to modern software engineering for building reliable software. Given the high costs of manually creating test cases, automated test case generation, particularly methods utilizing large language models, has become increasingly popular. These neural approaches generate semantically meaningful tests that are more maintainable compared with traditional automatic testing methods like fuzzing. However, the diversity and volume of unit tests in current datasets are limited, especially for newer but important languages. In this paper, we present a novel data augmentation technique, FuzzAug, that introduces the benefits of fuzzing to large language models by introducing valid testing semantics and providing diverse coverage-guided inputs. Doubling the size of training datasets, FuzzAug improves the performance from the baselines significantly. This technique demonstrates the potential of introducing prior knowledge from dynamic software analysis to improve neural test generation, offering significant enhancements in neural test generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。