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

我们何时不需要更大的视觉模型?

When Do We Not Need Larger Vision Models?

UC Berkeley(加州大学伯克利分校);Microsoft Research(微软研究院)

Baifeng Shi, Ziyang Wu, Maolin Mao, Xin Wang, Trevor Darrell

AI总结:

本文提出尺度缩放(S$^2$)方法,通过多尺度运行较小模型以替代更大模型,在多项任务上达到或超越更大模型性能,并发布一行代码应用的Python包。

摘要:

扩大视觉模型的规模已成为获得更强大视觉表示的事实标准。在这项工作中,我们讨论了超越某一点后,更大的视觉模型就不再必要。首先,我们展示了尺度缩放(S$^2$)的力量,即一个预训练且冻结的较小视觉模型(如ViT-B或ViT-L),在多个图像尺度上运行,可以在分类、分割、深度估计、多模态大语言模型(MLLM)基准测试以及机器人操作任务上超越更大的模型(如ViT-H或ViT-G)。值得注意的是,S$^2$在V*基准的MLLM详细理解任务上达到了最先进的性能,超越了诸如GPT-4V等模型。我们考察了在何种条件下,S$^2$相比模型尺寸缩放是一种更优的缩放方法。虽然更大的模型在困难样本上具有更好的泛化优势,但我们表明,更大视觉模型的特征可以被多尺度较小模型的特征很好地近似。这表明,当前大型预训练模型学习到的表示,大部分(如果不是全部)也可以通过多尺度较小模型获得。我们的结果表明,多尺度较小模型具有与更大模型相当的学习能力,并且使用S$^2$预训练较小模型可以匹配甚至超越更大模型的优势。我们发布了一个Python包,可以通过一行代码将S$^2$应用于任何视觉模型:https://github.com/bfshi/scaling_on_scales。

英文摘要:

Scaling up the size of vision models has been the de facto standard to obtain more powerful visual representations. In this work, we discuss the point beyond which larger vision models are not necessary. First, we demonstrate the power of Scaling on Scales (S$^2$), whereby a pre-trained and frozen smaller vision model (e.g., ViT-B or ViT-L), run over multiple image scales, can outperform larger models (e.g., ViT-H or ViT-G) on classification, segmentation, depth estimation, Multimodal LLM (MLLM) benchmarks, and robotic manipulation. Notably, S$^2$ achieves state-of-the-art performance in detailed understanding of MLLM on the V* benchmark, surpassing models such as GPT-4V. We examine the conditions under which S$^2$ is a preferred scaling approach compared to scaling on model size. While larger models have the advantage of better generalization on hard examples, we show that features of larger vision models can be well approximated by those of multi-scale smaller models. This suggests most, if not all, of the representations learned by current large pre-trained models can also be obtained from multi-scale smaller models. Our results show that a multi-scale smaller model has comparable learning capacity to a larger model, and pre-training smaller models with S$^2$ can match or even exceed the advantage of larger models. We release a Python package that can apply S$^2$ on any vision model with one line of code: https://github.com/bfshi/scaling_on_scales.

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

↑