TL;DR
This paper tackles the hidden biases and dataset scarcity in Audio-Visual Segmentation (AVS) by introducing Visual Post-production (VPO), a cost-effective method to build unbiased datasets by pairing existing images with independent audio clips. Alongside this, the authors propose Contrastive Audio-Visual Pairing (CAVP), a supervised contrastive learning framework that mines hard negative samples to force models to truly listen before they segment, achieving state-of-the-art performance across multiple benchmarks.
What Problem Does This Paper Address?
Audio-Visual Segmentation (AVS) aims to look at a video frame, listen to the accompanying audio, and output a pixel-level mask of the object making the sound. While intuitive for humans, AI models suffer from a major pitfall: "commonsense" bias.
Existing AVS datasets are often collected from real-world videos where certain objects are almost always the sound source. For instance, if a helicopter is in the frame, it is usually making a helicopter sound. Models exploit this correlation, learning to segment the helicopter based purely on its visual presence, completely ignoring the audio modality. If you swap the audio to a bird chirping or a man talking, standard models will still segment the helicopter.
Furthermore, localizing a sound source becomes incredibly difficult when multiple instances of the same object class are present (e.g., two dogs, but only one is barking). Manually annotating pixel-level masks for diverse audio-visual scenarios is prohibitively expensive, leaving the field starved for unbiased, multi-instance data.
Methods
The authors tackle these challenges from two angles: data generation and model learning.
1. Visual Post-production (VPO) Dataset Strategy
To break the visual-audio bias without expensive manual labeling, the authors propose VPO. They take off-the-shelf images with semantic segmentation masks (from COCO) and pair them with audio clips from an independent audio dataset (VGGSound) based on semantic labels. By deliberately mixing images containing multiple object categories with only one active audio source, the model is forced to rely on the audio to know what to segment.
To solve the multi-instance problem, they simulate spatial audio (stereo sound). By calculating the horizontal center of mass ($c_w$) of the sounding object relative to the image width ($W$), they modulate the volume of the left and right audio channels, providing a mathematical spatial cue for the model.
2. Contrastive Audio-Visual Pairing (CAVP)
Standard audio-visual contrastive learning treats every distinct image-audio pair as an independent negative sample. This approach fails to mine truly informative ("hard") negatives.
CAVP shuffles audio and visual features within a training batch to create arbitrary cross-modal pairings. It then categorizes these pairs into a foreground anchor set, hard negatives (e.g., same visual class but different audio, or different visual class but same audio), and easy negatives. A supervised InfoNCE loss is then applied to pull true audio-visual matches closer together in the embedding space while aggressively repelling the mined hard negatives.
3. Cross-Attention Refinement
The authors flip standard cross-attention design on its head. While typical methods use audio as the query ($Q$) to attend to visual features, the authors found this allows visual features to dominate and suppress the audio. CAVP uses visual features as the query and replaces the standard softmax activation function with a sigmoid function, allowing the model to highlight multiple regions of varying sizes effectively.
Datasets
The paper evaluates its methods on both existing benchmarks and their newly introduced VPO suites:
- AVSBench-Object (SS & MS): Existing single-source and multi-source binary segmentation datasets.
- AVSBench-Semantics: Existing multi-class segmentation dataset.
- VPO-SS (Single Source): 12,202 samples featuring multiple visual objects but only one sounding object.
- VPO-MS (Multi-Source): 9,817 images containing up to five sounding objects from different classes, with mixed audio waveforms.
- VPO-MSMI (Multi-Source Multi-Instance): 12,855 images containing multiple instances of the same or different classes, utilizing the synthesized stereo sound.
Key Insights and Ideas
- Visual Dominance in Cross-Attention: Using audio as a query often causes the stronger visual modality to overpower the weaker audio modality. Flipping the query-key roles preserves cross-modal balance.
- Sigmoid > Softmax for Attention Maps: Softmax forces competition across spatial dimensions, often shrinking the attention map too aggressively. Sigmoid allows independent activation per pixel, which is crucial for segmenting multiple or large sounding objects.
- The Resolution Trap: The authors discovered that evaluating AVS models on heavily downsampled images (e.g., $224 \times 224$, standard in previous benchmarks) severely masks model capabilities. Testing on original image resolutions yields massive performance gains and provides a truer metric of success.
Key Results
CAVP consistently achieved state-of-the-art (SOTA) results across all tested datasets:
- Resized AVSBench: Outperformed the previous best methods in mean Intersection over Union (mIoU) by 2.21% on AVSBench-Object (SS), 2.43% on AVSBench-Object (MS), and 5.68% on AVSBench-Semantics.
- Original Resolution AVSBench: On full-resolution testing, CAVP outperformed baselines by a minimum margin of 4.13% in mIoU and 2.93% in $F_\beta$ score.
- VPO Benchmarks: CAVP outperformed baseline models (like TPAVI and AVSegFormer) by at least 4.76% mIoU across the VPO datasets, proving highly effective at leveraging stereo sound cues for multi-instance scenarios.
Limitations and Future Work
Despite its strengths, the VPO dataset generation strategy relies on still images matched with audio clips, meaning it lacks true temporal motion information (like a singer's lips moving). Additionally, the strict filtering process used to eliminate trivial single-object images introduces a class imbalance issue for tail classes.
For future work, the authors aim to incorporate more sophisticated spatial audio simulations, such as modeling microphone distance and sound arrival time differences (Phase/ITD cues), to further improve multi-instance robust segmentation.
Summary updated