TL;DR
iLLaVA accelerates Large Vision-Language Models (LVLMs) by jointly reducing visual tokens in both the image encoder and the Large Language Model (LLM). By introducing a novel token merging strategy that "recycles" information from discarded tokens, iLLaVA achieves up to a 2× throughput boost and a 4× reduction in prefilling time while maintaining over 95% of the original model's performance.
What Problem Does This Paper Address?
Large Vision-Language Models (LVLMs) like GPT-4o or InternVL are powerful but computationally expensive. A major bottleneck is the sheer number of visual tokens generated from images and videos. Because the self-attention mechanism in these models has $O(n^2)$ complexity, doubling the tokens quadruples the computation.
Most existing efficiency research focuses on pruning or compressing tokens just before or during the LLM stage. However, the authors of iLLaVA point out two overlooked issues:
- The Image Encoder Bottleneck: The image encoder itself consumes a significant portion of inference time (up to 45% in video tasks), as shown in Figure 1(b).
- Compounding Redundancy: The image encoder is the source of the tokens. Reducing redundancy early in the pipeline not only speeds up the encoder but also drastically lightens the load for every subsequent layer in the LLM.
Methods
The core of the paper is iLLaVA, a two-stage token reduction framework that applies a novel Token Merging strategy.
Two-Stage Reduction
Unlike prior work, iLLaVA performs token reduction in both the image encoder (typically a Vision Transformer or ViT) and the LLM.
- In the Encoder: Token merging modules are inserted after the attention modules of specific encoder blocks.
- In the LLM: Merging occurs after specific transformer blocks to gradually decrease the sequence length as the data flows deeper into the model.
Token Merging vs. Pruning
Standard "pruning" simply deletes tokens deemed unimportant. iLLaVA instead uses "merging" to recycle information. The process works in two steps:
- Selection: It uses attention scores to identify "informative tokens" (the most important ones) and "recycled tokens" (secondary tokens that will act as cluster centers).
- Recycling: The remaining "discarded" tokens are not just thrown away. Instead, they are grouped with the most similar recycled tokens and merged via a weighted sum based on their attention scores. This ensures that even "less important" background details contribute to the final representation.
Datasets
The authors evaluated iLLaVA across more than 10 benchmarks to ensure broad applicability:
- Image Understanding: MMMU, MMBench, MMStar, MMVet, MuirBench, and RealWorldQA.
- Video Understanding: VideoMME, MVBench, EgoSchema, and MLVU.
- Backbone Models: The method was tested on state-of-the-art open-source models including Qwen2.5-VL (3B/7B), InternVL-2.5 (8B/26B), MiniCPM-V2.6, and LLaVA-Onevision.
Key Insights and Ideas
- Visual Redundancy is Layer-Dependent: As seen in Figure 1(a), attention maps show that the encoder focuses on specific areas (like a bird in a field) more intensely in deeper layers. This suggests that token reduction should be distributed unevenly across the network.
- Early Reduction is More Efficient: Reducing tokens in the image encoder provides a +25.3% throughput boost compared to reducing the same number of tokens only within the LLM.
- Larger Models Can Be Faster: A particularly striking result is that iLLaVA allows a larger model (InternVL-2.5 26B) to achieve higher throughput than a smaller vanilla model (InternVL-2.5 8B) while still delivering superior accuracy.
Key Results
- Speed & Efficiency: iLLaVA achieved a 2.12× throughput improvement and a 4.46× reduction in prefilling time (the time to generate the first token). It also reduced memory usage by 1.59×.
- Performance Retention: Even when reducing visual tokens by nearly 90%, iLLaVA maintained 95.2% of the vanilla model's performance on the MMMU benchmark, significantly outperforming other state-of-the-art pruning methods like FastV or VisionZip.
- Video Superiority: On video tasks, where token counts are massive, iLLaVA outperformed the previous best method (VisionZip) by 1.7% at a 95% token reduction ratio.
Limitations and Future Work
The authors identify two primary limitations:
- Fine-Grained Document Understanding: In tasks like DocVQA or ChartQA, which require reading small text or parsing dense charts, aggressive token merging can lead to noticeable performance drops because critical fine-grained details might be merged away.
- Small Object Detection: Similarly, very small objects that occupy only a few pixels may be lost during the reduction process, leading to inferior performance compared to vanilla models in highly detailed scenes.
Future work may involve developing more adaptive merging strategies that can detect when high-density information (like text) is present and preserve those tokens more carefully.
Summary updated