Panther: Illuminate the Sight of Multimodal LLMs with Instruction-Guided Visual Prompts

Honglin Li, Yuting Gao, Chenglu Zhu, Jingdong Chen, Ming Yang, Lin YangarXiv 2024 · DOI

Introduction

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in scene understanding and reasoning. However, a persistent challenge remains: these models often exhibit "Amblyopia," or a form of visual neglect where they fail to perceive fine-grained details necessary for answering specific user queries. While an MLLM might correctly identify a room, it may miss a small object on a desk or a specific feature of a person's attire. This limitation stems from the task-agnostic nature of traditional vision encoders, which process images globally without considering the user's intent.

The Problem: Task-Agnostic Visual Encoding

Current state-of-the-art architectures, such as LLaVA, typically employ a "late fusion" strategy. In this paradigm, a vision encoder (e.g., CLIP-ViT) processes the entire image into a fixed set of visual tokens. These tokens are then concatenated with text embeddings and fed into a Large Language Model (LLM). Because the vision encoder is unaware of the user's instruction during the encoding phase, its attention is diffused across the entire image. Consequently, critical details relevant to the prompt may be lost or suppressed before they ever reach the LLM.

Methodology: The Panther Framework

To address this, we introduce Panther, a framework designed to "illuminate" the vision encoder with instruction-guided visual prompts. Panther consists of three primary innovations:

1. Panther-VE: Instruction-Aware Visual Encoder

Panther-VE transforms the static vision encoder into a dynamic, task-aware module. It utilizes a lightweight text encoder to generate Instruction-aware visual Prompts (IP) from the user's query. These prompts are injected into the intermediate layers of the vision encoder, allowing it to adapt its feature extraction process based on the specific requirements of the task. To ensure the model retains general visual knowledge, Shared Prompts (SP) are also utilized.

The Panther architecture integrates instruction guidance directly into the visual encoding process.

2. Panther-Bridge: Efficient Token Pruning

In multi-turn dialogues, the accumulation of visual tokens can lead to excessive computational overhead and context window exhaustion. The Panther-Bridge module mitigates this by performing cross-modal token pruning. By calculating the cosine similarity between visual tokens and instruction embeddings, the Bridge identifies and removes redundant or irrelevant visual information. This process ensures that only the most salient features are passed to the decoder, significantly improving training efficiency.

3. Panther-Decoder

The framework is designed to be architecture-agnostic regarding the LLM. It employs an interleaved training scheme that allows it to work seamlessly with various decoder-only models, such as Vicuna or Llama-3.

Experimental Results

Panther was evaluated across 10 benchmarks, including general VQA (VQA-v2, GQA) and specialized vision-centric tests (MMVP, CV-Bench).

Quantitative Performance

Panther consistently outperformed the LLaVA-1.5 baseline. Notably, on the MMVP benchmark—which specifically targets the failures of CLIP-based models—Panther (using Llama 3-8B) achieved a score of 34.7%, a significant improvement over the baseline. On general benchmarks like VQAv2 and GQA, Panther reached state-of-the-art levels (81.2 and 65.5, respectively), outperforming models with significantly more parameters.

Qualitative Analysis: "Illuminating" the Details

Qualitative assessments confirm that Panther effectively focuses on relevant image regions. While baseline models often show scattered attention, Panther's instruction-guided approach allows it to "zoom in" on the specific objects or features mentioned in the prompt.

Visual demonstration of how Panther's instruction-guided approach focuses on relevant image regions while pruning redundant tokens.

Conclusion

Panther represents a significant step forward in making MLLMs more perceptive and efficient. By guiding the visual encoder with user instructions and implementing an intelligent token-pruning bridge, Panther overcomes the "Amblyopia" of previous models. This approach not only enhances performance on detail-oriented tasks but also reduces the computational burden of long-form multimodal conversations. Future work may explore scaling this architecture to higher resolutions and video-based tasks.

Summary updated

BibTeX
@misc{li2024panther,
  author = {Honglin Li and Yuting Gao and Chenglu Zhu and Jingdong Chen and Ming Yang and Lin Yang},
  title = {{Panther: Illuminate the Sight of Multimodal LLMs with Instruction-Guided Visual Prompts}},
  year = {2024},
  eprint = {2411.13909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.13909},
}
Figure