Papers › Dynamic-LLaVA: Efficient Multimodal Large Language Models via Dynamic Vision-language...

Dynamic-LLaVA: Efficient Multimodal Large Language Models via Dynamic Vision-language Context Sparsification

1 Dec 2024arXiv:2412.00876archive 2025-07-28

Wenxuan Huang, Zijie Zhai, Yunhang Shen, Shaosheng Cao, Fei Zhao, Xiangfeng Xu, Zheyu Ye, Shaohui Lin

Multimodal Large Language Models (MLLMs) have achieved remarkable success in vision understanding, reasoning, and interaction. However, the inference computation and memory increase progressively with the generation of output tokens during decoding, directly affecting the efficacy of MLLMs. Existing methods attempt to reduce the vision context redundancy to achieve efficient MLLMs. Unfortunately, the efficiency benefits of the vision context reduction in the prefill stage gradually diminish during the decoding stage. To address this problem, we proposed a dynamic vision-language context sparsification framework Dynamic-LLaVA, which dynamically reduces the redundancy of vision context in the prefill stage and decreases the memory and computation overhead of the generated language context during decoding. Dynamic-LLaVA designs a tailored sparsification inference scheme for different inference modes, i.e., prefill, decoding with and without KV cache, to achieve efficient inference of MLLMs. In practice, Dynamic-LLaVA can reduce computation consumption by ∼75\% in the prefill stage. Meanwhile, throughout the entire generation process of MLLMs, Dynamic-LLaVA reduces the ∼50\% computation consumption under decoding without KV cache, while saving ∼50\% GPU memory overhead when decoding with KV cache, due to the vision-language context sparsification. Extensive experiments also demonstrate that Dynamic-LLaVA achieves efficient inference for MLLMs with negligible understanding and generation ability degradation or even performance gains compared to the full-context inference baselines. Code is available at https://github.com/Osilly/dynamic_llava .

PaperPDFCodeCode 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="2412.00876")

Code

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

By repository: official repository: 18 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

osilly/dynamic_llava officialmentioned in paperpytorchApache-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

18 samples harvested; 13 ran; 0 honoured the contract we drafted; 5 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
7ran · our draft was wrong
1ran · fixture could not drive it
4ran
5unverified

Licence: 0 of the 18 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 osilly/dynamic_llava. “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.

LlamaDynamicNTKScalingRotaryEmbedding osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 68bd42b9c09a9dd1 · report
LlamaLinearScalingRotaryEmbedding osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 1287c98591685f54 · report
LlamaMLP osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · c5d348f0b0059642 · report
LlamaRotaryEmbedding osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 7541f97d86797bda · report
collate_fn Osilly/dynamic_llava/llava/dynamic_eval/model_vqa_loader.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 20e4f665698a3d18 · report
convert_caps Osilly/dynamic_llava/llava/dynamic_eval/eval_science_qa.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 94fda0761ce0d5b9 · report
get_chunk Osilly/dynamic_llava/llava/dynamic_eval/model_lvis_for_meteor.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 42a46570620cd9fa · report
get_pred_idx Osilly/dynamic_llava/llava/dynamic_eval/eval_science_qa.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 36e875f85baa4565 · report
prompt_processor Osilly/dynamic_llava/llava/dynamic_eval/eval_textvqa.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 1e68840d6bbdface · report
scaled_dot_product_attention_with_policy osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository ran · our draft was wrong Apache-2.0 (permissive) · bc218bfbe73e286b · report
softmax_with_policy osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository ran · our draft was wrong Apache-2.0 (permissive) · aa7e8923d37f93a8 · report
split_list Osilly/dynamic_llava/llava/dynamic_eval/model_lvis_for_meteor.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 076c252c52cbb161 · report
unpad_image Osilly/dynamic_llava/llava/model/dynamic_llava_arch.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 55c32993da87759b · report
Cache osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository unverified Apache-2.0 (permissive) · d866787c2702613f · report
DynamicLlamaDecoderLayer osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository unverified Apache-2.0 (permissive) · 2ee5fbf088ba5b7e · report
DynamicLlamaSdpaAttention osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository unverified Apache-2.0 (permissive) · c0464d1e0119ec7f · report
LlamaAttention osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository unverified Apache-2.0 (permissive) · 64c5b45fc73cecfd · report
LlamaFlashAttention2 osilly/dynamic_llava/llava/model/language_model/dynamic_modeling_llama.py official repository unverified Apache-2.0 (permissive) · 58c176deebe204d2 · report

Tasks

Visual Question Answering

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Visual Question Answering MM-Vet Dynamic-LLaVA-13B GPT-4 score 37.3 #135 of 231 Archive leaderboard report
Visual Question Answering MM-Vet Dynamic-LLaVA-7B GPT-4 score 32.2 #184 of 231 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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