Abstract
Multimodal large language models (MLLMs) demonstrate strong performance across visual tasks, but their efficiency is hindered by significant computational and memory demands from processing long contexts in multimodal inputs. To address this, we introduce PAR (Prompt-Aware Token Reduction), a novel and plug-and-play approach that reduces visual tokens efficiently without compromising model performance. Unlike previous methods that rely heavily on attention mechanisms and overlooking cross-modal interactions, we use a prompt-aware strategy to adaptively identify and cluster essential visual tokens. PAR categorizes visual context redundancy into two types: external and internal. External redundancy is minimized through semantic retrieval, while internal redundancy is addressed using a token routing mechanism. This method substantially reduces computational load without requiring additional training or complex architectural modifications. Experimental results demonstrate that across various visual question answering tasks, PAR reduces FLOPs by 83% with a compression ratio of 89%, while retaining 97% of baseline accuracy. The adaptive design of PAR achieves a 2x token reduction ratio compared to prior approaches, enabling a better balance between performance and efficiency.
Introduction
Multimodal models like LLaVA or GPT-4o are powerful but computationally intensive. When an image is processed, a visual encoder typically generates a massive sequence of tokens (often 576 or more), which are then concatenated with text prompts. Because Transformer computational costs grow quadratically with sequence length, these long sequences lead to high memory usage and slow inference.
Existing solutions often rely on attention-based pruning, which identifies salient image regions based on internal model focus. However, these methods frequently ignore the cross-modal context. For example, if a user asks about a "red car" in a busy street, an attention-based pruner might keep tokens for the entire scene. The authors argue that visual redundancy comes in two forms: External Redundancy (information irrelevant to the specific prompt) and Internal Redundancy (repetitive information within the image itself).
Methodology: The PAR Pipeline
PAR is a multi-stage, training-free pipeline designed to filter out both types of redundancy by using the user's prompt as a guide for visual token selection.
- Query Rewrite: The system uses predefined templates to refine the raw user prompt, ensuring it acts as a high-quality search query for visual tokens.
- Semantic Clustering: Visual tokens are grouped using a graph-based clustering algorithm. This ensures that coarse-grained features (like a whole object) are treated as a unit rather than scattered individual pixels.
- Prompt-Guided Semantic Retrieval: PAR uses the rewritten prompt to "search" through the visual clusters, keeping only those semantically closest to the question. This effectively eliminates external redundancy.
- Token Router: Finally, a router filters the remaining tokens to remove those that are too similar to each other, addressing internal redundancy.
Experimental Results
The researchers evaluated PAR across standard benchmarks including GQA, POPE (for hallucinations), TextVQA, and comprehensive suites like MME and MMVet.
Key Performance Metrics
- Efficiency: Achieved an 83% reduction in FLOPs and an 89% compression ratio for visual tokens.
- Speed: Prefill time (initial input processing) was reduced to 31.3% of the baseline.
- Accuracy: Despite the massive reduction in data, the model retained 97% of its baseline accuracy.
- Hallucination Mitigation: Surprisingly, PAR improved performance on the POPE benchmark. By removing irrelevant visual "noise," the model is less likely to imagine objects not relevant to the query.
Conclusion and Future Work
PAR demonstrates that a "less is more" approach can significantly enhance MLLM efficiency. By mimicking human selective focus—filtering for relevant information based on a specific goal—PAR achieves a 2x better token reduction ratio than previous state-of-the-art methods like FastV while maintaining higher accuracy.
Future research will focus on refining threshold sensitivity and exploring more complex routing logic for multi-step reasoning tasks where the relevant visual context may shift during the model's "thought" process.
Summary updated