Researchers from Amazon and the University of Texas at Arlington have introduced the Multi-instance Visual Prompt Generator (MIVPG), a novel component designed to help Multimodal Large Language Models (MLLMs) process "bags" of visual data. By treating multiple images or patches as correlated instances rather than independent inputs, MIVPG significantly improves performance on complex tasks such as medical imaging analysis and e-commerce product description.
The Multi-instance Challenge in MLLMs
Most current MLLMs, such as BLIP-2 or LLaVA, operate under a "one-to-one" assumption: a single image is paired with a single text description. However, real-world data often breaks this mold. In e-commerce, a product listing typically includes multiple photos from various angles. In medical imaging, a "Whole Slide Image" (WSI) is so massive that it must be divided into hundreds of smaller patches for processing.
Existing models often use visual adapters like the Q-former to bridge the gap between images and text. The authors argue that these adapters treat visual patches as independent entities, ignoring the vital correlations between them—such as how different views of a chair relate to its overall structure. This "instance heterogeneity" makes it difficult for models to form a cohesive understanding of complex visual samples.
The MIVPG Architecture
The core innovation of this work is the Multi-instance Visual Prompt Generator (MIVPG), which frames visual prompt generation as a Multiple Instance Learning (MIL) problem. In MIL, the model analyzes a "bag" of instances (images or patches) to generate a single unified prediction.
MIVPG introduces two key technical upgrades:
- Correlated Self-Attention (CSA): Standard self-attention is computationally expensive ($O(M^2)$ for $M$ patches). MIVPG utilizes a "low-rank projection" trick, using learnable query tokens from previous layers as a bridge to calculate correlations. This reduces complexity to $O(MR)$, making it scalable for high-resolution data.
- Pyramid Positional Encoding Generator (PPEG): For single-image tasks, PPEG is integrated to capture spatial relationships between patches, helping the model understand the relative positioning of visual elements.
Experimental Setup and Datasets
The researchers evaluated MIVPG across three distinct scenarios:
- MSCOCO: A standard dataset for single-image captioning to test performance on natural images.
- PatchGastricADC22: A medical dataset of gastric cancer WSIs, testing the model's ability to handle bags of patches from massive specimens.
- Amazon Berkeley Objects (ABO): An e-commerce dataset where products are represented by multiple images from different perspectives.
Key Results and Insights
The experiments revealed several critical advantages of the MIVPG approach:
- Superior Performance in Specialized Domains: On the PatchGastricADC22 dataset, MIVPG achieved a CIDEr score of 2.930, outperforming traditional baselines. In e-commerce (ABO), it surpassed simple patch-concatenation methods, proving that the method of fusing images is as vital as the data itself.
- Correlation as a Driver for Detail: MIVPG was significantly better at identifying specific product features (e.g., "four small standing legs") by correlating information across multiple photos.
- Efficiency and Resilience: The query-based CSA allows for better results without massive computational overhead. Furthermore, MIVPG showed the most significant gains when training data was limited, suggesting that its architectural inductive biases can compensate for data scarcity.
Conclusion
MIVPG represents a logical evolution of visual adapters, moving from the independent instance assumption of the Q-former to a more sophisticated, correlation-aware MIL framework. While performance remains tied to the underlying visual encoder and LLM backbones, MIVPG provides a scalable and effective path for enriching visual representations in MLLMs.
Summary updated