arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2612.03406cs.AIcs.CV
收藏

MAB-Sparse:通过模态感知的N:M激活稀疏性加速多模态大语言模型(MLLM)的预填充

MAB-Sparse: Accelerating MLLM Prefill via Modality-Aware Balanced N:M Activation Sparsity

College of Future Information Technology, Fudan University(复旦大学未来信息技术学院);Shanghai Innovation Institute(上海创新研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);The Chinese University of Hong Kong(香港中文大学);Zhangjiang Laboratory(张江实验室)

Yaoxin Yang, Peng Ye, Maosen Zhao, Chenyu Huang, Xudong Tan, Jia Hao, Tao Chen

AI总结:

本研究针对MLLM预填充的推理瓶颈,提出MAB-Sparse框架,通过模态感知通道重排序、头感知平衡分组及融合CUDA打包内核,在多种稀疏度下提升性能并实现最高1.62倍的预填充加速。

摘要:

多模态大语言模型(MLLM)在预填充阶段会处理大量视觉和文本 token,这使得解码器线性层成为推理的主要瓶颈。N:M激活稀疏性可降低该成本,但现有方法忽略了多模态激活的特性。本研究首次针对MLLM预填充开展N:M激活稀疏性的系统研究,明确两大关键挑战:视觉与文本 token依赖不同的重要通道,且重要通道会在局部组内争夺固定的保留预算。为此,我们提出MAB-Sparse,即模态感知的N:M激活稀疏性框架。其一,模态感知通道重排序(MCR)结合模态特定的激活统计量与权重敏感性,在三个激活位点将重要通道分配至局部组;其二,头感知平衡分组(HBG)利用头级别的重要性,在共享的头内维度构建分层跨头组;其三,融合CUDA打包内核执行映射读取、动态Top-N选择及稀疏打包,以实现直接的稀疏通用矩阵乘法(GEMM)执行。在四个MLLM和九个多模态基准上的实验表明,MAB-Sparse在2:4、4:8、8:16稀疏度下,相比现有方法能更好地保持性能,同时实现最高1.62倍的解码器预填充加速。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑