MetaSel:一种针对微调DNN模型的测试选择方法
MetaSel: A Test Selection Approach for Fine-tuned DNN Models
AI总结:
本文提出MetaSel方法,利用微调与预训练DNN模型的行为差异估计无标签输入的误分类概率,在标注预算受限下有效选择测试,显著提升测试相对覆盖率。
摘要:
深度神经网络(DNN)在部署过程中因协变量偏移(即开发与部署环境间的数据分布偏移)而面临挑战。微调通过使用较小的标注集将预训练模型适应新环境。然而,在标注预算受限的情况下测试微调模型仍是一个关键难题。本文提出MetaSel,这是一种专为解决协变量偏移而微调的DNN模型设计的新方法,用于从无标签输入中选择测试。MetaSel假设微调与预训练模型共享相关数据分布,且对多数输入表现出相似行为。但在微调改变决策边界的输入子空间内,两者行为会出现分歧,使这些输入更易被误分类。与仅依赖DNN模型及其输入集的通用方法不同,MetaSel利用微调与预训练模型的信息及其行为差异,估计无标签测试输入的误分类概率,从而实现更有效的测试选择。我们进行了广泛的实证评估,将MetaSel与11种先进方法比较,涉及68个微调模型,覆盖弱、中、强分布偏移。结果表明,MetaSel在测试相对覆盖率(TRC)上始终显著优于现有基线,尤其在标注预算高度受限时。MetaSel相对最频繁的次优基线平均TRC提升28.46%至56.18%,同时保持高TRC中位数和低变异性。结果证实了MetaSel在微调模型测试选择中的实用性、鲁棒性和成本效益。
英文摘要:
Deep Neural Networks (DNNs) face challenges during deployment due to covariate shift, i.e., data distribution shifts between development and deployment contexts. Fine-tuning adapts pre-trained models to new contexts requiring smaller labeled sets. However, testing fine-tuned models under constrained labeling budgets remains a critical challenge. This paper introduces MetaSel, a new approach tailored for DNN models that have been fine-tuned to address covariate shift, to select tests from unlabeled inputs. MetaSel assumes that fine-tuned and pre-trained models share related data distributions and exhibit similar behaviors for many inputs. However, their behaviors diverge within the input subspace where fine-tuning alters decision boundaries, making those inputs more prone to misclassification. Unlike general approaches that rely solely on the DNN model and its input set, MetaSel leverages information from both the fine-tuned and pre-trained models and their behavioral differences to estimate misclassification probability for unlabeled test inputs, enabling more effective test selection. Our extensive empirical evaluation, comparing MetaSel against 11 state-of-the-art approaches and involving 68 fine-tuned models across weak, medium, and strong distribution shifts, demonstrates that MetaSel consistently delivers significant improvements in Test Relative Coverage (TRC) over existing baselines, particularly under highly constrained labeling budgets. MetaSel shows average TRC improvements of 28.46% to 56.18% over the most frequent second-best baselines while maintaining a high TRC median and low variability. Our results confirm MetaSel's practicality, robustness, and cost-effectiveness for test selection in the context of fine-tuned models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。