Unleashing the Temporal-Spatial Reasoning Capacity of GPT for Training-Free Audio and Language Referenced Video Object Segmentation

Shaofei Huang, Rui Ling, Hongyu Li, Tianrui Hui, Zongheng Tang, Xiaoming Wei, Jizhong Han, Si Liu

Abstract

Video Object Segmentation (VOS) guided by multimodal references, such as text or audio, typically requires extensive supervised training on large-scale datasets. This paper presents AL-Ref-SAM 2, a novel training-free pipeline that enables high-quality video object segmentation using only audio or text descriptions. By leveraging GPT-4 as a "spatial-temporal director" to select the ideal starting point—a pivot frame and box—for the SAM 2 model, the system achieves performance that rivals and sometimes exceeds fully supervised, task-specific models. Our approach demonstrates that complex spatial-temporal reasoning can be offloaded to large language models (LLMs) to effectively initialize visual foundation models.

Introduction

Video Object Segmentation (VOS) involves tracking and masking a specific object throughout a video sequence. When the target object is defined by a multimodal reference, such as a natural language description ("the cat moving from right to left") or an acoustic signal (a barking dog), the task requires both high-level semantic understanding and precise spatial localization.

Current state-of-the-art solutions often rely on labor-intensive training. While foundation models like SAM 2 (for segmentation) and GroundingDINO (for object detection) offer powerful zero-shot capabilities, their naive integration often fails in video contexts. Specifically, if the target object is occluded, blurry, or not yet present in the initial frame, the segmentation chain often breaks. This paper addresses the gap in spatial-temporal reasoning required to find the optimal moment in a video to initialize a segmentation model without additional training.

Comparison between (a) naive grounding, which may fail due to occlusions or non-existent objects in the first frame, and (b) the proposed pivot selection approach which identifies the most reliable frame for initialization.

Methods

The proposed Audio-Language-Referenced SAM 2 (AL-Ref-SAM 2) pipeline introduces two primary innovations to bridge the gap between multimodal references and video segmentation.

GPT-assisted Pivot Selection (GPT-PS)

Rather than initializing segmentation at the first frame, AL-Ref-SAM 2 uses GPT-4 to perform a two-step reasoning process. First, in Pivot Frame Selection, GPT-4 analyzes a sequence of sampled video frames to identify the "pivot frame"—the moment where the target object is most clearly visible and least occluded. Second, in Pivot Box Selection, GroundingDINO generates candidate bounding boxes within the chosen frame. GPT-4 then performs spatial reasoning to select the exact box that best matches the reference description. To ensure robust reasoning, the authors utilize Chain-of-Thought (CoT) prompts, forcing the model to describe the scene and analyze syntax before making a selection.

Language-Binded Reference Unification (LBRU)

To handle Audio-Visual Segmentation (AVS), the LBRU module converts sound into a text-based prompt. It utilizes an audio classifier (BEATs) to generate candidate labels, which are then filtered by GPT-4 using visual context to eliminate background noise or "hallucinated" sounds. This results in a unified language-formatted reference that can be processed by the same pipeline used for text-based tasks.

The complete AL-Ref-SAM 2 architecture, detailing the flow from multimodal references through GPT-assisted selection to final segmentation propagation using SAM 2.

Experimental Results

AL-Ref-SAM 2 was evaluated on several standard benchmarks for Referring Video Object Segmentation (RVOS) and Audio-Visual Segmentation (AVS). Despite being entirely training-free, the model outperformed many state-of-the-art supervised methods.

On the Ref-YouTube-VOS dataset, it achieved a 67.9 J&F score, surpassing the previous best training-free method by 3.1 points and exceeding several fully supervised models. In the AVSBench AVSS-V2-Binary task, it reached a 59.2 MJ score, a significant leap over other training-free baselines which typically hover around 25 MJ. Qualitative analysis shows the model's superior ability to distinguish between objects of the same category based on subtle spatial cues, such as identifying a specific bike in a race based on its relative position.

Conclusion

AL-Ref-SAM 2 demonstrates that the temporal-spatial reasoning capacity of LLMs can be effectively harnessed to direct specialized visual foundation models. By finding the "easiest" frame to segment first, the temporal propagation of SAM 2 becomes significantly more robust. While inference latency remains a consideration due to the multi-model pipeline and API dependencies, this work highlights a promising path toward training-free, multimodal video understanding.

Summary updated

BibTeX
@inproceedings{huang2025unleashing,
  author = {Shaofei Huang and Rui Ling and Hongyu Li and Tianrui Hui and Zongheng Tang and Xiaoming Wei and Jizhong Han and Si Liu},
  title = {{Unleashing the Temporal-Spatial Reasoning Capacity of GPT for Training-Free Audio and Language Referenced Video Object Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i4.32387},
}
Figure