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

利用梯度进行分布偏移下的无监督准确率估计

Leveraging Gradients for Unsupervised Accuracy Estimation under Distribution Shift

Univ. Rennes 2, CNRS, IRISA(里昂第二大学、国家科学研究中心、IRISA);College of Computing and Data Science Nanyang Technological University(南洋理工大学计算机与数据科学学院);Huawei Noah’s Ark Lab(华为诺亚实验室);Inria(法国国家信息与自动化技术研究院);Huawei Noah’s Ark Lab Paris, France(巴黎华为诺亚实验室,法国);Huawei Noah’s Ark Lab Shenzhen, China(深圳华为诺亚实验室,中国)

Renchunzi Xie, Ambroise Odonnat, Vasilii Feofanov, Ievgen Redko, Jianfeng Zhang, Bo An

AI总结:

本文提出利用测试数据上单步交叉熵损失反向传播的分类层梯度范数,在无标签且存在分布偏移时估计模型准确率,并通过理论分析与多架构实验证明其优于现有方法。

摘要:

在无法获得真实标签的情况下,估计模型在分布偏移下的测试性能,是在真实环境中安全部署机器学习算法的一项具有挑战性但非常重要的问题。现有工作大多依赖神经网络输出或提取特征中的信息,以估计一个与真实测试准确率相关的分数。本文从实证和理论两方面研究了梯度所提供的信息如何即使在分布偏移下也能预测真实测试准确率。具体而言,我们使用在测试数据上仅执行一个梯度步后,由交叉熵损失反向传播得到的分类层梯度的范数。我们的直觉是,当模型泛化能力较差时,这些梯度应具有更高的量级。我们给出了该方法背后的理论洞见以及确保其在实证上取得成功的关键要素。我们使用多种架构在多样化分布偏移上开展的大量实验表明,该方法显著优于当前最先进的方法。代码可在 https://github.com/Renchunzi-Xie/GdScore 获取。

英文摘要:

Estimating the test performance of a model, possibly under distribution shift, without having access to the ground-truth labels is a challenging, yet very important problem for the safe deployment of machine learning algorithms in the wild. Existing works mostly rely on information from either the outputs or the extracted features of neural networks to estimate a score that correlates with the ground-truth test accuracy. In this paper, we investigate -- both empirically and theoretically -- how the information provided by the gradients can be predictive of the ground-truth test accuracy even under distribution shifts. More specifically, we use the norm of classification-layer gradients, backpropagated from the cross-entropy loss after only one gradient step over test data. Our intuition is that these gradients should be of higher magnitude when the model generalizes poorly. We provide the theoretical insights behind our approach and the key ingredients that ensure its empirical success. Extensive experiments conducted with various architectures on diverse distribution shifts demonstrate that our method significantly outperforms current state-of-the-art approaches. The code is available at https://github.com/Renchunzi-Xie/GdScore

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

↑