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

VoCo-LLaMA:基于大语言模型的视觉压缩研究

VoCo-LLaMA: Towards Vision Compression with Large Language Models

Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);ARC Lab, Tencent PCG(腾讯平台与内容事业群ARC实验室);UC Santa Cruz(加州大学圣克鲁兹分校)

Xubing Ye, Yukang Gan, Xiaoke Huang, Yixiao Ge, Yansong Tang

AI总结:

提出VoCo-LLaMA,首个利用大语言模型进行视觉token压缩的方法,通过引入Vision Compression tokens和注意力蒸馏实现高效压缩,在极低性能损失下大幅减少计算量并加速推理,且在视频问答任务上表现优异。

摘要:

视觉语言模型(VLMs)在各种多模态任务中取得了显著成功,但它们在处理高分辨率图像输入和视频时,往往受到有限上下文窗口和高计算成本的瓶颈限制。视觉压缩可以通过减少视觉token数量来缓解这一问题。以往的方法使用外部模块压缩视觉token,并迫使LLMs理解压缩后的token,从而导致视觉信息丢失。然而,LLMs对视觉token的理解范式在压缩学习过程中并未得到充分利用。我们提出了VoCo-LLaMA,这是第一种使用LLMs压缩视觉token的方法。通过在视觉指令微调阶段引入Vision Compression tokens,并利用注意力蒸馏,我们的方法将LLMs对视觉token的理解蒸馏到其对VoCo tokens的处理中。VoCo-LLaMA促进了有效的视觉压缩,并提高了推理阶段的计算效率。具体而言,我们的方法在576×的压缩率下实现了最小的性能损失,导致FLOPs减少高达94.8%,推理时间加速69.6%。此外,通过对视频帧的时间序列压缩token序列进行连续训练,VoCo-LLaMA展现出了理解时间相关性的能力,在流行的视频问答基准上超越了以往的方法。我们的方法为释放VLMs上下文窗口的全部潜力提供了一种有前景的途径,从而实现更具可扩展性的多模态应用。项目页面及相关代码可通过https://yxxxb.github.io/VoCo-LLaMA-page/ 访问。

英文摘要:

Vision-Language Models (VLMs) have achieved remarkable success in various multi-modal tasks, but they are often bottlenecked by the limited context window and high computational cost of processing high-resolution image inputs and videos. Vision compression can alleviate this problem by reducing the vision token count. Previous approaches compress vision tokens with external modules and force LLMs to understand the compressed ones, leading to visual information loss. However, the LLMs' understanding paradigm of vision tokens is not fully utilised in the compression learning process. We propose VoCo-LLaMA, the first approach to compress vision tokens using LLMs. By introducing Vision Compression tokens during the vision instruction tuning phase and leveraging attention distillation, our method distill how LLMs comprehend vision tokens into their processing of VoCo tokens. VoCo-LLaMA facilitates effective vision compression and improves the computational efficiency during the inference stage. Specifically, our method achieves minimal performance loss with a compression ratio of 576$\times$, resulting in up to 94.8$\%$ fewer FLOPs and 69.6$\%$ acceleration in inference time. Furthermore, through continuous training using time-series compressed token sequences of video frames, VoCo-LLaMA demonstrates the ability to understand temporal correlations, outperforming previous methods on popular video question-answering benchmarks. Our approach presents a promising way to unlock the full potential of VLMs' contextual window, enabling more scalable multi-modal applications. The project page, along with the associated code, can be accessed via https://yxxxb.github.io/VoCo-LLaMA-page/.

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

↑