arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.05981cs.LGcs.CV
收藏

一种基于应用数据集特征的轻量级分类难度度量方法

A Lightweight Measure of Classification Difficulty from Application Dataset Characteristics

Nokia Bell Labs(诺基亚贝尔实验室);Stony Brook University(石溪大学)

Bryan Bo Cao, Abhinav Sharma, Lawrence O'Gorman, Michael Coss, Shubham Jain

AI总结:

针对少类场景下模型性能预测需重复训练测试的问题,提出基于余弦相似度的轻量级分类难度度量S,可快速预测同家族模型相对性能,助力高效选模型,已在多模型多数据集及工业场景验证有效。

摘要:

尽管准确率和计算基准被广泛用于帮助选择神经网络模型,但这些基准通常在包含大量类别的数据集上训练,无法很好地反映少类(<10)场景下的性能。传统的性能预测流程需要在不同模型和数据集变体上进行重复训练与测试。我们提出了一种高效的基于余弦相似度的分类难度度量S,它由数据集的类别数量以及类内、类间相似度指标计算得到。在每个模型家族完成单阶段训练与测试后,无需额外的训练和测试,仅通过比较难度度量值就能预测同一家族下不同数据集和模型的相对性能。我们通过在8个CNN与ViT模型、7个数据集上的大量实验验证了所提方法。结果表明,S与模型准确率高度相关,相关系数|r|=0.796,优于基线欧氏距离的|r|=0.66。我们展示了从业者如何使用该度量帮助选择高效模型,速度比重复训练测试快6到29倍。我们还介绍了该度量在一项工业应用中的使用:在该应用中,通过该方法找到了比基线YOLOv5-nano模型小42%的可选模型;若将类别从3类合并为2类能满足需求,还可找到小85%的模型。

英文摘要:

Although accuracy and computation benchmarks are widely available to help choose among neural network models, these are usually trained on datasets with many classes, and do not give a good idea of performance for few (< 10) classes. The conventional procedure to predict performance involves repeated training and testing on the different models and dataset variations. We propose an efficient cosine similarity-based classification difficulty measure S that is calculated from the number of classes and intra- and inter-class similarity metrics of the dataset. After a single stage of training and testing per model family, relative performance for different datasets and models of the same family can be predicted by comparing difficulty measures - without further training and testing. Our proposed method is verified by extensive experiments on 8 CNN and ViT models and 7 datasets. Results show that S is highly correlated to model accuracy with correlation coefficient |r| = 0.796, outperforming the baseline Euclidean distance at |r| = 0.66. We show how a practitioner can use this measure to help select an efficient model 6 to 29x faster than through repeated training and testing. We also describe using the measure for an industrial application in which options are identified to select a model 42% smaller than the baseline YOLOv5-nano model, and if class merging from 3 to 2 classes meets requirements, 85% smaller.

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

↑