Papers › VoCo-LLaMA: Towards Vision Compression with Large Language Models

VoCo-LLaMA: Towards Vision Compression with Large Language Models

18 Jun 2024CVPR 2025 1arXiv:2406.12275archive 2025-07-28

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

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×, 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 $\href{https://yxxxb.github.io/VoCo-LLaMA-page/}{\text{this https URL}}$.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.12275")

Code

Syntology Ran 12 of 15 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong; 3 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 10 ran; 4 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Yxxxb/VoCo-LLaMA officialmentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 12 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
3ran · our draft was wrong
3ran · fixture could not drive it
5ran
3unverified

Licence: 4 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Yxxxb/VoCo-LLaMA. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

collate_fn Yxxxb/VoCo-LLaMA/llava/eval/model_vqa_loader.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 20e4f665698a3d18 · report
divide_to_patches Yxxxb/VoCo-LLaMA/llava/mm_utils.py official repository ran Apache-2.0 (permissive) · 7e03b180fa317c9a · report
get_chunk Yxxxb/VoCo-LLaMA/llava/eval/model_vqa_loader.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 42a46570620cd9fa · report
is_none Yxxxb/VoCo-LLaMA/llava/eval/model_vqa_mmbench.py official repository ran · violated contract Apache-2.0 (permissive) · bae18947b56f2be1 · report
make_mask_post_last_voco Yxxxb/VoCo-LLaMA/llava/model/language_model/llava_llama_1stg.py official repository ran Apache-2.0 (permissive) · 41a2eee71bc035f0 · report
make_mask_pre_first_voco Yxxxb/VoCo-LLaMA/llava/model/language_model/llava_llama_1stg.py official repository ran Apache-2.0 (permissive) · c93dc5dee323543c · report
resize_and_pad_image Yxxxb/VoCo-LLaMA/llava/mm_utils.py official repository ran Apache-2.0 (permissive) · 468eedeba67f1b00 · report
reverse_cumsum Yxxxb/VoCo-LLaMA/llava/model/language_model/llava_llama_1stg.py official repository ran fingerprinted Apache-2.0 (permissive) · 70b6bbbb75de4a0f · report
select_best_resolution Yxxxb/VoCo-LLaMA/llava/mm_utils.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 3999ff487573f32c · report
split_list Yxxxb/VoCo-LLaMA/llava/eval/model_vqa_loader.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 076c252c52cbb161 · report
xformers_forward Yxxxb/VoCo-LLaMA/llava/train/llama_xformers_attn_monkey_patch.py official repository unverified Apache-2.0 (permissive) · 5fac4f8d0269d2dc · report
split_to_even_chunks identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 10893c4608c08075 · report
unpad_image identical code first harvested elsewhere ran · fixture could not drive it fingerprinted licence of this copy not recorded · 7606525af238fb64 · report
get_mm_adapter_state_maybe_zero_3 identical code first harvested elsewhere unverified licence of this copy not recorded · bb35e3ac741bb2c9 · report
maybe_zero_3 identical code first harvested elsewhere unverified licence of this copy not recorded · 735025744c1ab0cf · report

Tasks

Computational EfficiencyQuestion AnsweringVideo Question Answering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections