paper-with-me

Papers

SparseMM: Head Sparsity Emerges from Visual Concept Responses in MLLMs

2025-06-05 · Jiahui Wang, Zuyan Liu, Yongming Rao, Jiwen Lu

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. 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.38x 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/CR400AF-A/SparseMM.

📄 PDF Abstract BibTeX arXiv:2506.05344

Code (1)

cr400af-a/sparsemm 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Sparse Attention with Linear Units

2021-04-14 · EMNLP 2021 11 · Biao Zhang, Ivan Titov, Rico Sennrich

Recently, it has been argued that encoder-decoder models can be made more interpretable by replacing the softmax function in the attention with its sparse variants. In this work, we introduce a novel, simple method for a…

DecoderDiversityMachine TranslationTranslation+1

Mechanistic Insights into Functional Sparsity in Multimodal LLMs via CoRe Heads

2026-06-04 · Ruoxi Sun, Quantong Qiu, Juntao Li, Zecheng Tang 외 arxiv

While Multimodal Large Language Models (MLLMs) demonstrate remarkable proficiency on complex vision-language tasks, the mechanisms by which they extract query-relevant visual features from complex, noisy contexts remain …

Cross-Modal RetrievalMultimodal Reasoning

Learning where to learn: Gradient sparsity in meta and continual learning

2021-10-27 · NeurIPS 2021 12 · Johannes von Oswald, Dominic Zhao, Seijin Kobayashi, Simon Schug 외

Finding neural network weights that generalize well from small datasets is difficult. A promising approach is to learn a weight initialization such that a small number of weight changes results in low generalization erro…

Continual LearningInductive BiasMeta-LearningSparse Learning

Structuring Sparsity: Block-Sparse Featurizers Capture Visual Concept Manifolds

2026-06-23 · Thomas Fel, Matthew Kowal, Mozes Jacobs, Dron Hazra 외 arxiv

What is the geometry of a visual percept? The most widely used protocols for decomposing neural network representations into interpretable parts treat concepts as isolated directions, yet recent work shows that concepts …

Image Generation

Cross-Attention Head Position Patterns Can Align with Human Visual Concepts in Text-to-Image Generative Models

2024-12-03 · Jungwon Park, Jungmin Ko, Dongnam Byun, Jangwon Suh 외

Recent text-to-image diffusion models leverage cross-attention layers, which have been effectively utilized to enhance a range of visual generative tasks. However, our understanding of cross-attention layers remains some…

Image GenerationPosition