SparseMM: Head Sparsity Emerges from Visual Concept Responses in MLLMs

Jiahui Wang, Zu-Yan Liu, Yongming Rao, Ji-Wen Lu
6/1/2025
26 citations
transformer-attention

Official code: CR400AF-A/SparseMM (90 stars, Python, last commit 2026-01-17).

Abstract

Multimodal Large Language Models (MLLMs) are commonly derived by extending pre-trained Large Language Models (LLMs) with visual capabilities. In this work, we investigate how MLLMs process visual inputs by analyzing their attention mechanisms.

Show full abstract

We reveal a surprising sparsity phenomenon: only a small subset (approximately less than 5%) of attention heads in LLMs actively contribute to visual understanding, termed visual heads. To identify these heads efficiently, we design a training-free framework that quantifies head-level visual relevance through targeted response analysis. Building on this discovery, we introduce SparseMM, a KV-Cache optimization strategy that allocates asymmetric computation budgets to heads in LLMs based on their visual scores, leveraging the sparity of visual heads for accelerating the inference of MLLMs. Compared with prior KV-Cache acceleration methods that ignore the particularity of visual, SparseMM prioritizes stress and retaining visual semantics during decoding. Extensive evaluations across mainstream multimodal benchmarks demonstrate that SparseMM achieves superior accuracy-efficiency trade-offs. Notably, SparseMM delivers 1.38× real-time acceleration and 52% memory reduction during generation while maintaining performance parity on efficiency test. Our project is open sourced at https://github.com/CR400AFA/SparseMM.

View on arXivView PDF

Code Implementations(1)

CR400AF-A/SparseMMOfficial100%

[ICCV 2025] SparseMM: Head Sparsity Emerges from Visual Concept Responses in MLLMs

904Python, Jupyter NotebookMar 14, 202510 months ago

Similar Papers

Cite this paper

@article{wang2025sparsemm,
  title  = {SparseMM: Head Sparsity Emerges from Visual Concept Responses in MLLMs},
  author = {Jiahui Wang and Zu-Yan Liu and Yongming Rao and Ji-Wen Lu},
  year   = {2025},
  eprint = {2506.05344},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2506.05344},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.05344.svg)](https://codeofpaper.com/paper/2506.05344)

Discussion