Introduction
Large Multimodal Models (LMMs) such as GPT-4V and LLaVA have demonstrated remarkable capabilities in reasoning across text and vision. However, a persistent challenge remains: the "grounding" problem. These models often struggle to precisely associate textual instructions with specific local regions within an image. In complex, cluttered environments, LMMs are frequently distracted by task-irrelevant visual noise, leading to hallucinations—where the model perceives objects or relationships that do not exist.
To address this, we present Instruction-guided Visual Masking (IVM), a versatile, plug-and-play module designed to "clean" visual inputs. By surgically masking out regions irrelevant to a specific instruction, IVM allows downstream models to focus exclusively on the pixels that matter, significantly reducing hallucinations and improving performance in complex Visual Question Answering (VQA) and embodied AI tasks.
The IVM Framework
The core of IVM is a specialized architecture designed to bridge the gap between high-level instructions and low-level pixel importance.
Architecture
The IVM module utilizes a frozen Segment Anything Model (SAM) as its vision backbone, paired with a LoRA-tuned LLaVA-7B to extract rich multimodal features. These features are processed by a lightweight generator that produces a heatmap representing task-relevant regions. This heatmap serves as a guide for the final visual input, which can be cropped or masked before being passed to a reasoning engine like GPT-4V.
Discriminator-Weighted Supervised Learning (DWSL)
Training a model to identify relevant regions across diverse tasks requires massive amounts of data. While 1 million samples were collected (IVM-Mix-1M), high-quality human labels for such a scale are prohibitively expensive. To mitigate this, the authors developed Discriminator-Weighted Supervised Learning (DWSL).
In this framework, the model is trained on a mixture of 1 million noisy, machine-generated labels and a small "gold standard" set of 10,000 human-annotated samples. A discriminator is trained to evaluate label quality; during the primary training phase, the discriminator’s score acts as a weight for the loss function. This ensures the model prioritizes high-quality, human-like annotations while discounting errors present in the larger, noisier dataset.
Data and Scaling
The IVM-Mix-1M dataset aggregates data from RefCoCO (grounding), LLaVA-Instruction (VQA), and OpenX (robotics). To generate the initial masks, the researchers employed an LLM-empowered "Mixture of Experts" pipeline, using GPT-4 to simplify instructions and a suite of state-of-the-art grounding models (e.g., Grounding-DINO, LISA) to produce candidate masks.
A key insight from this data analysis is the prevalence of visual redundancy: in most VQA tasks, less than 40% of the image area is relevant to the instruction. The remaining 60% acts as a distraction that taxes the model's reasoning capacity.
Experimental Results
The "less is more" philosophy of IVM yields substantial performance gains across various benchmarks.
Visual Search and VQA
On the V*bench (Visual Search) benchmark, an IVM-enhanced GPT-4V achieved an overall accuracy of 81.2%, representing a 26.2% improvement over the vanilla GPT-4V (55.0%). This performance even surpassed specialized visual search models like SEAL.
Furthermore, IVM demonstrates impressive scaling properties for open-source models. An IVM-enhanced LLaVA-7B outperformed the larger LLaVA-13B on benchmarks like EgoThink and POPE, suggesting that precise grounding is often more effective than simply increasing parameter count.
Embodied AI
In real-world robotic manipulation tasks, IVM-assisted agents showed increased robustness. When tasked with actions like "Put red cup in silver pan," standard models often failed due to human interference or background clutter. IVM-equipped agents remained focused on the relevant objects, successfully completing tasks despite adversarial distractions.
Limitations and Future Directions
While IVM provides a significant boost to model reliability, it introduces computational overhead by adding a pre-processing step to the inference pipeline. Additionally, because downstream models are typically trained on natural, unmasked images, feeding them heavily modified inputs can occasionally cause a distribution shift that confuses the reasoning engine.
Future research may explore "soft-masking" techniques, where the IVM heatmap is integrated directly into the LMM's internal attention mechanism rather than being applied as a hard visual filter. This could mitigate distribution shifts while maintaining the benefits of focused visual attention.
Summary updated