TL;DR
When Multimodal Large Language Models (MLLMs) process images and text together, the initial "prefill" phase becomes a massive computational bottleneck. MAB-Sparse speeds up this prefill stage by up to 1.62× using hardware-friendly N:M activation sparsity—dropping half of the intermediate numbers in linear layers—without the usual accuracy crash. It does this by recognizing that text and visual tokens care about different neural channels and rearranging those channels so the most important ones don't crowd each other out.
What Problem Does This Paper Address?
Before an MLLM can generate its first word, it has to digest the entire prompt—text plus potentially thousands of visual tokens from high-resolution images or documents—all at once. This "prefill" phase pushes massive amounts of data through dense linear layers at every decoder block.
One natural way to lighten this load is N:M activation sparsity: for every contiguous group of $M$ channels in an activation matrix, you keep only the $N$ largest values (for example, 2 out of every 4) and zero out the rest, letting specialized GPU kernels skip half the math.
The catch? Existing N:M sparsity methods were built for text-only LLMs. When applied to MLLMs, they stumble over two hidden problems:
- Modality blindness: Text tokens and visual tokens activate completely different regions of the network. In fact, their top important channels overlap by only 11.7% to 27.7% across decoder sites. A one-size-fits-all importance score ends up starving one modality to feed the other.
- Local crowding: In standard contiguous grouping, important channels often sit right next to each other. Because each group of $M$ channels has a strict budget of only $N$ survivors, neighboring VIP channels are forced to compete, and critical information gets thrown away.
Methods
To solve both issues without retraining the model, the authors introduce MAB-Sparse, which splits the work into an offline calibration step and an online GPU kernel:
- Modality-aware Channel Reordering (MCR): Applied to three activation sites (Attention Input, FFN Input, and FFN Intermediate). Using a small calibration set, MCR measures activation magnitudes separately for text and visual tokens, combines them with linear-layer weight sensitivity, and balances them with a tunable weight $\lambda$. It then greedily assigns channels to groups so that high-importance channels are spread evenly across local $M$-sized buckets, eliminating local crowding.
- Head-aware Balanced Grouping (HBG): Applied to the Attention Output, which has an explicit multi-head structure. Instead of mixing channels arbitrarily, HBG scores each attention head's modality-aware importance, sorts the heads, and builds cross-head groups that pair channels from top-ranked heads with channels from lower-ranked heads at the same within-head dimension.
- Fused CUDA Packing Kernel: At inference time, a custom CUDA kernel fuses तीन steps—mapping the offline permutations into memory read addresses, dynamically selecting the Top-$N$ activations per group, and packing the survivors directly into the layout expected by NVIDIA CUTLASS
SparseGemm. Because the consumer weight columns are reordered once offline, there is zero runtime un-permuting overhead.
Datasets
- Calibration: 2,048 multimodal image-text samples from ShareGPT4V (used once offline to estimate modality-specific activation statistics).
- Evaluation: Nine diverse multimodal benchmarks evaluated via LMMS-Eval: DocVQA, GQA, MME, MMMU, MMStar, MuirBench, POPE, TextVQA, and MathVista. No new benchmarks were introduced.
Key Insights and Ideas
- Modality-specific statistics transfer well: Even though ShareGPT4V is an out-of-domain dataset, calibrating on it performs within 0.32 points on average of calibrating on the exact training sets of DocVQA, GQA, or TextVQA.
- Both modules are complementary: On Qwen3-VL-8B under 2:4 sparsity, adding MCR alone improves accuracy by 0.78 points over Native Top-$k$, HBG alone adds 1.05 points, and combining them jumps the gain to 2.09 points (including +4.40 points on MMStar).
- Weight sensitivity matters: Scoring channels purely by activation magnitude leaves performance on the table; incorporating weight sensitivity adds an average of 1.11 points under 2:4 sparsity.
- Importance-guided > Random: Randomly shuffling channels helps slightly by breaking up some clusters, but it is noisy and hurts complex reasoning (like MMStar). Systematic, importance-guided balancing beats random reordering by 2.01 points on average.
Key Results
MAB-Sparse was tested on four MLLMs—LLaVA-OneVision-1.5-8B, Qwen3-VL-8B, Qwen3-VL-32B, and the Mixture-of-Experts Qwen3-VL-30B-A3B—under 2:4, 4:8, and 8:16 sparsity during prefill (decoding remains dense):
- 8B Models: Beats the strongest sparse baseline by 2.63 percentage points in average retention, with the biggest wins under strict 2:4 sparsity (+3.52 points on LLaVA-OneVision and +3.30 points on Qwen3-VL).
- 32B & MoE Models: Retains 95.02%–97.04% of dense performance on Qwen3-VL-32B (+3.95 points over the best baseline at 2:4) and 92.57%–96.19% on Qwen3-VL-30B-A3B.
- Hardware Speedup: Benchmarked in BF16 on an NVIDIA RTX 4090 (batch size 16), the 2:4 packing kernel + CUTLASS
SparseGemmdelivers up to 1.61× / 1.62× decoder-prefill speedup and 1.39× / 1.38× Time-To-First-Token (TTFT) speedup on GQA and POPE.
Limitations and Future Work
- Scope: MAB-Sparse only accelerates decoder linear layers; attention computation and the vision encoder remain dense.
- Hardware & Calibration: Kernel benchmarks were limited to 2:4 sparsity on a single GPU, and the method still requires a one-time offline calibration pass.
- Future Directions: The authors plan to combine MAB-Sparse with attention and visual-token compression, build kernels for broader sparsity patterns (like 4:8 and 8:16) and hardware platforms, and explore calibration-free importance estimation.
Summary updated