Abstract
The Segment Anything Model (SAM) has revolutionized image segmentation but remains limited by its inability to process temporal context or auditory signals. This paper introduces ST-BAVA (Spatio-Temporal, Bidirectional Audio-Visual Attention), a lightweight, plug-and-play module designed to extend SAM into the audio-visual domain. By incorporating spatial and temporal attention mechanisms and utilizing audio adapters, the proposed method enables SAM to segment sounding objects in video with high precision. Experimental results on the AVSBench dataset demonstrate a significant performance leap, particularly in multi-source scenarios where the model achieves an 8.3% relative improvement in mIoU over previous state-of-the-art methods.
Introduction
Audio-Visual Segmentation (AVS) requires identifying and pixel-perfectly segmenting objects in a video specifically when they are producing sound. While SAM excels at general segmentation, it faces two primary hurdles in AVS: a modality gap (it cannot process audio prompts) and temporal blindness (it processes frames in isolation). Without temporal context, a model cannot distinguish between two identical objects if only one is currently making noise. This research addresses these gaps by introducing a spatio-temporal bridge for the SAM architecture.
The ST-BAVA Framework
The core contribution is the ST-BAVA module, which is inserted between SAM’s frozen image encoder and mask decoder. This module facilitates bidirectional communication between audio and visual features across both space and time.
Spatio-Temporal Attention
ST-BAVA employs a decomposed attention mechanism to maintain efficiency:
- Spatial Attention: Correlates audio features with specific regions within individual video frames.
- Temporal Attention: Analyzes how these audio-visual relationships evolve across consecutive frames, acting as a filter to identify when an object starts or stops making sound.
- Bidirectional Alignment: Unlike simple querying, the module updates both image and audio features based on their mutual relationship, ensuring precise alignment before mask generation.
Audio Adapters
To prime the visual encoder for auditory context, the researchers integrated lightweight MLP-based Audio Adapters. These components inject audio information early into the visual processing pipeline, allowing the frozen SAM backbone to "attend" to sound-relevant features.
Experimental Results
The model was evaluated on the AVSBench dataset using VGGish audio features. By training only the new modules (representing less than 4% of SAM’s total parameters), the authors achieved state-of-the-art results:
- Multi-Source (MS3): Achieved 69.01 mIoU, an 8.3% relative improvement over the previous leader, GAVS.
- Single-Source (S4): Reached 82.46 mIoU, surpassing both standard SAM-based and specialized AVS models.
Qualitative analysis confirms that ST-BAVA is significantly better at handling "silent frames." While frame-by-frame models often continue segmenting an object based on visual cues after it stops making noise, ST-BAVA correctly ceases segmentation the moment the audio signal disappears.
Conclusion
By extending SAM with ST-BAVA, this work demonstrates that a frozen, large-scale vision model can be effectively adapted to complex multi-modal tasks with minimal parameter updates. Future work will focus on expanding the temporal window beyond five frames and optimizing inference speed for real-time applications.
Summary updated