Multi-scale Multi-instance Visual Sound Localization and Segmentation

Shentong Mo, Haofan WangarXiv 2024 · DOI

Introduction

Visual sound localization (identifying the source of a sound) and segmentation (delineating the exact shape of that source) are core challenges in audio-visual learning. For instance, in a video of a musical duet, a robust model should distinguish the pixels of a violin from those of a cello based solely on the audio track.

Existing approaches often struggle with two primary issues: scale blindness and annotation hunger. Most methods align global audio features with visual features at a single resolution, failing to capture very small objects or the fine details of larger ones. Furthermore, high-quality audio-visual segmentation (AVS) typically requires labor-intensive pixel-level masks for training. The M2VSL framework addresses these gaps by enabling high-precision segmentation using only "weak" supervision—knowing what instrument is playing without knowing its location in the frame.

Methodology

The M2VSL framework introduces two primary innovations to the standard two-stream (audio/visual) architecture to handle varying object scales and weak labels.

The M2VSL architecture featuring the Multi-scale Multi-instance Transformer (MMT) and Contrastive (MMC) modules.

Multi-scale Multiple Instance Contrastive (MMC) Module

Instead of comparing audio to a single visual map, the MMC module treats visual features at different resolutions as a "bag" of instances. It employs a contrastive loss function designed to align the audio with the most relevant visual regions across all scales. This ensures that whether a sounding object is a tiny bird or a massive truck, the model can identify a scale that fits the source.

Multi-scale Multi-instance Transformer (MMT)

Standard Vision Transformers (ViTs) can be imprecise for cross-modal fusion. MMT is specifically designed to aggregate multi-scale features dynamically. It uses categorical token embeddings to "query" visual features, allowing the model to decide which regions across different scales are most likely to be the sound source.

Experiments and Results

The researchers evaluated M2VSL on several rigorous benchmarks, including VGGSound-Instruments, VGG-Sound Sources (Single and Duet), and AVSBench. The model uses a ResNet-18 backbone for both audio (via spectrograms) and images, maintaining efficiency.

Quantitative Performance

M2VSL consistently outperformed previous state-of-the-art (SOTA) methods like AVGN and EZ-VSL. On VGGSound-Instruments, it achieved an [email protected] of 59.7%, a significant improvement over the previous best of 55.3%. In weakly-supervised segmentation, M2VSL reached a mean IoU (mIoU) of 37.85% for single sources, nearly doubling the performance of older baseline methods like CAM (19.26%).

Qualitative Analysis

One of the most significant findings is how well the model performs at pixel-level segmentation without ever seeing a manual mask during training. By refining localization heatmaps through the MMT, the model produces high-quality masks that closely resemble ground truth.

Qualitative comparison of segmentation masks generated by M2VSL against ground truth and baseline methods.

Conclusion and Future Work

M2VSL demonstrates that framing visual sound localization as a multi-instance learning problem allows models to overcome scale sensitivity and the need for expensive pixel-level annotations. While the model shows robustness in multi-source "Duet" scenarios, future work could explore its performance in environments with heavy non-categorical background noise or long periods of silence. Additionally, expanding the model's class vocabulary to "in-the-wild" open-vocabulary scenarios remains a logical next step for the field.

Summary updated

BibTeX
@misc{mo2024multi,
  author = {Shentong Mo and Haofan Wang},
  title = {{Multi-scale Multi-instance Visual Sound Localization and Segmentation}},
  year = {2024},
  eprint = {2409.00486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.00486},
}
Figure