[论文解读] Out of Distribution Performance of State of Art Vision Model
本文在统一的训练设置下,对58种最先进的视觉模型(包括CNN、视觉Transformer、混合架构、MLP-Mixer、MobileNet、RegNet和Sequencer)进行了全面且公平的基准测试,以评估其分布外(OOD)鲁棒性。研究发现,ViT相较于CNN的优越性并非绝对:在相同训练条件下,CNN表现相当,而DeiT-3、ConvNeXt和Sequencer等模型在OOD性能上表现最佳,挑战了自注意力机制天然具备鲁棒性的假设。
The vision transformer (ViT) has advanced to the cutting edge in the visual recognition task. Transformers are more robust than CNN, according to the latest research. ViT's self-attention mechanism, according to the claim, makes it more robust than CNN. Even with this, we discover that these conclusions are based on unfair experimental conditions and just comparing a few models, which did not allow us to depict the entire scenario of robustness performance. In this study, we investigate the performance of 58 state-of-the-art computer vision models in a unified training setup based not only on attention and convolution mechanisms but also on neural networks based on a combination of convolution and attention mechanisms, sequence-based model, complementary search, and network-based method. Our research demonstrates that robustness depends on the training setup and model types, and performance varies based on out-of-distribution type. Our research will aid the community in better understanding and benchmarking the robustness of computer vision models.
研究动机与目标
- 为多样化最先进的视觉模型在分布外鲁棒性方面提供公平且全面的评估。
- 通过在相同训练条件下比较模型,挑战当前认为视觉Transformer天然比CNN更鲁棒的普遍观点。
- 识别出在不同分布偏移下实现最佳OOD泛化性能的模型架构和训练范式。
- 为未来视觉模型鲁棒性研究建立一个公开可访问的基准。
提出的方法
- 对所有模型采用统一的训练设置,使用相同的优化器(Adam)、初始初始学习率(0.01)和在ImageNet上的100个训练周期。
- 在五个OOD基准数据集上评估了58种SOTA模型:ImageNet-A、ImageNet-R、ImageNet-O、ImageNet-Sketch和Stylized ImageNet。
- 将模型分组为:基于卷积的(如ResNet、DenseNet)、基于注意力的(如ViT、DeiT)、混合型(如ConViT、ConvNeXt)、基于MLP的(MLP-Mixer)、基于神经架构搜索的(MobileNetV3)以及基于序列的(Sequencer)。
- 对训练成本过高的模型使用预训练权重,以确保不同模型家族之间的一致性。
- 通过在OOD数据集上的top-1准确率衡量鲁棒性,并在不同模型类型和训练方案之间进行性能比较。
- 在DeiT-3中采用了教师-学生蒸馏方法,这对其出色的OOD性能有显著贡献。
实验结果
研究问题
- RQ1在公平且统一的训练条件下,视觉Transformer报告的对CNN的鲁棒性优势是否依然成立?
- RQ2与纯CNN和ViT相比,不同模型架构(尤其是混合型和基于序列的模型)在分布外数据上的表现如何?
- RQ3哪种训练方案或架构选择能带来在多种分布偏移下最鲁棒的泛化性能?
- RQ4模型规模或预训练数据规模在不同架构中在多大程度上影响OOD鲁棒性?
主要发现
- DeiT-3在所有基准测试中均取得最高的OOD鲁棒性,在ImageNet-A上达到35.36%的准确率,在ImageNet-R上达到48.56%,优于大多数其他模型。
- 纯卷积架构的ConvNeXt在ImageNet-R上达到51.04%的准确率,在ImageNet-Sketch上达到37.13%,展现出强大的OOD泛化能力。
- 基于序列的模型Sequencer在ImageNet-R上达到48.56%的准确率,在ImageNet-Sketch上达到35.87%,优于大多数CNN和ViT模型。
- MLP-Mixer和MobileNetV3在OOD性能上表现较差,分别在ImageNet-A上仅取得5.79%和4.59%的准确率。
- 基础CNN模型如ResNet-50和VGG-16在OOD数据上表现不佳(例如,在ImageNet-A上为11.51%),这与CNN具有内在鲁棒性的假设相矛盾。
- 鲁棒性并非与注意力机制天然绑定;像ConViT和EdgeNeXt这样结合卷积与注意力的模型,在多个OOD基准测试中表现与ViT相当或更优。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。