Multimodal large language models (MLLMs) process many visual and text tokens during prefill, making decoder linear layers a major inference bottleneck. N:M activation sparsity can reduce this cost, but existing methods overlook multimodal activation characteristics. Our work presents the first systematic study of N:M activation sparsity for MLLM prefill and identifies two key challenges: visual and text tokens rely on different important channels, and important channels compete for a fixed retention budget within local groups. To this end, we propose MAB-Sparse, a Modality-Aware Balanced N:M Activation Sparsity framework. First, Modality-aware Channel Reordering (MCR) combines modality-specific activation statistics with weight sensitivity to distribute important channels across local groups at three activation sites. Second, Head-aware Balanced Grouping (HBG) exploits head-level importance to construct stratified cross-head groups at shared within-head dimensions. Third, a fused CUDA packing kernel performs mapped reads, dynamic Top-$N$ selection, and sparse packing for direct sparse-GEMM execution. Experiments on four MLLMs and nine multimodal benchmarks show that MAB-Sparse better preserves performance than existing methods under 2:4, 4:8, and 8:16 sparsity, while achieving up to $1.62\times$ decoder-prefill speedup.
翻译:暂无翻译