Introduction
Large Multimodal Models (LMMs), such as LLaVA and InternVL, have demonstrated remarkable capabilities in processing visual information. However, their computational efficiency is often hindered by the "token explosion" phenomenon, particularly in long-context scenarios involving multiple images or video frames. A single image can generate hundreds of visual tokens; when scaled to dozens of images, the sequence length grows significantly. Since Transformer-based architectures incur a quadratic computational cost relative to sequence length, this leads to prohibitive memory consumption and slow inference speeds.
Existing pruning methods often fail to account for the hierarchical redundancy present in multi-image inputs—redundancy exists both within a single image (intra-image) and across different images in a sequence (inter-image). TrimTokenator-LC addresses this gap through an adaptive, two-stage pruning framework designed to discard up to 80% of visual tokens without sacrificing performance.
Methodology: Two-Stage Adaptive Pruning
TrimTokenator-LC introduces a hierarchical approach to token reduction, balancing local detail with global context.
1. Intra-image Stage (Local)
The framework first calculates an "intra-image diversity" score ($D_{intra}$) for each individual image. This score reflects the internal complexity of the scene. Images with low complexity (e.g., a clear sky) are assigned a smaller token budget, while complex scenes receive more. A local greedy selection strategy then identifies the most representative tokens within each image.
2. Inter-image Stage (Global)
To handle multi-image sequences, the model measures "inter-image variation" ($D_{inter}$), quantifying the difference between consecutive images. This identifies cross-image redundancy, such as static backgrounds in a video stream.
3. Pareto Selection and Adaptive Budgeting
The final token set is determined via Pareto selection, a multi-objective optimization that balances token diversity across the entire set with alignment to the user's text prompt. Crucially, the budget allocation is adaptive: the ratio of $D_{intra}$ to $D_{inter}$ dynamically dictates the pruning intensity at each stage, ensuring that critical information is preserved regardless of input variability.
Experimental Results
The researchers evaluated TrimTokenator-LC across diverse benchmarks, including ALFRED (action reasoning), MMQA (knowledge QA), and CFInfer (text-rich editing).
As shown in the results, TrimTokenator-LC consistently outperforms existing baselines like FastV, DivPrune, and VisionZip. Key findings include:
- High Retention Efficiency: The model maintains or even improves upon the original performance while discarding up to 80% of visual tokens.
- The "Noise" Benefit: Pruning irrelevant tokens can act as a denoiser, allowing the LLM to focus on high-density critical information, which occasionally leads to higher accuracy than the unpruned model.
- Computational Speedups: Optimized linear reformulations of diversity metrics allowed for up to a 23.65x speedup in the pruning process itself. On a LLaVA-1.5-7B model, this translated to a reduction in GPU memory from 19.4GB to 15.2GB and significantly lower latency.
Discussion and Conclusion
TrimTokenator-LC demonstrates that adaptive, hierarchical pruning is essential for scaling LMMs to long-context multimodal tasks. By prioritizing the "last image" (which often contains the query's context) and ensuring pruning occurs at the image level before global aggregation, the framework avoids the accidental loss of salient information.
Future work includes scaling this approach to extremely large models (70B+) and exploring the integration of adaptive pruning directly into the training phase to further optimize the vision-language interface.
Summary updated