Abstract
Recent advancements in Video Large Multimodal Models (LMMs) have significantly improved holistic video understanding. However, these models often struggle with fine-grained spatio-temporal reasoning, such as tracking specific objects or understanding nuanced interactions within a scene. We present SAMA, a unified framework designed to bridge the gap between high-level video comprehension and precise, pixel-level grounding. SAMA introduces a novel architecture featuring a query-aware spatial-temporal aggregator, a large-scale automated data generation pipeline resulting in the SAMA-239K dataset, and a comprehensive evaluation suite, SAMA-Bench. Our results demonstrate that SAMA achieves state-of-the-art performance across multiple video grounding and referential dialogue benchmarks while maintaining competitive general conversational capabilities.
Introduction
While Large Multimodal Models have achieved remarkable success in static image analysis and general video scene description, they frequently falter when tasked with fine-grained spatio-temporal details. For instance, a standard Video LMM might struggle to "describe what the person in the red shirt is doing and track them" with high precision across multiple frames. This limitation stems from the historical isolation of two critical tasks: video referring understanding (interpreting the semantics of a specific region) and video grounding (generating precise masks for an object based on text).
To achieve human-like video interaction, models must unify these skills within a multi-turn dialogue framework. The primary bottleneck to this unification has been a lack of high-quality training data and benchmarks that combine conversational context with precise spatio-temporal object grounding. SAMA addresses these challenges through a three-pronged approach involving automated data synthesis, a specialized model architecture, and rigorous benchmarking.
Methodology
1. Automated Data Generation Pipeline
To overcome the high cost of human annotation, SAMA utilizes an automated pipeline to generate complex, multi-turn grounded video-QA pairs. The process begins with existing video datasets, where high-quality segmentation masks are generated using HQ-SAM. To provide visual cues for the language model, the authors employ a technique inspired by "Set-of-Mark" prompting, drawing distinctly colored bounding boxes around objects of interest. These visually cued frames are then processed by Gemini-1.5 Pro to generate rich, multi-turn dialogues where the answers are explicitly linked to the spatial masks, resulting in the SAMA-239K dataset.
2. The SAMA Model Architecture
Building upon the Sa2VA architecture, SAMA introduces a Versatile Spatial-Temporal-Context Aggregator designed to manage the high computational load of video processing while preserving fine-grained details. The aggregator operates in three distinct stages:
- Spatial Aggregator: Compresses visual information from individual frames using a Q-Former to reduce the token count.
- Temporal Aggregator: Employs a sliding window approach to capture motion. Uniquely, this stage is query-aware, injecting the user's text query into the temporal processing to force the model to focus on dynamics relevant to the specific question.
- Context Aggregator: Re-aligns the temporal data with fine-grained visual features to ensure spatial accuracy.
For grounding tasks, the model outputs a specialized [SEG] token. This token is passed to a pre-trained SAM2 (Segment Anything Model 2) decoder, which generates the final pixel-level segmentation mask.
Datasets and Benchmarking
SAMA-239K Training Set
The SAMA-239K dataset consists of 15,000 videos containing 172,000 referential grounded video-QA triplets and 67,000 object descriptions. It integrates data from diverse sources, including MeViS, Ref-YouTube-VOS, LV-VIS, SAV, and VidSTG, supplemented by standard image/video QA datasets like LLaVA-1.5.
SAMA-Bench
To evaluate the model's performance in complex scenarios, the authors introduced SAMA-Bench, which includes 5,067 questions across 522 videos. The benchmark is divided into two components:
- SAMA-Bench$^G$: Evaluates grounded dialogue (segmentation accuracy within a chat).
- SAMA-Bench$^C$: Evaluates region captioning (semantic understanding of specific areas).
Key Insights and Results
Performance on SAMA-Bench
SAMA-8B demonstrates significant improvements over existing baselines. On SAMA-Bench$^G$, it achieved a 0.70 mIoU and 0.55 Recall, outperforming the Ferret-13B + SAM2 baseline by 6% in mIoU and 12% in Recall. This highlights the effectiveness of the unified training approach and the query-aware aggregator.
State-of-the-Art Video Grounding
SAMA set new records on standard video grounding benchmarks, achieving scores of 53.7 on MeViS, 77.3 on Ref-DAVIS17, and 59.1 on ReVOS. It also maintained high performance on static image benchmarks like RefCOCO (82.7) and RefCOCO+ (78.1).
Balancing Grounding and Dialogue
A key finding during development was the "Grounding vs. Chat" trade-off. Joint training on pixel-level grounding and general dialogue can lead to mutual interference. The authors found that carefully re-balancing loss weights—prioritizing holistic dialogue embeddings—allowed the model to maintain strong conversational skills (e.g., 51.8 on Video-MME) without sacrificing segmentation precision.
Conclusion and Future Work
SAMA represents a significant step toward unified, fine-grained video understanding in LMMs. By combining automated high-quality data generation with a query-aware architecture, it achieves superior performance in both grounding and referential dialogue.
Future work will focus on expanding input flexibility beyond bounding boxes (e.g., point clicks or masks) and addressing the challenges of long-range temporal understanding in minute- or hour-level videos. Additionally, further research into multi-task learning strategies is needed to fully resolve the interference between specialized grounding tasks and general conversational capabilities.
Summary updated