LMEye: An Interactive Perception Network for Large Language Models

Yunxin Li, Baotian Hu, Xinyu Chen, Lin Ma, Yong Xu, Min Zhang

TL;DR

This paper introduces LMEye, a novel "interactive perception network" that allows Large Language Models (LLMs) to dynamically request and integrate visual information based on specific human queries. This approach significantly improves multimodal understanding and generation tasks by moving beyond static visual feature integration, achieving state-of-the-art zero-shot performance with fewer parameters.

What Problem Does This Paper Address?

Building powerful Multimodal Large Language Models (MLLMs) from scratch is computationally expensive. Existing methods often adapt text-only LLMs by feeding them visual information through a fixed "visual mapping network" (like linear layers or Q-formers). This approach treats visual information statically – it's processed once and then presented to the LLM without considering the specific nuances of the human's query. The authors argue that this "static visual information" is often insufficient for LLMs to generate truly intention-following responses. The core problem is how to enable LLMs to interact with visual information in a dynamic, human-like way, allowing them to "look" for specific details relevant to a given question.

Methods

LMEye tackles this by introducing a "play-and-plug" interactive perception network that works in two stages:

  1. Feature Alignment: This initial stage uses a frozen visual encoder (from BLIP-2) and a learnable visual mapping network (specifically, the Q-Former from BLIP-2) to project basic image features into the LLM's embedding space. This provides the LLM with a foundational understanding of the image. Special tokens are used to signal the presence and location of image information within the LLM's input sequence.
  2. Request-based Visual Information Interaction (RVII): This is the core innovation. After the LLM processes the initial visual and textual input, it can generate a "request signal." This signal is fed into the RVII module, which then performs a targeted interaction with the fine-grained image features. The RVII module uses a multi-layer transformer with self-attention and cross-attention mechanisms to extract visual information specifically relevant to the LLM's request. The resulting "interacted visual information" is then fed back into the LLM, alongside the original image and text, to generate the final response. This dynamic, request-driven approach is termed "dynamic visual information acquisition."

Crucially, the LLM's core architecture and parameters remain frozen, preserving its original NLP capabilities and ensuring parameter efficiency.

Datasets

The paper uses several datasets for training and evaluation:

  • Training Data:
    • Image-text pairs from CC3M, COCO Caption, and Flick3k for semantic matching tasks.
  • Multimodal instruction-following data from existing work [25] for conversation and complex reasoning.
  • Artwork description data from SemArt [11] and [25] to improve multimodal long text generation.
  • Partial training sets from approximately 20 multimodal tasks.
  • Evaluation Benchmarks:
    • MMBench [26]: A comprehensive multimodal benchmark for evaluating various vision-language abilities.
  • SEED-Bench [19]: Another systematic benchmark for vision-language models.
  • VCR [50] and VQAv2 [13]: Standard datasets for visual question answering and reasoning.
  • OK-VQA [29]: A dataset for visual question answering requiring external knowledge.
  • Custom-generated dataset: Five question-answer pairs generated using GPT-3.5-turbo for in-detail image descriptions, focusing on longer answers.

Key Insights and Ideas

  • Dynamic vs. Static Visual Information: The paper clearly articulates the limitation of "static visual information" in current MLLMs and proposes "dynamic visual information acquisition" as a more effective paradigm. This highlights a fundamental shift in how LLMs should interact with visual data.
  • LLM as the "Brain": LMEye treats the LLM as the central processor, capable of understanding queries and directing the "eyes" (RVII module) to gather specific visual evidence. This preserves the LLM's inherent strengths.
  • "Play-and-Plug" Modularity: The interactive perception network is designed to be modular, allowing it to be integrated with various pre-trained LLMs and frozen visual encoders, promoting flexibility and reusability.
  • Parameter Efficiency: By keeping the LLM frozen and only training the interactive modules, LMEye achieves impressive performance gains with significantly fewer trainable parameters compared to models trained from scratch or those with extensive fine-tuning.

Key Results

LMEye demonstrates significant improvements across various multimodal tasks:

  • MMBench: LMEye (4.4B parameters) outperforms larger models (e.g., >7B parameters) on reasoning-focused metrics like Logical Reasoning (LR), Attribute Reasoning (AR), and Relation Reasoning (RR). It achieves an overall score of 62.3, outperforming many established models.
  • SEED-Bench: LMEye achieves state-of-the-art (SOTA) performance, showing substantial improvements in scene understanding (13 points higher than previous SOTA) and excelling in attribute recognition and spatial connection understanding.
  • Zero-Shot Performance: LMEye significantly boosts zero-shot performance. For example, it shows a 5.0% exact gain on OK-VQA compared to BLIP-2, and a 20% gain on VQA with long answers for LMEye (LLaMA-7b) vs. LLaVA (Vicuna-7b).
  • Qualitative Examples: The paper includes illustrative examples showing LMEye generating more accurate and contextually relevant responses in visual question answering, multi-turn dialogue, and in-detail image description tasks, often correcting errors made by other models.

Limitations and Future Work

  • Hallucination: The paper acknowledges that MLLMs, including LMEye, can still produce nonsensical or factually incorrect outputs, particularly in detailed image descriptions.
  • Alignment and Safety: The authors note that models are not perfectly aligned or safe, and may inadvertently generate offensive or biased content due to biases in training data or inherent LLM limitations.
  • Data Quality and Diversity: The quality and diversity of multimodal instruction-following data remain crucial. Future work could benefit from incorporating high-quality multimodal data (video, audio) and improving the quality of automatically generated instruction data.
  • Future Directions: The authors suggest exploring alignment techniques like Reinforcement Learning from Human Feedback (RLHF), retrieval augmentation, and multimodal chain-of-the-thought (COT) to address hallucination and improve factuality. They also emphasize the potential for further improvements by leveraging more powerful LLMs and richer multimodal instruction data.

Summary updated

BibTeX
@article{li2024lmeye,
  author = {Yunxin Li and Baotian Hu and Xinyu Chen and Lin Ma and Yong Xu and Min Zhang},
  title = {{LMEye: An Interactive Perception Network for Large Language Models}},
  journal = {IEEE Trans. Multimedia},
  year = {2024},
  doi = {10.1109/tmm.2024.3428317},
}
Figure