arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.16988cs.LGstat.ML
收藏

MD tree:一棵生长在损失景观上的模型诊断树

MD tree: a model-diagnostic tree grown on loss landscape

Dartmouth College(达特茅斯学院);Zhejiang University(浙江大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of St. Gallen(圣加仑大学)

Yefan Zhou, Jianlong Chen, Qinxue Cao, Konstantin Schürholt, Yaoqing Yang

AI总结:

本文提出基于损失景观度量的模型诊断树 MD tree,将模型失败来源预测形式化为分类问题,并在数据集迁移和规模迁移场景中显著优于传统基于验证的诊断方法。

摘要:

本文考虑“模型诊断”,并将其形式化为一个分类问题。给定一个预训练神经网络(NN),目标是在不知道预训练网络训练配置的情况下,从一组失败模式(如错误的超参数、模型规模不足和数据不足)中预测失败来源。传统的诊断方法使用训练误差和验证误差来判断模型是欠拟合还是过拟合。然而,我们表明,关于神经网络性能的丰富信息被编码在优化损失景观中,这比基于验证的测量提供了更具可操作性的见解。因此,我们提出了一种基于损失景观度量的诊断方法,称为 MD tree,并通过实验证明了其相对于经典基于验证方法的优势。我们在多个实际场景中验证了 MD tree 的有效性:(1)使用在一个数据集上训练的几个模型来诊断在另一个数据集上训练的模型,本质上是一个少样本数据集迁移问题;(2)使用小模型(或用小数据训练的模型)来诊断大模型(或用大数据训练的模型),本质上是一个规模迁移问题。在数据集迁移任务中,MD tree 达到了 87.7% 的准确率,比基于验证的方法高出 14.88%。我们的代码可在 https://github.com/YefanZhou/ModelDiagnosis 获取。

英文摘要:

This paper considers "model diagnosis", which we formulate as a classification problem. Given a pre-trained neural network (NN), the goal is to predict the source of failure from a set of failure modes (such as a wrong hyperparameter, inadequate model size, and insufficient data) without knowing the training configuration of the pre-trained NN. The conventional diagnosis approach uses training and validation errors to determine whether the model is underfitting or overfitting. However, we show that rich information about NN performance is encoded in the optimization loss landscape, which provides more actionable insights than validation-based measurements. Therefore, we propose a diagnosis method called MD tree based on loss landscape metrics and experimentally demonstrate its advantage over classical validation-based approaches. We verify the effectiveness of MD tree in multiple practical scenarios: (1) use several models trained on one dataset to diagnose a model trained on another dataset, essentially a few-shot dataset transfer problem; (2) use small models (or models trained with small data) to diagnose big models (or models trained with big data), essentially a scale transfer problem. In a dataset transfer task, MD tree achieves an accuracy of 87.7%, outperforming validation-based approaches by 14.88%. Our code is available at https://github.com/YefanZhou/ModelDiagnosis.

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

↑