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

LLaMA-VID:在大语言模型中一张图像仅需2个令牌

LLaMA-VID: An Image is Worth 2 Tokens in Large Language Models

CUHK(香港中文大学);SmartMore(思谋科技)

Yanwei Li, Chengyao Wang, Jiaya Jia

AI总结:

LLaMA-VID提出用上下文令牌和内容令牌两个令牌表示每帧图像,以降低长视频处理的计算负担,使现有视觉语言模型能支持小时级视频并在多数基准上超越先前方法。

摘要:

在这项工作中,我们提出了一种新方法,用于解决视觉语言模型(VLMs)在视频和图像理解中的令牌生成挑战,称为LLaMA-VID。当前的视觉语言模型虽然在图像描述和视觉问答等任务上表现熟练,但在处理长视频时由于过多的视觉令牌而面临计算负担。LLaMA-VID通过用两个不同的令牌表示每一帧来解决这一问题,即上下文令牌和内容令牌。上下文令牌根据用户输入编码整体图像上下文,而内容令牌封装每一帧中的视觉线索。这种双令牌策略显著减轻了长视频的过载,同时保留了关键信息。总体而言,LLaMA-VID使现有框架能够支持长达一小时的视频,并通过额外的上下文令牌提升其上限。实验证明,该方法在大多数基于视频或图像的基准测试上超越了先前的方法。代码可在 https://github.com/dvlab-research/LLaMA-VID 获取。

英文摘要:

In this work, we present a novel method to tackle the token generation challenge in Vision Language Models (VLMs) for video and image understanding, called LLaMA-VID. Current VLMs, while proficient in tasks like image captioning and visual question answering, face computational burdens when processing long videos due to the excessive visual tokens. LLaMA-VID addresses this issue by representing each frame with two distinct tokens, namely context token and content token. The context token encodes the overall image context based on user input, whereas the content token encapsulates visual cues in each frame. This dual-token strategy significantly reduces the overload of long videos while preserving critical information. Generally, LLaMA-VID empowers existing frameworks to support hour-long videos and pushes their upper limit with an extra context token. It is proved to surpass previous methods on most of video- or image-based benchmarks. Code is available https://github.com/dvlab-research/LLaMA-VID}{https://github.com/dvlab-research/LLaMA-VID

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

↑