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

CNN和具有核心集的Transformers的数据有效训练:稳定性观点

Data-Efficient Training of CNNs and Transformers with Coresets: A Stability Perspective

Transmute AI Lab(Transmute AI实验室);UiT The Arctic University of Norway(挪威北极大学UiT);Immersal(Immersal公司)

Animesh Gupta, Irtiza Hasan, Dilip K. Prasad, Deepak K. Gupta

摘要:

核心集选择是减少CNN训练时间的最有效方法之一,然而,在核心集大小变化以及数据集和模型选择的情况下,所得模型的行为方式有限。此外,考虑到最近的范式转移到变压器为基础的模型,它仍然是一个悬而未决的问题,如何coreset选择会影响他们的表现。有几个类似的有趣的问题,需要回答广泛接受的核心选择方法,本文试图回答其中的一些。我们提出了一个系统的基准测试设置,并对CNN和Transformers的不同核心选择方法进行了严格的比较。我们的研究表明,在某些情况下,随机选择的子集是更强大和稳定的SOTA选择方法相比。我们表明,传统的概念,均匀的子集抽样的各种类别的数据是不合适的选择。相反,应该根据每个类的数据分布的复杂性自适应地选择样本。Transformers通常在大型数据集上进行预训练,并且我们表明,对于某些目标数据集,即使在非常小的核心集大小下,它也有助于保持其性能稳定。我们进一步表明,当没有进行预训练时,或者当预训练的Transformer模型与非自然图像(例如医疗数据)一起使用时,即使在非常小的核心集大小下,CNN也倾向于比Transformers更好地泛化。最后,我们证明了在没有正确的预训练的情况下,CNN更善于学习图像中空间距离较远的对象之间的语义一致性,并且在几乎所有的核心集大小选择上,CNN的表现往往优于Transformers。

英文摘要:

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.

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

↑