arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14072cs.CVcs.AIcs.CL
收藏

通过将视觉令牌总结为紧凑寄存器的高效视觉语言模型

Efficient Vision-Language Models by Summarizing Visual Tokens into Compact Registers

University of Maryland(马里兰大学);Apple(苹果公司);Meta

Yuxin Wen, Qingqing Cao, Qichen Fu, Sachin Mehta, Mahyar Najibi

AI总结:

本文提出Victor方法,通过将大量视觉令牌总结为少量可学习寄存器令牌,在仅损失不到4%准确率的情况下,将视觉语言模型的训练时间减少43%、推理吞吐量提升3.3倍。

摘要:

视觉语言模型(VLMs)的最新进展扩展了其在现实世界应用中的潜力,使这些模型能够对图像执行复杂推理。在广泛使用的完全自回归Transformer架构模型(如LLaVA)中,投影后的视觉令牌被前置到文本令牌之前。通常,视觉令牌的数量远多于提示令牌,导致训练和推理过程中的计算开销增加。本文提出视觉紧凑令牌寄存器(Victor),该方法通过将视觉令牌总结为更小的寄存器令牌集合来减少视觉令牌数量。Victor在视觉令牌之后添加少量可学习的寄存器令牌,并利用VLM语言塔的前几层将视觉信息总结到这些寄存器中。经过这几层后,所有视觉令牌被丢弃,显著提高了训练和推理的计算效率。值得注意的是,该方法易于实现,仅需少量新的可训练参数,对模型性能影响极小。在实验中,仅使用8个视觉寄存器——约为原始令牌的1%——Victor的准确率下降不到4%,同时将总训练时间减少43%,并将推理吞吐量提升3.3倍。

英文摘要:

Recent advancements in vision-language models (VLMs) have expanded their potential for real-world applications, enabling these models to perform complex reasoning on images. In the widely used fully autoregressive transformer-based models like LLaVA, projected visual tokens are prepended to textual tokens. Oftentimes, visual tokens are significantly more than prompt tokens, resulting in increased computational overhead during both training and inference. In this paper, we propose Visual Compact Token Registers (Victor), a method that reduces the number of visual tokens by summarizing them into a smaller set of register tokens. Victor adds a few learnable register tokens after the visual tokens and summarizes the visual information into these registers using the first few layers in the language tower of VLMs. After these few layers, all visual tokens are discarded, significantly improving computational efficiency for both training and inference. Notably, our method is easy to implement and requires a small number of new trainable parameters with minimal impact on model performance. In our experiment, with merely 8 visual registers--about 1% of the original tokens--Victor shows less than a 4% accuracy drop while reducing the total training time by 43% and boosting the inference throughput by 3.3X.

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

↑