Abstract
In this paper, we introduce iLLaVA, a simple method that can be seamlessly deployed upon current Large Vision-Language Models (LVLMs) to greatly increase throughput with nearly lossless model performance, without requiring further training. iLLaVA achieves this by finding and gradually merging redundant tokens with an accurate and fast algorithm that can merge hundreds of tokens in a single step. Our method accelerates both image encoders and LLMs, recycling beneficial information from pruned tokens rather than discarding it. iLLaVA can nearly double throughput and reduce memory costs by half with only a 0.2% - 0.5% performance drop across models of different scales (7B, 13B, and 34B).
The Efficiency Challenge in LVLMs
Large Multimodal Models (LVLMs) like LLaVA or GPT-4o have revolutionized image and video understanding. However, they are computationally expensive. When an image is processed, it is divided into patches that become "tokens." High-resolution images or long videos generate thousands of tokens, and because Transformer attention mechanisms have $O(n^2)$ complexity, doubling tokens quadruples the computation.
Previous attempts to "prune" (delete) or "merge" tokens often suffered from two issues: information loss from dropping crucial details and incomplete optimization that ignored the vision encoder. iLLaVA addresses these by optimizing the entire pipeline and ensuring context is preserved through merging rather than deletion.
Methodology: Dual-Stage Token Merging
iLLaVA stands out through two key design choices:
- Dual-Stage Acceleration: Unlike prior work, iLLaVA applies token reduction to both the Vision Transformer (ViT) encoder and the LLM. As tasks move from single images to videos, the vision encoder's share of total inference time increases significantly, making its optimization essential for real-world throughput gains.
- Information Recycling: Instead of just deleting "unimportant" tokens, iLLaVA merges them into the "important" ones. This ensures that the beneficial context from redundant patches is "recycled" rather than discarded.
- Fast One-Step Algorithm: To avoid the high overhead of complex clustering, iLLaVA uses a deterministic, one-step merging process based on existing attention scores to rank token importance. This makes the overhead of the merging process itself nearly zero.
Experimental Results
The researchers evaluated iLLaVA across a massive battery of benchmarks, including single-image (MMMU, MME), multi-image (MuirBench), and video datasets (Egoschema, ActivityNet-QA).
Key results include:
- Throughput: Achieved nearly a 2× increase in the number of images/videos processed per second.
- Memory: Reduced GPU memory costs by ~50%.
- Accuracy: Across models of different scales (7B, 13B, and 34B), the performance drop was a mere 0.2% to 0.5% on general benchmarks.
- Training-Free: The method requires zero retraining or fine-tuning, making it immediately deployable on existing state-of-the-art models.
Discussion and Insights
The paper’s title highlights a striking finding: an image can maintain nearly full performance using fewer than 1/3 of its original input tokens. Visualizations show that in deep LLM layers, image tokens receive very little attention compared to system prompts and user instructions. This suggests that the LLM is often "overcrowded" with redundant visual data that doesn't contribute to the final answer. iLLaVA effectively filters this noise, allowing a larger model (e.g., 7B) to operate with the footprint of a much smaller model while retaining superior reasoning capabilities.
Limitations and Future Work
The primary limitation identified is in Document Understanding. On benchmarks like DocVQA and InfoVQA, which require reading tiny text or parsing complex charts, iLLaVA saw performance drops of 8% to 12%. This suggests that for tasks where every single pixel might contain unique semantic information, aggressive token merging can be destructive. Future work may involve developing adaptive merging strategies that detect dense text and automatically preserve fine-grained details.
Summary updated