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

深度神经网络的测试用例选择:面向代码的大语言模型的复现研究

Test Case Selection for Deep Neural Networks: A Replication Study on LLMs for Code

Delft University of Technology(代尔夫特理工大学)

Ali Asgari, Mitchell Olsthoorn, Annibale Panichella

AI总结:

本文对深度神经网络测试用例选择技术在代码大语言模型上的有效性进行了大规模复现研究,发现基于不确定性的特征对早期故障发现有效,而基于表示的特征对准确率估计更鲁棒,且性能因任务和模型而异。

摘要:

最近,测试用例选择(TCS)技术被探索用于在有限测试预算下支持深度神经网络(DNNs)的运行评估,其中标注成本是主要关注点,而及早发现模型故障是关键目标。尽管先前的研究报告了有希望的结果,但现有的实证评估几乎完全集中在基于视觉的DNNs和数据集上,尚不清楚先前的发现是否适用于LLM代码模型。本文在LLM代码模型背景下对TCS技术进行了大规模复现研究。我们重新审视了最初为DNNs提出的成熟TCS策略,并用先前未在TCS中评估的统计抽样策略进行补充。我们在三个与代码相关的分类任务上评估其有效性:克隆检测、漏洞检测和技术债务预测。研究涵盖了17个任务特定的微调模型实例、7个预测特征和13种选择策略,包括12种特征感知策略和简单随机抽样(SRS)作为特征无关的基线。我们沿着两个维度评估性能:准确率估计和早期故障发现。结果表明,当TCS应用于代码LLMs时,只有一部分基于视觉DNNs的发现是通用的。特别是,基于不确定性的特征对早期故障发现有效,而基于表示的特征对准确率估计更鲁棒。同时,性能在不同任务和模型之间差异很大,表明TCS的有效性是上下文相关的。总体而言,本研究提供了TCS技术超越基于视觉深度学习的可复现性的实证证据,并为其在代码LLMs运行评估中的应用提供了见解。

英文摘要:

Recently, test case selection (TCS) techniques have been explored to support the operational evaluation of deep neural networks (DNNs) under limited testing budgets, where labeling cost is a primary concern and uncovering model failures early is a key objective. Although prior studies report promising results, existing empirical evaluations focus almost exclusively on vision-based DNNs and datasets, leaving it unclear whether prior findings generalize to LLM code models. This paper presents a large-scale replication study of TCS techniques in the context of LLM code models. We re-examine established TCS strategies originally proposed for DNNs and complement them with statistical sampling strategies not previously evaluated for TCS. We assess their effectiveness on three code-related classification tasks: clone detection, vulnerability detection, and technical debt prediction. The study spans 17 task-specific fine-tuned model instances, 7 predictive features, and 13 selection strategies, including 12 feature-aware strategies and simple random sampling (SRS) as a feature-agnostic baseline. We evaluate performance along two dimensions: accuracy estimation and early failure discovery. The results indicate that only a subset of findings reported for vision-based DNNs generalize when TCS is applied to LLMs for code. In particular, uncertainty-based features are effective for early failure discovery, while representation-based features are more robust for accuracy estimation. At the same time, performance varies substantially across tasks and models, indicating that TCS effectiveness is context-dependent. Overall, this study provides empirical evidence on the replicability of TCS techniques beyond vision-based deep learning and offers insights into their use for the operational evaluation of LLMs for code.

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

↑