Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

TokenPacker: Efficient Visual Projector for Multimodal LLM

About

The visual projector serves as an essential bridge between the visual encoder and the Large Language Model (LLM) in a Multimodal LLM (MLLM). Typically, MLLMs adopt a simple MLP to preserve all visual contexts via one-to-one transformation. However, the visual tokens are redundant and can be considerably increased when dealing with high-resolution images, impairing the efficiency of MLLMs significantly. Some recent works have introduced resampler or abstractor to reduce the number of resulting visual tokens. Unfortunately, they fail to capture finer details and undermine the visual reasoning capabilities of MLLMs. In this work, we propose a novel visual projector, which adopts a coarse-to-fine scheme to inject the enriched characteristics to generate the condensed visual tokens. In specific, we first interpolate the visual features as a low-resolution point query, providing the overall visual representation as the foundation. Then, we introduce a region-to-point injection module that utilizes high-resolution, multi-level region-based cues as fine-grained reference keys and values, allowing them to be fully absorbed within the corresponding local context region. This step effectively updates the coarse point query, transforming it into an enriched one for the subsequent LLM reasoning. Extensive experiments demonstrate that our approach compresses the visual tokens by 75%~89%, while achieves comparable or even better performance across diverse benchmarks with significantly higher efficiency. The source codes can be found at https://github.com/CircleRadon/TokenPacker.

Wentong Li, Yuqian Yuan, Jian Liu, Dongqi Tang, Song Wang, Jie Qin, Jianke Zhu, Lei Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringVQA v2
Accuracy82
1165
Visual Question AnsweringTextVQA
Accuracy70.6
1117
Visual Question AnsweringVizWiz
Accuracy61
1043
Visual Question AnsweringGQA
Accuracy62.5
963
Object Hallucination EvaluationPOPE
Accuracy87.4
935
Visual Question AnsweringVQA v2 (test-dev)
Overall Accuracy77.9
664
Multimodal EvaluationMME--
557
Text-based Visual Question AnsweringTextVQA
Accuracy52.5
496
Multimodal UnderstandingMM-Vet
MM-Vet Score34.5
418
Visual Question AnsweringGQA
Accuracy58.9
374
Showing 10 of 33 rows

Other info

Code

Follow for update