Skip to main content
QUICK REVIEW

[Paper Review] LLaVA-PruMerge: Adaptive Token Reduction for Efficient Large Multimodal Models

Yuzhang Shang, Mu Cai|arXiv (Cornell University)|Mar 22, 2024
Topic ModelingComputer Science5 citations
TL;DR

This paper introduces PruMerge, an adaptive visual token reduction method for large multimodal models that trims visual tokens while preserving performance, enabling similar results with about 6.9% tokens on average.

ABSTRACT

Large Multimodal Models (LMMs) have shown significant visual reasoning capabilities by connecting a visual encoder and a large language model. LMMs typically take in a fixed and large amount of visual tokens, such as the penultimate layer features in the CLIP visual encoder, as the prefix content. Recent LMMs incorporate more complex visual inputs, such as high-resolution images and videos, which further increases the number of visual tokens significantly. However, due to the inherent design of the Transformer architecture, the computational costs of these models tend to increase quadratically with the number of input tokens. To tackle this problem, we explore a token reduction mechanism that identifies significant spatial redundancy among visual tokens. In response, we propose PruMerge, a novel adaptive visual token reduction strategy that significantly reduces the number of visual tokens without compromising the performance of LMMs. Specifically, to metric the importance of each token, we exploit the sparsity observed in the visual encoder, characterized by the sparse distribution of attention scores between the class token and visual tokens. This sparsity enables us to dynamically select the most crucial visual tokens to retain. Subsequently, we cluster the selected (unpruned) tokens based on their key similarity and merge them with the unpruned tokens, effectively supplementing and enhancing their informational content. Empirically, when applied to LLaVA-1.5, our approach can compress the visual tokens by 14 times on average, and achieve comparable performance across diverse visual question-answering and reasoning tasks. Code and checkpoints are at https://llava-prumerge.github.io/.

Motivation & Objective

  • Address high computational cost in large multimodal models (LMMs) due to long visual token sequences.
  • Develop an adaptive token reduction mechanism that selects informative tokens based on image content.
  • Preserve model performance on visual question answering and reasoning tasks while drastically reducing token count.
  • Introduce a token merging strategy to supplement information from pruned tokens.
  • Demonstrate plug-and-play applicability to LLaVA-1.5 without extensive retraining.

Proposed method

  • Use the class-token to spatial-token attention distribution to identify important visual tokens via an outlier-based selection (IQR).
  • Prune tokens adaptively to a target m << n based on their attention to the [CLS] token.
  • Cluster selected tokens with k-nearest neighbors and update cluster centers by weighted averaging (Token Supplement).
  • Merge pruned tokens into similar clusters using dot-product similarity of K to enrich the retained tokens.
  • Optionally finetune the LLM (LoRA) to better adapt to the reduced-token regime.
  • Provide a PruMerge+ variant that adds spatially uniform sampling of additional tokens to stabilize performance.

Experimental results

Research questions

  • RQ1Can reducing visual tokens in LMMs preserve performance on diverse VQA and reasoning benchmarks?
  • RQ2How much token reduction is achievable without meaningful degradation in multimodal understanding?
  • RQ3Does adaptive token selection outperform fixed or uniform sampling strategies across tasks?
  • RQ4Does token merging of pruned tokens mitigate potential loss of information from aggressive pruning?

Key findings

  • Applied to LLaVA-1.5, PruMerge reduces visual tokens to about 5.5% (≈32 tokens on average) while maintaining comparable performance.
  • Across six benchmarks, LLaVA-PruMerge achieves competitive results versus original LLaVA-1.5 and outperforms some baselines (e.g., BLIP-2, InstructBLIP).
  • PruMerge+ further reduces tokens (≈4x) with little to no performance loss thanks to expanded token selection and spatial sampling.
  • Efficiency analysis shows substantial FLOP/memory savings; e.g., with ViT-7B/INT4, prefill and total costs drop significantly when using PruMerge.
  • Training can further improve results via fine-tuning, boosting performance on tasks like ScienceQA, TextVQA, POPE, and MME.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.