TLDR: TGS-Agent is a new AI framework for segmenting objects in videos based on audio, visual, and text descriptions. Unlike prior “black-box” methods, it uses a “Think-Ground-Segment” process, mimicking human reasoning. It features Ref-Thinker, a multimodal language model that explicitly identifies the target object, which then guides Grounding-DINO for bounding boxes and SAM2 for precise segmentation. This approach is explainable, doesn’t need pixel-level supervision, and achieves state-of-the-art results, especially on the new, more challenging R2-AVSBench dataset.
In the evolving landscape of artificial intelligence, understanding and interacting with the world across multiple senses is becoming increasingly important. One challenging area is Referring Audio-Visual Segmentation (Ref-AVS), where the goal is to pinpoint and segment a specific object in a video based on a natural language description that might include audio and visual cues.
Traditionally, Ref-AVS models have relied on complex methods that fuse different types of information (audio, visual, text) into hidden representations, which then guide a segmentation model. While effective, these approaches often require extensive pixel-level supervision during training and operate as “black boxes,” making it difficult to understand how they arrive at their conclusions.
Introducing TGS-Agent: A Human-like Approach to Segmentation
A new research paper, “Think Before You Segment: An Object-aware Reasoning Agent for Referring Audio-Visual Segmentation,” introduces a novel framework called TGS-Agent. This approach mimics how humans naturally reason about identifying objects: first, we think about what the object is, then we locate it, and finally, we precisely outline it. This is broken down into a “Think-Ground-Segment” process.
The core innovation of TGS-Agent is the “Think” step, handled by a component called Ref-Thinker. Ref-Thinker is a multimodal language model (MLLM) designed to understand textual, visual, and auditory information. Given a reference expression and the video’s audio and visual streams, Ref-Thinker explicitly identifies the referred object and generates a clear, descriptive text about it. This is achieved through a unique instruction-tuning dataset that includes explicit “think-answer” reasoning chains, making the model’s decision-making process more transparent and interpretable.
Once Ref-Thinker identifies the object with a textual description, the “Ground” step takes over. This step uses Grounding-DINO, an advanced object detection model, to generate a precise bounding box around the identified object in each video frame. Grounding-DINO is powerful because it can detect arbitrary objects based on human language inputs, making it a perfect fit for the textual descriptions provided by Ref-Thinker.
Finally, the “Segment” step utilizes SAM2 (Segment Anything Model 2), a robust segmentation foundation model. SAM2 takes the bounding box generated in the “Ground” phase as a prompt and accurately produces the pixel-level segmentation mask for the object. Remarkably, TGS-Agent achieves superior performance even with a frozen (untrained) SAM2, unlike prior methods that often require fine-tuning its mask decoder.
Also Read:
- X-SAM: Advancing Image Segmentation with Unified Multimodal AI
- Pinpointing Events in Videos: A New Approach to Weakly-Supervised Audio-Visual Localization
A New Benchmark for Robust Evaluation
To thoroughly evaluate the generalization capabilities of Ref-AVS models, the researchers also introduce R2-AVSBench (Reasoning-enhanced Audio-Visual Segmentation Benchmark). This new dataset features linguistically diverse and reasoning-intensive reference expressions, which are more challenging than those in existing benchmarks. For instance, instead of directly naming an object, R2-AVSBench might use abstract terms or require deeper contextual understanding, forcing models to truly reason rather than rely on simple keyword matching.
The TGS-Agent has demonstrated state-of-the-art results on both the standard Ref-AVSBench and the newly proposed R2-AVSBench. Its ability to explicitly reason about the target object from multimodal cues allows it to maintain strong performance even with complex and varied reference types, showcasing its superior generalizability.
This research marks a significant step towards more explainable and robust AI systems for multimodal understanding. By breaking down the complex task into a series of understandable reasoning steps, TGS-Agent offers a new paradigm for referring audio-visual segmentation that operates without pixel-level supervision and provides greater interpretability. For more details, you can read the full research paper here.


