atlas

Research map / Vision-language and multimodal / Multimodal LLMs

MMInference: Accelerating Pre-filling for Long-Context Visual Language Models via Modality-Aware Permutation Sparse Attention

ICML 2025 · Vision-language and multimodal › Multimodal LLMs · approach: Multimodal LLM benchmarks

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes MMInference, a permutation-based dynamic sparse attention method that accelerates pre-filling for long-context vision-language models by exploiting grid-shaped attention heads and modality boundaries, without model modification or fine-tuning.

Problem

Quadratic attention cost during pre-filling makes long-context vision language models slow to first token when processing long multi-modal (video, image, text) inputs.

Approach

Identifies a grid-shaped sparse attention pattern in VLM heads and modality-boundary patterns (Q-boundary, 2D-boundary); uses row/column and modality-wise permutations so that sparse indices become contiguous and can be computed with dense FlashAttention-style kernels, with an offline modality-aware search selecting per-head patterns.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply MMInference instead of full attentionLlava-Video-7B · Video understanding (110 frames)Avg.: 57.6 -> 57.6No clear effect
Apply MMInference instead of full attentionLongVILA-7B · Video understanding (256 frames)Avg.: 55.5 -> 55.4Hurt
Apply MMInference instead of full attentionQwen2.5-VL-7B-Instruct · Video understanding (256 frames)Avg.: 59.5 -> 59.4Hurt
Apply MMInferenceVideoChat-Flash · Video understanding (512 frames, 8k tokens)Avg.: 56.8 -> 56.7Hurt
Use MMInference instead of MInferenceLlava-Video-7B · Video understanding (110 frames)FLOPs: 78.8% -> 47.3%Helped
Use MMInference instead of MInferenceLongVILA-7B · Video understanding (256 frames)FLOPs: 47.0% -> 31.8%Helped
Use MMInference instead of full attentionLong-context VLMs · Pre-filling at 1M tokensend-to-end speedup: 8.3×Helped
Use the Grid pattern instead of the Vertical-Slash patternLong-context VLMs · Pre-filling at 1M tokensspeedup: 2–3×Helped
Remove inter-modality sparse patterns (ablation)MMInference · Mixed-Modality Needle in a Haystackretrieval performanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: EgoSchema (single calibration sample, up to 25K tokens)

Benchmarks: ActivityNet-QA EgoSchema NExT-QA PerceptionTest VideoDC Video-MME V-NIAH MM-NIAH

Metrics: accuracy end-to-end latency kernel latency FLOPs recall

Baselines: Full Attention (FlashAttention-2) SparseTransformer (Fixed) SparseTransformer (Strided) A-shape Tri-shape MInference VisionZip

Builds on: MInference FlashAttention-2 A-shape Tri-shape Vertical-Slash

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy