NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing Multimodal Large Language Models Complex Reason via Similarity Computation

Xiaofeng Zhang, Fanshuo Zeng, Yihao Quan, Zheng Hui, Jiawei Yao

Introduction

Large Vision Language Models (LVLMs), such as LLaVA, typically process visual information by decomposing images into a grid of patches. These patches are then encoded into hundreds of visual tokens (e.g., 576 tokens for a standard CLIP encoder). While this high-resolution representation captures significant detail, it introduces a "needle in a haystack" challenge for complex reasoning tasks. In many scenarios, a specific user query pertains only to a small fraction of the visual data. The remaining "distractor" tokens increase computational overhead and can lead to model hallucinations or reasoning errors. Previous token pruning methods often ignored the most critical context: the user’s actual question.

Methodology: The Simignore Approach

To address the challenge of irrelevant visual noise, researchers have introduced Simignore. This method treats token reduction as a semantic alignment problem, ensuring the model focuses on visual elements directly relevant to the user's prompt.

Figure 1: The Simignore architecture aligns image and text embeddings using cosine similarity to filter irrelevant tokens before they reach the multimodal encoder.

The Simignore workflow consists of several key steps:

  1. Information Flow Analysis: Visualizations revealed that successful reasoning correlates with information flow converging on semantically relevant image patches.
  2. Embedding Alignment: Image tokens from the Vision Transformer and text tokens from the LLM encoder are mapped into a shared similarity metric space.
  3. Similarity Computation: The system calculates the cosine similarity between every image token and every text token in the prompt.
  4. Top-K Filtering and Masking: The algorithm identifies the $K$ most similar image tokens. Rather than deleting the remaining tokens, Simignore applies an attention mask of zero to the "unimportant" tokens, effectively silencing them during the decoding process without altering the underlying model architecture.

This approach is "plug-and-play," requiring no additional training or fine-tuning of the base models.

Experimental Evaluation

The primary benchmark for evaluating Simignore was ScienceQA, a dataset containing over 21,000 multiple-choice questions. These questions require sophisticated synthesis of technical images and textual context across various scientific domains.

Key Results

The application of Simignore to models like LLaVA-1.5 and Mipha-3B yielded significant improvements in both performance and efficiency:

  • Accuracy Improvements: On the ScienceQA (Image) benchmark, LLaVA-1.5-7B saw an accuracy increase from 65.15% to 68.02%. The 13B variant reached 73.23%.
  • Computational Efficiency: By ignoring irrelevant tokens, inference time was reduced. For instance, filtering 124 tokens reduced processing time from 303 to 279 seconds while simultaneously improving accuracy.
  • Metric Selection: Cosine similarity was found to be superior to Euclidean or Manhattan distances for capturing semantic orientation in high-dimensional space.
Figure 6: Qualitative results on ScienceQA demonstrate how Simignore directs the model's attention to task-relevant visual regions, such as the specific organisms mentioned in the prompt.

Discussion and Insights

A critical finding was the "Spy" Token Hypothesis: K-means clustering identified specific token clusters that negatively impacted accuracy. Removing these clusters improved overall comprehension. Furthermore, Simignore demonstrates that text-guided vision—pruning based on relevance to a query rather than visual saliency—is essential for complex reasoning. A visually obscure object may be the most important element if the user asks about it specifically.

Limitations and Future Directions

Despite its success, Simignore currently relies on a fixed hyperparameter $K$ for token reduction. Future research should explore adaptive token reduction, allowing the model to dynamically determine the optimal number of tokens based on query complexity. Additionally, while the similarity-based filtering is effective, the internal mechanics of how the LLM utilizes these filtered tokens to construct reasoning chains remain an area for further investigation.

Summary updated

BibTeX
@inproceedings{zhang2025enhancing,
  author = {Xiaofeng Zhang and Fanshuo Zeng and Yihao Quan and Zheng Hui and Jiawei Yao},
  title = {{Enhancing Multimodal Large Language Models Complex Reason via Similarity Computation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i10.33107},
}
Figure