Coreset selection is among the most effective ways to reduce the training time of CNNs, however, only limited is known on how the resultant models will behave under variations of the coreset size, and choice of datasets and models. Moreover, given the recent paradigm shift towards transformer-based models, it is still an open question how coreset selection would impact their performance. There are several similar intriguing questions that need to be answered for a wide acceptance of coreset selection methods, and this paper attempts to answer some of these. We present a systematic benchmarking setup and perform a rigorous comparison of different coreset selection methods on CNNs and transformers. Our investigation reveals that under certain circumstances, random selection of subsets is more robust and stable when compared with the SOTA selection methods. We demonstrate that the conventional concept of uniform subset sampling across the various classes of the data is not the appropriate choice. Rather samples should be adaptively chosen based on the complexity of the data distribution for each class. Transformers are generally pretrained on large datasets, and we show that for certain target datasets, it helps to keep their performance stable at even very small coreset sizes. We further show that when no pretraining is done or when the pretrained transformer models are used with non-natural images (e.g. medical data), CNNs tend to generalize better than transformers at even very small coreset sizes. Lastly, we demonstrate that in the absence of the right pretraining, CNNs are better at learning the semantic coherence between spatially distant objects within an image, and these tend to outperform transformers at almost all choices of the coreset size.
翻译:核心集选择是降低CNN训练时间最有效的方法之一,然而关于所得模型在核心集大小、数据集和模型选择变化下的行为,目前认知十分有限。此外,鉴于近期向基于Transformer模型的范式转变,核心集选择将如何影响其性能仍是一个未解问题。为了广泛接受核心集选择方法,存在若干类似且引人深思的问题需要解答,本文尝试回答其中部分问题。我们提出了一个系统性基准测试框架,并对CNN和Transformer上不同的核心集选择方法进行了严格比较。研究表明,在某些情况下,与最先进的选择方法相比,随机子集选择更具鲁棒性和稳定性。我们证明,传统上跨数据各类别进行均匀子集采样的概念并非合适选择;相反,应根据每个类别数据分布的复杂度自适应地选择样本。Transformer通常在大型数据集上预训练,我们显示对于某些目标数据集,即使在极小的核心集大小下,预训练也有助于保持其性能稳定。我们进一步表明,当未进行预训练或预训练Transformer模型用于非自然图像(如医学数据)时,CNN在极小的核心集大小下通常比Transformer具有更好的泛化能力。最后,我们证明在缺乏合适预训练的情况下,CNN在学习图像中空间远距离对象间的语义连贯性方面表现更优,且几乎在所有核心集大小选择下均优于Transformer。