DeepStack:为LMM深度堆叠视觉Token出奇地简单且有效
DeepStack: Deeply Stacking Visual Tokens is Surprisingly Simple and Effective for LMMs
AI总结:
本文提出DeepStack架构,通过将视觉Token分组并自底向上输入到LMM各Transformer层,以极小额外成本增强跨层视觉交互,在多个基准上显著超越同类模型。
摘要:
大多数大型多模态模型(LMM)通过将视觉Token作为序列输入到大型语言模型(LLM)的第一层来实现。由此产生的架构虽然简单,但显著增加了计算和内存成本,因为其必须在输入层处理大量额外Token。本文提出了一种用于LMM的新架构DeepStack。考虑到LMM中语言和视觉Transformer共有N层,我们将视觉Token堆叠为N组,并自底向上地将每组输入到与其对齐的Transformer层。令人惊讶的是,这种简单的方法极大地增强了LMM在跨层建模视觉Token之间交互的能力,同时仅带来极小的额外成本。我们将DeepStack同时应用于LMM中的语言和视觉Transformer,并通过大量实证结果验证了DeepStack LMM的有效性。在相同上下文长度下,我们的DeepStack 7B和13B参数模型在9个基准测试上的平均性能分别比对应模型高出2.7和2.9。仅使用五分之一的上下文长度,DeepStack就能与使用完整上下文长度的对应模型表现非常接近。这些提升在高分辨率任务上尤为显著,例如与LLaVA-1.5-7B相比,在TextVQA、DocVQA和InfoVQA上分别取得了4.2、11.0和4.0的提升。我们进一步将DeepStack应用于视觉Transformer层,与LLaVA-1.5-7B相比,平均带来了3.8的类似幅度提升。
英文摘要:
Most large multimodal models (LMMs) are implemented by feeding visual tokens as a sequence into the first layer of a large language model (LLM). The resulting architecture is simple but significantly increases computation and memory costs, as it has to handle a large number of additional tokens in its input layer. This paper presents a new architecture DeepStack for LMMs. Considering $N$ layers in the language and vision transformer of LMMs, we stack the visual tokens into $N$ groups and feed each group to its aligned transformer layer \textit{from bottom to top}. Surprisingly, this simple method greatly enhances the power of LMMs to model interactions among visual tokens across layers but with minimal additional cost. We apply DeepStack to both language and vision transformer in LMMs, and validate the effectiveness of DeepStack LMMs with extensive empirical results. Using the same context length, our DeepStack 7B and 13B parameters surpass their counterparts by \textbf{2.7} and \textbf{2.9} on average across \textbf{9} benchmarks, respectively. Using only one-fifth of the context length, DeepStack rivals closely to the counterparts that use the full context length. These gains are particularly pronounced on high-resolution tasks, e.g., \textbf{4.2}, \textbf{11.0}, and \textbf{4.0} improvements on TextVQA, DocVQA, and InfoVQA compared to LLaVA-1.5-7B, respectively. We further apply DeepStack to vision transformer layers, which brings us a similar amount of improvements, \textbf{3.8} on average compared with LLaVA-1.5-7B.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。