TL;DR
The paper introduces SWIM (See What I Mean), a training strategy that enables Multimodal Large Language Models (MLLMs) to perform fine-grained video object understanding using only natural language prompts at inference time. By regularizing the model's internal cross-attention maps during training, SWIM eliminates the need for cumbersome visual prompts like bounding boxes or masks when interacting with the model.
What Problem Does This Paper Address?
While modern MLLMs excel at holistic scene understanding, they frequently stumble when asked to focus on specific, fine-grained objects within a video based solely on a textual description. To circumvent this, existing specialist models rely on explicit visual prompts—such as bounding boxes, points, or masks—to guide the model's focus. However, requiring users to provide visual coordinates or masks is clunky and deviates from how we naturally interact with language models.
The authors uncovered a fascinating underlying cause for this limitation by analyzing the cross-attention maps of pretrained MLLMs. They observed a systematic discrepancy: attribute words (like "brown" or "striped") naturally produce sharp, localized activations on the correct visual regions because they map directly to low-level textures and colors. Conversely, object nouns (like "man" or "shirt") produce diffuse, scattered attention patterns due to semantic reference bias and high-level abstract representations.
SWIM bridges this vision-language alignment gap, allowing models to naturally "know" which object a text prompt refers to without needing any extra visual hints at inference time.
Methods
SWIM achieves fine-grained object grounding through a two-step approach: dataset refinement and attention regularization.
- NL-Refer Dataset Construction: The authors took the existing VideoRefer dataset—which uses abstract placeholder tokens like
<region>to link text to video masks—and used GPT-4o to rewrite the prompts into natural language expressions. Crucially, the core object noun (e.g., "man") is wrapped in a special<ins>markup tag to track its token position during training. - Attention Regularization: During supervised fine-tuning, SWIM extracts the cross-attention matrices from multiple intermediate layers of the LLM decoder for the specific tagged noun token. These multi-layer attention maps are averaged to capture a stable cross-modal representation.
- Loss Function: The aggregated attention map is supervised directly against the ground-truth object mask using a pixel-wise Binary Cross-Entropy (BCE) loss.
At inference time, the markup tags and attention regularization are completely discarded. The model naturally focuses its attention on the correct region based purely on the text prompt.
Datasets
The model was trained and evaluated using a mix of fine-grained and general video datasets:
- NL-Refer (New): 125K video clips featuring refined natural language descriptions paired with pixel-level instance masks.
- LLaVA-Video-178K & VideoRefer-QA-75K: Subsampled portions used to preserve the model's general multi-choice and conversational capabilities.
- Evaluation Benchmarks: Fine-grained evaluation was conducted on VideoRefer-Bench-Q (reasoning/QA) and VideoRefer-Bench-D (description generation). Generalization was tested on MVBench, Video-MME, and ActivityNet-QA.
Key Insights and Ideas
- The Noun-Attribute Discrepancy: Nouns appear in highly diverse contexts in large pretraining corpora, which dilutes their spatial association in cross-attention layers. Attributes are spatially constrained by nature, leading to sharper baseline attention.
- BCE Over Overlap Losses: The authors found that standard segmentation losses like mIoU or Dice loss underperformed when regularizing attention maps. Because attention maps are inherently sparse due to the softmax operation, treating each pixel independently with BCE applies a uniform probabilistic penalty that suppresses irrelevant background activations much more effectively.
- Uniform Layer Selection: Regularizing attention across evenly spaced layers throughout the network yields more stable cross-modal alignment than clustering supervision within a narrow depth range.
Key Results
SWIM achieves state-of-the-art performance on fine-grained benchmarks without requiring any architectural modifications or extra visual inputs:
- VideoRefer-Bench-Q: SWIM achieved an average accuracy of 78.3%, significantly outperforming its base model Qwen2.5-VL-7B (71.8%) and even surpassing proprietary GPT-4o (71.3%).
- VideoRefer-Bench-D: SWIM scored an average of 3.78 (out of 5), outperforming the best visual-prompt-based specialist model, DAM-8B (3.68).
- Generalization: On broader video benchmarks like MVBench and Video-MME, SWIM maintained competitive performance, proving that fine-grained attention regularization does not degrade holistic video understanding.
- Scalability: The strategy scales monotonically with data volume. As shown in the performance trend, there is no apparent plateau at 125K samples, suggesting further data scaling will yield even stronger alignment.
Limitations and Future Work
The primary limitation acknowledged by the authors is that their experiments are bounded by the current scale of the NL-Refer dataset (125K videos). Because the scalability curve shows a steady upward trajectory without plateauing, the model's full potential remains untapped. The authors suggest that expanding this training paradigm to broader, more diverse, and larger-scale mask-annotated video corpora is a promising direction for future research.
Summary updated