arXiv Analytics

Sign in

arXiv:2311.17043 [cs.CV]AbstractReferencesReviewsResources

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

Yanwei Li, Chengyao Wang, Jiaya Jia

Published 2023-11-28Version 1

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

Comments: Code is available at https://github.com/dvlab-research/LLaMA-VID
Categories: cs.CV, cs.CL
Related articles: Most relevant | Search more
arXiv:2311.17126 [cs.CV] (Published 2023-11-28)
Reason out Your Layout: Evoking the Layout Master from Large Language Models for Text-to-Image Synthesis
arXiv:2305.11116 [cs.CV] (Published 2023-05-18)
LLMScore: Unveiling the Power of Large Language Models in Text-to-Image Synthesis Evaluation
arXiv:2305.14985 [cs.CV] (Published 2023-05-24)
IdealGPT: Iteratively Decomposing Vision and Language Reasoning via Large Language Models
Haoxuan You et al.